Skip to content

Commit 5790c75

Browse files
feat(api): api update
1 parent fa05bd0 commit 5790c75

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-381ed84335cfa747d09c66cc65add15e3daceb84368f59aa9ce9067c5706d516.yml
3-
openapi_spec_hash: f4d8980ef4fa4c092ab0dfcb5cdb85f8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5b3a5962f102d4bffee87e6012f4afa9bd954a19c3bd78c368887941fb8ba92c.yml
3+
openapi_spec_hash: 23a363af2dc9dbe00b2e21fa0df67c43
44
config_hash: ab4569f2e8dd52d04ef8493482a67230

logpush/datasetfield.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewDatasetFieldService(opts ...option.RequestOption) (r *DatasetFieldServic
3333
return
3434
}
3535

36-
// Lists all fields available for a dataset. The response result is an object with
36+
// Lists all fields available for a dataset. The response result is. an object with
3737
// key-value pairs, where keys are field names, and values are descriptions.
3838
func (r *DatasetFieldService) Get(ctx context.Context, datasetID DatasetFieldGetParamsDatasetID, query DatasetFieldGetParams, opts ...option.RequestOption) (res *DatasetFieldGetResponse, err error) {
3939
var env DatasetFieldGetResponseEnvelope

logpush/job.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,18 @@ type LogpushJob struct {
206206
// Name of the dataset. A list of supported datasets can be found on the
207207
// [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).
208208
Dataset LogpushJobDataset `json:"dataset,nullable"`
209-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
210-
// Additional configuration parameters supported by the destination may be
209+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
210+
// pushed. Additional configuration parameters supported by the destination may be
211211
// included.
212212
DestinationConf string `json:"destination_conf" format:"uri"`
213213
// Flag that indicates if the job is enabled.
214214
Enabled bool `json:"enabled"`
215-
// If not null, the job is currently failing. Failures are usually repetitive
215+
// If not null, the job is currently failing. Failures are usually. repetitive
216216
// (example: no permissions to write to destination bucket). Only the last failure
217217
// is recorded. On successful execution of a job the error_message and last_error
218218
// are set to null.
219219
ErrorMessage string `json:"error_message,nullable"`
220-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
220+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
221221
// frequency at which Cloudflare sends batches of logs to your destination. Setting
222222
// frequency to high sends your logs in larger quantities of smaller files. Setting
223223
// frequency to low sends logs in smaller quantities of larger files.
@@ -232,9 +232,9 @@ type LogpushJob struct {
232232
// then the value of this field will be 2018-07-23T10:01:00Z. If the job has never
233233
// run or has just been enabled and hasn't run yet then the field will be empty.
234234
LastComplete time.Time `json:"last_complete,nullable" format:"date-time"`
235-
// Records the last time the job failed. If not null, the job is currently failing.
236-
// If null, the job has either never failed or has run successfully at least once
237-
// since last failure. See also the error_message field.
235+
// Records the last time the job failed. If not null, the job is currently.
236+
// failing. If null, the job has either never failed or has run successfully at
237+
// least once since last failure. See also the error_message field.
238238
LastError time.Time `json:"last_error,nullable" format:"date-time"`
239239
// This field is deprecated. Use `output_options` instead. Configuration string. It
240240
// specifies things like requested fields and timestamp formats. If migrating from
@@ -259,7 +259,7 @@ type LogpushJob struct {
259259
// number of log lines per batch; this means that log files may contain many fewer
260260
// lines than this.
261261
MaxUploadRecords LogpushJobMaxUploadRecords `json:"max_upload_records,nullable"`
262-
// Optional human readable job name. Not unique. Cloudflare suggests that you set
262+
// Optional human readable job name. Not unique. Cloudflare suggests. that you set
263263
// this to a meaningful string, like the domain name, to make it easier to identify
264264
// your job.
265265
Name string `json:"name,nullable"`
@@ -337,7 +337,7 @@ func (r LogpushJobDataset) IsKnown() bool {
337337
return false
338338
}
339339

340-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
340+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
341341
// frequency at which Cloudflare sends batches of logs to your destination. Setting
342342
// frequency to high sends your logs in larger quantities of smaller files. Setting
343343
// frequency to low sends logs in smaller quantities of larger files.
@@ -595,8 +595,8 @@ func (r jobDeleteResponseJSON) RawJSON() string {
595595
}
596596

597597
type JobNewParams struct {
598-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
599-
// Additional configuration parameters supported by the destination may be
598+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
599+
// pushed. Additional configuration parameters supported by the destination may be
600600
// included.
601601
DestinationConf param.Field[string] `json:"destination_conf,required" format:"uri"`
602602
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
@@ -612,7 +612,7 @@ type JobNewParams struct {
612612
// more information, refer to
613613
// [Filters](https://developers.cloudflare.com/logs/reference/filters/).
614614
Filter param.Field[string] `json:"filter"`
615-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
615+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
616616
// frequency at which Cloudflare sends batches of logs to your destination. Setting
617617
// frequency to high sends your logs in larger quantities of smaller files. Setting
618618
// frequency to low sends logs in smaller quantities of larger files.
@@ -641,7 +641,7 @@ type JobNewParams struct {
641641
// number of log lines per batch; this means that log files may contain many fewer
642642
// lines than this.
643643
MaxUploadRecords param.Field[JobNewParamsMaxUploadRecords] `json:"max_upload_records"`
644-
// Optional human readable job name. Not unique. Cloudflare suggests that you set
644+
// Optional human readable job name. Not unique. Cloudflare suggests. that you set
645645
// this to a meaningful string, like the domain name, to make it easier to identify
646646
// your job.
647647
Name param.Field[string] `json:"name"`
@@ -695,7 +695,7 @@ func (r JobNewParamsDataset) IsKnown() bool {
695695
return false
696696
}
697697

698-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
698+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
699699
// frequency at which Cloudflare sends batches of logs to your destination. Setting
700700
// frequency to high sends your logs in larger quantities of smaller files. Setting
701701
// frequency to low sends logs in smaller quantities of larger files.
@@ -929,8 +929,8 @@ type JobUpdateParams struct {
929929
AccountID param.Field[string] `path:"account_id"`
930930
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
931931
ZoneID param.Field[string] `path:"zone_id"`
932-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
933-
// Additional configuration parameters supported by the destination may be
932+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
933+
// pushed. Additional configuration parameters supported by the destination may be
934934
// included.
935935
DestinationConf param.Field[string] `json:"destination_conf" format:"uri"`
936936
// Flag that indicates if the job is enabled.
@@ -939,7 +939,7 @@ type JobUpdateParams struct {
939939
// more information, refer to
940940
// [Filters](https://developers.cloudflare.com/logs/reference/filters/).
941941
Filter param.Field[string] `json:"filter"`
942-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
942+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
943943
// frequency at which Cloudflare sends batches of logs to your destination. Setting
944944
// frequency to high sends your logs in larger quantities of smaller files. Setting
945945
// frequency to low sends logs in smaller quantities of larger files.
@@ -968,7 +968,7 @@ type JobUpdateParams struct {
968968
// number of log lines per batch; this means that log files may contain many fewer
969969
// lines than this.
970970
MaxUploadRecords param.Field[JobUpdateParamsMaxUploadRecords] `json:"max_upload_records"`
971-
// Optional human readable job name. Not unique. Cloudflare suggests that you set
971+
// Optional human readable job name. Not unique. Cloudflare suggests. that you set
972972
// this to a meaningful string, like the domain name, to make it easier to identify
973973
// your job.
974974
Name param.Field[string] `json:"name"`
@@ -983,7 +983,7 @@ func (r JobUpdateParams) MarshalJSON() (data []byte, err error) {
983983
return apijson.MarshalRoot(r)
984984
}
985985

986-
// This field is deprecated. Please use `max_upload_*` parameters instead. The
986+
// This field is deprecated. Please use `max_upload_*` parameters instead. . The
987987
// frequency at which Cloudflare sends batches of logs to your destination. Setting
988988
// frequency to high sends your logs in larger quantities of smaller files. Setting
989989
// frequency to low sends logs in smaller quantities of larger files.

logpush/ownership.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ func (r ownershipNewResponseJSON) RawJSON() string {
142142
}
143143

144144
type OwnershipNewParams struct {
145-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
146-
// Additional configuration parameters supported by the destination may be
145+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
146+
// pushed. Additional configuration parameters supported by the destination may be
147147
// included.
148148
DestinationConf param.Field[string] `json:"destination_conf,required" format:"uri"`
149149
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
@@ -296,8 +296,8 @@ func (r OwnershipNewResponseEnvelopeSuccess) IsKnown() bool {
296296
}
297297

298298
type OwnershipValidateParams struct {
299-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
300-
// Additional configuration parameters supported by the destination may be
299+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
300+
// pushed. Additional configuration parameters supported by the destination may be
301301
// included.
302302
DestinationConf param.Field[string] `json:"destination_conf,required" format:"uri"`
303303
// Ownership challenge token to prove destination ownership.

logpush/validate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ func (r validateOriginResponseJSON) RawJSON() string {
194194
}
195195

196196
type ValidateDestinationParams struct {
197-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
198-
// Additional configuration parameters supported by the destination may be
197+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
198+
// pushed. Additional configuration parameters supported by the destination may be
199199
// included.
200200
DestinationConf param.Field[string] `json:"destination_conf,required" format:"uri"`
201201
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
@@ -348,8 +348,8 @@ func (r ValidateDestinationResponseEnvelopeSuccess) IsKnown() bool {
348348
}
349349

350350
type ValidateDestinationExistsParams struct {
351-
// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.
352-
// Additional configuration parameters supported by the destination may be
351+
// Uniquely identifies a resource (such as an s3 bucket) where data. will be
352+
// pushed. Additional configuration parameters supported by the destination may be
353353
// included.
354354
DestinationConf param.Field[string] `json:"destination_conf,required" format:"uri"`
355355
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

0 commit comments

Comments
 (0)