Skip to content

Commit f9f6824

Browse files
committed
feat(datawarehouse): update generated API
1 parent 5b4b1c6 commit f9f6824

5 files changed

Lines changed: 443 additions & 6 deletions

File tree

cmd/scw/testdata/test-all-usage-datawarehouse-endpoint-usage.golden

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
Manage endpoints associated with a deployment.
44

55
USAGE:
6-
scw datawarehouse endpoint
6+
scw datawarehouse endpoint <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a new endpoint for a deployment
10+
delete Delete an endpoint from a deployment
711

812
FLAGS:
913
-h, --help help for endpoint
@@ -14,3 +18,5 @@ GLOBAL FLAGS:
1418
-D, --debug Enable debug mode
1519
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
1620
-p, --profile string The config profile to use
21+
22+
Use "scw datawarehouse endpoint [command] --help" for more information about a command.

docs/commands/datawarehouse.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Data Warehouse API.
1414
- [List deployments](#list-deployments)
1515
- [Update a deployment](#update-a-deployment)
1616
- [Endpoint management commands](#endpoint-management-commands)
17+
- [Create a new endpoint for a deployment](#create-a-new-endpoint-for-a-deployment)
18+
- [Delete an endpoint from a deployment](#delete-an-endpoint-from-a-deployment)
1719
- [List available presets](#list-available-presets)
1820
- [List available presets](#list-available-presets)
1921
- [User management commands](#user-management-commands)
@@ -241,15 +243,47 @@ scw datawarehouse deployment update <deployment-id ...> [arg=value ...]
241243

242244
Manage endpoints associated with a deployment.
243245

244-
Manage endpoints associated with a deployment.
246+
247+
### Create a new endpoint for a deployment
248+
249+
Create a new endpoint for a deployment.
250+
251+
**Usage:**
252+
253+
```
254+
scw datawarehouse endpoint create [arg=value ...]
255+
```
256+
257+
258+
**Args:**
259+
260+
| Name | | Description |
261+
|------|---|-------------|
262+
| deployment-id | | UUID of the deployment |
263+
| endpoint.private-network.private-network-id | | UUID of the Private Network |
264+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
265+
266+
267+
268+
### Delete an endpoint from a deployment
269+
270+
Delete an endpoint from a deployment.
245271

246272
**Usage:**
247273

248274
```
249-
scw datawarehouse endpoint
275+
scw datawarehouse endpoint delete [arg=value ...]
250276
```
251277

252278

279+
**Args:**
280+
281+
| Name | | Description |
282+
|------|---|-------------|
283+
| endpoint-id | Required | UUID of the Endpoint to delete |
284+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
285+
286+
253287

254288
## List available presets
255289

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.26.3
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260122164551-ccce19cd242c
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260130135251-d983e7b5616c
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.2
2929
github.com/spf13/pflag v1.0.10

0 commit comments

Comments
 (0)