Skip to content

Commit c8dc5e3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#782)
1 parent f5ecfb2 commit c8dc5e3

File tree

3 files changed

+168
-0
lines changed

3 files changed

+168
-0
lines changed

tests/api_resources/alerting/destinations/test_pagerduty.py

+48
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@
2222
class TestPagerduty:
2323
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2424

25+
@pytest.mark.skip(
26+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
27+
)
2528
@parametrize
2629
def test_method_create(self, client: Cloudflare) -> None:
2730
pagerduty = client.alerting.destinations.pagerduty.create(
2831
account_id="023e105f4ecef8ad9ca31a8372d0c353",
2932
)
3033
assert_matches_type(Optional[PagerdutyCreateResponse], pagerduty, path=["response"])
3134

35+
@pytest.mark.skip(
36+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
37+
)
3238
@parametrize
3339
def test_raw_response_create(self, client: Cloudflare) -> None:
3440
response = client.alerting.destinations.pagerduty.with_raw_response.create(
@@ -40,6 +46,9 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
4046
pagerduty = response.parse()
4147
assert_matches_type(Optional[PagerdutyCreateResponse], pagerduty, path=["response"])
4248

49+
@pytest.mark.skip(
50+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
51+
)
4352
@parametrize
4453
def test_streaming_response_create(self, client: Cloudflare) -> None:
4554
with client.alerting.destinations.pagerduty.with_streaming_response.create(
@@ -53,6 +62,9 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
5362

5463
assert cast(Any, response.is_closed) is True
5564

65+
@pytest.mark.skip(
66+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
67+
)
5668
@parametrize
5769
def test_path_params_create(self, client: Cloudflare) -> None:
5870
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -136,6 +148,9 @@ def test_path_params_get(self, client: Cloudflare) -> None:
136148
account_id="",
137149
)
138150

151+
@pytest.mark.skip(
152+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
153+
)
139154
@parametrize
140155
def test_method_link(self, client: Cloudflare) -> None:
141156
pagerduty = client.alerting.destinations.pagerduty.link(
@@ -144,6 +159,9 @@ def test_method_link(self, client: Cloudflare) -> None:
144159
)
145160
assert_matches_type(Optional[PagerdutyLinkResponse], pagerduty, path=["response"])
146161

162+
@pytest.mark.skip(
163+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
164+
)
147165
@parametrize
148166
def test_raw_response_link(self, client: Cloudflare) -> None:
149167
response = client.alerting.destinations.pagerduty.with_raw_response.link(
@@ -156,6 +174,9 @@ def test_raw_response_link(self, client: Cloudflare) -> None:
156174
pagerduty = response.parse()
157175
assert_matches_type(Optional[PagerdutyLinkResponse], pagerduty, path=["response"])
158176

177+
@pytest.mark.skip(
178+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
179+
)
159180
@parametrize
160181
def test_streaming_response_link(self, client: Cloudflare) -> None:
161182
with client.alerting.destinations.pagerduty.with_streaming_response.link(
@@ -170,6 +191,9 @@ def test_streaming_response_link(self, client: Cloudflare) -> None:
170191

171192
assert cast(Any, response.is_closed) is True
172193

194+
@pytest.mark.skip(
195+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
196+
)
173197
@parametrize
174198
def test_path_params_link(self, client: Cloudflare) -> None:
175199
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -188,13 +212,19 @@ def test_path_params_link(self, client: Cloudflare) -> None:
188212
class TestAsyncPagerduty:
189213
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
190214

215+
@pytest.mark.skip(
216+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
217+
)
191218
@parametrize
192219
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
193220
pagerduty = await async_client.alerting.destinations.pagerduty.create(
194221
account_id="023e105f4ecef8ad9ca31a8372d0c353",
195222
)
196223
assert_matches_type(Optional[PagerdutyCreateResponse], pagerduty, path=["response"])
197224

225+
@pytest.mark.skip(
226+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
227+
)
198228
@parametrize
199229
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
200230
response = await async_client.alerting.destinations.pagerduty.with_raw_response.create(
@@ -206,6 +236,9 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
206236
pagerduty = await response.parse()
207237
assert_matches_type(Optional[PagerdutyCreateResponse], pagerduty, path=["response"])
208238

239+
@pytest.mark.skip(
240+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
241+
)
209242
@parametrize
210243
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
211244
async with async_client.alerting.destinations.pagerduty.with_streaming_response.create(
@@ -219,6 +252,9 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
219252

220253
assert cast(Any, response.is_closed) is True
221254

255+
@pytest.mark.skip(
256+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
257+
)
222258
@parametrize
223259
async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
224260
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -302,6 +338,9 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
302338
account_id="",
303339
)
304340

341+
@pytest.mark.skip(
342+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
343+
)
305344
@parametrize
306345
async def test_method_link(self, async_client: AsyncCloudflare) -> None:
307346
pagerduty = await async_client.alerting.destinations.pagerduty.link(
@@ -310,6 +349,9 @@ async def test_method_link(self, async_client: AsyncCloudflare) -> None:
310349
)
311350
assert_matches_type(Optional[PagerdutyLinkResponse], pagerduty, path=["response"])
312351

352+
@pytest.mark.skip(
353+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
354+
)
313355
@parametrize
314356
async def test_raw_response_link(self, async_client: AsyncCloudflare) -> None:
315357
response = await async_client.alerting.destinations.pagerduty.with_raw_response.link(
@@ -322,6 +364,9 @@ async def test_raw_response_link(self, async_client: AsyncCloudflare) -> None:
322364
pagerduty = await response.parse()
323365
assert_matches_type(Optional[PagerdutyLinkResponse], pagerduty, path=["response"])
324366

367+
@pytest.mark.skip(
368+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
369+
)
325370
@parametrize
326371
async def test_streaming_response_link(self, async_client: AsyncCloudflare) -> None:
327372
async with async_client.alerting.destinations.pagerduty.with_streaming_response.link(
@@ -336,6 +381,9 @@ async def test_streaming_response_link(self, async_client: AsyncCloudflare) -> N
336381

337382
assert cast(Any, response.is_closed) is True
338383

384+
@pytest.mark.skip(
385+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4285"
386+
)
339387
@parametrize
340388
async def test_path_params_link(self, async_client: AsyncCloudflare) -> None:
341389
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/alerting/destinations/test_webhooks.py

+60
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
class TestWebhooks:
2424
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2525

26+
@pytest.mark.skip(
27+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
28+
)
2629
@parametrize
2730
def test_method_create(self, client: Cloudflare) -> None:
2831
webhook = client.alerting.destinations.webhooks.create(
@@ -32,6 +35,9 @@ def test_method_create(self, client: Cloudflare) -> None:
3235
)
3336
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
3437

38+
@pytest.mark.skip(
39+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
40+
)
3541
@parametrize
3642
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3743
webhook = client.alerting.destinations.webhooks.create(
@@ -42,6 +48,9 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4248
)
4349
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
4450

51+
@pytest.mark.skip(
52+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
53+
)
4554
@parametrize
4655
def test_raw_response_create(self, client: Cloudflare) -> None:
4756
response = client.alerting.destinations.webhooks.with_raw_response.create(
@@ -55,6 +64,9 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5564
webhook = response.parse()
5665
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
5766

67+
@pytest.mark.skip(
68+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
69+
)
5870
@parametrize
5971
def test_streaming_response_create(self, client: Cloudflare) -> None:
6072
with client.alerting.destinations.webhooks.with_streaming_response.create(
@@ -70,6 +82,9 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
7082

7183
assert cast(Any, response.is_closed) is True
7284

85+
@pytest.mark.skip(
86+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
87+
)
7388
@parametrize
7489
def test_path_params_create(self, client: Cloudflare) -> None:
7590
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -79,6 +94,9 @@ def test_path_params_create(self, client: Cloudflare) -> None:
7994
url="https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd",
8095
)
8196

97+
@pytest.mark.skip(
98+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
99+
)
82100
@parametrize
83101
def test_method_update(self, client: Cloudflare) -> None:
84102
webhook = client.alerting.destinations.webhooks.update(
@@ -89,6 +107,9 @@ def test_method_update(self, client: Cloudflare) -> None:
89107
)
90108
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
91109

110+
@pytest.mark.skip(
111+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
112+
)
92113
@parametrize
93114
def test_method_update_with_all_params(self, client: Cloudflare) -> None:
94115
webhook = client.alerting.destinations.webhooks.update(
@@ -100,6 +121,9 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
100121
)
101122
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
102123

124+
@pytest.mark.skip(
125+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
126+
)
103127
@parametrize
104128
def test_raw_response_update(self, client: Cloudflare) -> None:
105129
response = client.alerting.destinations.webhooks.with_raw_response.update(
@@ -114,6 +138,9 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
114138
webhook = response.parse()
115139
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
116140

141+
@pytest.mark.skip(
142+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
143+
)
117144
@parametrize
118145
def test_streaming_response_update(self, client: Cloudflare) -> None:
119146
with client.alerting.destinations.webhooks.with_streaming_response.update(
@@ -130,6 +157,9 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
130157

131158
assert cast(Any, response.is_closed) is True
132159

160+
@pytest.mark.skip(
161+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
162+
)
133163
@parametrize
134164
def test_path_params_update(self, client: Cloudflare) -> None:
135165
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -286,6 +316,9 @@ def test_path_params_get(self, client: Cloudflare) -> None:
286316
class TestAsyncWebhooks:
287317
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
288318

319+
@pytest.mark.skip(
320+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
321+
)
289322
@parametrize
290323
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
291324
webhook = await async_client.alerting.destinations.webhooks.create(
@@ -295,6 +328,9 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
295328
)
296329
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
297330

331+
@pytest.mark.skip(
332+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
333+
)
298334
@parametrize
299335
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
300336
webhook = await async_client.alerting.destinations.webhooks.create(
@@ -305,6 +341,9 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
305341
)
306342
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
307343

344+
@pytest.mark.skip(
345+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
346+
)
308347
@parametrize
309348
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
310349
response = await async_client.alerting.destinations.webhooks.with_raw_response.create(
@@ -318,6 +357,9 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
318357
webhook = await response.parse()
319358
assert_matches_type(Optional[WebhookCreateResponse], webhook, path=["response"])
320359

360+
@pytest.mark.skip(
361+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
362+
)
321363
@parametrize
322364
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
323365
async with async_client.alerting.destinations.webhooks.with_streaming_response.create(
@@ -333,6 +375,9 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
333375

334376
assert cast(Any, response.is_closed) is True
335377

378+
@pytest.mark.skip(
379+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
380+
)
336381
@parametrize
337382
async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
338383
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -342,6 +387,9 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
342387
url="https://hooks.slack.com/services/Ds3fdBFbV/456464Gdd",
343388
)
344389

390+
@pytest.mark.skip(
391+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
392+
)
345393
@parametrize
346394
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
347395
webhook = await async_client.alerting.destinations.webhooks.update(
@@ -352,6 +400,9 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
352400
)
353401
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
354402

403+
@pytest.mark.skip(
404+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
405+
)
355406
@parametrize
356407
async def test_method_update_with_all_params(self, async_client: AsyncCloudflare) -> None:
357408
webhook = await async_client.alerting.destinations.webhooks.update(
@@ -363,6 +414,9 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
363414
)
364415
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
365416

417+
@pytest.mark.skip(
418+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
419+
)
366420
@parametrize
367421
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
368422
response = await async_client.alerting.destinations.webhooks.with_raw_response.update(
@@ -377,6 +431,9 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
377431
webhook = await response.parse()
378432
assert_matches_type(Optional[WebhookUpdateResponse], webhook, path=["response"])
379433

434+
@pytest.mark.skip(
435+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
436+
)
380437
@parametrize
381438
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
382439
async with async_client.alerting.destinations.webhooks.with_streaming_response.update(
@@ -393,6 +450,9 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
393450

394451
assert cast(Any, response.is_closed) is True
395452

453+
@pytest.mark.skip(
454+
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
455+
)
396456
@parametrize
397457
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
398458
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)