Skip to content

Commit 56d434e

Browse files
authored
fix(instance): add ID suffix to organization field (#861)
* fix(instance): add ID suffix to organization field Signed-off-by: Patrik Cyvoct <pcyvoct@scaleway.com>
1 parent c035457 commit 56d434e

23 files changed

Lines changed: 417 additions & 57 deletions

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ USAGE:
55

66
EXAMPLES:
77
Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)
8-
scw instance image create
8+
scw instance image create name=foobar root-volume=11111111-1111-1111-1111-111111111111 arch=x86_64
99

1010
ARGS:
11-
[name=<generated>] Name of the image
12-
snapshot-id UUID of the snapshot
13-
arch Architecture of the image (x86_64 | arm)
14-
[default-bootscript] Default bootscript of the image
15-
[additional-volumes.{key}.id] UUID of the volume
16-
[additional-volumes.{key}.name] Name of the volume
17-
[additional-volumes.{key}.size] Disk size of the volume
18-
[additional-volumes.{key}.volume-type] Type of the volume (l_ssd | b_ssd)
19-
[additional-volumes.{key}.organization] Organization ID of the volume
20-
[public] True to create a public image
21-
[organization] Organization ID to use. If none is passed will use default organization ID from the config
22-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
11+
[name=<generated>] Name of the image
12+
snapshot-id UUID of the snapshot
13+
arch Architecture of the image (x86_64 | arm)
14+
[default-bootscript] Default bootscript of the image
15+
[additional-volumes.{key}.id] UUID of the volume
16+
[additional-volumes.{key}.name] Name of the volume
17+
[additional-volumes.{key}.size] Disk size of the volume
18+
[additional-volumes.{key}.volume-type] Type of the volume (l_ssd | b_ssd)
19+
[additional-volumes.{key}.organization-id] Organization ID of the volume
20+
[public] True to create a public image
21+
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
22+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
2323

2424
FLAGS:
2525
-h, --help help for create

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ EXAMPLES:
88
scw instance image list
99

1010
ARGS:
11-
[name]
12-
[public]
13-
[arch]
14-
[organization]
15-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
11+
[name]
12+
[public]
13+
[arch]
14+
[organization-id]
15+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1616

1717
FLAGS:
1818
-h, --help help for list

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ EXAMPLES:
1414
scw instance ip create server=11111111-1111-1111-1111-111111111111
1515

1616
ARGS:
17-
[server] UUID of the server you want to attach the IP to
18-
[tags.{index}] An array of keywords you want to tag this IP with
19-
[organization] Organization ID to use. If none is passed will use default organization ID from the config
20-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
17+
[server] UUID of the server you want to attach the IP to
18+
[tags.{index}] An array of keywords you want to tag this IP with
19+
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
20+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
2121

2222
FLAGS:
2323
-h, --help help for create

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ EXAMPLES:
1111
scw instance ip list zone=fr-par-1
1212

1313
ARGS:
14-
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
15-
[organization] The organization ID the IPs are reserved in
16-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
14+
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
15+
[organization-id] The organization ID the IPs are reserved in
16+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1717

1818
FLAGS:
1919
-h, --help help for list

cmd/scw/testdata/test-all-usage-instance-placement-group-create-usage.stderr.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ARGS:
2626
[name=<generated>] Name of the placement group
2727
[policy-mode] (optional | enforced)
2828
[policy-type] (max_availability | low_latency)
29-
[organization] Organization ID to use. If none is passed will use default organization ID from the config
29+
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
3030
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
3131

3232
FLAGS:

cmd/scw/testdata/test-all-usage-instance-placement-group-list-usage.stderr.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ EXAMPLES:
1111
scw instance placement-group list name=cluster1
1212

1313
ARGS:
14-
[name] Filter placement groups by name (for eg. "cluster1" will return "cluster100" and "cluster1" but not "foo")
15-
[organization] List only placement groups of this organization
16-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
14+
[name] Filter placement groups by name (for eg. "cluster1" will return "cluster100" and "cluster1" but not "foo")
15+
[organization-id] List only placement groups of this organization
16+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1717

1818
FLAGS:
1919
-h, --help help for list

cmd/scw/testdata/test-all-usage-instance-security-group-create-usage.stderr.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ARGS:
2626
[stateful=true] Whether the security group is stateful or not
2727
[inbound-default-policy=accept] Default policy for inbound rules (accept | drop)
2828
[outbound-default-policy=accept] Default policy for outbound rules (accept | drop)
29-
[organization] Organization ID to use. If none is passed will use default organization ID from the config
29+
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
3030
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
3131

3232
FLAGS:

cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.stderr.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ EXAMPLES:
88
scw instance security-group list name=foobar
99

1010
ARGS:
11-
[name] Name of the security group
12-
[organization] The security group organization ID
13-
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
11+
[name] Name of the security group
12+
[organization-id] The security group organization ID
13+
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1414

1515
FLAGS:
1616
-h, --help help for list

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARGS:
2323
[commercial-type] List servers of this commercial type
2424
[state] List servers in this state (running | stopped | stopped in place | starting | stopping | locked)
2525
[tags.{index}] List servers with these exact tags
26-
[organization] List only servers of this organization
26+
[organization-id] List only servers of this organization
2727
[zone] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
2828

2929
FLAGS:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ USAGE:
55

66
EXAMPLES:
77
Update the name of a given server
8-
scw instance server update
8+
scw instance server update 11111111-1111-1111-1111-111111111111 name=foobar
99

1010
Put a given instance in rescue mode (reboot is required to access rescue mode)
11-
scw instance server update
11+
scw instance server update 11111111-1111-1111-1111-111111111111 boot-type=rescue
1212

1313
Overwrite tags of a given server
14-
scw instance server update
14+
scw instance server update 11111111-1111-1111-1111-111111111111 tags.0=foo tags.1=bar
1515

1616
Enable IPv6 on a given server
17-
scw instance server update
17+
scw instance server update 11111111-1111-1111-1111-111111111111 enable-ipv6=true
1818

1919
Apply the given security group to a given server
2020
scw instance server update

0 commit comments

Comments
 (0)