UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

49 lines 1.77 kB
/* 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 IoK8sApiCoreV1ObjectReferenceFromJSON(json) { return IoK8sApiCoreV1ObjectReferenceFromJSONTyped(json, false); } export function IoK8sApiCoreV1ObjectReferenceFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], fieldPath: !exists(json, 'fieldPath') ? undefined : json['fieldPath'], kind: !exists(json, 'kind') ? undefined : json['kind'], name: !exists(json, 'name') ? undefined : json['name'], namespace: !exists(json, 'namespace') ? undefined : json['namespace'], resourceVersion: !exists(json, 'resourceVersion') ? undefined : json['resourceVersion'], uid: !exists(json, 'uid') ? undefined : json['uid'], }; } export function IoK8sApiCoreV1ObjectReferenceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, fieldPath: value.fieldPath, kind: value.kind, name: value.name, namespace: value.namespace, resourceVersion: value.resourceVersion, uid: value.uid, }; } //# sourceMappingURL=IoK8sApiCoreV1ObjectReference.js.map