/* 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 './'; /** * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). * @export * @interface IoK8sApiAutoscalingV2ExternalMetricSource */ export interface IoK8sApiAutoscalingV2ExternalMetricSource { /** * * @type {IoK8sApiAutoscalingV2MetricIdentifier} * @memberof IoK8sApiAutoscalingV2ExternalMetricSource */ metric: IoK8sApiAutoscalingV2MetricIdentifier; /** * * @type {IoK8sApiAutoscalingV2MetricTarget} * @memberof IoK8sApiAutoscalingV2ExternalMetricSource */ target: IoK8sApiAutoscalingV2MetricTarget; } export function IoK8sApiAutoscalingV2ExternalMetricSourceFromJSON( json: any, ): IoK8sApiAutoscalingV2ExternalMetricSource { return IoK8sApiAutoscalingV2ExternalMetricSourceFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV2ExternalMetricSourceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAutoscalingV2ExternalMetricSource { if (json === undefined || json === null) { return json; } return { metric: IoK8sApiAutoscalingV2MetricIdentifierFromJSON(json['metric']), target: IoK8sApiAutoscalingV2MetricTargetFromJSON(json['target']), }; } export function IoK8sApiAutoscalingV2ExternalMetricSourceToJSON( value?: IoK8sApiAutoscalingV2ExternalMetricSource | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { metric: IoK8sApiAutoscalingV2MetricIdentifierToJSON(value.metric), target: IoK8sApiAutoscalingV2MetricTargetToJSON(value.target), }; }