Skip to content

Commit d64cb80

Browse files
authored
chore(vpc_gw): deprecate v1 (#944)
1 parent fc7551d commit d64cb80

File tree

2 files changed

+90
-0
lines changed
  • scaleway-async/scaleway_async/vpcgw/v1
  • scaleway/scaleway/vpcgw/v1

2 files changed

+90
-0
lines changed

scaleway-async/scaleway_async/vpcgw/v1/api.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ async def list_gateways(
133133
:param status: Filter for gateways with this current status. Use `unknown` to include all statuses.
134134
:param private_network_id: Filter for gateways attached to this Private nNetwork.
135135
:return: :class:`ListGatewaysResponse <ListGatewaysResponse>`
136+
:deprecated
136137
137138
Usage:
138139
::
@@ -193,6 +194,7 @@ async def list_gateways_all(
193194
:param status: Filter for gateways with this current status. Use `unknown` to include all statuses.
194195
:param private_network_id: Filter for gateways attached to this Private nNetwork.
195196
:return: :class:`List[Gateway] <List[Gateway]>`
197+
:deprecated
196198
197199
Usage:
198200
::
@@ -231,6 +233,7 @@ async def get_gateway(
231233
:param gateway_id: ID of the gateway to fetch.
232234
:param zone: Zone to target. If none is passed will use default zone from the config.
233235
:return: :class:`Gateway <Gateway>`
236+
:deprecated
234237
235238
Usage:
236239
::
@@ -264,6 +267,7 @@ async def wait_for_gateway(
264267
:param gateway_id: ID of the gateway to fetch.
265268
:param zone: Zone to target. If none is passed will use default zone from the config.
266269
:return: :class:`Gateway <Gateway>`
270+
:deprecated
267271
268272
Usage:
269273
::
@@ -316,6 +320,7 @@ async def create_gateway(
316320
:param ip_id: Existing IP address to attach to the gateway.
317321
:param bastion_port: Port of the SSH bastion.
318322
:return: :class:`Gateway <Gateway>`
323+
:deprecated
319324
320325
Usage:
321326
::
@@ -376,6 +381,7 @@ async def update_gateway(
376381
:param bastion_port: Port of the SSH bastion.
377382
:param enable_smtp: Defines whether SMTP traffic should be allowed to pass through the gateway.
378383
:return: :class:`Gateway <Gateway>`
384+
:deprecated
379385
380386
Usage:
381387
::
@@ -422,6 +428,7 @@ async def delete_gateway(
422428
:param gateway_id: ID of the gateway to delete.
423429
:param cleanup_dhcp: Defines whether to clean up attached DHCP configurations (if any, and if not attached to another Gateway Network).
424430
:param zone: Zone to target. If none is passed will use default zone from the config.
431+
:deprecated
425432
426433
Usage:
427434
::
@@ -459,6 +466,7 @@ async def upgrade_gateway(
459466
:param zone: Zone to target. If none is passed will use default zone from the config.
460467
:param type_: Gateway type (commercial offer).
461468
:return: :class:`Gateway <Gateway>`
469+
:deprecated
462470
463471
Usage:
464472
::
@@ -498,6 +506,7 @@ async def enable_ip_mobility(
498506
Upgrade a Public Gateway to IP mobility (move from NAT IP to routed IP). This is idempotent: repeated calls after the first will return no error but have no effect.
499507
:param gateway_id: ID of the gateway to upgrade to IP mobility.
500508
:param zone: Zone to target. If none is passed will use default zone from the config.
509+
:deprecated
501510
502511
Usage:
503512
::
@@ -544,6 +553,7 @@ async def list_gateway_networks(
544553
:param dhcp_id: Filter for GatewayNetworks using this DHCP configuration.
545554
:param status: Filter for GatewayNetworks with this current status this status. Use `unknown` to include all statuses.
546555
:return: :class:`ListGatewayNetworksResponse <ListGatewayNetworksResponse>`
556+
:deprecated
547557
548558
Usage:
549559
::
@@ -597,6 +607,7 @@ async def list_gateway_networks_all(
597607
:param dhcp_id: Filter for GatewayNetworks using this DHCP configuration.
598608
:param status: Filter for GatewayNetworks with this current status this status. Use `unknown` to include all statuses.
599609
:return: :class:`List[GatewayNetwork] <List[GatewayNetwork]>`
610+
:deprecated
600611
601612
Usage:
602613
::
@@ -633,6 +644,7 @@ async def get_gateway_network(
633644
:param gateway_network_id: ID of the GatewayNetwork to fetch.
634645
:param zone: Zone to target. If none is passed will use default zone from the config.
635646
:return: :class:`GatewayNetwork <GatewayNetwork>`
647+
:deprecated
636648
637649
Usage:
638650
::
@@ -670,6 +682,7 @@ async def wait_for_gateway_network(
670682
:param gateway_network_id: ID of the GatewayNetwork to fetch.
671683
:param zone: Zone to target. If none is passed will use default zone from the config.
672684
:return: :class:`GatewayNetwork <GatewayNetwork>`
685+
:deprecated
673686
674687
Usage:
675688
::
@@ -727,6 +740,7 @@ async def create_gateway_network(
727740
:param ipam_config: Note: all or none of the GatewayNetworks for a single gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed. Some products may require that the Public Gateway uses the IPAM, to ensure correct functionality.
728741
One-Of ('ip_config'): at most one of 'dhcp_id', 'dhcp', 'address', 'ipam_config' could be set.
729742
:return: :class:`GatewayNetwork <GatewayNetwork>`
743+
:deprecated
730744
731745
Usage:
732746
::
@@ -788,6 +802,7 @@ async def update_gateway_network(
788802
:param ipam_config: Note: all or none of the GatewayNetworks for a single gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed. Some products may require that the Public Gateway uses the IPAM, to ensure correct functionality.
789803
One-Of ('ip_config'): at most one of 'dhcp_id', 'address', 'ipam_config' could be set.
790804
:return: :class:`GatewayNetwork <GatewayNetwork>`
805+
:deprecated
791806
792807
Usage:
793808
::
@@ -835,6 +850,7 @@ async def delete_gateway_network(
835850
:param gateway_network_id: ID of the GatewayNetwork to delete.
836851
:param cleanup_dhcp: Defines whether to clean up attached DHCP configurations (if any, and if not attached to another Gateway Network).
837852
:param zone: Zone to target. If none is passed will use default zone from the config.
853+
:deprecated
838854
839855
Usage:
840856
::
@@ -884,6 +900,7 @@ async def list_dhc_ps(
884900
:param address: Filter for DHCP configuration objects with this DHCP server IP address (the gateway's address in the Private Network).
885901
:param has_address: Filter for DHCP configuration objects with subnets containing this IP address.
886902
:return: :class:`ListDHCPsResponse <ListDHCPsResponse>`
903+
:deprecated
887904
888905
Usage:
889906
::
@@ -935,6 +952,7 @@ async def list_dhc_ps_all(
935952
:param address: Filter for DHCP configuration objects with this DHCP server IP address (the gateway's address in the Private Network).
936953
:param has_address: Filter for DHCP configuration objects with subnets containing this IP address.
937954
:return: :class:`List[DHCP] <List[DHCP]>`
955+
:deprecated
938956
939957
Usage:
940958
::
@@ -970,6 +988,7 @@ async def get_dhcp(
970988
:param dhcp_id: ID of the DHCP configuration to fetch.
971989
:param zone: Zone to target. If none is passed will use default zone from the config.
972990
:return: :class:`DHCP <DHCP>`
991+
:deprecated
973992
974993
Usage:
975994
::
@@ -1028,6 +1047,7 @@ async def create_dhcp(
10281047
:param dns_search: Array of search paths in addition to the pushed DNS configuration.
10291048
:param dns_local_name: TLD given to hostnames in the Private Network. Allowed characters are `a-z0-9-.`. Defaults to the slugified Private Network name if created along a GatewayNetwork, or else to `priv`.
10301049
:return: :class:`DHCP <DHCP>`
1050+
:deprecated
10311051
10321052
Usage:
10331053
::
@@ -1105,6 +1125,7 @@ async def update_dhcp(
11051125
:param dns_search: Array of search paths in addition to the pushed DNS configuration.
11061126
:param dns_local_name: TLD given to hostnames in the Private Networks. If an instance with hostname `foo` gets a lease, and this is set to `bar`, `foo.bar` will resolve. Allowed characters are `a-z0-9-.`.
11071127
:return: :class:`DHCP <DHCP>`
1128+
:deprecated
11081129
11091130
Usage:
11101131
::
@@ -1156,6 +1177,7 @@ async def delete_dhcp(
11561177
Delete a DHCP configuration object, identified by its DHCP ID. Note that you cannot delete a DHCP configuration object that is currently being used by a Gateway Network.
11571178
:param dhcp_id: DHCP configuration ID to delete.
11581179
:param zone: Zone to target. If none is passed will use default zone from the config.
1180+
:deprecated
11591181
11601182
Usage:
11611183
::
@@ -1201,6 +1223,7 @@ async def list_dhcp_entries(
12011223
:param hostname: Filter for entries with this hostname substring.
12021224
:param type_: Filter for entries of this type.
12031225
:return: :class:`ListDHCPEntriesResponse <ListDHCPEntriesResponse>`
1226+
:deprecated
12041227
12051228
Usage:
12061229
::
@@ -1254,6 +1277,7 @@ async def list_dhcp_entries_all(
12541277
:param hostname: Filter for entries with this hostname substring.
12551278
:param type_: Filter for entries of this type.
12561279
:return: :class:`List[DHCPEntry] <List[DHCPEntry]>`
1280+
:deprecated
12571281
12581282
Usage:
12591283
::
@@ -1290,6 +1314,7 @@ async def get_dhcp_entry(
12901314
:param dhcp_entry_id: ID of the DHCP entry to fetch.
12911315
:param zone: Zone to target. If none is passed will use default zone from the config.
12921316
:return: :class:`DHCPEntry <DHCPEntry>`
1317+
:deprecated
12931318
12941319
Usage:
12951320
::
@@ -1326,6 +1351,7 @@ async def create_dhcp_entry(
13261351
:param ip_address: IP address to give to the device.
13271352
:param zone: Zone to target. If none is passed will use default zone from the config.
13281353
:return: :class:`DHCPEntry <DHCPEntry>`
1354+
:deprecated
13291355
13301356
Usage:
13311357
::
@@ -1370,6 +1396,7 @@ async def update_dhcp_entry(
13701396
:param zone: Zone to target. If none is passed will use default zone from the config.
13711397
:param ip_address: New IP address to give to the device.
13721398
:return: :class:`DHCPEntry <DHCPEntry>`
1399+
:deprecated
13731400
13741401
Usage:
13751402
::
@@ -1412,6 +1439,7 @@ async def set_dhcp_entries(
14121439
:param zone: Zone to target. If none is passed will use default zone from the config.
14131440
:param dhcp_entries: New list of DHCP reservations.
14141441
:return: :class:`SetDHCPEntriesResponse <SetDHCPEntriesResponse>`
1442+
:deprecated
14151443
14161444
Usage:
14171445
::
@@ -1450,6 +1478,7 @@ async def delete_dhcp_entry(
14501478
Delete a static DHCP reservation, identified by its DHCP entry ID. Note that you cannot delete DHCP entries of type `lease`, these are deleted automatically when their time-to-live expires.
14511479
:param dhcp_entry_id: ID of the DHCP entry to delete.
14521480
:param zone: Zone to target. If none is passed will use default zone from the config.
1481+
:deprecated
14531482
14541483
Usage:
14551484
::
@@ -1491,6 +1520,7 @@ async def list_pat_rules(
14911520
:param private_ip: Filter for PAT rules targeting this private ip.
14921521
:param protocol: Filter for PAT rules with this protocol.
14931522
:return: :class:`ListPATRulesResponse <ListPATRulesResponse>`
1523+
:deprecated
14941524
14951525
Usage:
14961526
::
@@ -1538,6 +1568,7 @@ async def list_pat_rules_all(
15381568
:param private_ip: Filter for PAT rules targeting this private ip.
15391569
:param protocol: Filter for PAT rules with this protocol.
15401570
:return: :class:`List[PATRule] <List[PATRule]>`
1571+
:deprecated
15411572
15421573
Usage:
15431574
::
@@ -1572,6 +1603,7 @@ async def get_pat_rule(
15721603
:param pat_rule_id: ID of the PAT rule to get.
15731604
:param zone: Zone to target. If none is passed will use default zone from the config.
15741605
:return: :class:`PATRule <PATRule>`
1606+
:deprecated
15751607
15761608
Usage:
15771609
::
@@ -1612,6 +1644,7 @@ async def create_pat_rule(
16121644
:param zone: Zone to target. If none is passed will use default zone from the config.
16131645
:param protocol: Protocol the rule should apply to.
16141646
:return: :class:`PATRule <PATRule>`
1647+
:deprecated
16151648
16161649
Usage:
16171650
::
@@ -1665,6 +1698,7 @@ async def update_pat_rule(
16651698
:param private_port: Private port to translate to.
16661699
:param protocol: Protocol the rule should apply to.
16671700
:return: :class:`PATRule <PATRule>`
1701+
:deprecated
16681702
16691703
Usage:
16701704
::
@@ -1710,6 +1744,7 @@ async def set_pat_rules(
17101744
:param pat_rules: New list of PAT rules.
17111745
:param zone: Zone to target. If none is passed will use default zone from the config.
17121746
:return: :class:`SetPATRulesResponse <SetPATRulesResponse>`
1747+
:deprecated
17131748
17141749
Usage:
17151750
::
@@ -1749,6 +1784,7 @@ async def delete_pat_rule(
17491784
Delete a PAT rule, identified by its PAT rule ID. This action is irreversible.
17501785
:param pat_rule_id: ID of the PAT rule to delete.
17511786
:param zone: Zone to target. If none is passed will use default zone from the config.
1787+
:deprecated
17521788
17531789
Usage:
17541790
::
@@ -1778,6 +1814,7 @@ async def list_gateway_types(
17781814
List the different Public Gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available gateway type.
17791815
:param zone: Zone to target. If none is passed will use default zone from the config.
17801816
:return: :class:`ListGatewayTypesResponse <ListGatewayTypesResponse>`
1817+
:deprecated
17811818
17821819
Usage:
17831820
::
@@ -1821,6 +1858,7 @@ async def list_i_ps(
18211858
:param reverse: Filter for IP addresses that have a reverse containing this string.
18221859
:param is_free: Filter based on whether the IP is attached to a gateway or not.
18231860
:return: :class:`ListIPsResponse <ListIPsResponse>`
1861+
:deprecated
18241862
18251863
Usage:
18261864
::
@@ -1875,6 +1913,7 @@ async def list_i_ps_all(
18751913
:param reverse: Filter for IP addresses that have a reverse containing this string.
18761914
:param is_free: Filter based on whether the IP is attached to a gateway or not.
18771915
:return: :class:`List[IP] <List[IP]>`
1916+
:deprecated
18781917
18791918
Usage:
18801919
::
@@ -1911,6 +1950,7 @@ async def get_ip(
19111950
:param ip_id: ID of the IP address to get.
19121951
:param zone: Zone to target. If none is passed will use default zone from the config.
19131952
:return: :class:`IP <IP>`
1953+
:deprecated
19141954
19151955
Usage:
19161956
::
@@ -1945,6 +1985,7 @@ async def create_ip(
19451985
:param project_id: Project to create the IP address in.
19461986
:param tags: Tags to give to the IP address.
19471987
:return: :class:`IP <IP>`
1988+
:deprecated
19481989
19491990
Usage:
19501991
::
@@ -1988,6 +2029,7 @@ async def update_ip(
19882029
:param reverse: Reverse to set on the address. Empty string to unset.
19892030
:param gateway_id: Gateway to attach the IP address to. Empty string to detach.
19902031
:return: :class:`IP <IP>`
2032+
:deprecated
19912033
19922034
Usage:
19932035
::
@@ -2029,6 +2071,7 @@ async def delete_ip(
20292071
Delete a flexible IP address from your account. This action is irreversible.
20302072
:param ip_id: ID of the IP address to delete.
20312073
:param zone: Zone to target. If none is passed will use default zone from the config.
2074+
:deprecated
20322075
20332076
Usage:
20342077
::
@@ -2060,6 +2103,7 @@ async def refresh_ssh_keys(
20602103
:param gateway_id: ID of the gateway to refresh SSH keys on.
20612104
:param zone: Zone to target. If none is passed will use default zone from the config.
20622105
:return: :class:`Gateway <Gateway>`
2106+
:deprecated
20632107
20642108
Usage:
20652109
::
@@ -2092,6 +2136,7 @@ async def migrate_to_v2(
20922136
Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2. This call is idempotent.
20932137
:param gateway_id: ID of the gateway to put into IPAM mode.
20942138
:param zone: Zone to target. If none is passed will use default zone from the config.
2139+
:deprecated
20952140
20962141
Usage:
20972142
::

0 commit comments

Comments
 (0)