Skip to content

Commit 5008b78

Browse files
authored
chore(instance): add attaching to VolumeServerState (scaleway#2708)
1 parent c65a017 commit 5008b78

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,10 +1059,11 @@ type VolumeServerState string
10591059
const (
10601060
VolumeServerStateAvailable = VolumeServerState("available")
10611061
VolumeServerStateSnapshotting = VolumeServerState("snapshotting")
1062-
VolumeServerStateFetching = VolumeServerState("fetching")
10631062
VolumeServerStateResizing = VolumeServerState("resizing")
1063+
VolumeServerStateFetching = VolumeServerState("fetching")
10641064
VolumeServerStateSaving = VolumeServerState("saving")
10651065
VolumeServerStateHotsyncing = VolumeServerState("hotsyncing")
1066+
VolumeServerStateAttaching = VolumeServerState("attaching")
10661067
VolumeServerStateError = VolumeServerState("error")
10671068
)
10681069

@@ -1078,10 +1079,11 @@ func (enum VolumeServerState) Values() []VolumeServerState {
10781079
return []VolumeServerState{
10791080
"available",
10801081
"snapshotting",
1081-
"fetching",
10821082
"resizing",
1083+
"fetching",
10831084
"saving",
10841085
"hotsyncing",
1086+
"attaching",
10851087
"error",
10861088
}
10871089
}
@@ -1148,8 +1150,8 @@ const (
11481150
VolumeStateAvailable = VolumeState("available")
11491151
VolumeStateSnapshotting = VolumeState("snapshotting")
11501152
VolumeStateFetching = VolumeState("fetching")
1151-
VolumeStateResizing = VolumeState("resizing")
11521153
VolumeStateSaving = VolumeState("saving")
1154+
VolumeStateResizing = VolumeState("resizing")
11531155
VolumeStateHotsyncing = VolumeState("hotsyncing")
11541156
VolumeStateError = VolumeState("error")
11551157
)
@@ -1167,8 +1169,8 @@ func (enum VolumeState) Values() []VolumeState {
11671169
"available",
11681170
"snapshotting",
11691171
"fetching",
1170-
"resizing",
11711172
"saving",
1173+
"resizing",
11721174
"hotsyncing",
11731175
"error",
11741176
}

0 commit comments

Comments
 (0)