From a2df7c884f5e28d75ab2981110f821e7aeb66501 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 21:23:48 +0000 Subject: [PATCH] feat(api): api update (#3760) --- .stats.yml | 2 +- logpush/job.go | 4 ++++ logpush/job_test.go | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 00d524a93a9..6de665a4df7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/logpush/job.go b/logpush/job.go index 1f9b93c7658..eb4d5cb6086 100644 --- a/logpush/job.go +++ b/logpush/job.go @@ -684,6 +684,10 @@ type JobUpdateParams struct { // lines than this. This parameter is not available for jobs with `edge` as its // kind. MaxUploadRecords param.Field[int64] `json:"max_upload_records"` + // 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. + Name param.Field[string] `json:"name"` // The structured replacement for `logpull_options`. When including this field, the // `logpull_option` field will be ignored. OutputOptions param.Field[OutputOptionsParam] `json:"output_options"` diff --git a/logpush/job_test.go b/logpush/job_test.go index 85a0956083b..696acc6eebf 100644 --- a/logpush/job_test.go +++ b/logpush/job_test.go @@ -92,6 +92,7 @@ func TestJobUpdateWithOptionalParams(t *testing.T) { MaxUploadBytes: cloudflare.F(int64(5000000)), MaxUploadIntervalSeconds: cloudflare.F(int64(30)), MaxUploadRecords: cloudflare.F(int64(1000)), + Name: cloudflare.F("example.com"), OutputOptions: cloudflare.F(logpush.OutputOptionsParam{ BatchPrefix: cloudflare.F("batch_prefix"), BatchSuffix: cloudflare.F("batch_suffix"),