Skip to content

Commit 4f8d30f

Browse files
committed
feat: update generated APIs
1 parent c87d8dd commit 4f8d30f

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

api/webhosting/v1/webhosting_sdk.go

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,21 @@ type HostingDomainCustomDomain struct {
12401240
AutoConfigDomainDNS *AutoConfigDomainDNS `json:"auto_config_domain_dns"`
12411241
}
12421242

1243+
// ControlPanel: control panel.
1244+
type ControlPanel struct {
1245+
// Name: control panel name.
1246+
Name string `json:"name"`
1247+
1248+
// Available: define if the control panel type is available to order.
1249+
Available bool `json:"available"`
1250+
1251+
// LogoURL: URL of the control panel's logo.
1252+
LogoURL string `json:"logo_url"`
1253+
1254+
// AvailableLanguages: list of available languages for the control panel.
1255+
AvailableLanguages []std.LanguageCode `json:"available_languages"`
1256+
}
1257+
12431258
// OfferOption: offer option.
12441259
type OfferOption struct {
12451260
// ID: option ID.
@@ -1438,6 +1453,9 @@ type Offer struct {
14381453
// Default value: unknown_warning
14391454
QuotaWarning OfferOptionWarning `json:"quota_warning"`
14401455

1456+
// ControlPanels: lists available control panels for the specified offer.
1457+
ControlPanels []*ControlPanel `json:"control_panels"`
1458+
14411459
// Region: region where the offer is hosted.
14421460
Region scw.Region `json:"region"`
14431461
}
@@ -1493,21 +1511,6 @@ type Backup struct {
14931511
TotalItems uint32 `json:"total_items"`
14941512
}
14951513

1496-
// ControlPanel: control panel.
1497-
type ControlPanel struct {
1498-
// Name: control panel name.
1499-
Name string `json:"name"`
1500-
1501-
// Available: define if the control panel type is available to order.
1502-
Available bool `json:"available"`
1503-
1504-
// LogoURL: URL of the control panel's logo.
1505-
LogoURL string `json:"logo_url"`
1506-
1507-
// AvailableLanguages: list of available languages for the control panel.
1508-
AvailableLanguages []std.LanguageCode `json:"available_languages"`
1509-
}
1510-
15111514
// DatabaseUser: database user.
15121515
type DatabaseUser struct {
15131516
// Username: name of the database user.

0 commit comments

Comments
 (0)