@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
51 lines • 1.81 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt API
* This is KubeVirt API an add-on for Kubernetes.
*
* The version of the OpenAPI document: 1.0.0
* Contact: kubevirt-dev@googlegroups.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists } from '../runtime';
export function V1SEVMeasurementInfoFromJSON(json) {
return V1SEVMeasurementInfoFromJSONTyped(json, false);
}
export function V1SEVMeasurementInfoFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
apiMajor: !exists(json, 'apiMajor') ? undefined : json['apiMajor'],
apiMinor: !exists(json, 'apiMinor') ? undefined : json['apiMinor'],
apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'],
buildID: !exists(json, 'buildID') ? undefined : json['buildID'],
kind: !exists(json, 'kind') ? undefined : json['kind'],
loaderSHA: !exists(json, 'loaderSHA') ? undefined : json['loaderSHA'],
measurement: !exists(json, 'measurement') ? undefined : json['measurement'],
policy: !exists(json, 'policy') ? undefined : json['policy'],
};
}
export function V1SEVMeasurementInfoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiMajor: value.apiMajor,
apiMinor: value.apiMinor,
apiVersion: value.apiVersion,
buildID: value.buildID,
kind: value.kind,
loaderSHA: value.loaderSHA,
measurement: value.measurement,
policy: value.policy,
};
}
//# sourceMappingURL=V1SEVMeasurementInfo.js.map