/* 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'; /** * CrossVersionObjectReference contains enough information to let you identify the referred resource. * @export * @interface IoK8sApiAutoscalingV2CrossVersionObjectReference */ export interface IoK8sApiAutoscalingV2CrossVersionObjectReference { /** * apiVersion is the API version of the referent * @type {string} * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference */ apiVersion?: string; /** * kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @type {string} * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference */ kind: string; /** * name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @type {string} * @memberof IoK8sApiAutoscalingV2CrossVersionObjectReference */ name: string; } export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON( json: any, ): IoK8sApiAutoscalingV2CrossVersionObjectReference { return IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped(json, false); } export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAutoscalingV2CrossVersionObjectReference { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], kind: json['kind'], name: json['name'], }; } export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceToJSON( value?: IoK8sApiAutoscalingV2CrossVersionObjectReference | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, kind: value.kind, name: value.name, }; }