@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
50 lines • 1.83 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 { IoK8sApiCoreV1LocalObjectReferenceFromJSON, IoK8sApiCoreV1LocalObjectReferenceToJSON, } from './';
export function IoK8sApiCoreV1CephFSVolumeSourceFromJSON(json) {
return IoK8sApiCoreV1CephFSVolumeSourceFromJSONTyped(json, false);
}
export function IoK8sApiCoreV1CephFSVolumeSourceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
monitors: json['monitors'],
path: !exists(json, 'path') ? undefined : json['path'],
readOnly: !exists(json, 'readOnly') ? undefined : json['readOnly'],
secretFile: !exists(json, 'secretFile') ? undefined : json['secretFile'],
secretRef: !exists(json, 'secretRef')
? undefined
: IoK8sApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']),
user: !exists(json, 'user') ? undefined : json['user'],
};
}
export function IoK8sApiCoreV1CephFSVolumeSourceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
monitors: value.monitors,
path: value.path,
readOnly: value.readOnly,
secretFile: value.secretFile,
secretRef: IoK8sApiCoreV1LocalObjectReferenceToJSON(value.secretRef),
user: value.user,
};
}
//# sourceMappingURL=IoK8sApiCoreV1CephFSVolumeSource.js.map