@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
47 lines • 1.83 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 IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSON(json) {
return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped(json, false);
}
export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
categories: !exists(json, 'categories') ? undefined : json['categories'],
kind: json['kind'],
listKind: !exists(json, 'listKind') ? undefined : json['listKind'],
plural: json['plural'],
shortNames: !exists(json, 'shortNames') ? undefined : json['shortNames'],
singular: !exists(json, 'singular') ? undefined : json['singular'],
};
}
export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNamesToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
categories: value.categories,
kind: value.kind,
listKind: value.listKind,
plural: value.plural,
shortNames: value.shortNames,
singular: value.singular,
};
}
//# sourceMappingURL=IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionNames.js.map