Skip to content

Commit 3266f5d

Browse files
committed
feat: update generated APIs
1 parent 4e33c67 commit 3266f5d

File tree

27 files changed

+787
-347
lines changed

27 files changed

+787
-347
lines changed

cmd/scw/testdata/test-all-usage-baremetal-usage.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ AVAILABLE COMMANDS:
1111
options Server options management commands
1212
os Operating System (OS) management commands
1313
partitioning-schemas Partitioning-schemas management commands
14-
private-network Private Network management command
1514
server Server management commands
1615
settings Settings management commands
1716

cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ To create a snapshot, the volume must be in the `in_use` or the `available` stat
44
If your volume is in a transient state, you need to wait until the end of the current operation.
55

66
USAGE:
7-
scw block snapshot create [arg=value ...]
7+
scw block snapshot create <volume-id ...> [arg=value ...]
88

99
ARGS:
10-
[volume-id] UUID of the volume to snapshot
10+
volume-id UUID of the volume to snapshot
1111
[name=<generated>] Name of the snapshot
1212
[project-id] Project ID to use. If none is passed the default project ID will be used
1313
[tags.{index}] List of tags assigned to the snapshot

docs/commands/baremetal.md

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ Elastic Metal API.
1818
- [Get OS with an ID](#get-os-with-an-id)
1919
- [List available OSes](#list-available-oses)
2020
- [Partitioning-schemas management commands](#partitioning-schemas-management-commands)
21-
- [Private Network management command](#private-network-management-command)
22-
- [Add a server to a Private Network](#add-a-server-to-a-private-network)
23-
- [Delete a Private Network](#delete-a-private-network)
24-
- [List the Private Networks of a server](#list-the-private-networks-of-a-server)
25-
- [Set multiple Private Networks on a server](#set-multiple-private-networks-on-a-server)
2621
- [Server management commands](#server-management-commands)
2722
- [Attach a new flexible IP to a server](#attach-a-new-flexible-ip-to-a-server)
2823
- [Create an Elastic Metal server](#create-an-elastic-metal-server)
@@ -391,105 +386,6 @@ scw baremetal partitioning-schemas
391386

392387

393388

394-
## Private Network management command
395-
396-
A Private Network allows you to interconnect your resources
397-
(servers, instances, ...) in an isolated and private
398-
network. The network reachability is limited to the
399-
resources that are on the same Private Network . A VLAN
400-
interface is available on the server and can be freely
401-
managed (adding IP addresses, shutdown interface...).
402-
403-
Note that a resource can be a part of multiple Private Networks.
404-
405-
406-
### Add a server to a Private Network
407-
408-
Add a server to a Private Network.
409-
410-
**Usage:**
411-
412-
```
413-
scw baremetal private-network add [arg=value ...]
414-
```
415-
416-
417-
**Args:**
418-
419-
| Name | | Description |
420-
|------|---|-------------|
421-
| server-id | Required | The ID of the server |
422-
| private-network-id | Required | The ID of the Private Network |
423-
| zone | Default: `fr-par-1`<br />One of: `fr-par-2` | Zone to target. If none is passed will use default zone from the config |
424-
425-
426-
427-
### Delete a Private Network
428-
429-
Delete a Private Network.
430-
431-
**Usage:**
432-
433-
```
434-
scw baremetal private-network delete [arg=value ...]
435-
```
436-
437-
438-
**Args:**
439-
440-
| Name | | Description |
441-
|------|---|-------------|
442-
| server-id | Required | The ID of the server |
443-
| private-network-id | Required | The ID of the Private Network |
444-
| zone | Default: `fr-par-1`<br />One of: `fr-par-2` | Zone to target. If none is passed will use default zone from the config |
445-
446-
447-
448-
### List the Private Networks of a server
449-
450-
List the Private Networks of a server.
451-
452-
**Usage:**
453-
454-
```
455-
scw baremetal private-network list [arg=value ...]
456-
```
457-
458-
459-
**Args:**
460-
461-
| Name | | Description |
462-
|------|---|-------------|
463-
| order-by | One of: `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc` | The sort order for the returned Private Networks |
464-
| server-id | | Filter Private Networks by server ID |
465-
| private-network-id | | Filter Private Networks by Private Network ID |
466-
| project-id | | Filter Private Networks by Project ID |
467-
| organization-id | | Filter Private Networks by Organization ID |
468-
| zone | Default: `fr-par-1`<br />One of: `fr-par-2`, `all` | Zone to target. If none is passed will use default zone from the config |
469-
470-
471-
472-
### Set multiple Private Networks on a server
473-
474-
Set multiple Private Networks on a server.
475-
476-
**Usage:**
477-
478-
```
479-
scw baremetal private-network set [arg=value ...]
480-
```
481-
482-
483-
**Args:**
484-
485-
| Name | | Description |
486-
|------|---|-------------|
487-
| server-id | Required | The ID of the server |
488-
| private-network-ids.{index} | Required | The IDs of the Private Networks |
489-
| zone | Default: `fr-par-1`<br />One of: `fr-par-2` | Zone to target. If none is passed will use default zone from the config |
490-
491-
492-
493389
## Server management commands
494390

495391
A server is a denomination of a type of instances provided by Scaleway.

docs/commands/block.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ If your volume is in a transient state, you need to wait until the end of the cu
3535
**Usage:**
3636

3737
```
38-
scw block snapshot create [arg=value ...]
38+
scw block snapshot create <volume-id ...> [arg=value ...]
3939
```
4040

4141

4242
**Args:**
4343

4444
| Name | | Description |
4545
|------|---|-------------|
46-
| volume-id | | UUID of the volume to snapshot |
46+
| volume-id | Required | UUID of the volume to snapshot |
4747
| name | Default: `<generated>` | Name of the snapshot |
4848
| project-id | | Project ID to use. If none is passed the default project ID will be used |
4949
| tags.{index} | | List of tags assigned to the snapshot |

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/v2/core"
11-
applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
11+
"github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/v2/core"
11-
audit_trail "github.com/scaleway/scaleway-sdk-go/api/audit_trail/v1alpha1"
11+
"github.com/scaleway/scaleway-sdk-go/api/audit_trail/v1alpha1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

0 commit comments

Comments
 (0)