/* 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'; /** * ScaleSpec describes the attributes of a scale subresource. * @export * @interface IoK8sApiAutoscalingV1ScaleSpec */ export interface IoK8sApiAutoscalingV1ScaleSpec { /** * replicas is the desired number of instances for the scaled object. * @type {number} * @memberof IoK8sApiAutoscalingV1ScaleSpec */ replicas?: number; } export function IoK8sApiAutoscalingV1ScaleSpecFromJSON(json: any): IoK8sApiAutoscalingV1ScaleSpec { return IoK8sApiAutoscalingV1ScaleSpecFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV1ScaleSpecFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAutoscalingV1ScaleSpec { if (json === undefined || json === null) { return json; } return { replicas: !exists(json, 'replicas') ? undefined : json['replicas'], }; } export function IoK8sApiAutoscalingV1ScaleSpecToJSON( value?: IoK8sApiAutoscalingV1ScaleSpec | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { replicas: value.replicas, }; }