Skip to content

Commit 1a935f1

Browse files
feat(api): api update
1 parent 54d6d21 commit 1a935f1

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1777
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c2ed86779626c93ec8c0ef9d0100bf399b7339722e8f9f256db590a733b07d6f.yml
3-
openapi_spec_hash: 48144f26df6a82c7bc8bb4baddc6e188
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4f690382f570f545a035c6a1c0e0e77ec55d8070a52f245dc46b069fb3c6009.yml
3+
openapi_spec_hash: 7fb90352e3acc8b7bad0718ec46e6c30
44
config_hash: a35e9eb0436652c704bebf7c0a38085b

src/cloudflare/resources/logpush/jobs.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def create(
8888
frequency: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
8989
kind: Literal["", "edge"] | NotGiven = NOT_GIVEN,
9090
logpull_options: Optional[str] | NotGiven = NOT_GIVEN,
91-
max_upload_bytes: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
92-
max_upload_interval_seconds: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
93-
max_upload_records: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
91+
max_upload_bytes: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
92+
max_upload_interval_seconds: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
93+
max_upload_records: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
9494
name: Optional[str] | NotGiven = NOT_GIVEN,
9595
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
9696
ownership_challenge: str | NotGiven = NOT_GIVEN,
@@ -222,9 +222,9 @@ def update(
222222
frequency: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
223223
kind: Literal["", "edge"] | NotGiven = NOT_GIVEN,
224224
logpull_options: Optional[str] | NotGiven = NOT_GIVEN,
225-
max_upload_bytes: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
226-
max_upload_interval_seconds: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
227-
max_upload_records: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
225+
max_upload_bytes: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
226+
max_upload_interval_seconds: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
227+
max_upload_records: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
228228
name: Optional[str] | NotGiven = NOT_GIVEN,
229229
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
230230
ownership_challenge: str | NotGiven = NOT_GIVEN,
@@ -562,9 +562,9 @@ async def create(
562562
frequency: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
563563
kind: Literal["", "edge"] | NotGiven = NOT_GIVEN,
564564
logpull_options: Optional[str] | NotGiven = NOT_GIVEN,
565-
max_upload_bytes: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
566-
max_upload_interval_seconds: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
567-
max_upload_records: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
565+
max_upload_bytes: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
566+
max_upload_interval_seconds: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
567+
max_upload_records: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
568568
name: Optional[str] | NotGiven = NOT_GIVEN,
569569
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
570570
ownership_challenge: str | NotGiven = NOT_GIVEN,
@@ -696,9 +696,9 @@ async def update(
696696
frequency: Optional[Literal["high", "low"]] | NotGiven = NOT_GIVEN,
697697
kind: Literal["", "edge"] | NotGiven = NOT_GIVEN,
698698
logpull_options: Optional[str] | NotGiven = NOT_GIVEN,
699-
max_upload_bytes: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
700-
max_upload_interval_seconds: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
701-
max_upload_records: Union[Literal[0], object, None] | NotGiven = NOT_GIVEN,
699+
max_upload_bytes: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
700+
max_upload_interval_seconds: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
701+
max_upload_records: Union[Literal[0], int, None] | NotGiven = NOT_GIVEN,
702702
name: Optional[str] | NotGiven = NOT_GIVEN,
703703
output_options: Optional[OutputOptionsParam] | NotGiven = NOT_GIVEN,
704704
ownership_challenge: str | NotGiven = NOT_GIVEN,

src/cloudflare/types/logpush/job_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,23 +92,23 @@ class JobCreateParams(TypedDict, total=False):
9292
keep on making this call for you, setting start and end times appropriately.
9393
"""
9494

95-
max_upload_bytes: Union[Literal[0], object, None]
95+
max_upload_bytes: Union[Literal[0], int, None]
9696
"""The maximum uncompressed file size of a batch of logs.
9797
9898
This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note
9999
that you cannot set a minimum file size; this means that log files may be much
100100
smaller than this batch size.
101101
"""
102102

103-
max_upload_interval_seconds: Union[Literal[0], object, None]
103+
max_upload_interval_seconds: Union[Literal[0], int, None]
104104
"""The maximum interval in seconds for log batches.
105105
106106
This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable
107107
it. Note that you cannot specify a minimum interval for log batches; this means
108108
that log files may be sent in shorter intervals than this.
109109
"""
110110

111-
max_upload_records: Union[Literal[0], object, None]
111+
max_upload_records: Union[Literal[0], int, None]
112112
"""The maximum number of log lines per batch.
113113
114114
This setting must be between 1000 and 1,000,000 lines, or `0` to disable it.

src/cloudflare/types/logpush/job_update_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@ class JobUpdateParams(TypedDict, total=False):
5858
keep on making this call for you, setting start and end times appropriately.
5959
"""
6060

61-
max_upload_bytes: Union[Literal[0], object, None]
61+
max_upload_bytes: Union[Literal[0], int, None]
6262
"""The maximum uncompressed file size of a batch of logs.
6363
6464
This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note
6565
that you cannot set a minimum file size; this means that log files may be much
6666
smaller than this batch size.
6767
"""
6868

69-
max_upload_interval_seconds: Union[Literal[0], object, None]
69+
max_upload_interval_seconds: Union[Literal[0], int, None]
7070
"""The maximum interval in seconds for log batches.
7171
7272
This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable
7373
it. Note that you cannot specify a minimum interval for log batches; this means
7474
that log files may be sent in shorter intervals than this.
7575
"""
7676

77-
max_upload_records: Union[Literal[0], object, None]
77+
max_upload_records: Union[Literal[0], int, None]
7878
"""The maximum number of log lines per batch.
7979
8080
This setting must be between 1000 and 1,000,000 lines, or `0` to disable it.

src/cloudflare/types/logpush/logpush_job.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,23 @@ class LogpushJob(BaseModel):
107107
keep on making this call for you, setting start and end times appropriately.
108108
"""
109109

110-
max_upload_bytes: Union[Literal[0], object, None] = None
110+
max_upload_bytes: Union[Literal[0], int, None] = None
111111
"""The maximum uncompressed file size of a batch of logs.
112112
113113
This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note
114114
that you cannot set a minimum file size; this means that log files may be much
115115
smaller than this batch size.
116116
"""
117117

118-
max_upload_interval_seconds: Union[Literal[0], object, None] = None
118+
max_upload_interval_seconds: Union[Literal[0], int, None] = None
119119
"""The maximum interval in seconds for log batches.
120120
121121
This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable
122122
it. Note that you cannot specify a minimum interval for log batches; this means
123123
that log files may be sent in shorter intervals than this.
124124
"""
125125

126-
max_upload_records: Union[Literal[0], object, None] = None
126+
max_upload_records: Union[Literal[0], int, None] = None
127127
"""The maximum number of log lines per batch.
128128
129129
This setting must be between 1000 and 1,000,000 lines, or `0` to disable it.

0 commit comments

Comments
 (0)