Skip to content

Commit d43aff4

Browse files
feat(api): api update
1 parent 3c0fb7b commit d43aff4

9 files changed

Lines changed: 28 additions & 16 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1777
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ef60678cddeb091bc65b798a4584f0d5a9ceab87046435a85aa4872c190bf40.yml
3-
openapi_spec_hash: a391f4e0b5029905a26bd289e022401e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5d3e8222346377faccd40549dbab761650548e52d51c924da09b1607f6ce7cb5.yml
3+
openapi_spec_hash: 88ae18e728960e49b36ba049c8f3d13b
44
config_hash: a35e9eb0436652c704bebf7c0a38085b

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def create(
9393
Creates a new Zero Trust Gateway rule.
9494
9595
Args:
96-
action: The action to preform when the associated traffic, identity, and device posture
96+
action: The action to perform when the associated traffic, identity, and device posture
9797
expressions are either absent or evaluate to `true`.
9898
9999
name: The name of the rule.
@@ -213,7 +213,7 @@ def update(
213213
Args:
214214
rule_id: The API resource UUID.
215215
216-
action: The action to preform when the associated traffic, identity, and device posture
216+
action: The action to perform when the associated traffic, identity, and device posture
217217
expressions are either absent or evaluate to `true`.
218218
219219
name: The name of the rule.
@@ -517,7 +517,7 @@ async def create(
517517
Creates a new Zero Trust Gateway rule.
518518
519519
Args:
520-
action: The action to preform when the associated traffic, identity, and device posture
520+
action: The action to perform when the associated traffic, identity, and device posture
521521
expressions are either absent or evaluate to `true`.
522522
523523
name: The name of the rule.
@@ -637,7 +637,7 @@ async def update(
637637
Args:
638638
rule_id: The API resource UUID.
639639
640-
action: The action to preform when the associated traffic, identity, and device posture
640+
action: The action to perform when the associated traffic, identity, and device posture
641641
expressions are either absent or evaluate to `true`.
642642
643643
name: The name of the rule.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class GatewayRule(BaseModel):
6060
]
6161
] = None
6262
"""
63-
The action to preform when the associated traffic, identity, and device posture
63+
The action to perform when the associated traffic, identity, and device posture
6464
expressions are either absent or evaluate to `true`.
6565
"""
6666

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Location(BaseModel):
2929
"""
3030
The uuid identifier of the IPv6 block brought to the gateway, so that this
3131
location's IPv6 address is allocated from the Bring Your Own Ipv6(BYOIPv6) block
32-
and not from the standard CloudFlare IPv6 block.
32+
and not from the standard Cloudflare IPv6 block.
3333
"""
3434

3535
doh_subdomain: Optional[str] = None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RuleCreateParams(TypedDict, total=False):
3838
]
3939
]
4040
"""
41-
The action to preform when the associated traffic, identity, and device posture
41+
The action to perform when the associated traffic, identity, and device posture
4242
expressions are either absent or evaluate to `true`.
4343
"""
4444

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class UntrustedCERT(BaseModel):
202202

203203

204204
class RuleSetting(BaseModel):
205-
add_headers: Optional[Dict[str, str]] = None
205+
add_headers: Optional[Dict[str, List[str]]] = None
206206
"""Add custom headers to allowed requests, in the form of key-value pairs.
207207
208208
Keys are header names, pointing to an array with its header value(s).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class UntrustedCERT(TypedDict, total=False):
201201

202202

203203
class RuleSettingParam(TypedDict, total=False):
204-
add_headers: Optional[Dict[str, str]]
204+
add_headers: Optional[Dict[str, List[str]]]
205205
"""Add custom headers to allowed requests, in the form of key-value pairs.
206206
207207
Keys are header names, pointing to an array with its header value(s).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RuleUpdateParams(TypedDict, total=False):
3838
]
3939
]
4040
"""
41-
The action to preform when the associated traffic, identity, and device posture
41+
The action to perform when the associated traffic, identity, and device posture
4242
expressions are either absent or evaluate to `true`.
4343
"""
4444

tests/api_resources/zero_trust/gateway/test_rules.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4747
identity='any(identity.groups.name[*] in {"finance"})',
4848
precedence=0,
4949
rule_settings={
50-
"add_headers": {"foo": "string"},
50+
"add_headers": {
51+
"My-Next-Header": ["foo", "bar"],
52+
"X-Custom-Header-Name": ["somecustomvalue"],
53+
},
5154
"allow_child_bypass": False,
5255
"audit_ssh": {"command_logging": False},
5356
"biso_admin_controls": {
@@ -207,7 +210,10 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
207210
identity='any(identity.groups.name[*] in {"finance"})',
208211
precedence=0,
209212
rule_settings={
210-
"add_headers": {"foo": "string"},
213+
"add_headers": {
214+
"My-Next-Header": ["foo", "bar"],
215+
"X-Custom-Header-Name": ["somecustomvalue"],
216+
},
211217
"allow_child_bypass": False,
212218
"audit_ssh": {"command_logging": False},
213219
"biso_admin_controls": {
@@ -564,7 +570,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
564570
identity='any(identity.groups.name[*] in {"finance"})',
565571
precedence=0,
566572
rule_settings={
567-
"add_headers": {"foo": "string"},
573+
"add_headers": {
574+
"My-Next-Header": ["foo", "bar"],
575+
"X-Custom-Header-Name": ["somecustomvalue"],
576+
},
568577
"allow_child_bypass": False,
569578
"audit_ssh": {"command_logging": False},
570579
"biso_admin_controls": {
@@ -724,7 +733,10 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
724733
identity='any(identity.groups.name[*] in {"finance"})',
725734
precedence=0,
726735
rule_settings={
727-
"add_headers": {"foo": "string"},
736+
"add_headers": {
737+
"My-Next-Header": ["foo", "bar"],
738+
"X-Custom-Header-Name": ["somecustomvalue"],
739+
},
728740
"allow_child_bypass": False,
729741
"audit_ssh": {"command_logging": False},
730742
"biso_admin_controls": {

0 commit comments

Comments
 (0)