Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#3228)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 23, 2024
1 parent 5c298e1 commit 14af241
Show file tree
Hide file tree
Showing 30 changed files with 115 additions and 759 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1336
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6a566fafa78575febbb420c78fd689eb8df8c3e66ebe37804ab4d950db380fa1.yml
configured_endpoints: 1333
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0b90c8e31d77ee1a893a12f7abdc7a037e8a7e102d267caf174df6c26560c829.yml
26 changes: 4 additions & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6775,13 +6775,13 @@ Methods:

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponse">OriginPostQuantumEncryptionUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponse">OriginPostQuantumEncryptionGetResponse</a>

Methods:

- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponse">OriginPostQuantumEncryptionUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponse">OriginPostQuantumEncryptionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Speed

Expand Down Expand Up @@ -7017,26 +7017,8 @@ Methods:

### Configuration

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationGetResponse">R2ConfigurationGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration">client.EventNotifications.R2.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, bucketName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationGetParams">R2ConfigurationGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationGetResponse">R2ConfigurationGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### Queues

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueUpdateResponse">R2ConfigurationQueueUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueDeleteResponseUnion">R2ConfigurationQueueDeleteResponseUnion</a>

Methods:

- <code title="put /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.EventNotifications.R2.Configuration.Queues.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, bucketName <a href="https://pkg.go.dev/builtin#string">string</a>, queueID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueUpdateParams">R2ConfigurationQueueUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueUpdateResponse">R2ConfigurationQueueUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.EventNotifications.R2.Configuration.Queues.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, bucketName <a href="https://pkg.go.dev/builtin#string">string</a>, queueID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueDeleteParams">R2ConfigurationQueueDeleteParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications">event_notifications</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/event_notifications#R2ConfigurationQueueDeleteResponseUnion">R2ConfigurationQueueDeleteResponseUnion</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# AIGateway

Response Types:
Expand Down
16 changes: 8 additions & 8 deletions argo/tieredcaching.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ func (r TieredCachingEditParamsValue) IsKnown() bool {
}

type TieredCachingEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TieredCachingEditResponse `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TieredCachingEditResponseEnvelopeSuccess `json:"success,required"`
Result TieredCachingEditResponse `json:"result"`
JSON tieredCachingEditResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -204,8 +204,8 @@ type TieredCachingEditResponseEnvelope struct {
type tieredCachingEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -239,11 +239,11 @@ type TieredCachingGetParams struct {
}

type TieredCachingGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TieredCachingGetResponse `json:"result,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TieredCachingGetResponseEnvelopeSuccess `json:"success,required"`
Result TieredCachingGetResponse `json:"result"`
JSON tieredCachingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -252,8 +252,8 @@ type TieredCachingGetResponseEnvelope struct {
type tieredCachingGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
40 changes: 20 additions & 20 deletions cache/cachereserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,23 +354,23 @@ func (r CacheReserveClearParams) MarshalJSON() (data []byte, err error) {
type CacheReserveClearResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
Result CacheReserveClearResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
Result CacheReserveClearResponse `json:"result"`
JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
}

// cacheReserveClearResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveClearResponseEnvelope]
type cacheReserveClearResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -428,25 +428,25 @@ func (r CacheReserveEditParamsValue) IsKnown() bool {
type CacheReserveEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
Result CacheReserveEditResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
Result CacheReserveEditResponse `json:"result"`
JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
}

// cacheReserveEditResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveEditResponseEnvelope]
type cacheReserveEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -482,25 +482,25 @@ type CacheReserveGetParams struct {
type CacheReserveGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
Result CacheReserveGetResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
Result CacheReserveGetResponse `json:"result"`
JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
}

// cacheReserveGetResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveGetResponseEnvelope]
type cacheReserveGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -536,23 +536,23 @@ type CacheReserveStatusParams struct {
type CacheReserveStatusResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
Result CacheReserveStatusResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
Result CacheReserveStatusResponse `json:"result"`
JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
}

// cacheReserveStatusResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveStatusResponseEnvelope]
type cacheReserveStatusResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
Loading

0 comments on commit 14af241

Please sign in to comment.