Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1866)
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 202f084 commit 692ea51
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1259
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f0167c5fee5c0cadf72c222f47f8fc3ba43905607b21f6a88853c061117b77b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-543a9898a4efc4501e7101d78908dcfaa303efd8f2abb7164299dd85be87749d.yml
8 changes: 4 additions & 4 deletions brand_protection/brandprotection.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ func (r BrandProtectionSubmitParams) MarshalJSON() (data []byte, err error) {
type BrandProtectionSubmitResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Submit `json:"result,required"`
// Whether the API call was successful
Success BrandProtectionSubmitResponseEnvelopeSuccess `json:"success,required"`
Result Submit `json:"result"`
JSON brandProtectionSubmitResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -336,8 +336,8 @@ type BrandProtectionSubmitResponseEnvelope struct {
type brandProtectionSubmitResponseEnvelopeJSON 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 @@ -398,9 +398,9 @@ func (r BrandProtectionURLInfoParamsURLIDParam) URLQuery() (v url.Values) {
type BrandProtectionURLInfoResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Info `json:"result,required"`
// Whether the API call was successful
Success BrandProtectionURLInfoResponseEnvelopeSuccess `json:"success,required"`
Result Info `json:"result"`
JSON brandProtectionURLInfoResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -409,8 +409,8 @@ type BrandProtectionURLInfoResponseEnvelope struct {
type brandProtectionURLInfoResponseEnvelopeJSON 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 intel/asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ type ASNGetParams struct {
type ASNGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result shared.ASN `json:"result,required"`
// Whether the API call was successful
Success ASNGetResponseEnvelopeSuccess `json:"success,required"`
Result shared.ASN `json:"result"`
JSON asnGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -65,8 +65,8 @@ type ASNGetResponseEnvelope struct {
type asnGetResponseEnvelopeJSON 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 intel/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ func (r dnsReverseRecordJSON) RawJSON() string {
type DNSListResponse struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result DNS `json:"result,required"`
// Whether the API call was successful
Success DNSListResponseSuccess `json:"success,required"`
Result DNS `json:"result"`
JSON dnsListResponseJSON `json:"-"`
}

// dnsListResponseJSON contains the JSON metadata for the struct [DNSListResponse]
type dnsListResponseJSON 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 intel/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ func (r DomainGetParams) URLQuery() (v url.Values) {
type DomainGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Domain `json:"result,required"`
// Whether the API call was successful
Success DomainGetResponseEnvelopeSuccess `json:"success,required"`
Result Domain `json:"result"`
JSON domainGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -250,8 +250,8 @@ type DomainGetResponseEnvelope struct {
type domainGetResponseEnvelopeJSON 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
8 changes: 4 additions & 4 deletions intel/miscategorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ func (r MiscategorizationNewParamsIndicatorType) IsKnown() bool {
}

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

Expand All @@ -119,8 +119,8 @@ type MiscategorizationNewResponseEnvelope struct {
type miscategorizationNewResponseEnvelopeJSON 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 intel/whois.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ func (r WhoisGetParams) URLQuery() (v url.Values) {
type WhoisGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Whois `json:"result,required"`
// Whether the API call was successful
Success WhoisGetResponseEnvelopeSuccess `json:"success,required"`
Result Whois `json:"result"`
JSON whoisGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -111,8 +111,8 @@ type WhoisGetResponseEnvelope struct {
type whoisGetResponseEnvelopeJSON 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 692ea51

Please sign in to comment.