Skip to content

Commit fadd4b5

Browse files
authored
fix(baremetal): add bandwidth_in_bps field for PrivateNetworkOption (#1511)
1 parent 8d23c3a commit fadd4b5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

packages/clients/src/api/baremetal/v1/marshalling.gen.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ const unmarshalPrivateNetworkOption = (data: unknown): PrivateNetworkOption => {
257257
)
258258
}
259259

260-
return {} as PrivateNetworkOption
260+
return {
261+
bandwidthInBps: data.bandwidth_in_bps,
262+
} as PrivateNetworkOption
261263
}
262264

263265
const unmarshalPublicBandwidthOption = (

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ export interface LicenseOption {
148148
osId: string
149149
}
150150

151-
export interface PrivateNetworkOption {}
151+
export interface PrivateNetworkOption {
152+
bandwidthInBps: number
153+
}
152154

153155
export interface PublicBandwidthOption {
154156
bandwidthInBps: number
@@ -233,7 +235,7 @@ export interface OfferOptionOffer {
233235
*/
234236
publicBandwidth?: PublicBandwidthOption
235237
/**
236-
* Private_network option.
238+
* Private_network option, contains the bandwidth_in_bps.
237239
*
238240
* One-of ('option'): at most one of 'license', 'publicBandwidth',
239241
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -335,7 +337,7 @@ export interface ServerOption {
335337
*/
336338
publicBandwidth?: PublicBandwidthOption
337339
/**
338-
* Private_network option.
340+
* Private_network option, contains the bandwidth_in_bps.
339341
*
340342
* One-of ('option'): at most one of 'license', 'publicBandwidth',
341343
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -492,7 +494,7 @@ export interface Option {
492494
*/
493495
publicBandwidth?: PublicBandwidthOption
494496
/**
495-
* Private_network option.
497+
* Private_network option, contains the bandwidth_in_bps.
496498
*
497499
* One-of ('option'): at most one of 'license', 'publicBandwidth',
498500
* 'privateNetwork', 'remoteAccess', 'certification' could be set.

0 commit comments

Comments
 (0)