Skip to content

Commit cf2c148

Browse files
authored
feat(instance): add snapshot states for snapshot transfer (#137)
1 parent dd47a13 commit cf2c148

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/clients/src/api/instance/v1/content.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export const SECURITY_GROUP_TRANSIENT_STATUSES: SecurityGroupState[] = [
2626
export const SERVER_TRANSIENT_STATUSES: ServerState[] = ['starting', 'stopping']
2727

2828
/** Lists transient statutes of the enum {@link SnapshotState}. */
29-
export const SNAPSHOT_TRANSIENT_STATUSES: SnapshotState[] = ['snapshotting']
29+
export const SNAPSHOT_TRANSIENT_STATUSES: SnapshotState[] = [
30+
'snapshotting',
31+
'importing',
32+
'exporting',
33+
]
3034

3135
/** Lists transient statutes of the enum {@link TaskStatus}. */
3236
export const TASK_TRANSIENT_STATUSES: TaskStatus[] = [

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export type SnapshotState =
5353
| 'snapshotting'
5454
| 'error'
5555
| 'invalid_data'
56+
| 'importing'
57+
| 'exporting'
5658

5759
export type SnapshotVolumeType =
5860
| 'unknown_volume_type'

0 commit comments

Comments
 (0)