Skip to content

Commit 94e12ac

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#3595)
1 parent 72cb008 commit 94e12ac

92 files changed

Lines changed: 560 additions & 2473 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1365
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8ab175377b40ec09207fa70914e51f8bec9d6030f6f628635d56f4c3321d4809.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4593529df2c582c5e4de92308af748d9f8abbca6c92fff7e99e08bd463b7271e.yml

‎accounts/account.go‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,18 @@ type AccountSettings struct {
177177
// See
178178
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
179179
// for more information.
180+
//
181+
// Deprecated in favor of
182+
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
180183
DefaultNameservers AccountSettingsDefaultNameservers `json:"default_nameservers"`
181184
// Indicates whether membership in this account requires that Two-Factor
182185
// Authentication is enabled
183186
EnforceTwofactor bool `json:"enforce_twofactor"`
184187
// Indicates whether new zones should use the account-level custom nameservers by
185188
// default.
186189
//
187-
// Deprecated in favor of `default_nameservers`.
190+
// Deprecated in favor of
191+
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
188192
UseAccountCustomNSByDefault bool `json:"use_account_custom_ns_by_default"`
189193
JSON accountSettingsJSON `json:"-"`
190194
}
@@ -217,6 +221,9 @@ func (r accountSettingsJSON) RawJSON() string {
217221
// See
218222
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
219223
// for more information.
224+
//
225+
// Deprecated in favor of
226+
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
220227
type AccountSettingsDefaultNameservers string
221228

222229
const (
@@ -258,14 +265,18 @@ type AccountSettingsParam struct {
258265
// See
259266
// [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
260267
// for more information.
268+
//
269+
// Deprecated in favor of
270+
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
261271
DefaultNameservers param.Field[AccountSettingsDefaultNameservers] `json:"default_nameservers"`
262272
// Indicates whether membership in this account requires that Two-Factor
263273
// Authentication is enabled
264274
EnforceTwofactor param.Field[bool] `json:"enforce_twofactor"`
265275
// Indicates whether new zones should use the account-level custom nameservers by
266276
// default.
267277
//
268-
// Deprecated in favor of `default_nameservers`.
278+
// Deprecated in favor of
279+
// [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
269280
UseAccountCustomNSByDefault param.Field[bool] `json:"use_account_custom_ns_by_default"`
270281
}
271282

‎accounts/aliases.go‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -127,31 +127,6 @@ const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
127127
// This is an alias to an internal type.
128128
type ErrorData = shared.ErrorData
129129

130-
// This is an alias to an internal type.
131-
type MemberParam = shared.MemberParam
132-
133-
// This is an alias to an internal type.
134-
type MemberRoleParam = shared.MemberRoleParam
135-
136-
// This is an alias to an internal type.
137-
type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam
138-
139-
// A member's status in the account.
140-
//
141-
// This is an alias to an internal type.
142-
type MemberStatus = shared.MemberStatus
143-
144-
// This is an alias to an internal value.
145-
const MemberStatusAccepted = shared.MemberStatusAccepted
146-
147-
// This is an alias to an internal value.
148-
const MemberStatusPending = shared.MemberStatusPending
149-
150-
// Details of the user associated to the membership.
151-
//
152-
// This is an alias to an internal type.
153-
type MemberUserParam = shared.MemberUserParam
154-
155130
// This is an alias to an internal type.
156131
type Permission = shared.Permission
157132

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

177-
// This is an alias to an internal type.
178-
type Role = shared.Role
179-
180152
// Direction to order DNS records in.
181153
//
182154
// This is an alias to an internal type.

0 commit comments

Comments
 (0)