Skip to content

feat(rdb): expose SBS IOPS #918

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

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions packages/clients/src/api/rdb/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export type {
SetPrivilegeRequest,
Snapshot,
SnapshotStatus,
StorageClass,
UpdateDatabaseBackupRequest,
UpdateInstanceRequest,
UpdateSnapshotRequest,
Expand Down
3 changes: 2 additions & 1 deletion packages/clients/src/api/rdb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ const unmarshalNodeTypeVolumeType = (data: unknown) => {

return {
chunkSize: data.chunk_size,
class: data.class,
description: data.description,
maxSize: data.max_size,
minSize: data.min_size,
Expand Down Expand Up @@ -318,7 +319,7 @@ const unmarshalVolume = (data: unknown) => {
)
}

return { size: data.size, type: data.type } as Volume
return { class: data.class, size: data.size, type: data.type } as Volume
}

const unmarshalACLRule = (data: unknown) => {
Expand Down
7 changes: 6 additions & 1 deletion packages/clients/src/api/rdb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export type SnapshotStatus =
| 'error'
| 'locked'

export type VolumeType = 'lssd' | 'bssd' | 'sbs'
export type StorageClass = 'unknown_storage_class' | 'lssd' | 'bssd' | 'sbs'

export type VolumeType = 'lssd' | 'bssd' | 'sbs_5k' | 'sbs_15k'

export interface ACLRule {
ip: string
Expand Down Expand Up @@ -622,6 +624,8 @@ export interface NodeTypeVolumeType {
maxSize: number
/** Minimum increment level for a Block Storage volume size. */
chunkSize: number
/** The storage class of the volume. */
class: StorageClass
}

/** Prepare instance logs response. */
Expand Down Expand Up @@ -767,6 +771,7 @@ export interface User {
export interface Volume {
type: VolumeType
size: number
class: StorageClass
}

export type ListDatabaseEnginesRequest = {
Expand Down