@@ -987,6 +987,21 @@ type CreateDatabaseRequestUser struct {
987987 Password string `json:"password"`
988988}
989989
990+ // AutoConfigDomainDNS: auto config domain dns.
991+ type AutoConfigDomainDNS struct {
992+ // Nameservers: whether or not to synchronize domain nameservers.
993+ Nameservers bool `json:"nameservers"`
994+
995+ // WebRecords: whether or not to synchronize web records.
996+ WebRecords bool `json:"web_records"`
997+
998+ // MailRecords: whether or not to synchronize mail records.
999+ MailRecords bool `json:"mail_records"`
1000+
1001+ // AllRecords: whether or not to synchronize all types of records. Takes priority over the other fields.
1002+ AllRecords bool `json:"all_records"`
1003+ }
1004+
9901005// CreateHostingRequestDomainConfiguration: create hosting request domain configuration.
9911006type CreateHostingRequestDomainConfiguration struct {
9921007 UpdateNameservers bool `json:"update_nameservers"`
@@ -1314,20 +1329,23 @@ type DNSAPISyncDomainDNSRecordsRequest struct {
13141329 // Domain: domain for which the DNS records will be synchronized.
13151330 Domain string `json:"-"`
13161331
1317- // UpdateWebRecords: whether or not to synchronize the web records.
1318- UpdateWebRecords bool `json:"update_web_records"`
1332+ // Deprecated: UpdateWebRecords: whether or not to synchronize the web records (deprecated, use auto_config_domain_dns) .
1333+ UpdateWebRecords * bool `json:"update_web_records,omitempty "`
13191334
1320- // UpdateMailRecords: whether or not to synchronize the mail records.
1321- UpdateMailRecords bool `json:"update_mail_records"`
1335+ // Deprecated: UpdateMailRecords: whether or not to synchronize the mail records (deprecated, use auto_config_domain_dns) .
1336+ UpdateMailRecords * bool `json:"update_mail_records,omitempty "`
13221337
1323- // UpdateAllRecords: whether or not to synchronize all types of records. This one has priority.
1324- UpdateAllRecords bool `json:"update_all_records"`
1338+ // Deprecated: UpdateAllRecords: whether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns) .
1339+ UpdateAllRecords * bool `json:"update_all_records,omitempty "`
13251340
1326- // UpdateNameservers: whether or not to synchronize domain nameservers.
1327- UpdateNameservers bool `json:"update_nameservers"`
1341+ // Deprecated: UpdateNameservers: whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns) .
1342+ UpdateNameservers * bool `json:"update_nameservers,omitempty "`
13281343
13291344 // CustomRecords: custom records to synchronize.
13301345 CustomRecords []* SyncDomainDNSRecordsRequestRecord `json:"custom_records"`
1346+
1347+ // AutoConfigDomainDNS: whether or not to synchronize each types of records.
1348+ AutoConfigDomainDNS * AutoConfigDomainDNS `json:"auto_config_domain_dns,omitempty"`
13311349}
13321350
13331351// DNSRecords: dns records.
@@ -1528,8 +1546,11 @@ type Domain struct {
15281546 // AvailableActions: a list of actions that can be performed on the domain.
15291547 AvailableActions []DomainAction `json:"available_actions"`
15301548
1531- // AvailableDNSActions: a list of DNS-related actions that can be auto configured for the domain.
1532- AvailableDNSActions []DomainDNSAction `json:"available_dns_actions"`
1549+ // Deprecated: AvailableDNSActions: a list of DNS-related actions that can be auto configured for the domain (deprecated, use auto_config_domain_dns instead).
1550+ AvailableDNSActions * []DomainDNSAction `json:"available_dns_actions,omitempty"`
1551+
1552+ // AutoConfigDomainDNS: whether or not to synchronize each type of record.
1553+ AutoConfigDomainDNS * AutoConfigDomainDNS `json:"auto_config_domain_dns"`
15331554}
15341555
15351556// FtpAccountAPIChangeFtpAccountPasswordRequest: ftp account api change ftp account password request.
@@ -1677,11 +1698,14 @@ type HostingAPICreateHostingRequest struct {
16771698 // Default value: unknown_language_code
16781699 Language std.LanguageCode `json:"language"`
16791700
1680- // DomainConfiguration: indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements.
1701+ // Deprecated: DomainConfiguration: indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_config_domain_dns instead) .
16811702 DomainConfiguration * CreateHostingRequestDomainConfiguration `json:"domain_configuration,omitempty"`
16821703
16831704 // SkipWelcomeEmail: indicates whether to skip a welcome email to the contact email containing hosting info.
16841705 SkipWelcomeEmail * bool `json:"skip_welcome_email,omitempty"`
1706+
1707+ // AutoConfigDomainDNS: indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_update_* fields instead).
1708+ AutoConfigDomainDNS * AutoConfigDomainDNS `json:"auto_config_domain_dns,omitempty"`
16851709}
16861710
16871711// HostingAPICreateSessionRequest: hosting api create session request.
0 commit comments