Skip to content

Commit 54b6344

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#190)
1 parent 4058dbb commit 54b6344

File tree

5 files changed

+213
-1365
lines changed

5 files changed

+213
-1365
lines changed

src/cloudflare/resources/logpush/jobs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def list(
285285
account_or_zone_id = zone_id
286286
return self._get_api_list(
287287
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs",
288-
page=SyncSinglePage[LogpushJob],
288+
page=SyncSinglePage[Optional[LogpushJob]],
289289
options=make_request_options(
290290
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
291291
),
@@ -667,7 +667,7 @@ def list(
667667
account_or_zone_id = zone_id
668668
return self._get_api_list(
669669
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs",
670-
page=AsyncSinglePage[LogpushJob],
670+
page=AsyncSinglePage[Optional[LogpushJob]],
671671
options=make_request_options(
672672
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
673673
),

src/cloudflare/resources/magic_network_monitoring/rules/rules.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def list(
150150
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
151151
return self._get_api_list(
152152
f"/accounts/{account_id}/mnm/rules",
153-
page=SyncSinglePage[MagicNetworkMonitoringRule],
153+
page=SyncSinglePage[Optional[MagicNetworkMonitoringRule]],
154154
options=make_request_options(
155155
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
156156
),
@@ -394,7 +394,7 @@ def list(
394394
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
395395
return self._get_api_list(
396396
f"/accounts/{account_id}/mnm/rules",
397-
page=AsyncSinglePage[MagicNetworkMonitoringRule],
397+
page=AsyncSinglePage[Optional[MagicNetworkMonitoringRule]],
398398
options=make_request_options(
399399
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
400400
),

0 commit comments

Comments
 (0)