Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1483
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77d24d8ee7a53652384015d4c06afc3d75874dd5cef16ea729d485d82e69e793.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-be6e5d0e98bf870ee346bf2c9b38b2d0507817cb8a57cf25e8f6cac26163177f.yml
12 changes: 12 additions & 0 deletions src/cloudflare/resources/logpush/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def update(
max_upload_bytes: Optional[int] | NotGiven = NOT_GIVEN,
max_upload_interval_seconds: Optional[int] | NotGiven = NOT_GIVEN,
max_upload_records: Optional[int] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
ownership_challenge: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -253,6 +254,10 @@ def update(
lines than this. This parameter is not available for jobs with `edge` as its
kind.

name: Optional human readable job name. Not unique. Cloudflare suggests that you set
this to a meaningful string, like the domain name, to make it easier to identify
your job.

output_options: The structured replacement for `logpull_options`. When including this field, the
`logpull_option` field will be ignored.

Expand Down Expand Up @@ -290,6 +295,7 @@ def update(
"max_upload_bytes": max_upload_bytes,
"max_upload_interval_seconds": max_upload_interval_seconds,
"max_upload_records": max_upload_records,
"name": name,
"output_options": output_options,
"ownership_challenge": ownership_challenge,
},
Expand Down Expand Up @@ -630,6 +636,7 @@ async def update(
max_upload_bytes: Optional[int] | NotGiven = NOT_GIVEN,
max_upload_interval_seconds: Optional[int] | NotGiven = NOT_GIVEN,
max_upload_records: Optional[int] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
ownership_challenge: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -687,6 +694,10 @@ async def update(
lines than this. This parameter is not available for jobs with `edge` as its
kind.

name: Optional human readable job name. Not unique. Cloudflare suggests that you set
this to a meaningful string, like the domain name, to make it easier to identify
your job.

output_options: The structured replacement for `logpull_options`. When including this field, the
`logpull_option` field will be ignored.

Expand Down Expand Up @@ -724,6 +735,7 @@ async def update(
"max_upload_bytes": max_upload_bytes,
"max_upload_interval_seconds": max_upload_interval_seconds,
"max_upload_records": max_upload_records,
"name": name,
"output_options": output_options,
"ownership_challenge": ownership_challenge,
},
Expand Down
7 changes: 7 additions & 0 deletions src/cloudflare/types/logpush/job_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ class JobUpdateParams(TypedDict, total=False):
available for jobs with `edge` as its kind.
"""

name: Optional[str]
"""Optional human readable job name.

Not unique. Cloudflare suggests that you set this to a meaningful string, like
the domain name, to make it easier to identify your job.
"""

output_options: Optional[OutputOptionsParam]
"""The structured replacement for `logpull_options`.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/logpush/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
max_upload_bytes=5000000,
max_upload_interval_seconds=30,
max_upload_records=1000,
name="example.com",
output_options={
"batch_prefix": "batch_prefix",
"batch_suffix": "batch_suffix",
Expand Down Expand Up @@ -476,6 +477,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
max_upload_bytes=5000000,
max_upload_interval_seconds=30,
max_upload_records=1000,
name="example.com",
output_options={
"batch_prefix": "batch_prefix",
"batch_suffix": "batch_suffix",
Expand Down