Skip to content

Commit 736ef7d

Browse files
author
Stainless Bot
committed
feat(api): OpenAPI spec update via Stainless API (#1177)
1 parent 6a321d3 commit 736ef7d

File tree

303 files changed

+11869
-11867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+11869
-11867
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1252
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-08160758435c3d32f9f1d296fcd9664e5b67e7c453403bf02ac81f023ec470a3.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57358570b9af58f781ddd4b9333cd38dc712fb26845901cbe8bce2b7bba4ff26.yml

tests/api_resources/accounts/test_members.py

+42-42
Large diffs are not rendered by default.

tests/api_resources/accounts/test_roles.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ def test_path_params_list(self, client: Cloudflare) -> None:
5959
@parametrize
6060
def test_method_get(self, client: Cloudflare) -> None:
6161
role = client.accounts.roles.get(
62-
{},
62+
role_id={},
6363
account_id="eb78d65290b24279ba6f44721b3ea3c4",
6464
)
6565
assert_matches_type(object, role, path=["response"])
6666

6767
@parametrize
6868
def test_raw_response_get(self, client: Cloudflare) -> None:
6969
response = client.accounts.roles.with_raw_response.get(
70-
{},
70+
role_id={},
7171
account_id="eb78d65290b24279ba6f44721b3ea3c4",
7272
)
7373

@@ -79,7 +79,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
7979
@parametrize
8080
def test_streaming_response_get(self, client: Cloudflare) -> None:
8181
with client.accounts.roles.with_streaming_response.get(
82-
{},
82+
role_id={},
8383
account_id="eb78d65290b24279ba6f44721b3ea3c4",
8484
) as response:
8585
assert not response.is_closed
@@ -94,7 +94,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
9494
def test_path_params_get(self, client: Cloudflare) -> None:
9595
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
9696
client.accounts.roles.with_raw_response.get(
97-
{},
97+
role_id={},
9898
account_id="",
9999
)
100100

@@ -143,15 +143,15 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
143143
@parametrize
144144
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
145145
role = await async_client.accounts.roles.get(
146-
{},
146+
role_id={},
147147
account_id="eb78d65290b24279ba6f44721b3ea3c4",
148148
)
149149
assert_matches_type(object, role, path=["response"])
150150

151151
@parametrize
152152
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
153153
response = await async_client.accounts.roles.with_raw_response.get(
154-
{},
154+
role_id={},
155155
account_id="eb78d65290b24279ba6f44721b3ea3c4",
156156
)
157157

@@ -163,7 +163,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
163163
@parametrize
164164
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
165165
async with async_client.accounts.roles.with_streaming_response.get(
166-
{},
166+
role_id={},
167167
account_id="eb78d65290b24279ba6f44721b3ea3c4",
168168
) as response:
169169
assert not response.is_closed
@@ -178,6 +178,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
178178
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
179179
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
180180
await async_client.accounts.roles.with_raw_response.get(
181-
{},
181+
role_id={},
182182
account_id="",
183183
)

tests/api_resources/addressing/address_maps/test_accounts.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TestAccounts:
2020
@parametrize
2121
def test_method_update(self, client: Cloudflare) -> None:
2222
account = client.addressing.address_maps.accounts.update(
23-
"023e105f4ecef8ad9ca31a8372d0c353",
23+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
2424
account_id="023e105f4ecef8ad9ca31a8372d0c353",
2525
body={},
2626
)
@@ -29,7 +29,7 @@ def test_method_update(self, client: Cloudflare) -> None:
2929
@parametrize
3030
def test_raw_response_update(self, client: Cloudflare) -> None:
3131
response = client.addressing.address_maps.accounts.with_raw_response.update(
32-
"023e105f4ecef8ad9ca31a8372d0c353",
32+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
3333
account_id="023e105f4ecef8ad9ca31a8372d0c353",
3434
body={},
3535
)
@@ -42,7 +42,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
4242
@parametrize
4343
def test_streaming_response_update(self, client: Cloudflare) -> None:
4444
with client.addressing.address_maps.accounts.with_streaming_response.update(
45-
"023e105f4ecef8ad9ca31a8372d0c353",
45+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
4646
account_id="023e105f4ecef8ad9ca31a8372d0c353",
4747
body={},
4848
) as response:
@@ -58,30 +58,30 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
5858
def test_path_params_update(self, client: Cloudflare) -> None:
5959
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
6060
client.addressing.address_maps.accounts.with_raw_response.update(
61-
"023e105f4ecef8ad9ca31a8372d0c353",
61+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
6262
account_id="",
6363
body={},
6464
)
6565

6666
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
6767
client.addressing.address_maps.accounts.with_raw_response.update(
68-
"",
68+
address_map_id="",
6969
account_id="023e105f4ecef8ad9ca31a8372d0c353",
7070
body={},
7171
)
7272

7373
@parametrize
7474
def test_method_delete(self, client: Cloudflare) -> None:
7575
account = client.addressing.address_maps.accounts.delete(
76-
"023e105f4ecef8ad9ca31a8372d0c353",
76+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
7777
account_id="023e105f4ecef8ad9ca31a8372d0c353",
7878
)
7979
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
8080

8181
@parametrize
8282
def test_raw_response_delete(self, client: Cloudflare) -> None:
8383
response = client.addressing.address_maps.accounts.with_raw_response.delete(
84-
"023e105f4ecef8ad9ca31a8372d0c353",
84+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
8585
account_id="023e105f4ecef8ad9ca31a8372d0c353",
8686
)
8787

@@ -93,7 +93,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
9393
@parametrize
9494
def test_streaming_response_delete(self, client: Cloudflare) -> None:
9595
with client.addressing.address_maps.accounts.with_streaming_response.delete(
96-
"023e105f4ecef8ad9ca31a8372d0c353",
96+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
9797
account_id="023e105f4ecef8ad9ca31a8372d0c353",
9898
) as response:
9999
assert not response.is_closed
@@ -108,13 +108,13 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
108108
def test_path_params_delete(self, client: Cloudflare) -> None:
109109
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
110110
client.addressing.address_maps.accounts.with_raw_response.delete(
111-
"023e105f4ecef8ad9ca31a8372d0c353",
111+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
112112
account_id="",
113113
)
114114

115115
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
116116
client.addressing.address_maps.accounts.with_raw_response.delete(
117-
"",
117+
address_map_id="",
118118
account_id="023e105f4ecef8ad9ca31a8372d0c353",
119119
)
120120

@@ -125,7 +125,7 @@ class TestAsyncAccounts:
125125
@parametrize
126126
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
127127
account = await async_client.addressing.address_maps.accounts.update(
128-
"023e105f4ecef8ad9ca31a8372d0c353",
128+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
129129
account_id="023e105f4ecef8ad9ca31a8372d0c353",
130130
body={},
131131
)
@@ -134,7 +134,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
134134
@parametrize
135135
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
136136
response = await async_client.addressing.address_maps.accounts.with_raw_response.update(
137-
"023e105f4ecef8ad9ca31a8372d0c353",
137+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
138138
account_id="023e105f4ecef8ad9ca31a8372d0c353",
139139
body={},
140140
)
@@ -147,7 +147,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
147147
@parametrize
148148
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
149149
async with async_client.addressing.address_maps.accounts.with_streaming_response.update(
150-
"023e105f4ecef8ad9ca31a8372d0c353",
150+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
151151
account_id="023e105f4ecef8ad9ca31a8372d0c353",
152152
body={},
153153
) as response:
@@ -163,30 +163,30 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
163163
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
164164
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
165165
await async_client.addressing.address_maps.accounts.with_raw_response.update(
166-
"023e105f4ecef8ad9ca31a8372d0c353",
166+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
167167
account_id="",
168168
body={},
169169
)
170170

171171
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
172172
await async_client.addressing.address_maps.accounts.with_raw_response.update(
173-
"",
173+
address_map_id="",
174174
account_id="023e105f4ecef8ad9ca31a8372d0c353",
175175
body={},
176176
)
177177

178178
@parametrize
179179
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
180180
account = await async_client.addressing.address_maps.accounts.delete(
181-
"023e105f4ecef8ad9ca31a8372d0c353",
181+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
182182
account_id="023e105f4ecef8ad9ca31a8372d0c353",
183183
)
184184
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
185185

186186
@parametrize
187187
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
188188
response = await async_client.addressing.address_maps.accounts.with_raw_response.delete(
189-
"023e105f4ecef8ad9ca31a8372d0c353",
189+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
190190
account_id="023e105f4ecef8ad9ca31a8372d0c353",
191191
)
192192

@@ -198,7 +198,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
198198
@parametrize
199199
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
200200
async with async_client.addressing.address_maps.accounts.with_streaming_response.delete(
201-
"023e105f4ecef8ad9ca31a8372d0c353",
201+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
202202
account_id="023e105f4ecef8ad9ca31a8372d0c353",
203203
) as response:
204204
assert not response.is_closed
@@ -213,12 +213,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
213213
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
214214
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
215215
await async_client.addressing.address_maps.accounts.with_raw_response.delete(
216-
"023e105f4ecef8ad9ca31a8372d0c353",
216+
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
217217
account_id="",
218218
)
219219

220220
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
221221
await async_client.addressing.address_maps.accounts.with_raw_response.delete(
222-
"",
222+
address_map_id="",
223223
account_id="023e105f4ecef8ad9ca31a8372d0c353",
224224
)

0 commit comments

Comments
 (0)