/
v1beta3PolicyRulesWithSubjects.ts
58 lines (52 loc) · 2.55 KB
/
v1beta3PolicyRulesWithSubjects.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 { V1beta3NonResourcePolicyRule } from './v1beta3NonResourcePolicyRule';
import { V1beta3ResourcePolicyRule } from './v1beta3ResourcePolicyRule';
import { V1beta3Subject } from './v1beta3Subject';
/**
* PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
*/
export class V1beta3PolicyRulesWithSubjects {
/**
* `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
*/
'nonResourceRules'?: Array<V1beta3NonResourcePolicyRule>;
/**
* `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
*/
'resourceRules'?: Array<V1beta3ResourcePolicyRule>;
/**
* subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
*/
'subjects': Array<V1beta3Subject>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "nonResourceRules",
"baseName": "nonResourceRules",
"type": "Array<V1beta3NonResourcePolicyRule>"
},
{
"name": "resourceRules",
"baseName": "resourceRules",
"type": "Array<V1beta3ResourcePolicyRule>"
},
{
"name": "subjects",
"baseName": "subjects",
"type": "Array<V1beta3Subject>"
} ];
static getAttributeTypeMap() {
return V1beta3PolicyRulesWithSubjects.attributeTypeMap;
}
}