Skip to content

Commit b71a60f

Browse files
feat(iam): add tags on applications, groups, users and policies (#3499)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 61920a7 commit b71a60f

13 files changed

+102
-3
lines changed

cmd/scw/testdata/test-all-usage-iam-application-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ USAGE:
88
ARGS:
99
name=<generated> Name of the application to create (max length is 64 characters)
1010
[description] Description of the application (max length is 200 characters)
11+
[tags.{index}] Tags associated with the application (maximum of 10 tags)
1112
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1213

1314
FLAGS:

cmd/scw/testdata/test-all-usage-iam-application-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[name] Name of the application to filter
1111
[editable] Defines whether to filter out editable applications or not
1212
[application-ids.{index}] Filter by list of IDs
13+
[tag] Filter by tags containing a given string
1314
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used
1415

1516
FLAGS:

cmd/scw/testdata/test-all-usage-iam-application-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
application-id ID of the application to update
1010
[name] New name for the application (max length is 64 chars)
1111
[description] New description for the application (max length is 200 chars)
12+
[tags.{index}] New tags for the application (maximum of 10 tags)
1213

1314
FLAGS:
1415
-h, --help help for update

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXAMPLES:
1212
ARGS:
1313
name=<generated> Name of the group to create (max length is 64 chars). MUST be unique inside an Organization
1414
[description] Description of the group to create (max length is 200 chars)
15+
[tags.{index}] Tags associated with the group (maximum of 10 tags)
1516
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1617

1718
FLAGS:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[application-ids.{index}] Filter by a list of application IDs
1212
[user-ids.{index}] Filter by a list of user IDs
1313
[group-ids.{index}] Filter by a list of group IDs
14+
[tag] Filter by tags containing a given string
1415
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used
1516

1617
FLAGS:

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ USAGE:
66
scw iam group update <group-id ...> [arg=value ...]
77

88
ARGS:
9-
group-id ID of the group to update
10-
[name] New name for the group (max length is 64 chars). MUST be unique inside an Organization
11-
[description] New description for the group (max length is 200 chars)
9+
group-id ID of the group to update
10+
[name] New name for the group (max length is 64 chars). MUST be unique inside an Organization
11+
[description] New description for the group (max length is 200 chars)
12+
[tags.{index}] New tags for the group (maximum of 10 tags)
1213

1314
FLAGS:
1415
-h, --help help for update

cmd/scw/testdata/test-all-usage-iam-policy-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARGS:
1515
[rules.{index}.permission-set-names.{index}] Names of permission sets bound to the rule
1616
[rules.{index}.project-ids.{index}] List of Project IDs the rule is scoped to
1717
[rules.{index}.organization-id] ID of Organization the rule is scoped to
18+
[tags.{index}] Tags associated with the policy (maximum of 10 tags)
1819
[user-id] ID of user attributed to the policy
1920
[group-id] ID of group attributed to the policy
2021
[application-id] ID of application attributed to the policy

cmd/scw/testdata/test-all-usage-iam-policy-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[application-ids.{index}] Filter by a list of application IDs
1414
[no-principal] Defines whether or not the policy is attributed to a principal
1515
[policy-name] Name of the policy to fetch
16+
[tag] Filter by tags containing a given string
1617
[organization-id=<retrieved from config>] Organization ID to use. If none is passed the default organization ID will be used
1718

1819
FLAGS:

cmd/scw/testdata/test-all-usage-iam-policy-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
policy-id Id of policy to update
1010
[name] New name for the policy (max length is 64 characters)
1111
[description] New description of policy (max length is 200 characters)
12+
[tags.{index}] New tags for the policy (maximum of 10 tags)
1213
[user-id] New ID of user attributed to the policy
1314
[group-id] New ID of group attributed to the policy
1415
[application-id] New ID of application attributed to the policy

cmd/scw/testdata/test-all-usage-iam-user-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ USAGE:
77

88
ARGS:
99
email Email of the user
10+
[tags.{index}] Tags associated with the user
1011
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1112

1213
FLAGS:

0 commit comments

Comments
 (0)