Skip to content

Commit e4b0832

Browse files
authored
fix(webhosting): add dns autoconfig none option (scaleway#2484)
1 parent 0f59cae commit e4b0832

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

api/webhosting/v1/webhosting_sdk.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,9 @@ type AutoConfigDomainDNS struct {
10001000

10011001
// AllRecords: whether or not to synchronize all types of records. Takes priority over the other fields.
10021002
AllRecords bool `json:"all_records"`
1003+
1004+
// None: no automatic domain configuration. Users must configure their domain for the Web Hosting to work.
1005+
None bool `json:"none"`
10031006
}
10041007

10051008
// CreateHostingRequestDomainConfiguration: create hosting request domain configuration.
@@ -1341,8 +1344,8 @@ type DNSAPISyncDomainDNSRecordsRequest struct {
13411344
// Deprecated: UpdateNameservers: whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns).
13421345
UpdateNameservers *bool `json:"update_nameservers,omitempty"`
13431346

1344-
// CustomRecords: custom records to synchronize.
1345-
CustomRecords []*SyncDomainDNSRecordsRequestRecord `json:"custom_records"`
1347+
// Deprecated: CustomRecords: custom records to synchronize.
1348+
CustomRecords *[]*SyncDomainDNSRecordsRequestRecord `json:"custom_records,omitempty"`
13461349

13471350
// AutoConfigDomainDNS: whether or not to synchronize each types of records.
13481351
AutoConfigDomainDNS *AutoConfigDomainDNS `json:"auto_config_domain_dns,omitempty"`
@@ -1360,8 +1363,11 @@ type DNSRecords struct {
13601363
// Default value: unknown_status
13611364
Status DNSRecordsStatus `json:"status"`
13621365

1363-
// DNSConfig: records dns auto configuration settings.
1364-
DNSConfig []DomainDNSAction `json:"dns_config"`
1366+
// Deprecated: DNSConfig: records dns auto configuration settings (deprecated, use auto_config_domain_dns).
1367+
DNSConfig *[]DomainDNSAction `json:"dns_config,omitempty"`
1368+
1369+
// AutoConfigDomainDNS: whether or not to synchronize each types of records.
1370+
AutoConfigDomainDNS *AutoConfigDomainDNS `json:"auto_config_domain_dns"`
13651371
}
13661372

13671373
// DatabaseAPIAssignDatabaseUserRequest: database api assign database user request.

0 commit comments

Comments
 (0)