@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
60 lines • 2.46 kB
JavaScript
/* 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';
import { IoK8sApiCoreV1SecretReferenceFromJSON, IoK8sApiCoreV1SecretReferenceToJSON, } from './';
export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSON(json) {
return IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSONTyped(json, false);
}
export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
chapAuthDiscovery: !exists(json, 'chapAuthDiscovery') ? undefined : json['chapAuthDiscovery'],
chapAuthSession: !exists(json, 'chapAuthSession') ? undefined : json['chapAuthSession'],
fsType: !exists(json, 'fsType') ? undefined : json['fsType'],
initiatorName: !exists(json, 'initiatorName') ? undefined : json['initiatorName'],
iqn: json['iqn'],
iscsiInterface: !exists(json, 'iscsiInterface') ? undefined : json['iscsiInterface'],
lun: json['lun'],
portals: !exists(json, 'portals') ? undefined : json['portals'],
readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'],
secretRef: !exists(json, 'secretRef')
? undefined
: IoK8sApiCoreV1SecretReferenceFromJSON(json['secretRef']),
targetPortal: json['targetPortal'],
};
}
export function IoK8sApiCoreV1ISCSIPersistentVolumeSourceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
chapAuthDiscovery: value.chapAuthDiscovery,
chapAuthSession: value.chapAuthSession,
fsType: value.fsType,
initiatorName: value.initiatorName,
iqn: value.iqn,
iscsiInterface: value.iscsiInterface,
lun: value.lun,
portals: value.portals,
readOnly: value.readOnly,
secretRef: IoK8sApiCoreV1SecretReferenceToJSON(value.secretRef),
targetPortal: value.targetPortal,
};
}
//# sourceMappingURL=IoK8sApiCoreV1ISCSIPersistentVolumeSource.js.map