@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.59 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 { IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationFromJSON, IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationToJSON, } from './';
export function IoK8sApiResourceV1alpha3DeviceClaimConfigurationFromJSON(json) {
return IoK8sApiResourceV1alpha3DeviceClaimConfigurationFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1alpha3DeviceClaimConfigurationFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
opaque: !exists(json, 'opaque')
? undefined
: IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationFromJSON(json['opaque']),
requests: !exists(json, 'requests') ? undefined : json['requests'],
};
}
export function IoK8sApiResourceV1alpha3DeviceClaimConfigurationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
opaque: IoK8sApiResourceV1alpha3OpaqueDeviceConfigurationToJSON(value.opaque),
requests: value.requests,
};
}
//# sourceMappingURL=IoK8sApiResourceV1alpha3DeviceClaimConfiguration.js.map