Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #2962

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1351
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1a7e80427a54bacaccb1578cd0b22006ade1d93b9c8165400224d6953bc70e42.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-734dfe9af38dbc9ad91ff2aec4b69c3c0e98e139b73fd46390521dbb42f42d6f.yml
8 changes: 4 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6880,13 +6880,13 @@ Methods:

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponseUnion">OriginPostQuantumEncryptionUpdateResponseUnion</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponseUnion">OriginPostQuantumEncryptionGetResponseUnion</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponse">OriginPostQuantumEncryptionUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/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/v2/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/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponseUnion">OriginPostQuantumEncryptionUpdateResponseUnion</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/v2/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/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponseUnion">OriginPostQuantumEncryptionGetResponseUnion</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/v2/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/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/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/v2/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/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponse">OriginPostQuantumEncryptionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Speed

Expand Down
10 changes: 6 additions & 4 deletions argo/smartrouting.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ func (r *SmartRoutingService) Get(ctx context.Context, query SmartRoutingGetPara
return
}

// Union satisfied by [argo.SmartRoutingEditResponseUnknown] or
// [shared.UnionString].
// Union satisfied by
// [argo.SmartRoutingEditResponseUnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
// or [shared.UnionString].
type SmartRoutingEditResponseUnion interface {
ImplementsArgoSmartRoutingEditResponseUnion()
}
Expand All @@ -87,8 +88,9 @@ func init() {
)
}

// Union satisfied by [argo.SmartRoutingGetResponseUnknown] or
// [shared.UnionString].
// Union satisfied by
// [argo.SmartRoutingGetResponseUnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
// or [shared.UnionString].
type SmartRoutingGetResponseUnion interface {
ImplementsArgoSmartRoutingGetResponseUnion()
}
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
20 changes: 10 additions & 10 deletions cache/regionaltieredcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,22 @@ func (r RegionalTieredCacheEditParamsValue) IsKnown() bool {
type RegionalTieredCacheEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success RegionalTieredCacheEditResponseEnvelopeSuccess `json:"success,required"`
// Instructs Cloudflare to check a regional hub data center on the way to your
// upper tier. This can help improve performance for smart and custom tiered cache
// topologies.
Result RegionalTieredCacheEditResponse `json:"result,required"`
// Whether the API call was successful
Success RegionalTieredCacheEditResponseEnvelopeSuccess `json:"success,required"`
JSON regionalTieredCacheEditResponseEnvelopeJSON `json:"-"`
Result RegionalTieredCacheEditResponse `json:"result"`
JSON regionalTieredCacheEditResponseEnvelopeJSON `json:"-"`
}

// regionalTieredCacheEditResponseEnvelopeJSON contains the JSON metadata for the
// struct [RegionalTieredCacheEditResponseEnvelope]
type regionalTieredCacheEditResponseEnvelopeJSON 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 @@ -291,22 +291,22 @@ type RegionalTieredCacheGetParams struct {
type RegionalTieredCacheGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success RegionalTieredCacheGetResponseEnvelopeSuccess `json:"success,required"`
// Instructs Cloudflare to check a regional hub data center on the way to your
// upper tier. This can help improve performance for smart and custom tiered cache
// topologies.
Result RegionalTieredCacheGetResponse `json:"result,required"`
// Whether the API call was successful
Success RegionalTieredCacheGetResponseEnvelopeSuccess `json:"success,required"`
JSON regionalTieredCacheGetResponseEnvelopeJSON `json:"-"`
Result RegionalTieredCacheGetResponse `json:"result"`
JSON regionalTieredCacheGetResponseEnvelopeJSON `json:"-"`
}

// regionalTieredCacheGetResponseEnvelopeJSON contains the JSON metadata for the
// struct [RegionalTieredCacheGetResponseEnvelope]
type regionalTieredCacheGetResponseEnvelopeJSON 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