@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.53 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';
import { K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, } from './';
export function V1beta1VirtualMachineExportSpecFromJSON(json) {
return V1beta1VirtualMachineExportSpecFromJSONTyped(json, false);
}
export function V1beta1VirtualMachineExportSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
source: K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['source']),
tokenSecretRef: !exists(json, 'tokenSecretRef') ? undefined : json['tokenSecretRef'],
ttlDuration: !exists(json, 'ttlDuration') ? undefined : json['ttlDuration'],
};
}
export function V1beta1VirtualMachineExportSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
source: K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.source),
tokenSecretRef: value.tokenSecretRef,
ttlDuration: value.ttlDuration,
};
}
//# sourceMappingURL=V1beta1VirtualMachineExportSpec.js.map