Skip to content

Commit caa9a2d

Browse files
committed
feat: update generated APIs
1 parent 33d2698 commit caa9a2d

16 files changed

+106
-6
lines changed
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+
Attach a filesystem volume to an Instance.
4+
5+
USAGE:
6+
scw instance server attach-filesystem [arg=value ...]
7+
8+
ARGS:
9+
server-id
10+
[filesystem-id]
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
13+
FLAGS:
14+
-h, --help help for attach-filesystem
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
21+
--web open console page for the current ressource
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+
Detach a filesystem volume to an Instance.
4+
5+
USAGE:
6+
scw instance server detach-filesystem [arg=value ...]
7+
8+
ARGS:
9+
server-id
10+
[filesystem-id]
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
13+
FLAGS:
14+
-h, --help help for detach-filesystem
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
21+
--web open console page for the current ressource

cmd/scw/testdata/test-all-usage-instance-server-usage.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ USAGE:
99

1010
AVAILABLE COMMANDS:
1111
action Perform a raw API action on a server
12+
attach-filesystem Attach a filesystem volume to an Instance
1213
attach-ip Attach an IP to a server
1314
attach-volume Attach a volume to a server
1415
backup Backup server
1516
console Connect to the serial console of an instance
1617
create Create server
1718
delete Delete server
19+
detach-filesystem Detach a filesystem volume to an Instance
1820
detach-ip Detach an IP from a server
1921
detach-volume Detach a volume from its server
2022
enable-routed-ip Migrate server to IP mobility

cmd/scw/testdata/test-all-usage-interlink-link-detach-policy-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ USAGE:
66
scw interlink link detach_policy <link-id ...> [arg=value ...]
77

88
ARGS:
9-
link-id ID of the link to detach a routing policy from
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
9+
link-id ID of the link to detach a routing policy from
10+
routing-policy-id ID of the routing policy to be detached
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1112

1213
FLAGS:
1314
-h, --help help for detach_policy

cmd/scw/testdata/test-all-usage-interlink-routing-policy-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[tags.{index}] List of tags to apply to the routing policy
1212
[prefix-filter-in.{index}] IP prefixes to accept from the peer (ranges of route announcements to accept)
1313
[prefix-filter-out.{index}] IP prefix filters to advertise to the peer (ranges of routes to advertise)
14+
[is-ipv6] IP prefixes version of the routing policy
1415
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1516

1617
FLAGS:

cmd/scw/testdata/test-all-usage-interlink-routing-policy-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[project-id] Project ID to filter for
1111
[name] Routing policy name to filter for
1212
[tags.{index}] Tags to filter for
13+
[ipv6] Filter for the routing policies based on IP prefixes version
1314
[organization-id] Organization ID to filter for
1415
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1516

docs/commands/instance.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ This API allows you to manage your CPU and GPU Instances.
5050
- [Update security group rule](#update-security-group-rule)
5151
- [Instance management commands](#instance-management-commands)
5252
- [Perform a raw API action on a server](#perform-a-raw-api-action-on-a-server)
53+
- [Attach a filesystem volume to an Instance](#attach-a-filesystem-volume-to-an-instance)
5354
- [Attach an IP to a server](#attach-an-ip-to-a-server)
5455
- [Attach a volume to a server](#attach-a-volume-to-a-server)
5556
- [Backup server](#backup-server)
5657
- [Connect to the serial console of an instance](#connect-to-the-serial-console-of-an-instance)
5758
- [Create server](#create-server)
5859
- [Delete server](#delete-server)
60+
- [Detach a filesystem volume to an Instance](#detach-a-filesystem-volume-to-an-instance)
5961
- [Detach an IP from a server](#detach-an-ip-from-a-server)
6062
- [Detach a volume from its server](#detach-a-volume-from-its-server)
6163
- [Migrate server to IP mobility](#migrate-server-to-ip-mobility)
@@ -1569,6 +1571,27 @@ scw instance server action 11111111-1111-1111-1111-111111111111 action=poweron
15691571

15701572

15711573

1574+
### Attach a filesystem volume to an Instance
1575+
1576+
Attach a filesystem volume to an Instance.
1577+
1578+
**Usage:**
1579+
1580+
```
1581+
scw instance server attach-filesystem [arg=value ...]
1582+
```
1583+
1584+
1585+
**Args:**
1586+
1587+
| Name | | Description |
1588+
|------|---|-------------|
1589+
| server-id | Required | |
1590+
| filesystem-id | | |
1591+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
1592+
1593+
1594+
15721595
### Attach an IP to a server
15731596

15741597

@@ -1820,6 +1843,27 @@ scw instance server delete 11111111-1111-1111-1111-111111111111 zone=fr-par-1
18201843

18211844

18221845

1846+
### Detach a filesystem volume to an Instance
1847+
1848+
Detach a filesystem volume to an Instance.
1849+
1850+
**Usage:**
1851+
1852+
```
1853+
scw instance server detach-filesystem [arg=value ...]
1854+
```
1855+
1856+
1857+
**Args:**
1858+
1859+
| Name | | Description |
1860+
|------|---|-------------|
1861+
| server-id | Required | |
1862+
| filesystem-id | | |
1863+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
1864+
1865+
1866+
18231867
### Detach an IP from a server
18241868

18251869

docs/commands/interlink.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ scw interlink link detach_policy <link-id ...> [arg=value ...]
153153
| Name | | Description |
154154
|------|---|-------------|
155155
| link-id | Required | ID of the link to detach a routing policy from |
156+
| routing-policy-id | Required | ID of the routing policy to be detached |
156157
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
157158

158159

@@ -416,6 +417,7 @@ scw interlink routing-policy create [arg=value ...]
416417
| tags.{index} | | List of tags to apply to the routing policy |
417418
| prefix-filter-in.{index} | | IP prefixes to accept from the peer (ranges of route announcements to accept) |
418419
| prefix-filter-out.{index} | | IP prefix filters to advertise to the peer (ranges of routes to advertise) |
420+
| is-ipv6 | | IP prefixes version of the routing policy |
419421
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
420422

421423

@@ -479,6 +481,7 @@ scw interlink routing-policy list [arg=value ...]
479481
| project-id | | Project ID to filter for |
480482
| name | | Routing policy name to filter for |
481483
| tags.{index} | | Tags to filter for |
484+
| ipv6 | | Filter for the routing policies based on IP prefixes version |
482485
| organization-id | | Organization ID to filter for |
483486
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
484487

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.13.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250606093415-2c91f5b7ce9b
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250610132304-0ea56270b666
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.9.1
2929
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250606093415-2c91f5b7ce9b h1:UsMzMZXodChxZH2xETu9+aaMwpb/BfRYGVDEa1mUXc8=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250606093415-2c91f5b7ce9b/go.mod h1:zFWiHphneiey3s8HOtAEnGrRlWivNaxW5T6d5Xfco7g=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250610132304-0ea56270b666 h1:NYaPksM7wPC69Fe9VCUoYY8GYB1hplR6s5hO2PA9rSQ=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250610132304-0ea56270b666/go.mod h1:zFWiHphneiey3s8HOtAEnGrRlWivNaxW5T6d5Xfco7g=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

0 commit comments

Comments
 (0)