Skip to content

Commit e0fa8ba

Browse files
feat(api): api update
1 parent 3262618 commit e0fa8ba

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1742
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b51a8438b19d990825fc00ef8ed9f6cc863b2579179bc0601f299768e302f2f.yml
3-
openapi_spec_hash: daa336247981d3f53458f78895c2a857
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e8969caf4e9f8a99d0ec6d14c2b8a1190bb328b6ab1c30087e547ab1261a36e.yml
3+
openapi_spec_hash: 1b84773b57a1458614db701e30e7fca8
44
config_hash: 85703bb37ad4f7b8bfeea6f128f351a0

tests/api_resources/cloudforce_one/threat_events/datasets/test_health.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class TestHealth:
2020
@parametrize
2121
def test_method_get(self, client: Cloudflare) -> None:
2222
health = client.cloudforce_one.threat_events.datasets.health.get(
23-
dataset_id="dataset_id",
23+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
2424
account_id=0,
2525
)
2626
assert_matches_type(HealthGetResponse, health, path=["response"])
2727

2828
@parametrize
2929
def test_raw_response_get(self, client: Cloudflare) -> None:
3030
response = client.cloudforce_one.threat_events.datasets.health.with_raw_response.get(
31-
dataset_id="dataset_id",
31+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3232
account_id=0,
3333
)
3434

@@ -40,7 +40,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
4040
@parametrize
4141
def test_streaming_response_get(self, client: Cloudflare) -> None:
4242
with client.cloudforce_one.threat_events.datasets.health.with_streaming_response.get(
43-
dataset_id="dataset_id",
43+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
4444
account_id=0,
4545
) as response:
4646
assert not response.is_closed
@@ -66,15 +66,15 @@ class TestAsyncHealth:
6666
@parametrize
6767
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
6868
health = await async_client.cloudforce_one.threat_events.datasets.health.get(
69-
dataset_id="dataset_id",
69+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
7070
account_id=0,
7171
)
7272
assert_matches_type(HealthGetResponse, health, path=["response"])
7373

7474
@parametrize
7575
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
7676
response = await async_client.cloudforce_one.threat_events.datasets.health.with_raw_response.get(
77-
dataset_id="dataset_id",
77+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
7878
account_id=0,
7979
)
8080

@@ -86,7 +86,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
8686
@parametrize
8787
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
8888
async with async_client.cloudforce_one.threat_events.datasets.health.with_streaming_response.get(
89-
dataset_id="dataset_id",
89+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
9090
account_id=0,
9191
) as response:
9292
assert not response.is_closed

tests/api_resources/cloudforce_one/threat_events/test_categories.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
113113
@parametrize
114114
def test_method_delete(self, client: Cloudflare) -> None:
115115
category = client.cloudforce_one.threat_events.categories.delete(
116-
category_id="category_id",
116+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
117117
account_id=0,
118118
)
119119
assert_matches_type(CategoryDeleteResponse, category, path=["response"])
@@ -122,7 +122,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
122122
@parametrize
123123
def test_raw_response_delete(self, client: Cloudflare) -> None:
124124
response = client.cloudforce_one.threat_events.categories.with_raw_response.delete(
125-
category_id="category_id",
125+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
126126
account_id=0,
127127
)
128128

@@ -135,7 +135,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
135135
@parametrize
136136
def test_streaming_response_delete(self, client: Cloudflare) -> None:
137137
with client.cloudforce_one.threat_events.categories.with_streaming_response.delete(
138-
category_id="category_id",
138+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
139139
account_id=0,
140140
) as response:
141141
assert not response.is_closed
@@ -159,7 +159,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
159159
@parametrize
160160
def test_method_edit(self, client: Cloudflare) -> None:
161161
category = client.cloudforce_one.threat_events.categories.edit(
162-
category_id="category_id",
162+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
163163
account_id=0,
164164
)
165165
assert_matches_type(CategoryEditResponse, category, path=["response"])
@@ -168,7 +168,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
168168
@parametrize
169169
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
170170
category = client.cloudforce_one.threat_events.categories.edit(
171-
category_id="category_id",
171+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
172172
account_id=0,
173173
kill_chain=0,
174174
mitre_attack=["T1234"],
@@ -181,7 +181,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
181181
@parametrize
182182
def test_raw_response_edit(self, client: Cloudflare) -> None:
183183
response = client.cloudforce_one.threat_events.categories.with_raw_response.edit(
184-
category_id="category_id",
184+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
185185
account_id=0,
186186
)
187187

@@ -194,7 +194,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
194194
@parametrize
195195
def test_streaming_response_edit(self, client: Cloudflare) -> None:
196196
with client.cloudforce_one.threat_events.categories.with_streaming_response.edit(
197-
category_id="category_id",
197+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
198198
account_id=0,
199199
) as response:
200200
assert not response.is_closed
@@ -218,7 +218,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
218218
@parametrize
219219
def test_method_get(self, client: Cloudflare) -> None:
220220
category = client.cloudforce_one.threat_events.categories.get(
221-
category_id="category_id",
221+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
222222
account_id=0,
223223
)
224224
assert_matches_type(CategoryGetResponse, category, path=["response"])
@@ -227,7 +227,7 @@ def test_method_get(self, client: Cloudflare) -> None:
227227
@parametrize
228228
def test_raw_response_get(self, client: Cloudflare) -> None:
229229
response = client.cloudforce_one.threat_events.categories.with_raw_response.get(
230-
category_id="category_id",
230+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
231231
account_id=0,
232232
)
233233

@@ -240,7 +240,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
240240
@parametrize
241241
def test_streaming_response_get(self, client: Cloudflare) -> None:
242242
with client.cloudforce_one.threat_events.categories.with_streaming_response.get(
243-
category_id="category_id",
243+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
244244
account_id=0,
245245
) as response:
246246
assert not response.is_closed
@@ -354,7 +354,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
354354
@parametrize
355355
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
356356
category = await async_client.cloudforce_one.threat_events.categories.delete(
357-
category_id="category_id",
357+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
358358
account_id=0,
359359
)
360360
assert_matches_type(CategoryDeleteResponse, category, path=["response"])
@@ -363,7 +363,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
363363
@parametrize
364364
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
365365
response = await async_client.cloudforce_one.threat_events.categories.with_raw_response.delete(
366-
category_id="category_id",
366+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
367367
account_id=0,
368368
)
369369

@@ -376,7 +376,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
376376
@parametrize
377377
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
378378
async with async_client.cloudforce_one.threat_events.categories.with_streaming_response.delete(
379-
category_id="category_id",
379+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
380380
account_id=0,
381381
) as response:
382382
assert not response.is_closed
@@ -400,7 +400,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
400400
@parametrize
401401
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
402402
category = await async_client.cloudforce_one.threat_events.categories.edit(
403-
category_id="category_id",
403+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
404404
account_id=0,
405405
)
406406
assert_matches_type(CategoryEditResponse, category, path=["response"])
@@ -409,7 +409,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
409409
@parametrize
410410
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
411411
category = await async_client.cloudforce_one.threat_events.categories.edit(
412-
category_id="category_id",
412+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
413413
account_id=0,
414414
kill_chain=0,
415415
mitre_attack=["T1234"],
@@ -422,7 +422,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
422422
@parametrize
423423
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
424424
response = await async_client.cloudforce_one.threat_events.categories.with_raw_response.edit(
425-
category_id="category_id",
425+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
426426
account_id=0,
427427
)
428428

@@ -435,7 +435,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
435435
@parametrize
436436
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
437437
async with async_client.cloudforce_one.threat_events.categories.with_streaming_response.edit(
438-
category_id="category_id",
438+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
439439
account_id=0,
440440
) as response:
441441
assert not response.is_closed
@@ -459,7 +459,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
459459
@parametrize
460460
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
461461
category = await async_client.cloudforce_one.threat_events.categories.get(
462-
category_id="category_id",
462+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
463463
account_id=0,
464464
)
465465
assert_matches_type(CategoryGetResponse, category, path=["response"])
@@ -468,7 +468,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
468468
@parametrize
469469
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
470470
response = await async_client.cloudforce_one.threat_events.categories.with_raw_response.get(
471-
category_id="category_id",
471+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
472472
account_id=0,
473473
)
474474

@@ -481,7 +481,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
481481
@parametrize
482482
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
483483
async with async_client.cloudforce_one.threat_events.categories.with_streaming_response.get(
484-
category_id="category_id",
484+
category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
485485
account_id=0,
486486
) as response:
487487
assert not response.is_closed

tests/api_resources/cloudforce_one/threat_events/test_datasets.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
101101
@parametrize
102102
def test_method_edit(self, client: Cloudflare) -> None:
103103
dataset = client.cloudforce_one.threat_events.datasets.edit(
104-
dataset_id="dataset_id",
104+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
105105
account_id=0,
106106
is_public=True,
107107
name="x",
@@ -112,7 +112,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
112112
@parametrize
113113
def test_raw_response_edit(self, client: Cloudflare) -> None:
114114
response = client.cloudforce_one.threat_events.datasets.with_raw_response.edit(
115-
dataset_id="dataset_id",
115+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
116116
account_id=0,
117117
is_public=True,
118118
name="x",
@@ -127,7 +127,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
127127
@parametrize
128128
def test_streaming_response_edit(self, client: Cloudflare) -> None:
129129
with client.cloudforce_one.threat_events.datasets.with_streaming_response.edit(
130-
dataset_id="dataset_id",
130+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
131131
account_id=0,
132132
is_public=True,
133133
name="x",
@@ -155,7 +155,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
155155
@parametrize
156156
def test_method_get(self, client: Cloudflare) -> None:
157157
dataset = client.cloudforce_one.threat_events.datasets.get(
158-
dataset_id="dataset_id",
158+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
159159
account_id=0,
160160
)
161161
assert_matches_type(DatasetGetResponse, dataset, path=["response"])
@@ -164,7 +164,7 @@ def test_method_get(self, client: Cloudflare) -> None:
164164
@parametrize
165165
def test_raw_response_get(self, client: Cloudflare) -> None:
166166
response = client.cloudforce_one.threat_events.datasets.with_raw_response.get(
167-
dataset_id="dataset_id",
167+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
168168
account_id=0,
169169
)
170170

@@ -177,7 +177,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
177177
@parametrize
178178
def test_streaming_response_get(self, client: Cloudflare) -> None:
179179
with client.cloudforce_one.threat_events.datasets.with_streaming_response.get(
180-
dataset_id="dataset_id",
180+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
181181
account_id=0,
182182
) as response:
183183
assert not response.is_closed
@@ -336,7 +336,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
336336
@parametrize
337337
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
338338
dataset = await async_client.cloudforce_one.threat_events.datasets.edit(
339-
dataset_id="dataset_id",
339+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
340340
account_id=0,
341341
is_public=True,
342342
name="x",
@@ -347,7 +347,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
347347
@parametrize
348348
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
349349
response = await async_client.cloudforce_one.threat_events.datasets.with_raw_response.edit(
350-
dataset_id="dataset_id",
350+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
351351
account_id=0,
352352
is_public=True,
353353
name="x",
@@ -362,7 +362,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
362362
@parametrize
363363
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
364364
async with async_client.cloudforce_one.threat_events.datasets.with_streaming_response.edit(
365-
dataset_id="dataset_id",
365+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
366366
account_id=0,
367367
is_public=True,
368368
name="x",
@@ -390,7 +390,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
390390
@parametrize
391391
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
392392
dataset = await async_client.cloudforce_one.threat_events.datasets.get(
393-
dataset_id="dataset_id",
393+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
394394
account_id=0,
395395
)
396396
assert_matches_type(DatasetGetResponse, dataset, path=["response"])
@@ -399,7 +399,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
399399
@parametrize
400400
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
401401
response = await async_client.cloudforce_one.threat_events.datasets.with_raw_response.get(
402-
dataset_id="dataset_id",
402+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
403403
account_id=0,
404404
)
405405

@@ -412,7 +412,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
412412
@parametrize
413413
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
414414
async with async_client.cloudforce_one.threat_events.datasets.with_streaming_response.get(
415-
dataset_id="dataset_id",
415+
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
416416
account_id=0,
417417
) as response:
418418
assert not response.is_closed

0 commit comments

Comments
 (0)