@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
47 lines (46 loc) • 2.37 kB
TypeScript
/**
* 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 { IoK8sApiAuthenticationV1UserInfo } from './';
/**
* TokenReviewStatus is the result of the token authentication request.
* @export
* @interface IoK8sApiAuthenticationV1TokenReviewStatus
*/
export interface IoK8sApiAuthenticationV1TokenReviewStatus {
/**
* Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.
* @type {Array<string>}
* @memberof IoK8sApiAuthenticationV1TokenReviewStatus
*/
audiences?: Array<string>;
/**
* Authenticated indicates that the token was associated with a known user.
* @type {boolean}
* @memberof IoK8sApiAuthenticationV1TokenReviewStatus
*/
authenticated?: boolean;
/**
* Error indicates that the token couldn't be checked
* @type {string}
* @memberof IoK8sApiAuthenticationV1TokenReviewStatus
*/
error?: string;
/**
*
* @type {IoK8sApiAuthenticationV1UserInfo}
* @memberof IoK8sApiAuthenticationV1TokenReviewStatus
*/
user?: IoK8sApiAuthenticationV1UserInfo;
}
export declare function IoK8sApiAuthenticationV1TokenReviewStatusFromJSON(json: any): IoK8sApiAuthenticationV1TokenReviewStatus;
export declare function IoK8sApiAuthenticationV1TokenReviewStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): IoK8sApiAuthenticationV1TokenReviewStatus;
export declare function IoK8sApiAuthenticationV1TokenReviewStatusToJSON(value?: IoK8sApiAuthenticationV1TokenReviewStatus | null): any;