Skip to content

Commit 98e5b11

Browse files
authored
feat(mnq): enable v1beta1 per default and rename alpha (#3440)
1 parent 00bcf7c commit 98e5b11

File tree

36 files changed

+851
-197
lines changed

36 files changed

+851
-197
lines changed

cmd/scw/testdata/test-all-usage-mnq-credential-usage.golden

Lines changed: 0 additions & 24 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-mnq-namespace-list-usage.golden

Lines changed: 0 additions & 21 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-mnq-namespace-usage.golden

Lines changed: 0 additions & 24 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-mnq-namespace-create-usage.golden renamed to cmd/scw/testdata/test-all-usage-mnq-nats-create-account-usage.golden

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a Messaging and Queuing namespace, set to the desired protocol.
3+
Create a NATS account associated with a Project.
44

55
USAGE:
6-
scw mnq namespace create [arg=value ...]
6+
scw mnq nats create-account [arg=value ...]
77

88
ARGS:
9-
[name=<generated>] Namespace name
10-
protocol Namespace protocol. You must specify a valid protocol (and not `unknown`) to avoid an error. (unknown | nats | sqs_sns)
9+
[name=<generated>] NATS account name
1110
[project-id] Project ID to use. If none is passed the default project ID will be used
1211
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1312

1413
FLAGS:
15-
-h, --help help for create
14+
-h, --help help for create-account
1615

1716
GLOBAL FLAGS:
1817
-c, --config string The path to the config file
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a set of credentials for a NATS account, specified by its NATS account ID.
4+
5+
USAGE:
6+
scw mnq nats create-credentials [arg=value ...]
7+
8+
ARGS:
9+
nats-account-id NATS account containing the credentials
10+
[name=<generated>] Name of the credentials
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
13+
FLAGS:
14+
-h, --help help for create-credentials
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
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.
4+
5+
USAGE:
6+
scw mnq nats delete-account <nats-account-id ...> [arg=value ...]
7+
8+
ARGS:
9+
nats-account-id ID of the NATS account to delete
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for delete-account
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
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.
4+
5+
USAGE:
6+
scw mnq nats delete-credentials <nats-credentials-id ...> [arg=value ...]
7+
8+
ARGS:
9+
nats-credentials-id ID of the credentials to delete
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for delete-credentials
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-mnq-namespace-get-usage.golden renamed to cmd/scw/testdata/test-all-usage-mnq-nats-get-account-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Retrieve information about an existing Messaging and Queuing namespace, identified by its namespace ID. Its full details, including name, endpoint and protocol, are returned in the response.
3+
Retrieve information about an existing NATS account identified by its NATS account ID. Its full details, including name and endpoint, are returned in the response.
44

55
USAGE:
6-
scw mnq namespace get <namespace-id ...> [arg=value ...]
6+
scw mnq nats get-account <nats-account-id ...> [arg=value ...]
77

88
ARGS:
9-
namespace-id ID of the Namespace to get
9+
nats-account-id ID of the NATS account to get
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1111

1212
FLAGS:
13-
-h, --help help for get
13+
-h, --help help for get-account
1414

1515
GLOBAL FLAGS:
1616
-c, --config string The path to the config file
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
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.
4+
5+
USAGE:
6+
scw mnq nats get-credentials <nats-credentials-id ...> [arg=value ...]
7+
8+
ARGS:
9+
nats-credentials-id ID of the credentials to get
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get-credentials
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
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.
4+
5+
USAGE:
6+
scw mnq nats list-accounts [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Include only NATS accounts in this Project
10+
[order-by] Order in which to return results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
12+
13+
FLAGS:
14+
-h, --help help for list-accounts
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)