Skip to content

Commit cefb13e

Browse files
authored
fix(webhosting): add hosting domain status (scaleway#2428)
1 parent 5e95833 commit cefb13e

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

api/webhosting/v1/webhosting_sdk.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,23 +1219,31 @@ type HostingSummary struct {
12191219
// UpdatedAt: date on which the Web Hosting plan was last updated.
12201220
UpdatedAt *time.Time `json:"updated_at"`
12211221

1222-
// Status: status of the Web Hosting plan.
1222+
// Deprecated: Status: status of the Web Hosting plan.
12231223
// Default value: unknown_status
1224-
Status HostingSummaryStatus `json:"status"`
1224+
Status *HostingSummaryStatus `json:"status,omitempty"`
12251225

12261226
// Domain: main domain associated with the Web Hosting plan.
12271227
Domain string `json:"domain"`
12281228

12291229
// Protected: whether the hosting is protected or not.
12301230
Protected bool `json:"protected"`
12311231

1232-
// DNSStatus: DNS status of the Web Hosting plan.
1232+
// Deprecated: DNSStatus: DNS status of the Web Hosting plan.
12331233
// Default value: unknown_status
1234-
DNSStatus DNSRecordsStatus `json:"dns_status"`
1234+
DNSStatus *DNSRecordsStatus `json:"dns_status,omitempty"`
12351235

12361236
// OfferName: name of the active offer for the Web Hosting plan.
12371237
OfferName string `json:"offer_name"`
12381238

1239+
// HostingStatus: status of the Web Hosting plan.
1240+
// Default value: unknown_status
1241+
HostingStatus HostingStatus `json:"hosting_status"`
1242+
1243+
// DomainStatus: main domain status of the Web Hosting plan.
1244+
// Default value: unknown_status
1245+
DomainStatus DomainStatus `json:"domain_status"`
1246+
12391247
// Region: region where the Web Hosting plan is hosted.
12401248
Region scw.Region `json:"region"`
12411249
}
@@ -1666,9 +1674,9 @@ type Hosting struct {
16661674
// Tags: list of tags associated with the Web Hosting plan.
16671675
Tags []string `json:"tags"`
16681676

1669-
// DNSStatus: DNS status of the Web Hosting plan.
1677+
// Deprecated: DNSStatus: DNS status of the Web Hosting plan.
16701678
// Default value: unknown_status
1671-
DNSStatus DNSRecordsStatus `json:"dns_status"`
1679+
DNSStatus *DNSRecordsStatus `json:"dns_status,omitempty"`
16721680

16731681
// IPv4: current IPv4 address of the hosting.
16741682
IPv4 net.IP `json:"ipv4"`
@@ -1679,6 +1687,10 @@ type Hosting struct {
16791687
// User: details of the hosting user.
16801688
User *HostingUser `json:"user"`
16811689

1690+
// DomainStatus: main domain status of the Web Hosting plan.
1691+
// Default value: unknown_status
1692+
DomainStatus DomainStatus `json:"domain_status"`
1693+
16821694
// Region: region where the Web Hosting plan is hosted.
16831695
Region scw.Region `json:"region"`
16841696
}

0 commit comments

Comments
 (0)