@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
39 lines • 1.51 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 { IoK8sApiAutoscalingV2MetricIdentifierFromJSON, IoK8sApiAutoscalingV2MetricIdentifierToJSON, IoK8sApiAutoscalingV2MetricTargetFromJSON, IoK8sApiAutoscalingV2MetricTargetToJSON, } from './';
export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSON(json) {
return IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped(json, false);
}
export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
metric: IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']),
target: IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']),
};
}
export function IoK8sApiAutoscalingV2PodsMetricSourceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
metric: IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric),
target: IoK8sApiAutoscalingV2MetricTargetToJSON(value.target),
};
}
//# sourceMappingURL=IoK8sApiAutoscalingV2PodsMetricSource.js.map