Skip to content

Commit b5eb92b

Browse files
Prototool Botscaleway-bot
authored andcommitted
feat: update generated APIs
1 parent 234b14e commit b5eb92b

13 files changed

Lines changed: 205 additions & 10 deletions
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+
Unsubscribe from the current Edge Services subscription plan for your Scaleway Project.
4+
5+
USAGE:
6+
scw edge-services plan delete [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Get the current Edge Services subscription plan for your Scaleway Project.
4+
5+
USAGE:
6+
scw edge-services plan get [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
11+
FLAGS:
12+
-h, --help help for get
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
List all available Edge Services subscription plans.
4+
5+
USAGE:
6+
scw edge-services plan list
7+
8+
FLAGS:
9+
-h, --help help for list
10+
--list-sub-commands List all subcommands
11+
12+
GLOBAL FLAGS:
13+
-c, --config string The path to the config file
14+
-D, --debug Enable debug mode
15+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
16+
-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+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Subscribe to the Edge Services subscription plan of your choice, for the given Scaleway Project.
4+
5+
USAGE:
6+
scw edge-services plan select [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[plan-name] (unknown_name | starter | professional | advanced)
11+
12+
FLAGS:
13+
-h, --help help for select
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Plan management commands.
4+
5+
USAGE:
6+
scw edge-services plan <command>
7+
8+
AVAILABLE COMMANDS:
9+
delete Delete plan
10+
get Get plan
11+
list List plans
12+
select Select plan
13+
14+
FLAGS:
15+
-h, --help help for plan
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
23+
24+
Use "scw edge-services plan [command] --help" for more information about a command.

cmd/scw/testdata/test-all-usage-edge-services-purge-request-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARGS:
99
[order-by] Sort order of purge requests in the response (created_at_asc | created_at_desc)
1010
[project-id] Project ID to filter for. Only purge requests from this Project will be returned
1111
[pipeline-id] Pipeline ID to filter for. Only purge requests from this pipeline will be returned
12-
[organization-id] Organization ID to filter for. Only purge requests from this Project will be returned
12+
[organization-id] Organization ID to filter for. Only purge requests from this Organization will be returned
1313

1414
FLAGS:
1515
-h, --help help for list

cmd/scw/testdata/test-all-usage-edge-services-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ AVAILABLE COMMANDS:
1010
cache-stage Cache-stage management commands
1111
dns-stage DNS-stage management commands
1212
pipeline Pipeline management commands
13+
plan Plan management commands
1314
purge-request Purge-request management commands
1415
route-rules Route-rules management commands
1516
route-stage Route-stage management commands

docs/commands/edge-services.md

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Edge Services API
2828
- [List Head stage for your pipeline.](#list-head-stage-for-your-pipeline.)
2929
- [Configure a entry point to your pipeline. You must specify a `head stage` to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created.](#configure-a-entry-point-to-your-pipeline.-you-must-specify-a-`head-stage`-to-form-a-stage-chain-that-goes-all-the-way-to-the-backend-stage-(origin),-so-the-http-request-will-be-processed-according-to-the-stages-you-created.)
3030
- [Update pipeline](#update-pipeline)
31+
- [Plan management commands](#plan-management-commands)
32+
- [Delete plan](#delete-plan)
33+
- [Get plan](#get-plan)
34+
- [List plans](#list-plans)
35+
- [Select plan](#select-plan)
3136
- [Purge-request management commands](#purge-request-management-commands)
3237
- [Create purge request](#create-purge-request)
3338
- [Get purge request](#get-purge-request)
@@ -561,6 +566,81 @@ scw edge-services pipeline update <pipeline-id ...> [arg=value ...]
561566

562567

563568

569+
## Plan management commands
570+
571+
Plan management commands.
572+
573+
574+
### Delete plan
575+
576+
Unsubscribe from the current Edge Services subscription plan for your Scaleway Project.
577+
578+
**Usage:**
579+
580+
```
581+
scw edge-services plan delete [arg=value ...]
582+
```
583+
584+
585+
**Args:**
586+
587+
| Name | | Description |
588+
|------|---|-------------|
589+
| project-id | | Project ID to use. If none is passed the default project ID will be used |
590+
591+
592+
593+
### Get plan
594+
595+
Get the current Edge Services subscription plan for your Scaleway Project.
596+
597+
**Usage:**
598+
599+
```
600+
scw edge-services plan get [arg=value ...]
601+
```
602+
603+
604+
**Args:**
605+
606+
| Name | | Description |
607+
|------|---|-------------|
608+
| project-id | | Project ID to use. If none is passed the default project ID will be used |
609+
610+
611+
612+
### List plans
613+
614+
List all available Edge Services subscription plans.
615+
616+
**Usage:**
617+
618+
```
619+
scw edge-services plan list
620+
```
621+
622+
623+
624+
### Select plan
625+
626+
Subscribe to the Edge Services subscription plan of your choice, for the given Scaleway Project.
627+
628+
**Usage:**
629+
630+
```
631+
scw edge-services plan select [arg=value ...]
632+
```
633+
634+
635+
**Args:**
636+
637+
| Name | | Description |
638+
|------|---|-------------|
639+
| project-id | | Project ID to use. If none is passed the default project ID will be used |
640+
| plan-name | One of: `unknown_name`, `starter`, `professional`, `advanced` | |
641+
642+
643+
564644
## Purge-request management commands
565645

566646
Purge-request management commands.
@@ -624,7 +704,7 @@ scw edge-services purge-request list [arg=value ...]
624704
| order-by | One of: `created_at_asc`, `created_at_desc` | Sort order of purge requests in the response |
625705
| project-id | | Project ID to filter for. Only purge requests from this Project will be returned |
626706
| pipeline-id | | Pipeline ID to filter for. Only purge requests from this pipeline will be returned |
627-
| organization-id | | Organization ID to filter for. Only purge requests from this Project will be returned |
707+
| organization-id | | Organization ID to filter for. Only purge requests from this Organization will be returned |
628708

629709

630710

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/moby/moby/client v0.4.1
2828
github.com/modelcontextprotocol/go-sdk v1.6.1
2929
github.com/opencontainers/go-digest v1.0.0
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260601082121-ea4c635c636e
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260602132542-a93592ddfc30
3131
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3232
github.com/spf13/cobra v1.10.2
3333
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
478478
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
479479
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
480480
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
481-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260601082121-ea4c635c636e h1:L0oKHke/9N12I8SurQYgdwi9ZrEr8NjI/6m0RIBqrXw=
482-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260601082121-ea4c635c636e/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw=
481+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260602132542-a93592ddfc30 h1:ImVhzwQr0FYd+IW94tu0xUz8FFOwjhit1MZbJ78KXr8=
482+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260602132542-a93592ddfc30/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw=
483483
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
484484
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
485485
github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14=

0 commit comments

Comments
 (0)