-
Notifications
You must be signed in to change notification settings - Fork 492
/
v1NetworkPolicyPort.ts
56 lines (50 loc) · 1.97 KB
/
v1NetworkPolicyPort.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
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.22.2
*
*
* 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 { IntOrString } from '../../types';
/**
* NetworkPolicyPort describes a port to allow traffic on
*/
export class V1NetworkPolicyPort {
/**
* If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".
*/
'endPort'?: number;
/**
* IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
*/
'port'?: IntOrString;
/**
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
*/
'protocol'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "endPort",
"baseName": "endPort",
"type": "number"
},
{
"name": "port",
"baseName": "port",
"type": "IntOrString"
},
{
"name": "protocol",
"baseName": "protocol",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1NetworkPolicyPort.attributeTypeMap;
}
}