@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
39 lines • 1.31 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';
export function IoK8sApiResourceV1beta1DeviceConstraintFromJSON(json) {
return IoK8sApiResourceV1beta1DeviceConstraintFromJSONTyped(json, false);
}
export function IoK8sApiResourceV1beta1DeviceConstraintFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
matchAttribute: !exists(json, 'matchAttribute') ? undefined : json['matchAttribute'],
requests: !exists(json, 'requests') ? undefined : json['requests'],
};
}
export function IoK8sApiResourceV1beta1DeviceConstraintToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
matchAttribute: value.matchAttribute,
requests: value.requests,
};
}
//# sourceMappingURL=IoK8sApiResourceV1beta1DeviceConstraint.js.map