Skip to content

Commit f9484ba

Browse files
feat(instance): instance-type can be set (#3266)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 81a3776 commit f9484ba

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-instance-server-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ ARGS:
5555
[private-nics.{index}.mac-address] Private NIC MAC address
5656
[private-nics.{index}.state] Private NIC state (available | syncing | syncing_error)
5757
[private-nics.{index}.tags.{index}] Private NIC tags
58+
[commercial-type] Set the commercial_type for this Instance.
5859
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2)
5960

6061
DEPRECATED ARGS:

docs/commands/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,7 @@ scw instance server update <server-id ...> [arg=value ...]
22102210
| private-nics.{index}.mac-address | | Private NIC MAC address |
22112211
| private-nics.{index}.state | One of: `available`, `syncing`, `syncing_error` | Private NIC state |
22122212
| private-nics.{index}.tags.{index} | | Private NIC tags |
2213+
| commercial-type | | Set the commercial_type for this Instance. |
22132214
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2` | Zone to target. If none is passed will use default zone from the config |
22142215

22152216

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,13 @@ func instanceServerUpdate() *core.Command {
779779
Deprecated: false,
780780
Positional: false,
781781
},
782+
{
783+
Name: "commercial-type",
784+
Short: `Set the commercial_type for this Instance.`,
785+
Required: false,
786+
Deprecated: false,
787+
Positional: false,
788+
},
782789
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2),
783790
},
784791
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)