Skip to content

Commit f7ee6a4

Browse files
authored
feat(instance): rename project to project-id (#1410)
Signed-off-by: Patrik Cyvoct <pcyvoct@scaleway.com>
1 parent 188a0e4 commit f7ee6a4

70 files changed

Lines changed: 16348 additions & 15207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ ARGS:
1818
[additional-snapshots.{key}.name] Name of the additional snapshot
1919
[additional-snapshots.{key}.size] Size of the additional snapshot
2020
[additional-snapshots.{key}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd)
21-
[extra-volumes.{key}.project] Project ID of the volume
21+
[additional-snapshots.{key}.project-id] Project ID that own the additional snapshot
2222
[additional-snapshots.{key}.organization-id] Organization ID that own the additional snapshot
23-
[project] Project ID of the image
23+
[project-id] Project ID of the image
2424
[public] True to create a public image
2525
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
2626
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARGS:
1313
[name]
1414
[public]
1515
[arch]
16-
[project]
16+
[project-id]
1717
[organization-id]
1818
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ EXAMPLES:
1414

1515
ARGS:
1616
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
17-
[project] The project ID the IPs are reserved in
17+
[project-id] The project ID the IPs are reserved in
1818
[organization-id] The organization ID the IPs are reserved in
1919
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ EXAMPLES:
2626

2727
ARGS:
2828
[name=<generated>] Name of the placement group
29-
[project]
29+
[project-id]
3030
[policy-mode] (optional | enforced)
3131
[policy-type] (max_availability | low_latency)
3232
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ EXAMPLES:
1313
scw instance placement-group list name=cluster1
1414

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ EXAMPLES:
2424
ARGS:
2525
name=<generated> Name of the security group
2626
[description] Description of the security group
27-
[project] Project ID the security group belong to
27+
[project-id] Project ID the security group belong to
2828
[organization-default=false] Whether this security group becomes the default security group for new instances
2929
[project-default=false] Whether this security group becomes the default security group for new instances
3030
[stateful=true] Whether the security group is stateful or not

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
[name] Name of the security group
14-
[project] The security group project ID
14+
[project-id] The security group project ID
1515
[organization-id] The security group organization ID
1616
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1)
1717

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ EXAMPLES:
99
Set the default outbound policy as drop
1010
scw instance security-group update security-group-id=11111111-1111-1111-1111-111111111111 outbound-default-policy=drop
1111

12-
Set the given security group as the default for the organization
13-
scw instance security-group update security-group-id=11111111-1111-1111-1111-111111111111 organization-default=true
12+
Set the given security group as the default for the project
13+
scw instance security-group update security-group-id=11111111-1111-1111-1111-111111111111 project-default=true
1414

1515
Change the name of the given security group
1616
scw instance security-group update security-group-id=11111111-1111-1111-1111-111111111111 name=foobar
@@ -32,6 +32,7 @@ ARGS:
3232
[inbound-default-policy] (accept | drop)
3333
[outbound-default-policy] (accept | drop)
3434
[organization-default]
35+
[project-default]
3536
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
3637

3738
FLAGS:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ARGS:
3737
[bootscript-id] The bootscript ID to use, if empty the local boot will be used
3838
[cloud-init] The cloud-init script to use
3939
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
40+
[project-id] Project ID to use. If none is passed will use default project ID from the config
4041
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
4142

4243
FLAGS:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ EXAMPLES:
1919
scw instance server list name=server1
2020

2121
ARGS:
22-
[project] List only servers of this project ID
22+
[project-id] List only servers of this project ID
2323
[name] Filter servers by name (for eg. "server1" will return "server100" and "server1" but not "foo")
2424
[private-ip] List servers by private_ip
2525
[without-ip] List servers that are not attached to a public IP

0 commit comments

Comments
 (0)