Skip to content

Commit 9072d95

Browse files
authored
feat(webhosting): migrate to v1 (#4552)
1 parent ff36fc4 commit 9072d95

File tree

51 files changed

+2876
-934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2876
-934
lines changed

cmd/scw/testdata/test-all-usage-webhosting-control-panel-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw webhosting control-panel list [arg=value ...]
77

88
ARGS:
9-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | all)
9+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1010

1111
FLAGS:
1212
-h, --help help for list
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
"Create a new database within your hosting plan".
4+
5+
USAGE:
6+
scw webhosting database create [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan where the database will be created
10+
[database-name] Name of the database to be created
11+
[new-user.username]
12+
[new-user.password]
13+
[existing-username] (Optional) Username to link an existing user to the database
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
15+
16+
FLAGS:
17+
-h, --help help for create
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-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+
"Delete a database within your hosting plan".
4+
5+
USAGE:
6+
scw webhosting database delete [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
database-name Name of the database to delete
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for delete
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
"Get details of a database within your hosting plan".
4+
5+
USAGE:
6+
scw webhosting database get [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
database-name Name of the database
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for get
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: 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 databases within your hosting plan".
4+
5+
USAGE:
6+
scw webhosting database list [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
[order-by] Sort order of databases in the response (database_name_asc | database_name_desc)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
12+
13+
FLAGS:
14+
-h, --help help for list
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Databases represent the databases you can create and manage within your Web Hosting plan. Supported types are MySQL and PostgreSQL.
4+
5+
USAGE:
6+
scw webhosting database <command>
7+
8+
AVAILABLE COMMANDS:
9+
create "Create a new database within your hosting plan"
10+
delete "Delete a database within your hosting plan"
11+
get "Get details of a database within your hosting plan"
12+
list "List all databases within your hosting plan"
13+
14+
FLAGS:
15+
-h, --help help for database
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
22+
23+
Use "scw webhosting database [command] --help" for more information about a command.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
"Assign a database user to a database".
4+
5+
USAGE:
6+
scw webhosting database-user assign [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
[username] Name of the user to assign
11+
database-name Name of the database to be assigned
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for assign
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
"Change the password of a database user".
4+
5+
USAGE:
6+
scw webhosting database-user change-password [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
username Name of the user to update
11+
[password] New password
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for change-password
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
"Create a new database user".
4+
5+
USAGE:
6+
scw webhosting database-user create [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
[username] Name of the user to create
11+
[password] Password of the user to create
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for create
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-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+
"Delete a database user".
4+
5+
USAGE:
6+
scw webhosting database-user delete [arg=value ...]
7+
8+
ARGS:
9+
hosting-id UUID of the hosting plan
10+
username Name of the database user to delete
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
12+
13+
FLAGS:
14+
-h, --help help for delete
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)