@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
46 lines • 1.71 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 { IoK8sApiAuthenticationV1UserInfoFromJSON, IoK8sApiAuthenticationV1UserInfoToJSON, } from './';
export function IoK8sApiAuthenticationV1TokenReviewStatusFromJSON(json) {
return IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped(json, false);
}
export function IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
audiences: !exists(json, 'audiences') ? undefined : json['audiences'],
authenticated: !exists(json, 'authenticated') ? undefined : json['authenticated'],
error: !exists(json, 'error') ? undefined : json['error'],
user: !exists(json, 'user')
? undefined
: IoK8sApiAuthenticationV1UserInfoFromJSON(json['user']),
};
}
export function IoK8sApiAuthenticationV1TokenReviewStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
audiences: value.audiences,
authenticated: value.authenticated,
error: value.error,
user: IoK8sApiAuthenticationV1UserInfoToJSON(value.user),
};
}
//# sourceMappingURL=IoK8sApiAuthenticationV1TokenReviewStatus.js.map