/
v1beta3Subject.ts
58 lines (52 loc) · 1.76 KB
/
v1beta3Subject.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
/**
* 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 { V1beta3GroupSubject } from './v1beta3GroupSubject';
import { V1beta3ServiceAccountSubject } from './v1beta3ServiceAccountSubject';
import { V1beta3UserSubject } from './v1beta3UserSubject';
/**
* Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
*/
export class V1beta3Subject {
'group'?: V1beta3GroupSubject;
/**
* `kind` indicates which one of the other fields is non-empty. Required
*/
'kind': string;
'serviceAccount'?: V1beta3ServiceAccountSubject;
'user'?: V1beta3UserSubject;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "group",
"baseName": "group",
"type": "V1beta3GroupSubject"
},
{
"name": "kind",
"baseName": "kind",
"type": "string"
},
{
"name": "serviceAccount",
"baseName": "serviceAccount",
"type": "V1beta3ServiceAccountSubject"
},
{
"name": "user",
"baseName": "user",
"type": "V1beta3UserSubject"
} ];
static getAttributeTypeMap() {
return V1beta3Subject.attributeTypeMap;
}
}