@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
41 lines • 1.33 kB
JavaScript
/* 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';
export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSON(json) {
return IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped(json, false);
}
export function IoK8sApiAutoscalingV2CrossVersionObjectReferenceFromJSONTyped(json, _ignoreDiscriminator) {
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) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiVersion: value.apiVersion,
kind: value.kind,
name: value.name,
};
}
//# sourceMappingURL=IoK8sApiAutoscalingV2CrossVersionObjectReference.js.map