Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 1ca418c commit fa9e05d
Show file tree
Hide file tree
Showing 25 changed files with 179 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1267
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-efb5805d496f252c658aad63c93537ff3b2ff4c164999f326a7061d0b22866a4.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0afa9378dad17dedd91687a59735a917fefb1adadc097a7902ccaae3ebdda360.yml
8 changes: 4 additions & 4 deletions acm/totaltls.go
Expand Up @@ -210,9 +210,9 @@ func (r TotalTLSNewParamsCertificateAuthority) IsKnown() bool {
type TotalTLSNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TotalTLSNewResponse `json:"result,required"`
// Whether the API call was successful
Success TotalTLSNewResponseEnvelopeSuccess `json:"success,required"`
Result TotalTLSNewResponse `json:"result"`
JSON totalTLSNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -221,8 +221,8 @@ type TotalTLSNewResponseEnvelope struct {
type totalTLSNewResponseEnvelopeJSON 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 @@ -258,9 +258,9 @@ type TotalTLSGetParams struct {
type TotalTLSGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TotalTLSGetResponse `json:"result,required"`
// Whether the API call was successful
Success TotalTLSGetResponseEnvelopeSuccess `json:"success,required"`
Result TotalTLSGetResponse `json:"result"`
JSON totalTLSGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -269,8 +269,8 @@ type TotalTLSGetResponseEnvelope struct {
type totalTLSGetResponseEnvelopeJSON 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
16 changes: 8 additions & 8 deletions certificate_authorities/hostnameassociation.go
Expand Up @@ -129,11 +129,11 @@ func (r HostnameAssociationUpdateParams) MarshalJSON() (data []byte, err error)
}

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

Expand All @@ -142,8 +142,8 @@ type HostnameAssociationUpdateResponseEnvelope struct {
type hostnameAssociationUpdateResponseEnvelopeJSON 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 @@ -190,11 +190,11 @@ func (r HostnameAssociationGetParams) URLQuery() (v url.Values) {
}

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

Expand All @@ -203,8 +203,8 @@ type HostnameAssociationGetResponseEnvelope struct {
type hostnameAssociationGetResponseEnvelopeJSON 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
16 changes: 8 additions & 8 deletions client_certificates/clientcertificate.go
Expand Up @@ -247,9 +247,9 @@ func (r ClientCertificateNewParams) MarshalJSON() (data []byte, err error) {
type ClientCertificateNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ClientCertificate `json:"result,required"`
// Whether the API call was successful
Success ClientCertificateNewResponseEnvelopeSuccess `json:"success,required"`
Result ClientCertificate `json:"result"`
JSON clientCertificateNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -258,8 +258,8 @@ type ClientCertificateNewResponseEnvelope struct {
type clientCertificateNewResponseEnvelopeJSON 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 @@ -338,9 +338,9 @@ type ClientCertificateDeleteParams struct {
type ClientCertificateDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ClientCertificate `json:"result,required"`
// Whether the API call was successful
Success ClientCertificateDeleteResponseEnvelopeSuccess `json:"success,required"`
Result ClientCertificate `json:"result"`
JSON clientCertificateDeleteResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -349,8 +349,8 @@ type ClientCertificateDeleteResponseEnvelope struct {
type clientCertificateDeleteResponseEnvelopeJSON 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 @@ -386,9 +386,9 @@ type ClientCertificateEditParams struct {
type ClientCertificateEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ClientCertificate `json:"result,required"`
// Whether the API call was successful
Success ClientCertificateEditResponseEnvelopeSuccess `json:"success,required"`
Result ClientCertificate `json:"result"`
JSON clientCertificateEditResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -397,8 +397,8 @@ type ClientCertificateEditResponseEnvelope struct {
type clientCertificateEditResponseEnvelopeJSON 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 @@ -434,9 +434,9 @@ type ClientCertificateGetParams struct {
type ClientCertificateGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ClientCertificate `json:"result,required"`
// Whether the API call was successful
Success ClientCertificateGetResponseEnvelopeSuccess `json:"success,required"`
Result ClientCertificate `json:"result"`
JSON clientCertificateGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -445,8 +445,8 @@ type ClientCertificateGetResponseEnvelope struct {
type clientCertificateGetResponseEnvelopeJSON 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
32 changes: 16 additions & 16 deletions custom_certificates/customcertificate.go
Expand Up @@ -409,11 +409,11 @@ func (r CustomCertificateNewParamsType) IsKnown() bool {
}

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

Expand All @@ -422,8 +422,8 @@ type CustomCertificateNewResponseEnvelope struct {
type customCertificateNewResponseEnvelopeJSON 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 @@ -514,11 +514,11 @@ type CustomCertificateDeleteParams struct {
}

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

Expand All @@ -527,8 +527,8 @@ type CustomCertificateDeleteResponseEnvelope struct {
type customCertificateDeleteResponseEnvelopeJSON 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 @@ -593,11 +593,11 @@ func (r CustomCertificateEditParams) MarshalJSON() (data []byte, err error) {
}

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

Expand All @@ -606,8 +606,8 @@ type CustomCertificateEditResponseEnvelope struct {
type customCertificateEditResponseEnvelopeJSON 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 @@ -641,11 +641,11 @@ type CustomCertificateGetParams struct {
}

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

Expand All @@ -654,8 +654,8 @@ type CustomCertificateGetResponseEnvelope struct {
type customCertificateGetResponseEnvelopeJSON 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
4 changes: 2 additions & 2 deletions custom_certificates/prioritize.go
Expand Up @@ -72,9 +72,9 @@ func (r PrioritizeUpdateParamsCertificate) MarshalJSON() (data []byte, err error
type PrioritizeUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result []CustomCertificate `json:"result,required,nullable"`
// Whether the API call was successful
Success PrioritizeUpdateResponseEnvelopeSuccess `json:"success,required"`
Result []CustomCertificate `json:"result,nullable"`
ResultInfo PrioritizeUpdateResponseEnvelopeResultInfo `json:"result_info"`
JSON prioritizeUpdateResponseEnvelopeJSON `json:"-"`
}
Expand All @@ -84,8 +84,8 @@ type PrioritizeUpdateResponseEnvelope struct {
type prioritizeUpdateResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
ResultInfo apijson.Field
raw string
ExtraFields map[string]apijson.Field
Expand Down
24 changes: 12 additions & 12 deletions custom_hostnames/customhostname.go
Expand Up @@ -2264,11 +2264,11 @@ func (r CustomHostnameNewParamsCustomMetadata) MarshalJSON() (data []byte, err e
}

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

Expand All @@ -2277,8 +2277,8 @@ type CustomHostnameNewResponseEnvelope struct {
type customHostnameNewResponseEnvelopeJSON 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 @@ -2553,11 +2553,11 @@ func (r CustomHostnameEditParamsSSLSettingsTLS1_3) IsKnown() bool {
}

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

Expand All @@ -2566,8 +2566,8 @@ type CustomHostnameEditResponseEnvelope struct {
type customHostnameEditResponseEnvelopeJSON 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 @@ -2601,11 +2601,11 @@ type CustomHostnameGetParams struct {
}

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

Expand All @@ -2614,8 +2614,8 @@ type CustomHostnameGetResponseEnvelope struct {
type customHostnameGetResponseEnvelopeJSON 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

0 comments on commit fa9e05d

Please sign in to comment.