Skip to content

Commit 2439e6f

Browse files
feat(api): api update
1 parent a76ac03 commit 2439e6f

File tree

7 files changed

+104
-25
lines changed

7 files changed

+104
-25
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae3db96509d745d1e6b7044714cb8d3d8c8c6827d8c80feafb3246e1a0f1b006.yml
3-
openapi_spec_hash: f1761057d34558b437d249905e804a17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8fa3f6e383f9d62f2d5acfe5ee8a018833116f23c7b6baba86122dcb2f705a5f.yml
3+
openapi_spec_hash: cdb5971e7386829d6460c02002543f25
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/cloudflare/resources/zero_trust/gateway/rules.py

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def create(
100100
101101
description: The description of the rule.
102102
103-
device_posture: The wirefilter expression used for device posture check matching.
103+
device_posture: The wirefilter expression used for device posture check matching. The API
104+
automatically formats and sanitizes this expression. This returns a normalized
105+
version that may differ from your input and cause Terraform state drift.
104106
105107
enabled: True if the rule is enabled.
106108
@@ -112,7 +114,9 @@ def create(
112114
filters: The protocol or layer to evaluate the traffic, identity, and device posture
113115
expressions.
114116
115-
identity: The wirefilter expression used for identity matching.
117+
identity: The wirefilter expression used for identity matching. The API automatically
118+
formats and sanitizes this expression. This returns a normalized version that
119+
may differ from your input and cause Terraform state drift.
116120
117121
precedence: Precedence sets the order of your rules. Lower values indicate higher
118122
precedence. At each processing phase, applicable rules are evaluated in
@@ -125,7 +129,9 @@ def create(
125129
schedule: The schedule for activating DNS policies. This does not apply to HTTP or network
126130
policies.
127131
128-
traffic: The wirefilter expression used for traffic matching.
132+
traffic: The wirefilter expression used for traffic matching. The API automatically
133+
formats and sanitizes this expression. This returns a normalized version that
134+
may differ from your input and cause Terraform state drift.
129135
130136
extra_headers: Send extra headers
131137
@@ -220,7 +226,9 @@ def update(
220226
221227
description: The description of the rule.
222228
223-
device_posture: The wirefilter expression used for device posture check matching.
229+
device_posture: The wirefilter expression used for device posture check matching. The API
230+
automatically formats and sanitizes this expression. This returns a normalized
231+
version that may differ from your input and cause Terraform state drift.
224232
225233
enabled: True if the rule is enabled.
226234
@@ -232,7 +240,9 @@ def update(
232240
filters: The protocol or layer to evaluate the traffic, identity, and device posture
233241
expressions.
234242
235-
identity: The wirefilter expression used for identity matching.
243+
identity: The wirefilter expression used for identity matching. The API automatically
244+
formats and sanitizes this expression. This returns a normalized version that
245+
may differ from your input and cause Terraform state drift.
236246
237247
precedence: Precedence sets the order of your rules. Lower values indicate higher
238248
precedence. At each processing phase, applicable rules are evaluated in
@@ -245,7 +255,9 @@ def update(
245255
schedule: The schedule for activating DNS policies. This does not apply to HTTP or network
246256
policies.
247257
248-
traffic: The wirefilter expression used for traffic matching.
258+
traffic: The wirefilter expression used for traffic matching. The API automatically
259+
formats and sanitizes this expression. This returns a normalized version that
260+
may differ from your input and cause Terraform state drift.
249261
250262
extra_headers: Send extra headers
251263
@@ -524,7 +536,9 @@ async def create(
524536
525537
description: The description of the rule.
526538
527-
device_posture: The wirefilter expression used for device posture check matching.
539+
device_posture: The wirefilter expression used for device posture check matching. The API
540+
automatically formats and sanitizes this expression. This returns a normalized
541+
version that may differ from your input and cause Terraform state drift.
528542
529543
enabled: True if the rule is enabled.
530544
@@ -536,7 +550,9 @@ async def create(
536550
filters: The protocol or layer to evaluate the traffic, identity, and device posture
537551
expressions.
538552
539-
identity: The wirefilter expression used for identity matching.
553+
identity: The wirefilter expression used for identity matching. The API automatically
554+
formats and sanitizes this expression. This returns a normalized version that
555+
may differ from your input and cause Terraform state drift.
540556
541557
precedence: Precedence sets the order of your rules. Lower values indicate higher
542558
precedence. At each processing phase, applicable rules are evaluated in
@@ -549,7 +565,9 @@ async def create(
549565
schedule: The schedule for activating DNS policies. This does not apply to HTTP or network
550566
policies.
551567
552-
traffic: The wirefilter expression used for traffic matching.
568+
traffic: The wirefilter expression used for traffic matching. The API automatically
569+
formats and sanitizes this expression. This returns a normalized version that
570+
may differ from your input and cause Terraform state drift.
553571
554572
extra_headers: Send extra headers
555573
@@ -644,7 +662,9 @@ async def update(
644662
645663
description: The description of the rule.
646664
647-
device_posture: The wirefilter expression used for device posture check matching.
665+
device_posture: The wirefilter expression used for device posture check matching. The API
666+
automatically formats and sanitizes this expression. This returns a normalized
667+
version that may differ from your input and cause Terraform state drift.
648668
649669
enabled: True if the rule is enabled.
650670
@@ -656,7 +676,9 @@ async def update(
656676
filters: The protocol or layer to evaluate the traffic, identity, and device posture
657677
expressions.
658678
659-
identity: The wirefilter expression used for identity matching.
679+
identity: The wirefilter expression used for identity matching. The API automatically
680+
formats and sanitizes this expression. This returns a normalized version that
681+
may differ from your input and cause Terraform state drift.
660682
661683
precedence: Precedence sets the order of your rules. Lower values indicate higher
662684
precedence. At each processing phase, applicable rules are evaluated in
@@ -669,7 +691,9 @@ async def update(
669691
schedule: The schedule for activating DNS policies. This does not apply to HTTP or network
670692
policies.
671693
672-
traffic: The wirefilter expression used for traffic matching.
694+
traffic: The wirefilter expression used for traffic matching. The API automatically
695+
formats and sanitizes this expression. This returns a normalized version that
696+
may differ from your input and cause Terraform state drift.
673697
674698
extra_headers: Send extra headers
675699

src/cloudflare/types/zero_trust/gateway/gateway_rule.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ class GatewayRule(BaseModel):
8181
"""
8282

8383
traffic: str
84-
"""The wirefilter expression used for traffic matching."""
84+
"""The wirefilter expression used for traffic matching.
85+
86+
The API automatically formats and sanitizes this expression. This returns a
87+
normalized version that may differ from your input and cause Terraform state
88+
drift.
89+
"""
8590

8691
id: Optional[str] = None
8792
"""The API resource UUID."""
@@ -95,7 +100,12 @@ class GatewayRule(BaseModel):
95100
"""The description of the rule."""
96101

97102
device_posture: Optional[str] = None
98-
"""The wirefilter expression used for device posture check matching."""
103+
"""The wirefilter expression used for device posture check matching.
104+
105+
The API automatically formats and sanitizes this expression. This returns a
106+
normalized version that may differ from your input and cause Terraform state
107+
drift.
108+
"""
99109

100110
expiration: Optional[Expiration] = None
101111
"""The expiration time stamp and default duration of a DNS policy.
@@ -106,7 +116,12 @@ class GatewayRule(BaseModel):
106116
"""
107117

108118
identity: Optional[str] = None
109-
"""The wirefilter expression used for identity matching."""
119+
"""The wirefilter expression used for identity matching.
120+
121+
The API automatically formats and sanitizes this expression. This returns a
122+
normalized version that may differ from your input and cause Terraform state
123+
drift.
124+
"""
110125

111126
not_sharable: Optional[bool] = None
112127
"""The rule cannot be shared via the Orgs API"""

src/cloudflare/types/zero_trust/gateway/rule_create_params.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ class RuleCreateParams(TypedDict, total=False):
4949
"""The description of the rule."""
5050

5151
device_posture: str
52-
"""The wirefilter expression used for device posture check matching."""
52+
"""The wirefilter expression used for device posture check matching.
53+
54+
The API automatically formats and sanitizes this expression. This returns a
55+
normalized version that may differ from your input and cause Terraform state
56+
drift.
57+
"""
5358

5459
enabled: bool
5560
"""True if the rule is enabled."""
@@ -69,7 +74,12 @@ class RuleCreateParams(TypedDict, total=False):
6974
"""
7075

7176
identity: str
72-
"""The wirefilter expression used for identity matching."""
77+
"""The wirefilter expression used for identity matching.
78+
79+
The API automatically formats and sanitizes this expression. This returns a
80+
normalized version that may differ from your input and cause Terraform state
81+
drift.
82+
"""
7383

7484
precedence: int
7585
"""Precedence sets the order of your rules.
@@ -90,7 +100,12 @@ class RuleCreateParams(TypedDict, total=False):
90100
"""
91101

92102
traffic: str
93-
"""The wirefilter expression used for traffic matching."""
103+
"""The wirefilter expression used for traffic matching.
104+
105+
The API automatically formats and sanitizes this expression. This returns a
106+
normalized version that may differ from your input and cause Terraform state
107+
drift.
108+
"""
94109

95110

96111
class Expiration(TypedDict, total=False):

src/cloudflare/types/zero_trust/gateway/rule_setting.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ class BlockPage(BaseModel):
103103

104104
class CheckSession(BaseModel):
105105
duration: Optional[str] = None
106-
"""Configure how fresh the session needs to be to be considered valid."""
106+
"""Configure how fresh the session needs to be to be considered valid.
107+
108+
The API automatically formats and sanitizes this expression. This returns a
109+
normalized version that may differ from your input and cause Terraform state
110+
drift.
111+
"""
107112

108113
enforce: Optional[bool] = None
109114
"""Set to true to enable session enforcement."""

src/cloudflare/types/zero_trust/gateway/rule_setting_param.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ class BlockPage(TypedDict, total=False):
102102

103103
class CheckSession(TypedDict, total=False):
104104
duration: str
105-
"""Configure how fresh the session needs to be to be considered valid."""
105+
"""Configure how fresh the session needs to be to be considered valid.
106+
107+
The API automatically formats and sanitizes this expression. This returns a
108+
normalized version that may differ from your input and cause Terraform state
109+
drift.
110+
"""
106111

107112
enforce: bool
108113
"""Set to true to enable session enforcement."""

src/cloudflare/types/zero_trust/gateway/rule_update_params.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ class RuleUpdateParams(TypedDict, total=False):
4949
"""The description of the rule."""
5050

5151
device_posture: str
52-
"""The wirefilter expression used for device posture check matching."""
52+
"""The wirefilter expression used for device posture check matching.
53+
54+
The API automatically formats and sanitizes this expression. This returns a
55+
normalized version that may differ from your input and cause Terraform state
56+
drift.
57+
"""
5358

5459
enabled: bool
5560
"""True if the rule is enabled."""
@@ -69,7 +74,12 @@ class RuleUpdateParams(TypedDict, total=False):
6974
"""
7075

7176
identity: str
72-
"""The wirefilter expression used for identity matching."""
77+
"""The wirefilter expression used for identity matching.
78+
79+
The API automatically formats and sanitizes this expression. This returns a
80+
normalized version that may differ from your input and cause Terraform state
81+
drift.
82+
"""
7383

7484
precedence: int
7585
"""Precedence sets the order of your rules.
@@ -90,7 +100,12 @@ class RuleUpdateParams(TypedDict, total=False):
90100
"""
91101

92102
traffic: str
93-
"""The wirefilter expression used for traffic matching."""
103+
"""The wirefilter expression used for traffic matching.
104+
105+
The API automatically formats and sanitizes this expression. This returns a
106+
normalized version that may differ from your input and cause Terraform state
107+
drift.
108+
"""
94109

95110

96111
class Expiration(TypedDict, total=False):

0 commit comments

Comments
 (0)