/* 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'; /** * TokenReviewSpec is a description of the token authentication request. * @export * @interface IoK8sApiAuthenticationV1TokenReviewSpec */ export interface IoK8sApiAuthenticationV1TokenReviewSpec { /** * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @type {Array} * @memberof IoK8sApiAuthenticationV1TokenReviewSpec */ audiences?: Array; /** * Token is the opaque bearer token. * @type {string} * @memberof IoK8sApiAuthenticationV1TokenReviewSpec */ token?: string; } export function IoK8sApiAuthenticationV1TokenReviewSpecFromJSON( json: any, ): IoK8sApiAuthenticationV1TokenReviewSpec { return IoK8sApiAuthenticationV1TokenReviewSpecFromJSONTyped(json, false); } export function IoK8sApiAuthenticationV1TokenReviewSpecFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAuthenticationV1TokenReviewSpec { if (json === undefined || json === null) { return json; } return { audiences: !exists(json, 'audiences') ? undefined : json['audiences'], token: !exists(json, 'token') ? undefined : json['token'], }; } export function IoK8sApiAuthenticationV1TokenReviewSpecToJSON( value?: IoK8sApiAuthenticationV1TokenReviewSpec | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { audiences: value.audiences, token: value.token, }; }