Skip to content

Commit c2b9b35

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#201)
1 parent 683552a commit c2b9b35

File tree

8 files changed

+63
-3
lines changed

8 files changed

+63
-3
lines changed

src/cloudflare/types/magic_transit/sites/acl_create_params.py

+8
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,12 @@ class ACL(TypedDict, total=False):
6868
description: str
6969
"""Description for the ACL."""
7070

71+
forward_locally: bool
72+
"""The desired forwarding action for this ACL policy.
73+
74+
If set to "false", the policy will forward traffic to Cloudflare. If set to
75+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
76+
not included in request, will default to false.
77+
"""
78+
7179
protocols: List[Literal["tcp", "udp", "icmp"]]

src/cloudflare/types/magic_transit/sites/acl_create_response.py

+8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ACL(BaseModel):
5757
description: Optional[str] = None
5858
"""Description for the ACL."""
5959

60+
forward_locally: Optional[bool] = None
61+
"""The desired forwarding action for this ACL policy.
62+
63+
If set to "false", the policy will forward traffic to Cloudflare. If set to
64+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
65+
not included in request, will default to false.
66+
"""
67+
6068
lan_1: Optional[ACLLAN1] = None
6169

6270
lan_2: Optional[ACLLAN2] = None

src/cloudflare/types/magic_transit/sites/acl_delete_response.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class DeletedACL(BaseModel):
5757
description: Optional[str] = None
5858
"""Description for the ACL."""
5959

60+
forward_locally: Optional[bool] = None
61+
"""The desired forwarding action for this ACL policy.
62+
63+
If set to "false", the policy will forward traffic to Cloudflare. If set to
64+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
65+
not included in request, will default to false.
66+
"""
67+
6068
lan_1: Optional[DeletedACLLAN1] = None
6169

6270
lan_2: Optional[DeletedACLLAN2] = None
@@ -71,4 +79,4 @@ class ACLDeleteResponse(BaseModel):
7179
deleted: Optional[bool] = None
7280

7381
deleted_acl: Optional[DeletedACL] = None
74-
"""Bidirectional ACL policy for local network traffic within a site."""
82+
"""Bidirectional ACL policy for network traffic within a site."""

src/cloudflare/types/magic_transit/sites/acl_get_response.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ACL(BaseModel):
5757
description: Optional[str] = None
5858
"""Description for the ACL."""
5959

60+
forward_locally: Optional[bool] = None
61+
"""The desired forwarding action for this ACL policy.
62+
63+
If set to "false", the policy will forward traffic to Cloudflare. If set to
64+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
65+
not included in request, will default to false.
66+
"""
67+
6068
lan_1: Optional[ACLLAN1] = None
6169

6270
lan_2: Optional[ACLLAN2] = None
@@ -69,4 +77,4 @@ class ACL(BaseModel):
6977

7078
class ACLGetResponse(BaseModel):
7179
acl: Optional[ACL] = None
72-
"""Bidirectional ACL policy for local network traffic within a site."""
80+
"""Bidirectional ACL policy for network traffic within a site."""

src/cloudflare/types/magic_transit/sites/acl_list_response.py

+8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ACL(BaseModel):
5757
description: Optional[str] = None
5858
"""Description for the ACL."""
5959

60+
forward_locally: Optional[bool] = None
61+
"""The desired forwarding action for this ACL policy.
62+
63+
If set to "false", the policy will forward traffic to Cloudflare. If set to
64+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
65+
not included in request, will default to false.
66+
"""
67+
6068
lan_1: Optional[ACLLAN1] = None
6169

6270
lan_2: Optional[ACLLAN2] = None

src/cloudflare/types/magic_transit/sites/acl_update_params.py

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ class ACL(TypedDict, total=False):
6464
description: str
6565
"""Description for the ACL."""
6666

67+
forward_locally: bool
68+
"""The desired forwarding action for this ACL policy.
69+
70+
If set to "false", the policy will forward traffic to Cloudflare. If set to
71+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
72+
not included in request, will default to false.
73+
"""
74+
6775
lan_1: ACLLAN1
6876

6977
lan_2: ACLLAN2

src/cloudflare/types/magic_transit/sites/acl_update_response.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ACL(BaseModel):
5757
description: Optional[str] = None
5858
"""Description for the ACL."""
5959

60+
forward_locally: Optional[bool] = None
61+
"""The desired forwarding action for this ACL policy.
62+
63+
If set to "false", the policy will forward traffic to Cloudflare. If set to
64+
"true", the policy will forward traffic locally on the Magic WAN Connector. If
65+
not included in request, will default to false.
66+
"""
67+
6068
lan_1: Optional[ACLLAN1] = None
6169

6270
lan_2: Optional[ACLLAN2] = None
@@ -69,4 +77,4 @@ class ACL(BaseModel):
6977

7078
class ACLUpdateResponse(BaseModel):
7179
acl: Optional[ACL] = None
72-
"""Bidirectional ACL policy for local network traffic within a site."""
80+
"""Bidirectional ACL policy for network traffic within a site."""

tests/api_resources/magic_transit/sites/test_acls.py

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4040
account_id="023e105f4ecef8ad9ca31a8372d0c353",
4141
acl={
4242
"description": "Allows local traffic between PIN pads and cash register.",
43+
"forward_locally": True,
4344
"lan_1": {
4445
"lan_id": "string",
4546
"lan_name": "string",
@@ -120,6 +121,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
120121
site_id="023e105f4ecef8ad9ca31a8372d0c353",
121122
acl={
122123
"description": "Allows local traffic between PIN pads and cash register.",
124+
"forward_locally": True,
123125
"lan_1": {
124126
"lan_id": "string",
125127
"lan_name": "string",
@@ -393,6 +395,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
393395
account_id="023e105f4ecef8ad9ca31a8372d0c353",
394396
acl={
395397
"description": "Allows local traffic between PIN pads and cash register.",
398+
"forward_locally": True,
396399
"lan_1": {
397400
"lan_id": "string",
398401
"lan_name": "string",
@@ -473,6 +476,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
473476
site_id="023e105f4ecef8ad9ca31a8372d0c353",
474477
acl={
475478
"description": "Allows local traffic between PIN pads and cash register.",
479+
"forward_locally": True,
476480
"lan_1": {
477481
"lan_id": "string",
478482
"lan_name": "string",

0 commit comments

Comments
 (0)