UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

46 lines 1.9 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 { exists } from '../runtime'; import { IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSON, IoK8sApiAutoscalingV1CrossVersionObjectReferenceToJSON, } from './'; export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSON(json) { return IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { maxReplicas: json['maxReplicas'], minReplicas: !exists(json, 'minReplicas') ? undefined : json['minReplicas'], scaleTargetRef: IoK8sApiAutoscalingV1CrossVersionObjectReferenceFromJSON(json['scaleTargetRef']), targetCPUUtilizationPercentage: !exists(json, 'targetCPUUtilizationPercentage') ? undefined : json['targetCPUUtilizationPercentage'], }; } export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { maxReplicas: value.maxReplicas, minReplicas: value.minReplicas, scaleTargetRef: IoK8sApiAutoscalingV1CrossVersionObjectReferenceToJSON(value.scaleTargetRef), targetCPUUtilizationPercentage: value.targetCPUUtilizationPercentage, }; } //# sourceMappingURL=IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec.js.map