@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
44 lines • 1.69 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 { IoK8sApiAuthenticationV1BoundObjectReferenceFromJSON, IoK8sApiAuthenticationV1BoundObjectReferenceToJSON, } from './';
export function IoK8sApiAuthenticationV1TokenRequestSpecFromJSON(json) {
return IoK8sApiAuthenticationV1TokenRequestSpecFromJSONTyped(json, false);
}
export function IoK8sApiAuthenticationV1TokenRequestSpecFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
audiences: json['audiences'],
boundObjectRef: !exists(json, 'boundObjectRef')
? undefined
: IoK8sApiAuthenticationV1BoundObjectReferenceFromJSON(json['boundObjectRef']),
expirationSeconds: !exists(json, 'expirationSeconds') ? undefined : json['expirationSeconds'],
};
}
export function IoK8sApiAuthenticationV1TokenRequestSpecToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
audiences: value.audiences,
boundObjectRef: IoK8sApiAuthenticationV1BoundObjectReferenceToJSON(value.boundObjectRef),
expirationSeconds: value.expirationSeconds,
};
}
//# sourceMappingURL=IoK8sApiAuthenticationV1TokenRequestSpec.js.map