UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

49 lines 1.92 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'; export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSON(json) { return IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { currentCPUUtilizationPercentage: !exists(json, 'currentCPUUtilizationPercentage') ? undefined : json['currentCPUUtilizationPercentage'], currentReplicas: json['currentReplicas'], desiredReplicas: json['desiredReplicas'], lastScaleTime: !exists(json, 'lastScaleTime') ? undefined : json['lastScaleTime'], observedGeneration: !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], }; } export function IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { currentCPUUtilizationPercentage: value.currentCPUUtilizationPercentage, currentReplicas: value.currentReplicas, desiredReplicas: value.desiredReplicas, lastScaleTime: value.lastScaleTime === undefined ? undefined : value.lastScaleTime, observedGeneration: value.observedGeneration, }; } //# sourceMappingURL=IoK8sApiAutoscalingV1HorizontalPodAutoscalerStatus.js.map