Skip to content

Commit

Permalink
feat(api): api update (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Dec 19, 2024
1 parent 93db335 commit a2df7c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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
4 changes: 4 additions & 0 deletions logpush/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions logpush/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a2df7c8

Please sign in to comment.