Skip to content

Commit b3b0229

Browse files
committed
feat: update generated APIs
1 parent 9850cc4 commit b3b0229

14 files changed

+476
-9
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+
Add an Apple silicon server to a Private Network.
4+
5+
USAGE:
6+
scw apple-silicon private-network add [arg=value ...]
7+
8+
ARGS:
9+
server-id ID of the server
10+
private-network-id ID of the Private Network
11+
[ipam-ip-ids.{index}] IPAM IDs of IPs to attach to the server
12+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-3)
13+
14+
FLAGS:
15+
-h, --help help for add
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 Private Network.
4+
5+
USAGE:
6+
scw apple-silicon private-network delete [arg=value ...]
7+
8+
ARGS:
9+
server-id ID of the server
10+
private-network-id ID of the Private Network
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-3)
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List the Private Networks of an Apple silicon server.
4+
5+
USAGE:
6+
scw apple-silicon private-network list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] Sort order for the returned Private Networks (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc)
10+
[server-id] Filter Private Networks by server ID
11+
[private-network-id] Filter Private Networks by Private Network ID
12+
[project-id] Filter Private Networks by Project ID
13+
[ipam-ip-ids.{index}] Filter Private Networks by IPAM IP IDs
14+
[organization-id] Filter Private Networks by Organization ID
15+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-3 | all)
16+
17+
FLAGS:
18+
-h, --help help for list
19+
20+
GLOBAL FLAGS:
21+
-c, --config string The path to the config file
22+
-D, --debug Enable debug mode
23+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
24+
-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+
Configure multiple Private Networks on an Apple silicon server.
4+
5+
USAGE:
6+
scw apple-silicon private-network set [arg=value ...]
7+
8+
ARGS:
9+
server-id ID of the server
10+
per-private-network-ipam-ip-ids.{key} Object where the keys are the IDs of Private Networks and the values are arrays of IPAM IDs representing the IPs to assign to this Apple silicon server on the Private Network. If the array supplied for a Private Network is empty, the next available IP from the Private Network's CIDR block will automatically be used for attachment.
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-3)
12+
13+
FLAGS:
14+
-h, --help help for set
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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
A Private Network allows you to interconnect your resources
4+
in an isolated and private
5+
network. Network reachability is limited to the
6+
resources that are in the same VPC.
7+
8+
Note that a resource can be a part of multiple Private Networks.
9+
10+
USAGE:
11+
scw apple-silicon private-network <command>
12+
13+
AVAILABLE COMMANDS:
14+
add Add a server to a Private Network
15+
delete Delete a Private Network
16+
list List the Private Networks of a server
17+
set Set multiple Private Networks on a server
18+
19+
FLAGS:
20+
-h, --help help for private-network
21+
22+
GLOBAL FLAGS:
23+
-c, --config string The path to the config file
24+
-D, --debug Enable debug mode
25+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
26+
-p, --profile string The config profile to use
27+
28+
Use "scw apple-silicon private-network [command] --help" for more information about a command.

cmd/scw/testdata/test-all-usage-apple-silicon-usage.golden

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ USAGE:
66
scw apple-silicon <command>
77

88
AVAILABLE COMMANDS:
9-
os OS management commands
10-
server Apple silicon management commands
11-
server-type Server-Types management commands
9+
os OS management commands
10+
private-network Private network management command
11+
server Apple silicon management commands
12+
server-type Server-Types management commands
1213

1314
FLAGS:
1415
-h, --help help for apple-silicon
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
This section allows you to manage and get get subscribed information about your project email offer.
4+
5+
USAGE:
6+
scw tem offers
7+
8+
FLAGS:
9+
-h, --help help for offers
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Project settings allow you to manage the configuration of your settings.
3+
Project settings allow you to manage the configuration of your projects.
44

55
USAGE:
66
scw tem project-settings

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ AVAILABLE COMMANDS:
99
blocklists Blocklist
1010
domain Domain management commands
1111
email Email management commands
12+
offers Project offers management commands
1213
project-settings Project settings management commands
1314
webhook Webhook management commands
1415

docs/commands/apple-silicon.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Apple silicon API.
55
- [OS management commands](#os-management-commands)
66
- [Get an Operating System (OS)](#get-an-operating-system-(os))
77
- [List all Operating Systems (OS)](#list-all-operating-systems-(os))
8+
- [Private network management command](#private-network-management-command)
9+
- [Add a server to a Private Network](#add-a-server-to-a-private-network)
10+
- [Delete a Private Network](#delete-a-private-network)
11+
- [List the Private Networks of a server](#list-the-private-networks-of-a-server)
12+
- [Set multiple Private Networks on a server](#set-multiple-private-networks-on-a-server)
813
- [Apple silicon management commands](#apple-silicon-management-commands)
914
- [Create a server](#create-a-server)
1015
- [Delete a server](#delete-a-server)
@@ -66,6 +71,105 @@ scw apple-silicon os list [arg=value ...]
6671

6772

6873

74+
## Private network management command
75+
76+
A Private Network allows you to interconnect your resources
77+
in an isolated and private
78+
network. Network reachability is limited to the
79+
resources that are in the same VPC.
80+
81+
Note that a resource can be a part of multiple Private Networks.
82+
83+
84+
### Add a server to a Private Network
85+
86+
Add an Apple silicon server to a Private Network.
87+
88+
**Usage:**
89+
90+
```
91+
scw apple-silicon private-network add [arg=value ...]
92+
```
93+
94+
95+
**Args:**
96+
97+
| Name | | Description |
98+
|------|---|-------------|
99+
| server-id | Required | ID of the server |
100+
| private-network-id | Required | ID of the Private Network |
101+
| ipam-ip-ids.{index} | | IPAM IDs of IPs to attach to the server |
102+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
103+
104+
105+
106+
### Delete a Private Network
107+
108+
Delete a Private Network.
109+
110+
**Usage:**
111+
112+
```
113+
scw apple-silicon private-network delete [arg=value ...]
114+
```
115+
116+
117+
**Args:**
118+
119+
| Name | | Description |
120+
|------|---|-------------|
121+
| server-id | Required | ID of the server |
122+
| private-network-id | Required | ID of the Private Network |
123+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
124+
125+
126+
127+
### List the Private Networks of a server
128+
129+
List the Private Networks of an Apple silicon server.
130+
131+
**Usage:**
132+
133+
```
134+
scw apple-silicon private-network list [arg=value ...]
135+
```
136+
137+
138+
**Args:**
139+
140+
| Name | | Description |
141+
|------|---|-------------|
142+
| order-by | One of: `created_at_asc`, `created_at_desc`, `updated_at_asc`, `updated_at_desc` | Sort order for the returned Private Networks |
143+
| server-id | | Filter Private Networks by server ID |
144+
| private-network-id | | Filter Private Networks by Private Network ID |
145+
| project-id | | Filter Private Networks by Project ID |
146+
| ipam-ip-ids.{index} | | Filter Private Networks by IPAM IP IDs |
147+
| organization-id | | Filter Private Networks by Organization ID |
148+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-3`, `all` | Zone to target. If none is passed will use default zone from the config |
149+
150+
151+
152+
### Set multiple Private Networks on a server
153+
154+
Configure multiple Private Networks on an Apple silicon server.
155+
156+
**Usage:**
157+
158+
```
159+
scw apple-silicon private-network set [arg=value ...]
160+
```
161+
162+
163+
**Args:**
164+
165+
| Name | | Description |
166+
|------|---|-------------|
167+
| server-id | Required | ID of the server |
168+
| per-private-network-ipam-ip-ids.{key} | Required | Object where the keys are the IDs of Private Networks and the values are arrays of IPAM IDs representing the IPs to assign to this Apple silicon server on the Private Network. If the array supplied for a Private Network is empty, the next available IP from the Private Network's CIDR block will automatically be used for attachment. |
169+
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
170+
171+
172+
69173
## Apple silicon management commands
70174

71175
Apple silicon management commands.

0 commit comments

Comments
 (0)