Skip to content

Commit fb2271f

Browse files
author
Yago Carlos Fernandez Gou
committed
Introduce Intake Users
1 parent cc82694 commit fb2271f

19 files changed

+2226
-0
lines changed

docs/stackit_beta_intake.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ stackit beta intake [flags]
3636
* [stackit beta intake list](./stackit_beta_intake_list.md) - Lists all Intakes
3737
* [stackit beta intake runner](./stackit_beta_intake_runner.md) - Provides functionality for Intake Runners
3838
* [stackit beta intake update](./stackit_beta_intake_update.md) - Updates an Intake
39+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
3940

docs/stackit_beta_intake_user.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## stackit beta intake user
2+
3+
Provides functionality for Intake Users
4+
5+
### Synopsis
6+
7+
Provides functionality for Intake Users.
8+
9+
```
10+
stackit beta intake user [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta intake user"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta intake](./stackit_beta_intake.md) - Provides functionality for intake
33+
* [stackit beta intake user create](./stackit_beta_intake_user_create.md) - Creates a new Intake User
34+
* [stackit beta intake user delete](./stackit_beta_intake_user_delete.md) - Deletes an Intake User
35+
* [stackit beta intake user describe](./stackit_beta_intake_user_describe.md) - Shows details of an Intake User
36+
* [stackit beta intake user list](./stackit_beta_intake_user_list.md) - Lists all Intake Users
37+
* [stackit beta intake user update](./stackit_beta_intake_user_update.md) - Updates an Intake User
38+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit beta intake user create
2+
3+
Creates a new Intake User
4+
5+
### Synopsis
6+
7+
Creates a new Intake User for a specific Intake.
8+
9+
```
10+
stackit beta intake user create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a new Intake User with required parameters
17+
$ stackit beta intake user create --display-name intake-user --intake-id xxx --password "SuperSafepass123\!"
18+
19+
Create a new Intake User for the dead-letter queue with labels
20+
$ stackit beta intake user create --display-name dlq-user --intake-id xxx --password "SuperSafepass123\!" --type dead-letter --labels "env=prod"
21+
```
22+
23+
### Options
24+
25+
```
26+
--description string Description
27+
--display-name string Display name
28+
-h, --help Help for "stackit beta intake user create"
29+
--intake-id string The UUID of the Intake to associate the user with
30+
--labels stringToString Labels in key=value format, separated by commas (default [])
31+
--password string Password for the user. Must contain lower, upper, number, and special characters (min 12 chars)
32+
--type string Type of user. One of 'intake' (default) or 'dead-letter' (default "intake")
33+
```
34+
35+
### Options inherited from parent commands
36+
37+
```
38+
-y, --assume-yes If set, skips all confirmation prompts
39+
--async If set, runs the command asynchronously
40+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
41+
-p, --project-id string Project ID
42+
--region string Target region for region-specific requests
43+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
49+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta intake user delete
2+
3+
Deletes an Intake User
4+
5+
### Synopsis
6+
7+
Deletes an Intake User.
8+
9+
```
10+
stackit beta intake user delete USER_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete an Intake User with ID "xxx" for Intake "yyy"
17+
$ stackit beta intake user delete xxx --intake-id yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta intake user delete"
24+
--intake-id string Intake ID
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
41+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit beta intake user describe
2+
3+
Shows details of an Intake User
4+
5+
### Synopsis
6+
7+
Shows details of an Intake User.
8+
9+
```
10+
stackit beta intake user describe USER_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Get details of an Intake User with ID "xxx" for Intake "yyy"
17+
$ stackit beta intake user describe xxx --intake-id yyy
18+
19+
Get details of an Intake User with ID "xxx" in JSON format
20+
$ stackit beta intake user describe xxx --intake-id yyy --output-format json
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit beta intake user describe"
27+
--intake-id string Intake ID
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
44+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## stackit beta intake user list
2+
3+
Lists all Intake Users
4+
5+
### Synopsis
6+
7+
Lists all Intake Users for a specific Intake.
8+
9+
```
10+
stackit beta intake user list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all users for an Intake
17+
$ stackit beta intake user list --intake-id xxx
18+
19+
List all users for an Intake in JSON format
20+
$ stackit beta intake user list --intake-id xxx --output-format json
21+
22+
List up to 5 users for an Intake
23+
$ stackit beta intake user list --intake-id xxx --limit 5
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta intake user list"
30+
--intake-id string Intake ID
31+
--limit int Maximum number of entries to list
32+
```
33+
34+
### Options inherited from parent commands
35+
36+
```
37+
-y, --assume-yes If set, skips all confirmation prompts
38+
--async If set, runs the command asynchronously
39+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
40+
-p, --project-id string Project ID
41+
--region string Target region for region-specific requests
42+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
43+
```
44+
45+
### SEE ALSO
46+
47+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
48+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## stackit beta intake user update
2+
3+
Updates an Intake User
4+
5+
### Synopsis
6+
7+
Updates an Intake User. Only the specified fields are updated.
8+
9+
```
10+
stackit beta intake user update USER_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update the display name of an Intake User
17+
$ stackit beta intake user update xxx --intake-id yyy --display-name "new-user-name"
18+
19+
Update the password and description for an Intake User
20+
$ stackit beta intake user update xxx --intake-id yyy --password "NewSecret123\!" --description "Updated description"
21+
```
22+
23+
### Options
24+
25+
```
26+
--description string Description
27+
--display-name string Display name
28+
-h, --help Help for "stackit beta intake user update"
29+
--intake-id string Intake ID
30+
--labels stringToString Labels in key=value format, separated by commas. Example: --labels "key1=value1,key2=value2". (default [])
31+
--password string Password for the user. Must contain lower, upper, number, and special characters (min 12 chars)
32+
--type string Type of user. One of 'intake' or 'dead-letter'
33+
```
34+
35+
### Options inherited from parent commands
36+
37+
```
38+
-y, --assume-yes If set, skips all confirmation prompts
39+
--async If set, runs the command asynchronously
40+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
41+
-p, --project-id string Project ID
42+
--region string Target region for region-specific requests
43+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
44+
```
45+
46+
### SEE ALSO
47+
48+
* [stackit beta intake user](./stackit_beta_intake_user.md) - Provides functionality for Intake Users
49+

internal/cmd/beta/intake/intake.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/list"
99
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/runner"
1010
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/update"
11+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/intake/user"
1112
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
1213
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
1314
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
@@ -28,6 +29,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
2829

2930
func addSubcommands(cmd *cobra.Command, params *types.CmdParams) {
3031
cmd.AddCommand(runner.NewCmd(params))
32+
cmd.AddCommand(user.NewCmd(params))
3133

3234
// Intake instance subcommands
3335
cmd.AddCommand(create.NewCmd(params))

0 commit comments

Comments
 (0)