Skip to content

Commit 373706c

Browse files
authored
feat(baremetal): add privateBandwidth, sharedBandwidth and tags to Offer (#476)
1 parent ace456a commit 373706c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,16 @@ export const unmarshalOffer = (data: unknown) => {
266266
pricePerMonth: data.price_per_month
267267
? unmarshalMoney(data.price_per_month)
268268
: undefined,
269+
privateBandwidth: data.private_bandwidth,
269270
quotaName: data.quota_name,
270271
raidControllers: unmarshalArrayOfObject(
271272
data.raid_controllers,
272273
unmarshalRaidController,
273274
),
275+
sharedBandwidth: data.shared_bandwidth,
274276
stock: data.stock,
275277
subscriptionPeriod: data.subscription_period,
278+
tags: data.tags,
276279
} as Offer
277280
}
278281

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export interface Offer {
260260
name: string
261261
/** Stock level */
262262
stock: OfferStock
263-
/** Bandwidth available in bits/s with the offer */
263+
/** Public Bandwidth available in bits/s with the offer */
264264
bandwidth: number
265265
/** Commercial range of the offer */
266266
commercialRange: string
@@ -295,6 +295,12 @@ export interface Offer {
295295
fee?: Money
296296
/** Options available on offer */
297297
options: OfferOptionOffer[]
298+
/** Private bandwidth available in bits/s with the offer */
299+
privateBandwidth: number
300+
/** The offer is shared or not */
301+
sharedBandwidth: boolean
302+
/** Array of tags attached to the offer */
303+
tags: string[]
298304
}
299305

300306
/** Offer. option offer */

0 commit comments

Comments
 (0)