Skip to content

Commit 18505d8

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#479)
1 parent cbd5196 commit 18505d8

File tree

9 files changed

+168
-182
lines changed

9 files changed

+168
-182
lines changed

src/cloudflare/types/firewall/waf/packages/rule_edit_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
8080
allowed_modes: List[Literal["on", "off"]]
8181
"""Defines the available modes for the current WAF rule."""
8282

83-
default_mode: object
84-
8583
description: str
8684
"""The public description of the WAF rule."""
8785

src/cloudflare/types/firewall/waf/packages/rule_list_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
8080
allowed_modes: List[Literal["on", "off"]]
8181
"""Defines the available modes for the current WAF rule."""
8282

83-
default_mode: object
84-
8583
description: str
8684
"""The public description of the WAF rule."""
8785

src/cloudflare/types/intel/whois_get_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010

1111
class WhoisGetResponse(BaseModel):
12-
dnnsec: object
13-
1412
domain: str
1513

1614
extension: str

src/cloudflare/types/workers/mtls_cert_binding.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010

1111
class MTLSCERTBinding(BaseModel):
12-
certificate: object
13-
1412
name: str
1513
"""A JavaScript variable name for the binding."""
1614

src/cloudflare/types/workers/mtls_cert_binding_param.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99

1010
class MTLSCERTBindingParam(TypedDict, total=False):
11-
certificate: Required[object]
12-
1311
type: Required[Literal["mtls_certificate"]]
1412
"""The class of resource that the binding provides."""
1513

src/cloudflare/types/zero_trust/dex/fleet_status/device_list_response.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@ class DeviceListResponse(BaseModel):
1616
device_id: str = FieldInfo(alias="deviceId")
1717
"""Device identifier (UUID v4)"""
1818

19-
mode: object
20-
2119
platform: str
2220
"""Operating system"""
2321

2422
status: str
2523
"""Network status"""
2624

27-
timestamp: object
28-
2925
version: str
3026
"""WARP client version"""
3127

tests/api_resources/durable_objects/namespaces/test_objects.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ class TestObjects:
2020

2121
@parametrize
2222
def test_method_list(self, client: Cloudflare) -> None:
23-
object = client.durable_objects.namespaces.objects.list(
23+
object_ = client.durable_objects.namespaces.objects.list(
2424
"5fd1cafff895419c8bcc647fc64ab8f0",
2525
account_id="023e105f4ecef8ad9ca31a8372d0c353",
2626
)
27-
assert_matches_type(SyncCursorLimitPagination[DurableObject], object, path=["response"])
27+
assert_matches_type(SyncCursorLimitPagination[DurableObject], object_, path=["response"])
2828

2929
@parametrize
3030
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
31-
object = client.durable_objects.namespaces.objects.list(
31+
object_ = client.durable_objects.namespaces.objects.list(
3232
"5fd1cafff895419c8bcc647fc64ab8f0",
3333
account_id="023e105f4ecef8ad9ca31a8372d0c353",
3434
cursor="AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc",
3535
limit=10,
3636
)
37-
assert_matches_type(SyncCursorLimitPagination[DurableObject], object, path=["response"])
37+
assert_matches_type(SyncCursorLimitPagination[DurableObject], object_, path=["response"])
3838

3939
@parametrize
4040
def test_raw_response_list(self, client: Cloudflare) -> None:
@@ -45,8 +45,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
4545

4646
assert response.is_closed is True
4747
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
48-
object = response.parse()
49-
assert_matches_type(SyncCursorLimitPagination[DurableObject], object, path=["response"])
48+
object_ = response.parse()
49+
assert_matches_type(SyncCursorLimitPagination[DurableObject], object_, path=["response"])
5050

5151
@parametrize
5252
def test_streaming_response_list(self, client: Cloudflare) -> None:
@@ -57,8 +57,8 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
5757
assert not response.is_closed
5858
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
5959

60-
object = response.parse()
61-
assert_matches_type(SyncCursorLimitPagination[DurableObject], object, path=["response"])
60+
object_ = response.parse()
61+
assert_matches_type(SyncCursorLimitPagination[DurableObject], object_, path=["response"])
6262

6363
assert cast(Any, response.is_closed) is True
6464

@@ -82,21 +82,21 @@ class TestAsyncObjects:
8282

8383
@parametrize
8484
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
85-
object = await async_client.durable_objects.namespaces.objects.list(
85+
object_ = await async_client.durable_objects.namespaces.objects.list(
8686
"5fd1cafff895419c8bcc647fc64ab8f0",
8787
account_id="023e105f4ecef8ad9ca31a8372d0c353",
8888
)
89-
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object, path=["response"])
89+
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object_, path=["response"])
9090

9191
@parametrize
9292
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
93-
object = await async_client.durable_objects.namespaces.objects.list(
93+
object_ = await async_client.durable_objects.namespaces.objects.list(
9494
"5fd1cafff895419c8bcc647fc64ab8f0",
9595
account_id="023e105f4ecef8ad9ca31a8372d0c353",
9696
cursor="AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc",
9797
limit=10,
9898
)
99-
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object, path=["response"])
99+
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object_, path=["response"])
100100

101101
@parametrize
102102
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -107,8 +107,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
107107

108108
assert response.is_closed is True
109109
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
110-
object = await response.parse()
111-
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object, path=["response"])
110+
object_ = await response.parse()
111+
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object_, path=["response"])
112112

113113
@parametrize
114114
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -119,8 +119,8 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
119119
assert not response.is_closed
120120
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
121121

122-
object = await response.parse()
123-
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object, path=["response"])
122+
object_ = await response.parse()
123+
assert_matches_type(AsyncCursorLimitPagination[DurableObject], object_, path=["response"])
124124

125125
assert cast(Any, response.is_closed) is True
126126

0 commit comments

Comments
 (0)