Skip to content

Commit f1c1451

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#216)
1 parent 6bf76e3 commit f1c1451

File tree

7 files changed

+90
-90
lines changed

7 files changed

+90
-90
lines changed

src/cloudflare/_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def __init__(
286286
@property
287287
@override
288288
def qs(self) -> Querystring:
289-
return Querystring(array_format="comma")
289+
return Querystring(array_format="repeat")
290290

291291
@property
292292
@override
@@ -697,7 +697,7 @@ def __init__(
697697
@property
698698
@override
699699
def qs(self) -> Querystring:
700-
return Querystring(array_format="comma")
700+
return Querystring(array_format="repeat")
701701

702702
@property
703703
@override
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union
3+
from typing import Union, Optional
44

55
__all__ = ["GroupEditResponse"]
66

7-
GroupEditResponse = Union[List[object], str, object]
7+
GroupEditResponse = Union[Optional[str], Optional[object]]
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union
3+
from typing import Union, Optional
44

55
__all__ = ["GroupGetResponse"]
66

7-
GroupGetResponse = Union[List[object], str, object]
7+
GroupGetResponse = Union[Optional[str], Optional[object]]
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Union
3+
from typing import Union, Optional
44

55
__all__ = ["RuleGetResponse"]
66

7-
RuleGetResponse = Union[List[object], str, object]
7+
RuleGetResponse = Union[Optional[str], Optional[object]]

tests/api_resources/images/v1/test_keys.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestKeys:
2121
@parametrize
2222
def test_method_update(self, client: Cloudflare) -> None:
2323
key = client.images.v1.keys.update(
24-
"string",
24+
"someKey",
2525
account_id="023e105f4ecef8ad9ca31a8372d0c353",
2626
)
2727
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -30,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None:
3030
@parametrize
3131
def test_raw_response_update(self, client: Cloudflare) -> None:
3232
response = client.images.v1.keys.with_raw_response.update(
33-
"string",
33+
"someKey",
3434
account_id="023e105f4ecef8ad9ca31a8372d0c353",
3535
)
3636

@@ -43,7 +43,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
4343
@parametrize
4444
def test_streaming_response_update(self, client: Cloudflare) -> None:
4545
with client.images.v1.keys.with_streaming_response.update(
46-
"string",
46+
"someKey",
4747
account_id="023e105f4ecef8ad9ca31a8372d0c353",
4848
) as response:
4949
assert not response.is_closed
@@ -59,7 +59,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
5959
def test_path_params_update(self, client: Cloudflare) -> None:
6060
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
6161
client.images.v1.keys.with_raw_response.update(
62-
"string",
62+
"someKey",
6363
account_id="",
6464
)
6565

@@ -115,7 +115,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
115115
@parametrize
116116
def test_method_delete(self, client: Cloudflare) -> None:
117117
key = client.images.v1.keys.delete(
118-
"string",
118+
"someKey",
119119
account_id="023e105f4ecef8ad9ca31a8372d0c353",
120120
)
121121
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -124,7 +124,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
124124
@parametrize
125125
def test_raw_response_delete(self, client: Cloudflare) -> None:
126126
response = client.images.v1.keys.with_raw_response.delete(
127-
"string",
127+
"someKey",
128128
account_id="023e105f4ecef8ad9ca31a8372d0c353",
129129
)
130130

@@ -137,7 +137,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
137137
@parametrize
138138
def test_streaming_response_delete(self, client: Cloudflare) -> None:
139139
with client.images.v1.keys.with_streaming_response.delete(
140-
"string",
140+
"someKey",
141141
account_id="023e105f4ecef8ad9ca31a8372d0c353",
142142
) as response:
143143
assert not response.is_closed
@@ -153,7 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
153153
def test_path_params_delete(self, client: Cloudflare) -> None:
154154
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
155155
client.images.v1.keys.with_raw_response.delete(
156-
"string",
156+
"someKey",
157157
account_id="",
158158
)
159159

@@ -171,7 +171,7 @@ class TestAsyncKeys:
171171
@parametrize
172172
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
173173
key = await async_client.images.v1.keys.update(
174-
"string",
174+
"someKey",
175175
account_id="023e105f4ecef8ad9ca31a8372d0c353",
176176
)
177177
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -180,7 +180,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
180180
@parametrize
181181
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
182182
response = await async_client.images.v1.keys.with_raw_response.update(
183-
"string",
183+
"someKey",
184184
account_id="023e105f4ecef8ad9ca31a8372d0c353",
185185
)
186186

@@ -193,7 +193,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
193193
@parametrize
194194
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
195195
async with async_client.images.v1.keys.with_streaming_response.update(
196-
"string",
196+
"someKey",
197197
account_id="023e105f4ecef8ad9ca31a8372d0c353",
198198
) as response:
199199
assert not response.is_closed
@@ -209,7 +209,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
209209
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
210210
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
211211
await async_client.images.v1.keys.with_raw_response.update(
212-
"string",
212+
"someKey",
213213
account_id="",
214214
)
215215

@@ -265,7 +265,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
265265
@parametrize
266266
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
267267
key = await async_client.images.v1.keys.delete(
268-
"string",
268+
"someKey",
269269
account_id="023e105f4ecef8ad9ca31a8372d0c353",
270270
)
271271
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -274,7 +274,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
274274
@parametrize
275275
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
276276
response = await async_client.images.v1.keys.with_raw_response.delete(
277-
"string",
277+
"someKey",
278278
account_id="023e105f4ecef8ad9ca31a8372d0c353",
279279
)
280280

@@ -287,7 +287,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
287287
@parametrize
288288
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
289289
async with async_client.images.v1.keys.with_streaming_response.delete(
290-
"string",
290+
"someKey",
291291
account_id="023e105f4ecef8ad9ca31a8372d0c353",
292292
) as response:
293293
assert not response.is_closed
@@ -303,7 +303,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
303303
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
304304
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
305305
await async_client.images.v1.keys.with_raw_response.delete(
306-
"string",
306+
"someKey",
307307
account_id="",
308308
)
309309

0 commit comments

Comments
 (0)