UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

60 lines 2.35 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 { IoK8sApiAppsV1ReplicaSetConditionFromJSON, IoK8sApiAppsV1ReplicaSetConditionToJSON, } from './'; export function IoK8sApiAppsV1ReplicaSetStatusFromJSON(json) { return IoK8sApiAppsV1ReplicaSetStatusFromJSONTyped(json, false); } export function IoK8sApiAppsV1ReplicaSetStatusFromJSONTyped(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(IoK8sApiAppsV1ReplicaSetConditionFromJSON), fullyLabeledReplicas: !exists(json, 'fullyLabeledReplicas') ? undefined : json['fullyLabeledReplicas'], observedGeneration: !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], readyReplicas: !exists(json, 'readyReplicas') ? undefined : json['readyReplicas'], replicas: json['replicas'], terminatingReplicas: !exists(json, 'terminatingReplicas') ? undefined : json['terminatingReplicas'], }; } export function IoK8sApiAppsV1ReplicaSetStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { availableReplicas: value.availableReplicas, conditions: value.conditions === undefined ? undefined : value.conditions.map(IoK8sApiAppsV1ReplicaSetConditionToJSON), fullyLabeledReplicas: value.fullyLabeledReplicas, observedGeneration: value.observedGeneration, readyReplicas: value.readyReplicas, replicas: value.replicas, terminatingReplicas: value.terminatingReplicas, }; } //# sourceMappingURL=IoK8sApiAppsV1ReplicaSetStatus.js.map