diff --git a/cmd/scw/testdata/test-all-usage-iam-api-key-create-usage.golden b/cmd/scw/testdata/test-all-usage-iam-api-key-create-usage.golden index 60ec53cd0d..9ec2c75c2a 100644 --- a/cmd/scw/testdata/test-all-usage-iam-api-key-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-api-key-create-usage.golden @@ -1,6 +1,6 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ -Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id` which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe. +Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id`, which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe. USAGE: scw iam api-key create [arg=value ...] diff --git a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden index bc23ac297a..d5d087a149 100644 --- a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden @@ -1,6 +1,6 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ -Update an user's password. +Update an user's password. Private Beta feature. USAGE: scw iam user update-password [arg=value ...] diff --git a/cmd/scw/testdata/test-all-usage-iam-user-update-usage.golden b/cmd/scw/testdata/test-all-usage-iam-user-update-usage.golden index ac849a066f..e2b3060a84 100644 --- a/cmd/scw/testdata/test-all-usage-iam-user-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-user-update-usage.golden @@ -8,7 +8,7 @@ USAGE: ARGS: user-id ID of the user to update [tags.{index}] New tags for the user (maximum of 10 tags) - [email] New email for the user (only available on Members) + [email] IAM member email FLAGS: -h, --help help for update diff --git a/cmd/scw/testdata/test-all-usage-iam-user-usage.golden b/cmd/scw/testdata/test-all-usage-iam-user-usage.golden index 6609f2ee1b..3519fb5db6 100644 --- a/cmd/scw/testdata/test-all-usage-iam-user-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-user-usage.golden @@ -11,7 +11,7 @@ AVAILABLE COMMANDS: get Get a given user list List users of an Organization update Update a user - update-password Update an user's password + update-password Update an user's password. Private Beta feature. FLAGS: -h, --help help for user diff --git a/docs/commands/iam.md b/docs/commands/iam.md index 8d87555d7c..86e40c68d7 100644 --- a/docs/commands/iam.md +++ b/docs/commands/iam.md @@ -58,7 +58,7 @@ This API allows you to manage Identity and Access Management (IAM) across your S - [Get a given user](#get-a-given-user) - [List users of an Organization](#list-users-of-an-organization) - [Update a user](#update-a-user) - - [Update an user's password](#update-an-user's-password) + - [Update an user's password. Private Beta feature.](#update-an-user's-password.-private-beta-feature.) ## API keys management commands @@ -68,7 +68,7 @@ API keys management commands. ### Create an API key -Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id` which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe. +Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id`, which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe. **Usage:** @@ -1146,13 +1146,13 @@ scw iam user update [arg=value ...] |------|---|-------------| | user-id | Required | ID of the user to update | | tags.{index} | | New tags for the user (maximum of 10 tags) | -| email | | New email for the user (only available on Members) | +| email | | IAM member email | -### Update an user's password +### Update an user's password. Private Beta feature. -Update an user's password. +Update an user's password. Private Beta feature. **Usage:** diff --git a/internal/namespaces/iam/v1alpha1/iam_cli.go b/internal/namespaces/iam/v1alpha1/iam_cli.go index 0550f79b2a..b44a26a724 100644 --- a/internal/namespaces/iam/v1alpha1/iam_cli.go +++ b/internal/namespaces/iam/v1alpha1/iam_cli.go @@ -552,7 +552,7 @@ func iamUserUpdate() *core.Command { }, { Name: "email", - Short: `New email for the user (only available on Members)`, + Short: `IAM member email`, Required: false, Deprecated: false, Positional: false, @@ -678,8 +678,8 @@ func iamUserCreate() *core.Command { func iamUserUpdatePassword() *core.Command { return &core.Command{ - Short: `Update an user's password`, - Long: `Update an user's password.`, + Short: `Update an user's password. Private Beta feature.`, + Long: `Update an user's password. Private Beta feature.`, Namespace: "iam", Resource: "user", Verb: "update-password", @@ -2041,7 +2041,7 @@ func iamAPIKeyList() *core.Command { func iamAPIKeyCreate() *core.Command { return &core.Command{ Short: `Create an API key`, - Long: `Create an API key. You must specify the ` + "`" + `application_id` + "`" + ` or the ` + "`" + `user_id` + "`" + ` and the description. You can also specify the ` + "`" + `default_project_id` + "`" + ` which is the Project ID of your preferred Project, to use with Object Storage. The ` + "`" + `access_key` + "`" + ` and ` + "`" + `secret_key` + "`" + ` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe.`, + Long: `Create an API key. You must specify the ` + "`" + `application_id` + "`" + ` or the ` + "`" + `user_id` + "`" + ` and the description. You can also specify the ` + "`" + `default_project_id` + "`" + `, which is the Project ID of your preferred Project, to use with Object Storage. The ` + "`" + `access_key` + "`" + ` and ` + "`" + `secret_key` + "`" + ` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe.`, Namespace: "iam", Resource: "api-key", Verb: "create",