Skip to content

Commit 95493b9

Browse files
authored
feat(instance): sync endpoints about the feature OS image in SBS volume (#3412)
1 parent f98a6b9 commit 95493b9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARGS:
1616
[additional-volumes.{index}.id] UUID of the snapshot to add
1717
[additional-volumes.{index}.name] Name of the additional snapshot
1818
[additional-volumes.{index}.size] Size of the additional snapshot
19-
[additional-volumes.{index}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd | unified | scratch | sbs_volume)
19+
[additional-volumes.{index}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
2020
[additional-volumes.{index}.project-id] Project ID that own the additional snapshot
2121
[project-id] Project ID to use. If none is passed the default project ID will be used
2222
[tags.{index}] Tags of the image

cmd/scw/testdata/test-all-usage-instance-volume-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARGS:
1919
[name=<generated>] Volume name
2020
[project-id] Project ID to use. If none is passed the default project ID will be used
2121
[tags.{index}] Volume tags
22-
[volume-type] Volume type (l_ssd | b_ssd | unified | scratch | sbs_volume)
22+
[volume-type] Volume type (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
2323
[size] Volume disk size, must be a multiple of 512
2424
[base-volume] ID of the volume on which this volume will be based
2525
[base-snapshot] ID of the snapshot on which this volume will be based

cmd/scw/testdata/test-all-usage-instance-volume-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ EXAMPLES:
2222
scw instance volume list volume-type=b_ssd name=foobar
2323

2424
ARGS:
25-
[volume-type] Filter by volume type (l_ssd | b_ssd | unified | scratch | sbs_volume)
25+
[volume-type] Filter by volume type (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
2626
[project-id] Filter volume by Project ID
2727
[tags.{index}] Filter volumes with these exact tags (to filter with several tags, use commas to separate them)
2828
[name] Filter volume by name (for eg. "vol" will return "myvolume" but not "data")

docs/commands/instance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ scw instance image create [arg=value ...]
132132
| additional-volumes.{index}.id | | UUID of the snapshot to add |
133133
| additional-volumes.{index}.name | | Name of the additional snapshot |
134134
| additional-volumes.{index}.size | | Size of the additional snapshot |
135-
| additional-volumes.{index}.volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Underlying volume type of the additional snapshot |
135+
| additional-volumes.{index}.volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume`, `sbs_snapshot` | Underlying volume type of the additional snapshot |
136136
| additional-volumes.{index}.project-id | | Project ID that own the additional snapshot |
137137
| ~~additional-volumes.{index}.organization-id~~ | Deprecated | Organization ID that own the additional snapshot |
138138
| project-id | | Project ID to use. If none is passed the default project ID will be used |
@@ -2933,7 +2933,7 @@ scw instance volume create [arg=value ...]
29332933
| name | Default: `<generated>` | Volume name |
29342934
| project-id | | Project ID to use. If none is passed the default project ID will be used |
29352935
| tags.{index} | | Volume tags |
2936-
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Volume type |
2936+
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume`, `sbs_snapshot` | Volume type |
29372937
| size | | Volume disk size, must be a multiple of 512 |
29382938
| base-volume | | ID of the volume on which this volume will be based |
29392939
| base-snapshot | | ID of the snapshot on which this volume will be based |
@@ -3037,7 +3037,7 @@ scw instance volume list [arg=value ...]
30373037

30383038
| Name | | Description |
30393039
|------|---|-------------|
3040-
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Filter by volume type |
3040+
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume`, `sbs_snapshot` | Filter by volume type |
30413041
| project-id | | Filter volume by Project ID |
30423042
| tags.{index} | | Filter volumes with these exact tags (to filter with several tags, use commas to separate them) |
30433043
| name | | Filter volume by name (for eg. "vol" will return "myvolume" but not "data") |

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ func instanceServerUpdate() *core.Command {
633633
Required: false,
634634
Deprecated: false,
635635
Positional: false,
636-
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume"},
636+
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume", "sbs_snapshot"},
637637
},
638638
{
639639
Name: "volumes.{key}.base-snapshot",
@@ -1240,7 +1240,7 @@ func instanceImageCreate() *core.Command {
12401240
Required: false,
12411241
Deprecated: false,
12421242
Positional: false,
1243-
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume"},
1243+
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume", "sbs_snapshot"},
12441244
},
12451245
{
12461246
Name: "extra-volumes.{key}.project",
@@ -1660,7 +1660,7 @@ func instanceVolumeList() *core.Command {
16601660
Required: false,
16611661
Deprecated: false,
16621662
Positional: false,
1663-
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume"},
1663+
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume", "sbs_snapshot"},
16641664
},
16651665
{
16661666
Name: "project",
@@ -1804,7 +1804,7 @@ func instanceVolumeCreate() *core.Command {
18041804
Required: false,
18051805
Deprecated: false,
18061806
Positional: false,
1807-
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume"},
1807+
EnumValues: []string{"l_ssd", "b_ssd", "unified", "scratch", "sbs_volume", "sbs_snapshot"},
18081808
},
18091809
{
18101810
Name: "size",

0 commit comments

Comments
 (0)