Skip to content

Commit 4f7415e

Browse files
authored
feat(rdb): add generation property to NodeType (#465)
1 parent 7a7e59f commit 4f7415e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/clients/src/api/rdb/v1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export type {
9797
Maintenance,
9898
MaintenanceStatus,
9999
NodeType,
100+
NodeTypeGeneration,
100101
NodeTypeStock,
101102
NodeTypeVolumeConstraintSizes,
102103
NodeTypeVolumeType,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ const unmarshalNodeType = (data: unknown) => {
485485
beta: data.beta,
486486
description: data.description,
487487
disabled: data.disabled,
488+
generation: data.generation,
488489
isBssdCompatible: data.is_bssd_compatible,
489490
isHaRequired: data.is_ha_required,
490491
memory: data.memory,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export type ListUsersRequestOrderBy =
8686

8787
export type MaintenanceStatus = 'unknown' | 'pending' | 'done' | 'canceled'
8888

89+
export type NodeTypeGeneration =
90+
| 'unknown_generation'
91+
| 'generation_v1'
92+
| 'generation_v2'
93+
8994
export type NodeTypeStock =
9095
| 'unknown'
9196
| 'low_stock'
@@ -567,6 +572,8 @@ export interface NodeType {
567572
availableVolumeTypes: NodeTypeVolumeType[]
568573
/** The Node Type can be used only with high availability option */
569574
isHaRequired: boolean
575+
/** Generation associated the NodeType offer */
576+
generation: NodeTypeGeneration
570577
/** Region the Node Type is in */
571578
region: Region
572579
}

0 commit comments

Comments
 (0)