Skip to content

Commit

Permalink
feat(api): api update (#3595)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 12, 2024
1 parent 72cb008 commit 94e12ac
Show file tree
Hide file tree
Showing 92 changed files with 560 additions and 2,473 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: 1365
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8ab175377b40ec09207fa70914e51f8bec9d6030f6f628635d56f4c3321d4809.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4593529df2c582c5e4de92308af748d9f8abbca6c92fff7e99e08bd463b7271e.yml
15 changes: 13 additions & 2 deletions accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,18 @@ type AccountSettings struct {
// See
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
// for more information.
//
// Deprecated in favor of
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
DefaultNameservers AccountSettingsDefaultNameservers `json:"default_nameservers"`
// Indicates whether membership in this account requires that Two-Factor
// Authentication is enabled
EnforceTwofactor bool `json:"enforce_twofactor"`
// Indicates whether new zones should use the account-level custom nameservers by
// default.
//
// Deprecated in favor of `default_nameservers`.
// Deprecated in favor of
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
UseAccountCustomNSByDefault bool `json:"use_account_custom_ns_by_default"`
JSON accountSettingsJSON `json:"-"`
}
Expand Down Expand Up @@ -217,6 +221,9 @@ func (r accountSettingsJSON) RawJSON() string {
// See
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
// for more information.
//
// Deprecated in favor of
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
type AccountSettingsDefaultNameservers string

const (
Expand Down Expand Up @@ -258,14 +265,18 @@ type AccountSettingsParam struct {
// See
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
// for more information.
//
// Deprecated in favor of
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
DefaultNameservers param.Field[AccountSettingsDefaultNameservers] `json:"default_nameservers"`
// Indicates whether membership in this account requires that Two-Factor
// Authentication is enabled
EnforceTwofactor param.Field[bool] `json:"enforce_twofactor"`
// Indicates whether new zones should use the account-level custom nameservers by
// default.
//
// Deprecated in favor of `default_nameservers`.
// Deprecated in favor of
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
UseAccountCustomNSByDefault param.Field[bool] `json:"use_account_custom_ns_by_default"`
}

Expand Down
28 changes: 0 additions & 28 deletions accounts/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,31 +127,6 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
// This is an alias to an internal type.
type ErrorData = shared.ErrorData

// This is an alias to an internal type.
type MemberParam = shared.MemberParam

// This is an alias to an internal type.
type MemberRoleParam = shared.MemberRoleParam

// This is an alias to an internal type.
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam

// A member's status in the account.
//
// This is an alias to an internal type.
type MemberStatus = shared.MemberStatus

// This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted

// This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending

// Details of the user associated to the membership.
//
// This is an alias to an internal type.
type MemberUserParam = shared.MemberUserParam

// This is an alias to an internal type.
type Permission = shared.Permission

Expand All @@ -174,9 +149,6 @@ type RatePlanParam = shared.RatePlanParam
// This is an alias to an internal type.
type ResponseInfo = shared.ResponseInfo

// This is an alias to an internal type.
type Role = shared.Role

// Direction to order DNS records in.
//
// This is an alias to an internal type.
Expand Down
Loading

0 comments on commit 94e12ac

Please sign in to comment.