/
v1beta3FlowSchemaSpec.ts
61 lines (55 loc) · 2.48 KB
/
v1beta3FlowSchemaSpec.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
/**
* 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 { V1beta3FlowDistinguisherMethod } from './v1beta3FlowDistinguisherMethod';
import { V1beta3PolicyRulesWithSubjects } from './v1beta3PolicyRulesWithSubjects';
import { V1beta3PriorityLevelConfigurationReference } from './v1beta3PriorityLevelConfigurationReference';
/**
* FlowSchemaSpec describes how the FlowSchema\'s specification looks like.
*/
export class V1beta3FlowSchemaSpec {
'distinguisherMethod'?: V1beta3FlowDistinguisherMethod;
/**
* `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.
*/
'matchingPrecedence'?: number;
'priorityLevelConfiguration': V1beta3PriorityLevelConfigurationReference;
/**
* `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.
*/
'rules'?: Array<V1beta3PolicyRulesWithSubjects>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "distinguisherMethod",
"baseName": "distinguisherMethod",
"type": "V1beta3FlowDistinguisherMethod"
},
{
"name": "matchingPrecedence",
"baseName": "matchingPrecedence",
"type": "number"
},
{
"name": "priorityLevelConfiguration",
"baseName": "priorityLevelConfiguration",
"type": "V1beta3PriorityLevelConfigurationReference"
},
{
"name": "rules",
"baseName": "rules",
"type": "Array<V1beta3PolicyRulesWithSubjects>"
} ];
static getAttributeTypeMap() {
return V1beta3FlowSchemaSpec.attributeTypeMap;
}
}