Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 28, 2024
1 parent 4058dbb commit 54b6344
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 1,365 deletions.
4 changes: 2 additions & 2 deletions src/cloudflare/resources/logpush/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def list(
account_or_zone_id = zone_id
return self._get_api_list(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs",
page=SyncSinglePage[LogpushJob],
page=SyncSinglePage[Optional[LogpushJob]],
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down Expand Up @@ -667,7 +667,7 @@ def list(
account_or_zone_id = zone_id
return self._get_api_list(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs",
page=AsyncSinglePage[LogpushJob],
page=AsyncSinglePage[Optional[LogpushJob]],
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/mnm/rules",
page=SyncSinglePage[MagicNetworkMonitoringRule],
page=SyncSinglePage[Optional[MagicNetworkMonitoringRule]],
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down Expand Up @@ -394,7 +394,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/mnm/rules",
page=AsyncSinglePage[MagicNetworkMonitoringRule],
page=AsyncSinglePage[Optional[MagicNetworkMonitoringRule]],
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down
Loading

0 comments on commit 54b6344

Please sign in to comment.