UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

56 lines 2.26 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 { IoK8sApiCoreV1ReplicationControllerConditionFromJSON, IoK8sApiCoreV1ReplicationControllerConditionToJSON, } from './'; export function IoK8sApiCoreV1ReplicationControllerStatusFromJSON(json) { return IoK8sApiCoreV1ReplicationControllerStatusFromJSONTyped(json, false); } export function IoK8sApiCoreV1ReplicationControllerStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { availableReplicas: !exists(json, 'availableReplicas') ? undefined : json['availableReplicas'], conditions: !exists(json, 'conditions') ? undefined : json['conditions'].map(IoK8sApiCoreV1ReplicationControllerConditionFromJSON), fullyLabeledReplicas: !exists(json, 'fullyLabeledReplicas') ? undefined : json['fullyLabeledReplicas'], observedGeneration: !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], readyReplicas: !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], replicas: json['replicas'], }; } export function IoK8sApiCoreV1ReplicationControllerStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { availableReplicas: value.availableReplicas, conditions: value.conditions === undefined ? undefined : value.conditions.map(IoK8sApiCoreV1ReplicationControllerConditionToJSON), fullyLabeledReplicas: value.fullyLabeledReplicas, observedGeneration: value.observedGeneration, readyReplicas: value.readyReplicas, replicas: value.replicas, }; } //# sourceMappingURL=IoK8sApiCoreV1ReplicationControllerStatus.js.map