-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mnq): enable v1beta1 per default and rename alpha (#3440)
- Loading branch information
Showing
36 changed files
with
851 additions
and
197 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
cmd/scw/testdata/test-all-usage-mnq-credential-usage.golden
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
cmd/scw/testdata/test-all-usage-mnq-namespace-list-usage.golden
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
cmd/scw/testdata/test-all-usage-mnq-namespace-usage.golden
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
...l-usage-mnq-namespace-create-usage.golden → ...sage-mnq-nats-create-account-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cmd/scw/testdata/test-all-usage-mnq-nats-create-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Create a set of credentials for a NATS account, specified by its NATS account ID. | ||
|
||
USAGE: | ||
scw mnq nats create-credentials [arg=value ...] | ||
|
||
ARGS: | ||
nats-account-id NATS account containing the credentials | ||
[name=<generated>] Name of the credentials | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for create-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
19 changes: 19 additions & 0 deletions
19
cmd/scw/testdata/test-all-usage-mnq-nats-delete-account-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Delete a NATS account, specified by its NATS account ID. Note that deleting a NATS account is irreversible, and any credentials, streams, consumer and stored messages belonging to this NATS account will also be deleted. | ||
|
||
USAGE: | ||
scw mnq nats delete-account <nats-account-id ...> [arg=value ...] | ||
|
||
ARGS: | ||
nats-account-id ID of the NATS account to delete | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for delete-account | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
19 changes: 19 additions & 0 deletions
19
cmd/scw/testdata/test-all-usage-mnq-nats-delete-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Delete a set of credentials, specified by their credentials ID. Deleting credentials is irreversible and cannot be undone. The credentials can no longer be used to access the NATS account, and active connections using this credentials will be closed. | ||
|
||
USAGE: | ||
scw mnq nats delete-credentials <nats-credentials-id ...> [arg=value ...] | ||
|
||
ARGS: | ||
nats-credentials-id ID of the credentials to delete | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for delete-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
8 changes: 4 additions & 4 deletions
8
...-all-usage-mnq-namespace-get-usage.golden → ...l-usage-mnq-nats-get-account-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cmd/scw/testdata/test-all-usage-mnq-nats-get-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Retrieve an existing set of credentials, identified by the `nats_credentials_id`. The credentials themselves are NOT returned, only their metadata (NATS account ID, credentials name, etc), are returned in the response. | ||
|
||
USAGE: | ||
scw mnq nats get-credentials <nats-credentials-id ...> [arg=value ...] | ||
|
||
ARGS: | ||
nats-credentials-id ID of the credentials to get | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for get-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
20 changes: 20 additions & 0 deletions
20
cmd/scw/testdata/test-all-usage-mnq-nats-list-accounts-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
List all NATS accounts in the specified region, for a Scaleway Organization or Project. By default, the NATS accounts returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. | ||
|
||
USAGE: | ||
scw mnq nats list-accounts [arg=value ...] | ||
|
||
ARGS: | ||
[project-id] Include only NATS accounts in this Project | ||
[order-by] Order in which to return results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc) | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all) | ||
|
||
FLAGS: | ||
-h, --help help for list-accounts | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
20 changes: 20 additions & 0 deletions
20
cmd/scw/testdata/test-all-usage-mnq-nats-list-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
List existing credentials in the specified NATS account. The response contains only the metadata for the credentials, not the credentials themselves, which are only returned after a **Create Credentials** call. | ||
|
||
USAGE: | ||
scw mnq nats list-credentials [arg=value ...] | ||
|
||
ARGS: | ||
nats-account-id Include only credentials for this NATS account | ||
[order-by] Order in which to return results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc) | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all) | ||
|
||
FLAGS: | ||
-h, --help help for list-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
10 changes: 5 additions & 5 deletions
10
...l-usage-mnq-namespace-update-usage.golden → ...sage-mnq-nats-update-account-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
MnQ NATS commands. | ||
|
||
USAGE: | ||
scw mnq nats <command> | ||
|
||
AVAILABLE COMMANDS: | ||
create-account Create a NATS account | ||
create-credentials Create NATS credentials | ||
delete-account Delete a NATS account | ||
delete-credentials Delete NATS credentials | ||
get-account Get a NATS account | ||
get-credentials Get NATS credentials | ||
list-accounts List NATS accounts | ||
list-credentials List NATS credentials | ||
update-account Update the name of a NATS account | ||
|
||
FLAGS: | ||
-h, --help help for nats | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use | ||
|
||
Use "scw mnq nats [command] --help" for more information about a command. |
8 changes: 4 additions & 4 deletions
8
...-usage-mnq-credential-delete-usage.golden → ...t-all-usage-mnq-sns-activate-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
cmd/scw/testdata/test-all-usage-mnq-sns-create-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Create a set of credentials for SNS, specified by a Project ID. Credentials give the bearer access to topics, and the level of permissions can be defined granularly. | ||
|
||
USAGE: | ||
scw mnq sns create-credentials [arg=value ...] | ||
|
||
ARGS: | ||
[project-id] Project ID to use. If none is passed the default project ID will be used | ||
[name=<generated>] Name of the credentials | ||
[permissions.can-publish] Defines whether the credentials bearer can publish messages to the service (publish to SNS topics) | ||
[permissions.can-receive] Defines whether the credentials bearer can receive messages from the service (configure subscriptions) | ||
[permissions.can-manage] Defines whether the credentials bearer can manage the associated SNS topics or subscriptions | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for create-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
8 changes: 4 additions & 4 deletions
8
...all-usage-mnq-credential-get-usage.golden → ...all-usage-mnq-sns-deactivate-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cmd/scw/testdata/test-all-usage-mnq-sns-delete-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Delete a set of SNS credentials, specified by their credentials ID. Deleting credentials is irreversible and cannot be undone. The credentials can then no longer be used to access SNS. | ||
|
||
USAGE: | ||
scw mnq sns delete-credentials <sns-credentials-id ...> [arg=value ...] | ||
|
||
ARGS: | ||
sns-credentials-id ID of the credentials to delete | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for delete-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
19 changes: 19 additions & 0 deletions
19
cmd/scw/testdata/test-all-usage-mnq-sns-get-credentials-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Retrieve an existing set of credentials, identified by the `credentials_id`. The credentials themselves, as well as their metadata (name, project ID etc), are returned in the response. | ||
|
||
USAGE: | ||
scw mnq sns get-credentials <sns-credentials-id ...> [arg=value ...] | ||
|
||
ARGS: | ||
sns-credentials-id ID of the SNS credentials to get | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) | ||
|
||
FLAGS: | ||
-h, --help help for get-credentials | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
Oops, something went wrong.