UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

40 lines 1.45 kB
/* 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 { mapValues } from '../runtime'; import { IoK8sApiResourceV1beta2CounterFromJSON, IoK8sApiResourceV1beta2CounterToJSON, } from './'; export function IoK8sApiResourceV1beta2DeviceCounterConsumptionFromJSON(json) { return IoK8sApiResourceV1beta2DeviceCounterConsumptionFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2DeviceCounterConsumptionFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { counterSet: json['counterSet'], counters: mapValues(json['counters'], IoK8sApiResourceV1beta2CounterFromJSON), }; } export function IoK8sApiResourceV1beta2DeviceCounterConsumptionToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { counterSet: value.counterSet, counters: mapValues(value.counters, IoK8sApiResourceV1beta2CounterToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta2DeviceCounterConsumption.js.map