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 #1848

Merged
merged 1 commit into from
Apr 26, 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.
Jump to
Jump to file
Failed to load files.
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: 1266
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e04cfc56c4a869fdc91838cb9891046cf1686ec4e45d7f7fa558cfc7e4072700.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e202d9b1bb049167a2efb5c3981c53af7bab82b6411bbbd684557eef5b435880.yml
6 changes: 4 additions & 2 deletions zones/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ type Zone struct {
ModifiedOn time.Time `json:"modified_on,required" format:"date-time"`
// The domain name
Name string `json:"name,required"`
// The name servers Cloudflare assigns to a zone
NameServers []string `json:"name_servers,required" format:"hostname"`
// DNS host at the time of switching to Cloudflare
OriginalDnshost string `json:"original_dnshost,required,nullable"`
// Original name servers before moving to Cloudflare Notes: Is this only available
// for full zones?
// Original name servers before moving to Cloudflare
OriginalNameServers []string `json:"original_name_servers,required,nullable" format:"hostname"`
// Registrar for the domain at the time of switching to Cloudflare
OriginalRegistrar string `json:"original_registrar,required,nullable"`
Expand All @@ -166,6 +167,7 @@ type zoneJSON struct {
Meta apijson.Field
ModifiedOn apijson.Field
Name apijson.Field
NameServers apijson.Field
OriginalDnshost apijson.Field
OriginalNameServers apijson.Field
OriginalRegistrar apijson.Field
Expand Down