Skip to content

Commit f4d9ed3

Browse files
authored
fix(baremetal): add bandwidth_in_bps field for PrivateNetworkOption (scaleway#2264)
1 parent 8ca184d commit f4d9ed3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

api/baremetal/v1/baremetal_sdk.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ type LicenseOption struct {
903903

904904
// PrivateNetworkOption: private network option.
905905
type PrivateNetworkOption struct {
906+
BandwidthInBps uint64 `json:"bandwidth_in_bps"`
906907
}
907908

908909
// PublicBandwidthOption: public bandwidth option.
@@ -1009,7 +1010,7 @@ type OfferOptionOffer struct {
10091010
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
10101011
PublicBandwidth *PublicBandwidthOption `json:"public_bandwidth,omitempty"`
10111012

1012-
// PrivateNetwork: private_network option.
1013+
// PrivateNetwork: private_network option, contains the bandwidth_in_bps.
10131014
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
10141015
PrivateNetwork *PrivateNetworkOption `json:"private_network,omitempty"`
10151016

@@ -1118,7 +1119,7 @@ type ServerOption struct {
11181119
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
11191120
PublicBandwidth *PublicBandwidthOption `json:"public_bandwidth,omitempty"`
11201121

1121-
// PrivateNetwork: private_network option.
1122+
// PrivateNetwork: private_network option, contains the bandwidth_in_bps.
11221123
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
11231124
PrivateNetwork *PrivateNetworkOption `json:"private_network,omitempty"`
11241125

@@ -1302,7 +1303,7 @@ type Option struct {
13021303
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
13031304
PublicBandwidth *PublicBandwidthOption `json:"public_bandwidth,omitempty"`
13041305

1305-
// PrivateNetwork: private_network option.
1306+
// PrivateNetwork: private_network option, contains the bandwidth_in_bps.
13061307
// Precisely one of License, PublicBandwidth, PrivateNetwork, RemoteAccess, Certification must be set.
13071308
PrivateNetwork *PrivateNetworkOption `json:"private_network,omitempty"`
13081309

0 commit comments

Comments
 (0)