@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
50 lines • 2.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';
import { IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON, IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON, IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSON, IoK8sApiCertificatesV1CertificateSigningRequestStatusToJSON, IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, } from './';
export function IoK8sApiCertificatesV1CertificateSigningRequestFromJSON(json) {
return IoK8sApiCertificatesV1CertificateSigningRequestFromJSONTyped(json, false);
}
export function IoK8sApiCertificatesV1CertificateSigningRequestFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'],
kind: !exists(json, 'kind') ? undefined : json['kind'],
metadata: !exists(json, 'metadata')
? undefined
: IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']),
spec: IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON(json['spec']),
status: !exists(json, 'status')
? undefined
: IoK8sApiCertificatesV1CertificateSigningRequestStatusFromJSON(json['status']),
};
}
export function IoK8sApiCertificatesV1CertificateSigningRequestToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiVersion: value.apiVersion,
kind: value.kind,
metadata: IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata),
spec: IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON(value.spec),
status: IoK8sApiCertificatesV1CertificateSigningRequestStatusToJSON(value.status),
};
}
//# sourceMappingURL=IoK8sApiCertificatesV1CertificateSigningRequest.js.map