Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 30, 2024
1 parent f19dbb6 commit ddaf8e4
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 31 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-543a9898a4efc4501e7101d78908dcfaa303efd8f2abb7164299dd85be87749d.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-db82dd88520065dc6282d55691c415867cb115705691731e45ed70570bf0b2c4.yml
12 changes: 6 additions & 6 deletions email_routing/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ func (r AddressNewParams) MarshalJSON() (data []byte, err error) {
type AddressNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Address `json:"result,required"`
// Whether the API call was successful
Success AddressNewResponseEnvelopeSuccess `json:"success,required"`
Result Address `json:"result"`
JSON addressNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -159,8 +159,8 @@ type AddressNewResponseEnvelope struct {
type addressNewResponseEnvelopeJSON 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 @@ -242,9 +242,9 @@ func (r AddressListParamsVerified) IsKnown() bool {
type AddressDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Address `json:"result,required"`
// Whether the API call was successful
Success AddressDeleteResponseEnvelopeSuccess `json:"success,required"`
Result Address `json:"result"`
JSON addressDeleteResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -253,8 +253,8 @@ type AddressDeleteResponseEnvelope struct {
type addressDeleteResponseEnvelopeJSON 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 @@ -285,9 +285,9 @@ func (r AddressDeleteResponseEnvelopeSuccess) IsKnown() bool {
type AddressGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Address `json:"result,required"`
// Whether the API call was successful
Success AddressGetResponseEnvelopeSuccess `json:"success,required"`
Result Address `json:"result"`
JSON addressGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -296,8 +296,8 @@ type AddressGetResponseEnvelope struct {
type addressGetResponseEnvelopeJSON 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 email_routing/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ func (r DNSRecordType) IsKnown() bool {
type DNSGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result []DNSRecord `json:"result,required,nullable"`
// Whether the API call was successful
Success DNSGetResponseEnvelopeSuccess `json:"success,required"`
Result []DNSRecord `json:"result,nullable"`
ResultInfo DNSGetResponseEnvelopeResultInfo `json:"result_info"`
JSON dnsGetResponseEnvelopeJSON `json:"-"`
}
Expand All @@ -165,8 +165,8 @@ type DNSGetResponseEnvelope struct {
type dnsGetResponseEnvelopeJSON 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
12 changes: 6 additions & 6 deletions email_routing/emailrouting.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ func (r EmailRoutingDisableParams) MarshalJSON() (data []byte, err error) {
type EmailRoutingDisableResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Settings `json:"result,required"`
// Whether the API call was successful
Success EmailRoutingDisableResponseEnvelopeSuccess `json:"success,required"`
Result Settings `json:"result"`
JSON emailRoutingDisableResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -194,8 +194,8 @@ type EmailRoutingDisableResponseEnvelope struct {
type emailRoutingDisableResponseEnvelopeJSON 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 @@ -234,9 +234,9 @@ func (r EmailRoutingEnableParams) MarshalJSON() (data []byte, err error) {
type EmailRoutingEnableResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Settings `json:"result,required"`
// Whether the API call was successful
Success EmailRoutingEnableResponseEnvelopeSuccess `json:"success,required"`
Result Settings `json:"result"`
JSON emailRoutingEnableResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -245,8 +245,8 @@ type EmailRoutingEnableResponseEnvelope struct {
type emailRoutingEnableResponseEnvelopeJSON 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 @@ -277,9 +277,9 @@ func (r EmailRoutingEnableResponseEnvelopeSuccess) IsKnown() bool {
type EmailRoutingGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Settings `json:"result,required"`
// Whether the API call was successful
Success EmailRoutingGetResponseEnvelopeSuccess `json:"success,required"`
Result Settings `json:"result"`
JSON emailRoutingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -288,8 +288,8 @@ type EmailRoutingGetResponseEnvelope struct {
type emailRoutingGetResponseEnvelopeJSON 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 email_routing/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ func (r RuleNewParamsEnabled) IsKnown() bool {
type RuleNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result EmailRoutingRule `json:"result,required"`
// Whether the API call was successful
Success RuleNewResponseEnvelopeSuccess `json:"success,required"`
Result EmailRoutingRule `json:"result"`
JSON ruleNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -340,8 +340,8 @@ type RuleNewResponseEnvelope struct {
type ruleNewResponseEnvelopeJSON 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 @@ -405,9 +405,9 @@ func (r RuleUpdateParamsEnabled) IsKnown() bool {
type RuleUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result EmailRoutingRule `json:"result,required"`
// Whether the API call was successful
Success RuleUpdateResponseEnvelopeSuccess `json:"success,required"`
Result EmailRoutingRule `json:"result"`
JSON ruleUpdateResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -416,8 +416,8 @@ type RuleUpdateResponseEnvelope struct {
type ruleUpdateResponseEnvelopeJSON 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 @@ -481,9 +481,9 @@ func (r RuleListParamsEnabled) IsKnown() bool {
type RuleDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result EmailRoutingRule `json:"result,required"`
// Whether the API call was successful
Success RuleDeleteResponseEnvelopeSuccess `json:"success,required"`
Result EmailRoutingRule `json:"result"`
JSON ruleDeleteResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -492,8 +492,8 @@ type RuleDeleteResponseEnvelope struct {
type ruleDeleteResponseEnvelopeJSON 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 @@ -524,9 +524,9 @@ func (r RuleDeleteResponseEnvelopeSuccess) IsKnown() bool {
type RuleGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result EmailRoutingRule `json:"result,required"`
// Whether the API call was successful
Success RuleGetResponseEnvelopeSuccess `json:"success,required"`
Result EmailRoutingRule `json:"result"`
JSON ruleGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -535,8 +535,8 @@ type RuleGetResponseEnvelope struct {
type ruleGetResponseEnvelopeJSON 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 email_routing/rulecatchall.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,11 @@ func (r RuleCatchAllUpdateParamsEnabled) IsKnown() bool {
}

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

Expand All @@ -309,8 +309,8 @@ type RuleCatchAllUpdateResponseEnvelope struct {
type ruleCatchAllUpdateResponseEnvelopeJSON 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 @@ -339,11 +339,11 @@ func (r RuleCatchAllUpdateResponseEnvelopeSuccess) IsKnown() bool {
}

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

Expand All @@ -352,8 +352,8 @@ type RuleCatchAllGetResponseEnvelope struct {
type ruleCatchAllGetResponseEnvelopeJSON 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 ddaf8e4

Please sign in to comment.