/
v1TokenReviewStatus.ts
62 lines (56 loc) · 2.15 KB
/
v1TokenReviewStatus.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { V1UserInfo } from './v1UserInfo';
/**
* TokenReviewStatus is the result of the token authentication request.
*/
export class V1TokenReviewStatus {
/**
* 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.
*/
'audiences'?: Array<string>;
/**
* Authenticated indicates that the token was associated with a known user.
*/
'authenticated'?: boolean;
/**
* Error indicates that the token couldn\'t be checked
*/
'error'?: string;
'user'?: V1UserInfo;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "audiences",
"baseName": "audiences",
"type": "Array<string>"
},
{
"name": "authenticated",
"baseName": "authenticated",
"type": "boolean"
},
{
"name": "error",
"baseName": "error",
"type": "string"
},
{
"name": "user",
"baseName": "user",
"type": "V1UserInfo"
} ];
static getAttributeTypeMap() {
return V1TokenReviewStatus.attributeTypeMap;
}
}