Skip to content

Commit e0b1670

Browse files
authored
chore(vpcgw): remove v1 api (#5390)
1 parent 68403f1 commit e0b1670

File tree

47 files changed

+157
-4847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+157
-4847
lines changed

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-create-usage.golden

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ Create a new Public Gateway in the specified Scaleway Project, defining its **na
55
USAGE:
66
scw vpc-gw gateway create [arg=value ...]
77

8+
ALIASES:
9+
create-v2
10+
811
ARGS:
9-
[project-id] Project ID to use. If none is passed the default project ID will be used
10-
[name=<generated>] Name for the gateway
11-
[tags.{index}] Tags for the gateway
12-
[type=VPC-GW-S] Gateway type (commercial offer type)
13-
[upstream-dns-servers.{index}] Array of DNS server IP addresses to override the gateway's default recursive DNS servers
14-
[ip-id] Existing IP address to attach to the gateway
15-
[enable-smtp] Defines whether SMTP traffic should be allowed pass through the gateway
16-
[enable-bastion] Defines whether SSH bastion should be enabled the gateway
17-
[bastion-port] Port of the SSH bastion
18-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
[project-id] Project ID to use. If none is passed the default project ID will be used
13+
[name=<generated>] Name for the gateway
14+
[tags.{index}] Tags for the gateway
15+
[type=VPC-GW-S] Gateway type (commercial offer type)
16+
[ip-id] Existing IP address to attach to the gateway
17+
[enable-smtp] Defines whether SMTP traffic should be allowed pass through the gateway
18+
[enable-bastion] Defines whether SSH bastion should be enabled the gateway
19+
[bastion-port] Port of the SSH bastion
20+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1921

2022
FLAGS:
2123
-h, --help help for create

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-delete-usage.golden

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ Delete an existing Public Gateway, specified by its gateway ID. This action is i
55
USAGE:
66
scw vpc-gw gateway delete <gateway-id ...> [arg=value ...]
77

8+
ALIASES:
9+
delete-v2
10+
811
ARGS:
912
gateway-id ID of the gateway to delete
10-
[cleanup-dhcp] Defines whether to clean up attached DHCP configurations (if any, and if not attached to another Gateway Network)
13+
[delete-ip] Defines whether the PGW's IP should be deleted
1114
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1215

1316
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-get-usage.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Get details of a Public Gateway, specified by its gateway ID. The response objec
55
USAGE:
66
scw vpc-gw gateway get <gateway-id ...> [arg=value ...]
77

8+
ALIASES:
9+
get-v2
10+
811
ARGS:
912
gateway-id ID of the gateway to fetch
1013
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-list-usage.golden

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ List Public Gateways in a given Scaleway Organization or Project. By default, re
55
USAGE:
66
scw vpc-gw gateway list [arg=value ...]
77

8+
ALIASES:
9+
list-v2
10+
811
ARGS:
9-
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc | status_asc | status_desc)
10-
[project-id] Include only gateways in this Project
11-
[name] Filter for gateways which have this search term in their name
12-
[tags.{index}] Filter for gateways with these tags
13-
[type] Filter for gateways of this type
14-
[status] Filter for gateways with this current status. Use `unknown` to include all statuses (unknown | stopped | allocating | configuring | running | stopping | failed | deleting | deleted | locked)
15-
[private-network-id] Filter for gateways attached to this Private nNetwork
16-
[organization-id] Include only gateways in this Organization
17-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
12+
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc | status_asc | status_desc)
13+
[project-id] Include only gateways in this Project
14+
[name] Filter for gateways which have this search term in their name
15+
[tags.{index}] Filter for gateways with these tags
16+
[types.{index}] Filter for gateways of these types
17+
[status.{index}] Filter for gateways with these status. Use `unknown` to include all statuses (unknown_status | stopped | allocating | configuring | running | stopping | failed | deleting | locked)
18+
[private-network-ids.{index}] Filter for gateways attached to these Private Networks
19+
[include-legacy] Include also legacy gateways
20+
[organization-id] Include only gateways in this Organization
21+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
1822

1923
FLAGS:
2024
-h, --help help for list

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-create-usage.golden

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Attach a specific Public Gateway to a specific Private Network (create a GatewayNetwork). You can configure parameters for the connection including DHCP settings, whether to enable masquerade (dynamic NAT), and more.
3+
Attach a specific Public Gateway to a specific Private Network (create a GatewayNetwork). You can configure parameters for the connection including whether to enable masquerade (dynamic NAT), and more.
44

55
USAGE:
66
scw vpc-gw gateway-network create [arg=value ...]
77

8+
ALIASES:
9+
create-v2
10+
811
ARGS:
9-
[gateway-id] Public Gateway to connect
10-
[private-network-id] Private Network to connect
11-
[enable-masquerade] Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
12-
[enable-dhcp] Defines whether to enable DHCP on this Private Network.
13-
[dhcp-id] ID of an existing DHCP configuration object to use for this GatewayNetwork
14-
[address] Static IP address in CIDR format to use without DHCP
15-
[ipam-config.push-default-route] Enabling the default route also enables masquerading
16-
[ipam-config.ipam-ip-id] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
17-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
[gateway-id] Public Gateway to connect
13+
[private-network-id] Private Network to connect
14+
[enable-masquerade] Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
15+
[push-default-route] Enabling the default route also enables masquerading
16+
[ipam-ip-id] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
17+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1818

1919
FLAGS:
2020
-h, --help help for create

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-delete-usage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ Detach a given Public Gateway from a given Private Network, i.e. delete a Gatewa
55
USAGE:
66
scw vpc-gw gateway-network delete <gateway-network-id ...> [arg=value ...]
77

8+
ALIASES:
9+
delete-v2
10+
811
ARGS:
912
gateway-network-id ID of the GatewayNetwork to delete
10-
[cleanup-dhcp] Defines whether to clean up attached DHCP configurations (if any, and if not attached to another Gateway Network)
1113
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1214

1315
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-get-usage.golden

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Get details of a given connection between a Public Gateway and a Private Network
55
USAGE:
66
scw vpc-gw gateway-network get <gateway-network-id ...> [arg=value ...]
77

8+
ALIASES:
9+
get-v2
10+
811
ARGS:
912
gateway-network-id ID of the GatewayNetwork to fetch
1013
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-list-usage.golden

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ List the connections between Public Gateways and Private Networks (a connection
55
USAGE:
66
scw vpc-gw gateway-network list [arg=value ...]
77

8+
ALIASES:
9+
list-v2
10+
811
ARGS:
9-
[order-by] Order in which to return results (created_at_asc | created_at_desc | status_asc | status_desc)
10-
[gateway-id] Filter for GatewayNetworks connected to this gateway
11-
[private-network-id] Filter for GatewayNetworks connected to this Private Network
12-
[enable-masquerade] Filter for GatewayNetworks with this `enable_masquerade` setting
13-
[dhcp-id] Filter for GatewayNetworks using this DHCP configuration
14-
[status] Filter for GatewayNetworks with this current status this status. Use `unknown` to include all statuses (unknown | created | attaching | configuring | ready | detaching | deleted)
15-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
12+
[order-by] Order in which to return results (created_at_asc | created_at_desc | status_asc | status_desc)
13+
[status.{index}] Filter for GatewayNetworks with these status. Use `unknown` to include all statuses (unknown_status | created | attaching | configuring | ready | detaching)
14+
[gateway-ids.{index}] Filter for GatewayNetworks connected to these gateways
15+
[private-network-ids.{index}] Filter for GatewayNetworks connected to these Private Networks
16+
[masquerade-enabled] Filter for GatewayNetworks with this `enable_masquerade` setting
17+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
1618

1719
FLAGS:
1820
-h, --help help for list

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-update-usage.golden

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update the configuration parameters of a connection between a given Public Gateway and Private Network (the connection = a GatewayNetwork). Updatable parameters include DHCP settings and whether to enable traffic masquerade (dynamic NAT).
3+
Update the configuration parameters of a connection between a given Public Gateway and Private Network (the connection = a GatewayNetwork). Updatable parameters include whether to enable traffic masquerade (dynamic NAT).
44

55
USAGE:
66
scw vpc-gw gateway-network update <gateway-network-id ...> [arg=value ...]
77

8+
ALIASES:
9+
update-v2
10+
811
ARGS:
9-
gateway-network-id ID of the GatewayNetwork to update
10-
[enable-masquerade] Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
11-
[enable-dhcp] Defines whether to enable DHCP on this Private Network.
12-
[dhcp-id] ID of the new DHCP configuration object to use with this GatewayNetwork
13-
[address] New static IP address
14-
[ipam-config.push-default-route] Enabling the default route also enables masquerading
15-
[ipam-config.ipam-ip-id] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
16-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
12+
gateway-network-id ID of the GatewayNetwork to update
13+
[enable-masquerade] Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
14+
[push-default-route] Enabling the default route also enables masquerading
15+
[ipam-ip-id] Use this IPAM-booked IP ID as the Gateway's IP in this Private Network
16+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
1717

1818
FLAGS:
1919
-h, --help help for update

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-network-usage.golden

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
A Gateway Network represents the connection of a Private Network to a Public Gateway. It holds configuration options relative to this specific connection, such as the DHCP configuration.
3+
A Gateway Network represents the connection of a Private Network to a Public Gateway.
44

55
USAGE:
66
scw vpc-gw gateway-network <command>
77

88
AVAILABLE COMMANDS:
9-
create-v2 Attach a Public Gateway to a Private Network
10-
delete-v2 Detach a Public Gateway from a Private Network
11-
get-v2 Get a Public Gateway connection to a Private Network
12-
list-v2 List Public Gateway connections to Private Networks
13-
update-v2 Update a Public Gateway's connection to a Private Network
9+
create Attach a Public Gateway to a Private Network
10+
delete Detach a Public Gateway from a Private Network
11+
get Get a Public Gateway connection to a Private Network
12+
list List Public Gateway connections to Private Networks
13+
update Update a Public Gateway's connection to a Private Network
1414

1515
FLAGS:
1616
-h, --help help for gateway-network

0 commit comments

Comments
 (0)