@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
51 lines • 1.91 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 IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSON(json) {
return IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSONTyped(json, false);
}
export function IoK8sApiCertificatesV1CertificateSigningRequestSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
expirationSeconds: !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'],
extra: !exists(json, 'extra') ? undefined : json['extra'],
groups: !exists(json, 'groups') ? undefined : json['groups'],
request: json['request'],
signerName: json['signerName'],
uid: !exists(json, 'uid') ? undefined : json['uid'],
usages: !exists(json, 'usages') ? undefined : json['usages'],
username: !exists(json, 'username') ? undefined : json['username'],
};
}
export function IoK8sApiCertificatesV1CertificateSigningRequestSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
expirationSeconds: value.expirationSeconds,
extra: value.extra,
groups: value.groups,
request: value.request,
signerName: value.signerName,
uid: value.uid,
usages: value.usages,
username: value.username,
};
}
//# sourceMappingURL=IoK8sApiCertificatesV1CertificateSigningRequestSpec.js.map