UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

47 lines 1.6 kB
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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 IoK8sApiCoreV1AzureDiskVolumeSourceFromJSON(json) { return IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped(json, false); } export function IoK8sApiCoreV1AzureDiskVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { cachingMode: !exists(json, 'cachingMode') ? undefined : json['cachingMode'], diskName: json['diskName'], diskURI: json['diskURI'], fsType: !exists(json, 'fsType') ? undefined : json['fsType'], kind: !exists(json, 'kind') ? undefined : json['kind'], readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'], }; } export function IoK8sApiCoreV1AzureDiskVolumeSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { cachingMode: value.cachingMode, diskName: value.diskName, diskURI: value.diskURI, fsType: value.fsType, kind: value.kind, readOnly: value.readOnly, }; } //# sourceMappingURL=IoK8sApiCoreV1AzureDiskVolumeSource.js.map