You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cloudflare/types/zero_trust/gateway/gateway_rule.py
+45-47Lines changed: 45 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -36,34 +36,56 @@ class Expiration(BaseModel):
36
36
37
37
38
38
classGatewayRule(BaseModel):
39
-
id: Optional[str] =None
40
-
"""The API resource UUID."""
41
-
42
-
action: Optional[
43
-
Literal[
44
-
"on",
45
-
"off",
46
-
"allow",
47
-
"block",
48
-
"scan",
49
-
"noscan",
50
-
"safesearch",
51
-
"ytrestricted",
52
-
"isolate",
53
-
"noisolate",
54
-
"override",
55
-
"l4_override",
56
-
"egress",
57
-
"resolve",
58
-
"quarantine",
59
-
"redirect",
60
-
]
61
-
] =None
39
+
action: Literal[
40
+
"on",
41
+
"off",
42
+
"allow",
43
+
"block",
44
+
"scan",
45
+
"noscan",
46
+
"safesearch",
47
+
"ytrestricted",
48
+
"isolate",
49
+
"noisolate",
50
+
"override",
51
+
"l4_override",
52
+
"egress",
53
+
"resolve",
54
+
"quarantine",
55
+
"redirect",
56
+
]
62
57
"""
63
58
The action to perform when the associated traffic, identity, and device posture
64
59
expressions are either absent or evaluate to `true`.
65
60
"""
66
61
62
+
enabled: bool
63
+
"""True if the rule is enabled."""
64
+
65
+
filters: List[GatewayFilter]
66
+
"""
67
+
The protocol or layer to evaluate the traffic, identity, and device posture
68
+
expressions.
69
+
"""
70
+
71
+
name: str
72
+
"""The name of the rule."""
73
+
74
+
precedence: int
75
+
"""Precedence sets the order of your rules.
76
+
77
+
Lower values indicate higher precedence. At each processing phase, applicable
78
+
rules are evaluated in ascending order of this value. Refer to
79
+
[Order of enforcement](http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform)
80
+
docs on how to manage precedence via Terraform.
81
+
"""
82
+
83
+
traffic: str
84
+
"""The wirefilter expression used for traffic matching."""
85
+
86
+
id: Optional[str] =None
87
+
"""The API resource UUID."""
88
+
67
89
created_at: Optional[datetime] =None
68
90
69
91
deleted_at: Optional[datetime] =None
@@ -75,9 +97,6 @@ class GatewayRule(BaseModel):
75
97
device_posture: Optional[str] =None
76
98
"""The wirefilter expression used for device posture check matching."""
77
99
78
-
enabled: Optional[bool] =None
79
-
"""True if the rule is enabled."""
80
-
81
100
expiration: Optional[Expiration] =None
82
101
"""The expiration time stamp and default duration of a DNS policy.
83
102
@@ -86,30 +105,12 @@ class GatewayRule(BaseModel):
86
105
This does not apply to HTTP or network policies.
87
106
"""
88
107
89
-
filters: Optional[List[GatewayFilter]] =None
90
-
"""
91
-
The protocol or layer to evaluate the traffic, identity, and device posture
92
-
expressions.
93
-
"""
94
-
95
108
identity: Optional[str] =None
96
109
"""The wirefilter expression used for identity matching."""
97
110
98
-
name: Optional[str] =None
99
-
"""The name of the rule."""
100
-
101
111
not_sharable: Optional[bool] =None
102
112
"""The rule cannot be shared via the Orgs API"""
103
113
104
-
precedence: Optional[int] =None
105
-
"""Precedence sets the order of your rules.
106
-
107
-
Lower values indicate higher precedence. At each processing phase, applicable
108
-
rules are evaluated in ascending order of this value. Refer to
109
-
[Order of enforcement](http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform)
110
-
docs on how to manage precedence via Terraform.
111
-
"""
112
-
113
114
read_only: Optional[bool] =None
114
115
"""
115
116
The rule was shared via the Orgs API and cannot be edited by the current account
@@ -127,9 +128,6 @@ class GatewayRule(BaseModel):
127
128
source_account: Optional[str] =None
128
129
"""account tag of account that created the rule"""
129
130
130
-
traffic: Optional[str] =None
131
-
"""The wirefilter expression used for traffic matching."""
0 commit comments