Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add field custom_partitioning_supported to OS #2206

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/baremetal/v1/baremetal_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ type OS struct {

// Allowed: defines if a specific Organization is allowed to install this OS type.
Allowed bool `json:"allowed"`

// CustomPartitioningSupported: defines if custom partitioning is supported by this OS.
CustomPartitioningSupported bool `json:"custom_partitioning_supported"`
}

// Offer: offer.
Expand Down Expand Up @@ -1765,7 +1768,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZoneNlAms2}
}
Expand Down Expand Up @@ -2680,7 +2682,6 @@ func NewPrivateNetworkAPI(client *scw.Client) *PrivateNetworkAPI {
client: client,
}
}

func (s *PrivateNetworkAPI) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar2}
}
Expand Down