Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 15, 2024
1 parent 47ad405 commit 49d6aec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions zones/dnssetting.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ func (r nameserverJSON) RawJSON() string {
type NameserverType string

const (
NameserverTypeCloudflareStandard NameserverType = "cloudflare.standard"
NameserverTypeCloudflareFoundationDNS NameserverType = "cloudflare.foundation_dns"
NameserverTypeCloudflareStandard NameserverType = "cloudflare.standard"
)

func (r NameserverType) IsKnown() bool {
switch r {
case NameserverTypeCloudflareStandard, NameserverTypeCloudflareFoundationDNS:
case NameserverTypeCloudflareStandard:
return true
}
return false
Expand Down Expand Up @@ -172,10 +171,10 @@ type DNSSettingEditResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
MultiProvider interface{} `json:"multi_provider,required"`
Nameservers interface{} `json:"nameservers,required"`
Result DNSSetting `json:"result,required"`
SecondaryOverrides interface{} `json:"secondary_overrides,required"`
// Whether the API call was successful
Success DNSSettingEditResponseEnvelopeSuccess `json:"success,required"`
Result DNSSetting `json:"result"`
JSON dnsSettingEditResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -187,9 +186,9 @@ type dnsSettingEditResponseEnvelopeJSON struct {
Messages apijson.Field
MultiProvider apijson.Field
Nameservers apijson.Field
Result apijson.Field
SecondaryOverrides apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -228,10 +227,10 @@ type DNSSettingGetResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
MultiProvider interface{} `json:"multi_provider,required"`
Nameservers interface{} `json:"nameservers,required"`
Result DNSSetting `json:"result,required"`
SecondaryOverrides interface{} `json:"secondary_overrides,required"`
// Whether the API call was successful
Success DNSSettingGetResponseEnvelopeSuccess `json:"success,required"`
Result DNSSetting `json:"result"`
JSON dnsSettingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -243,9 +242,9 @@ type dnsSettingGetResponseEnvelopeJSON struct {
Messages apijson.Field
MultiProvider apijson.Field
Nameservers apijson.Field
Result apijson.Field
SecondaryOverrides apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit 49d6aec

Please sign in to comment.