diff --git a/src/cloudflare/types/magic_transit/sites/acl_create_params.py b/src/cloudflare/types/magic_transit/sites/acl_create_params.py index 019dd8be2164..2347358c3b42 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_create_params.py +++ b/src/cloudflare/types/magic_transit/sites/acl_create_params.py @@ -68,4 +68,12 @@ class ACL(TypedDict, total=False): description: str """Description for the ACL.""" + forward_locally: bool + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + protocols: List[Literal["tcp", "udp", "icmp"]] diff --git a/src/cloudflare/types/magic_transit/sites/acl_create_response.py b/src/cloudflare/types/magic_transit/sites/acl_create_response.py index 8c4d2d61f0e3..2c6563ba7e1f 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_create_response.py +++ b/src/cloudflare/types/magic_transit/sites/acl_create_response.py @@ -57,6 +57,14 @@ class ACL(BaseModel): description: Optional[str] = None """Description for the ACL.""" + forward_locally: Optional[bool] = None + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: Optional[ACLLAN1] = None lan_2: Optional[ACLLAN2] = None diff --git a/src/cloudflare/types/magic_transit/sites/acl_delete_response.py b/src/cloudflare/types/magic_transit/sites/acl_delete_response.py index b2c42b0af5d6..f13226c7fe7f 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_delete_response.py +++ b/src/cloudflare/types/magic_transit/sites/acl_delete_response.py @@ -57,6 +57,14 @@ class DeletedACL(BaseModel): description: Optional[str] = None """Description for the ACL.""" + forward_locally: Optional[bool] = None + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: Optional[DeletedACLLAN1] = None lan_2: Optional[DeletedACLLAN2] = None @@ -71,4 +79,4 @@ class ACLDeleteResponse(BaseModel): deleted: Optional[bool] = None deleted_acl: Optional[DeletedACL] = None - """Bidirectional ACL policy for local network traffic within a site.""" + """Bidirectional ACL policy for network traffic within a site.""" diff --git a/src/cloudflare/types/magic_transit/sites/acl_get_response.py b/src/cloudflare/types/magic_transit/sites/acl_get_response.py index 0bcde798dfb6..69aea2ba0faa 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_get_response.py +++ b/src/cloudflare/types/magic_transit/sites/acl_get_response.py @@ -57,6 +57,14 @@ class ACL(BaseModel): description: Optional[str] = None """Description for the ACL.""" + forward_locally: Optional[bool] = None + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: Optional[ACLLAN1] = None lan_2: Optional[ACLLAN2] = None @@ -69,4 +77,4 @@ class ACL(BaseModel): class ACLGetResponse(BaseModel): acl: Optional[ACL] = None - """Bidirectional ACL policy for local network traffic within a site.""" + """Bidirectional ACL policy for network traffic within a site.""" diff --git a/src/cloudflare/types/magic_transit/sites/acl_list_response.py b/src/cloudflare/types/magic_transit/sites/acl_list_response.py index e13a92a1fd86..d3bc62b68911 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_list_response.py +++ b/src/cloudflare/types/magic_transit/sites/acl_list_response.py @@ -57,6 +57,14 @@ class ACL(BaseModel): description: Optional[str] = None """Description for the ACL.""" + forward_locally: Optional[bool] = None + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: Optional[ACLLAN1] = None lan_2: Optional[ACLLAN2] = None diff --git a/src/cloudflare/types/magic_transit/sites/acl_update_params.py b/src/cloudflare/types/magic_transit/sites/acl_update_params.py index 9ba0e5a1476b..a1b9f5273458 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_update_params.py +++ b/src/cloudflare/types/magic_transit/sites/acl_update_params.py @@ -64,6 +64,14 @@ class ACL(TypedDict, total=False): description: str """Description for the ACL.""" + forward_locally: bool + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: ACLLAN1 lan_2: ACLLAN2 diff --git a/src/cloudflare/types/magic_transit/sites/acl_update_response.py b/src/cloudflare/types/magic_transit/sites/acl_update_response.py index 6759f9a921bd..a3d1aea08daf 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_update_response.py +++ b/src/cloudflare/types/magic_transit/sites/acl_update_response.py @@ -57,6 +57,14 @@ class ACL(BaseModel): description: Optional[str] = None """Description for the ACL.""" + forward_locally: Optional[bool] = None + """The desired forwarding action for this ACL policy. + + If set to "false", the policy will forward traffic to Cloudflare. If set to + "true", the policy will forward traffic locally on the Magic WAN Connector. If + not included in request, will default to false. + """ + lan_1: Optional[ACLLAN1] = None lan_2: Optional[ACLLAN2] = None @@ -69,4 +77,4 @@ class ACL(BaseModel): class ACLUpdateResponse(BaseModel): acl: Optional[ACL] = None - """Bidirectional ACL policy for local network traffic within a site.""" + """Bidirectional ACL policy for network traffic within a site.""" diff --git a/tests/api_resources/magic_transit/sites/test_acls.py b/tests/api_resources/magic_transit/sites/test_acls.py index bcb8aae447bc..3899cceaca6e 100644 --- a/tests/api_resources/magic_transit/sites/test_acls.py +++ b/tests/api_resources/magic_transit/sites/test_acls.py @@ -40,6 +40,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None: account_id="023e105f4ecef8ad9ca31a8372d0c353", acl={ "description": "Allows local traffic between PIN pads and cash register.", + "forward_locally": True, "lan_1": { "lan_id": "string", "lan_name": "string", @@ -120,6 +121,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None: site_id="023e105f4ecef8ad9ca31a8372d0c353", acl={ "description": "Allows local traffic between PIN pads and cash register.", + "forward_locally": True, "lan_1": { "lan_id": "string", "lan_name": "string", @@ -393,6 +395,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare account_id="023e105f4ecef8ad9ca31a8372d0c353", acl={ "description": "Allows local traffic between PIN pads and cash register.", + "forward_locally": True, "lan_1": { "lan_id": "string", "lan_name": "string", @@ -473,6 +476,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare site_id="023e105f4ecef8ad9ca31a8372d0c353", acl={ "description": "Allows local traffic between PIN pads and cash register.", + "forward_locally": True, "lan_1": { "lan_id": "string", "lan_name": "string",