UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

41 lines 1.46 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 { IoK8sApiAutoscalingV2MetricTargetFromJSON, IoK8sApiAutoscalingV2MetricTargetToJSON, } from './'; export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSON(json) { return IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { container: json['container'], name: json['name'], target: IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), }; } export function IoK8sApiAutoscalingV2ContainerResourceMetricSourceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { container: value.container, name: value.name, target: IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), }; } //# sourceMappingURL=IoK8sApiAutoscalingV2ContainerResourceMetricSource.js.map