@@ -170,44 +170,18 @@ func (r accountJSON) RawJSON() string {
170
170
type AccountSettings struct {
171
171
// Sets an abuse contact email to notify for abuse reports.
172
172
AbuseContactEmail string `json:"abuse_contact_email"`
173
- // Specifies the default nameservers to be used for new zones added to this
174
- // account.
175
- //
176
- // - `cloudflare.standard` for Cloudflare-branded nameservers
177
- // - `custom.account` for account custom nameservers
178
- // - `custom.tenant` for tenant custom nameservers
179
- //
180
- // See
181
- // [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
182
- // for more information.
183
- //
184
- // Deprecated in favor of
185
- // [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
186
- //
187
- // Deprecated: deprecated
188
- DefaultNameservers AccountSettingsDefaultNameservers `json:"default_nameservers"`
189
173
// Indicates whether membership in this account requires that Two-Factor
190
174
// Authentication is enabled
191
- EnforceTwofactor bool `json:"enforce_twofactor"`
192
- // Indicates whether new zones should use the account-level custom nameservers by
193
- // default.
194
- //
195
- // Deprecated in favor of
196
- // [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
197
- //
198
- // Deprecated: deprecated
199
- UseAccountCustomNSByDefault bool `json:"use_account_custom_ns_by_default"`
200
- JSON accountSettingsJSON `json:"-"`
175
+ EnforceTwofactor bool `json:"enforce_twofactor"`
176
+ JSON accountSettingsJSON `json:"-"`
201
177
}
202
178
203
179
// accountSettingsJSON contains the JSON metadata for the struct [AccountSettings]
204
180
type accountSettingsJSON struct {
205
- AbuseContactEmail apijson.Field
206
- DefaultNameservers apijson.Field
207
- EnforceTwofactor apijson.Field
208
- UseAccountCustomNSByDefault apijson.Field
209
- raw string
210
- ExtraFields map [string ]apijson.Field
181
+ AbuseContactEmail apijson.Field
182
+ EnforceTwofactor apijson.Field
183
+ raw string
184
+ ExtraFields map [string ]apijson.Field
211
185
}
212
186
213
187
func (r * AccountSettings ) UnmarshalJSON (data []byte ) (err error ) {
@@ -218,35 +192,6 @@ func (r accountSettingsJSON) RawJSON() string {
218
192
return r .raw
219
193
}
220
194
221
- // Specifies the default nameservers to be used for new zones added to this
222
- // account.
223
- //
224
- // - `cloudflare.standard` for Cloudflare-branded nameservers
225
- // - `custom.account` for account custom nameservers
226
- // - `custom.tenant` for tenant custom nameservers
227
- //
228
- // See
229
- // [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
230
- // for more information.
231
- //
232
- // Deprecated in favor of
233
- // [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
234
- type AccountSettingsDefaultNameservers string
235
-
236
- const (
237
- AccountSettingsDefaultNameserversCloudflareStandard AccountSettingsDefaultNameservers = "cloudflare.standard"
238
- AccountSettingsDefaultNameserversCustomAccount AccountSettingsDefaultNameservers = "custom.account"
239
- AccountSettingsDefaultNameserversCustomTenant AccountSettingsDefaultNameservers = "custom.tenant"
240
- )
241
-
242
- func (r AccountSettingsDefaultNameservers ) IsKnown () bool {
243
- switch r {
244
- case AccountSettingsDefaultNameserversCloudflareStandard , AccountSettingsDefaultNameserversCustomAccount , AccountSettingsDefaultNameserversCustomTenant :
245
- return true
246
- }
247
- return false
248
- }
249
-
250
195
type AccountParam struct {
251
196
// Account name
252
197
Name param.Field [string ] `json:"name,required"`
@@ -262,33 +207,9 @@ func (r AccountParam) MarshalJSON() (data []byte, err error) {
262
207
type AccountSettingsParam struct {
263
208
// Sets an abuse contact email to notify for abuse reports.
264
209
AbuseContactEmail param.Field [string ] `json:"abuse_contact_email"`
265
- // Specifies the default nameservers to be used for new zones added to this
266
- // account.
267
- //
268
- // - `cloudflare.standard` for Cloudflare-branded nameservers
269
- // - `custom.account` for account custom nameservers
270
- // - `custom.tenant` for tenant custom nameservers
271
- //
272
- // See
273
- // [Custom Nameservers](https://developers.cloudflare.com/dns/additional-options/custom-nameservers/)
274
- // for more information.
275
- //
276
- // Deprecated in favor of
277
- // [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
278
- //
279
- // Deprecated: deprecated
280
- DefaultNameservers param.Field [AccountSettingsDefaultNameservers ] `json:"default_nameservers"`
281
210
// Indicates whether membership in this account requires that Two-Factor
282
211
// Authentication is enabled
283
212
EnforceTwofactor param.Field [bool ] `json:"enforce_twofactor"`
284
- // Indicates whether new zones should use the account-level custom nameservers by
285
- // default.
286
- //
287
- // Deprecated in favor of
288
- // [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-update-dns-settings).
289
- //
290
- // Deprecated: deprecated
291
- UseAccountCustomNSByDefault param.Field [bool ] `json:"use_account_custom_ns_by_default"`
292
213
}
293
214
294
215
func (r AccountSettingsParam ) MarshalJSON () (data []byte , err error ) {
0 commit comments