/* 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 { IoK8sApiAutoscalingV2MetricIdentifier, IoK8sApiAutoscalingV2MetricIdentifierFromJSON, IoK8sApiAutoscalingV2MetricIdentifierToJSON, IoK8sApiAutoscalingV2MetricTarget, IoK8sApiAutoscalingV2MetricTargetFromJSON, IoK8sApiAutoscalingV2MetricTargetToJSON, } from './'; /** * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. * @export * @interface IoK8sApiAutoscalingV2PodsMetricSource */ export interface IoK8sApiAutoscalingV2PodsMetricSource { /** * * @type {IoK8sApiAutoscalingV2MetricIdentifier} * @memberof IoK8sApiAutoscalingV2PodsMetricSource */ metric: IoK8sApiAutoscalingV2MetricIdentifier; /** * * @type {IoK8sApiAutoscalingV2MetricTarget} * @memberof IoK8sApiAutoscalingV2PodsMetricSource */ target: IoK8sApiAutoscalingV2MetricTarget; } export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSON( json: any, ): IoK8sApiAutoscalingV2PodsMetricSource { return IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV2PodsMetricSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAutoscalingV2PodsMetricSource { if (json === undefined || json === null) { return json; } return { metric: IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), target: IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), }; } export function IoK8sApiAutoscalingV2PodsMetricSourceToJSON( value?: IoK8sApiAutoscalingV2PodsMetricSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { metric: IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), target: IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), }; }