@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
54 lines • 2.3 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 { IoK8sApiResourceV1alpha3DeviceClaimConfigurationFromJSON, IoK8sApiResourceV1alpha3DeviceClaimConfigurationToJSON, IoK8sApiResourceV1alpha3DeviceConstraintFromJSON, IoK8sApiResourceV1alpha3DeviceConstraintToJSON, IoK8sApiResourceV1alpha3DeviceRequestFromJSON, IoK8sApiResourceV1alpha3DeviceRequestToJSON, } from './';
export function IoK8sApiResourceV1alpha3DeviceClaimFromJSON(json) {
return IoK8sApiResourceV1alpha3DeviceClaimFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1alpha3DeviceClaimFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
config: !exists(json, 'config')
? undefined
: json['config'].map(IoK8sApiResourceV1alpha3DeviceClaimConfigurationFromJSON),
constraints: !exists(json, 'constraints')
? undefined
: json['constraints'].map(IoK8sApiResourceV1alpha3DeviceConstraintFromJSON),
requests: !exists(json, 'requests')
? undefined
: json['requests'].map(IoK8sApiResourceV1alpha3DeviceRequestFromJSON),
};
}
export function IoK8sApiResourceV1alpha3DeviceClaimToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
config: value.config === undefined
? undefined
: value.config.map(IoK8sApiResourceV1alpha3DeviceClaimConfigurationToJSON),
constraints: value.constraints === undefined
? undefined
: value.constraints.map(IoK8sApiResourceV1alpha3DeviceConstraintToJSON),
requests: value.requests === undefined
? undefined
: value.requests.map(IoK8sApiResourceV1alpha3DeviceRequestToJSON),
};
}
//# sourceMappingURL=IoK8sApiResourceV1alpha3DeviceClaim.js.map