Skip to content

Commit 3c75bc2

Browse files
feat(billing): enable budget CLI (#5719)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent 113811f commit 3c75bc2

28 files changed

Lines changed: 1104 additions & 11 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Create a new budget alert.
4+
5+
USAGE:
6+
scw billing budget-alert create [arg=value ...]
7+
8+
ARGS:
9+
[budget-id] The ID of the budget to create alert for
10+
[threshold] Threshold above which the alert is sent
11+
12+
FLAGS:
13+
-h, --help help for create
14+
--list-sub-commands List all subcommands
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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Delete a budget alert.
4+
5+
USAGE:
6+
scw billing budget-alert delete [arg=value ...]
7+
8+
ARGS:
9+
budget-alert-id The ID of the budget alert to delete
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
--list-sub-commands List all subcommands
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Create a new budget alert notification.
4+
5+
USAGE:
6+
scw billing budget-alert-notification create [arg=value ...]
7+
8+
ARGS:
9+
[budget-alert-id] The ID of the budget alert to create notification for
10+
[sms-phone-numbers.{index}] List of phone numbers to receive sms notifications
11+
[email-addresses.{index}] List of email addresses to receive email notifications
12+
[webhook-urls.{index}] List of webhook url to receive webhook notifications
13+
14+
FLAGS:
15+
-h, --help help for create
16+
--list-sub-commands List all subcommands
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Delete a budget alert notification.
4+
5+
USAGE:
6+
scw billing budget-alert-notification delete [arg=value ...]
7+
8+
ARGS:
9+
budget-alert-notification-id The ID of the budget alert notification to delete
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
--list-sub-commands List all subcommands
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Update a budget alert notification.
4+
5+
USAGE:
6+
scw billing budget-alert-notification update [arg=value ...]
7+
8+
ARGS:
9+
budget-alert-notification-id The ID of the budget alert notification to update
10+
[sms-phone-numbers.{index}] List of phone numbers to receive sms notifications
11+
[email-addresses.{index}] List of email addresses to receive email notifications
12+
[webhook-urls.{index}] List of webhook url to receive webhook notifications
13+
14+
FLAGS:
15+
-h, --help help for update
16+
--list-sub-commands List all subcommands
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Budget alert notification management commands.
4+
5+
USAGE:
6+
scw billing budget-alert-notification <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a new budget alert notification.
10+
delete Delete a budget alert notification.
11+
update Update a budget alert notification.
12+
13+
FLAGS:
14+
-h, --help help for budget-alert-notification
15+
--list-sub-commands List all subcommands
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 billing budget-alert-notification [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Update a budget alert.
4+
5+
USAGE:
6+
scw billing budget-alert update [arg=value ...]
7+
8+
ARGS:
9+
budget-alert-id The ID of the budget alert to update
10+
[threshold] Threshold above which the alert is sent
11+
12+
FLAGS:
13+
-h, --help help for update
14+
--list-sub-commands List all subcommands
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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Budget alerts management commands.
4+
5+
USAGE:
6+
scw billing budget-alert <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a new budget alert.
10+
delete Delete a budget alert.
11+
update Update a budget alert.
12+
13+
FLAGS:
14+
-h, --help help for budget-alert
15+
--list-sub-commands List all subcommands
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 billing budget-alert [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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Create a new budget.
4+
5+
USAGE:
6+
scw billing budget create [arg=value ...]
7+
8+
ARGS:
9+
[consumption-limit] Cost limit for the budget
10+
[enabled] Whether the budget is enabled or not
11+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
12+
13+
FLAGS:
14+
-h, --help help for create
15+
--list-sub-commands List all subcommands
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Delete a budget.
4+
5+
USAGE:
6+
scw billing budget delete [arg=value ...]
7+
8+
ARGS:
9+
budget-id The ID of the budget to delete
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
--list-sub-commands List all subcommands
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

0 commit comments

Comments
 (0)