Skip to content

Commit 701b11d

Browse files
authored
feat: support for directlink tgw connection type (#36)
1 parent df097f8 commit 701b11d

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

ibm_cloud_networking_services/transit_gateway_apis_v1.py

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ def create_transit_gateway_connection(self,
495495
in a different account than the gateway. This field is required to be
496496
unspecified for network type 'gre_tunnel'.
497497
:param str network_id: (optional) The ID of the network being connected via
498-
this connection. This field is required for some types, such as 'vpc'. For
499-
network type 'vpc' this is the CRN of the VPC to be connected. This field
500-
is required to be unspecified for network type 'classic' and 'gre_tunnel'
501-
connections.
498+
this connection. This field is required for some types, such as 'vpc' and
499+
'directlink'. For network types 'vpc' and 'directlink' this is the CRN of
500+
the VPC / Direct Link gateway respectively. This field is required to be
501+
unspecified for network type 'classic' and 'gre_tunnel' connections.
502502
:param str remote_bgp_asn: (optional) Remote network BGP ASN. This field
503503
is only applicable to 'gre_tunnel' type connections. The following ASN
504504
values are reserved and unavailable 64512-64513, 65100, 65201-65234,
@@ -1335,8 +1335,9 @@ class TransitConnection():
13351335
connected network. Generally only used if the network is in a different IBM
13361336
Cloud account than the gateway.
13371337
:attr str network_id: (optional) The ID of the network being connected via this
1338-
connection. This field is required for some types, such as 'vpc'. For network
1339-
type 'vpc' this is the CRN of the VPC to be connected.
1338+
connection. This field is required for some types, such as 'vpc' and
1339+
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN of
1340+
the target vpc / gateway respectively.
13401341
:attr str network_type: Defines what type of network is connected via this
13411342
connection. The list of enumerated values for this property may expand in the
13421343
future. Code and processes using this field must tolerate unexpected values.
@@ -1417,8 +1418,9 @@ def __init__(self,
14171418
the connected network. Generally only used if the network is in a different
14181419
IBM Cloud account than the gateway.
14191420
:param str network_id: (optional) The ID of the network being connected via
1420-
this connection. This field is required for some types, such as 'vpc'. For
1421-
network type 'vpc' this is the CRN of the VPC to be connected.
1421+
this connection. This field is required for some types, such as 'vpc' and
1422+
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN
1423+
of the target vpc / gateway respectively.
14221424
:param int remote_bgp_asn: (optional) Remote network BGP ASN. This field
14231425
only applies to network type 'gre_tunnel' connections.
14241426
:param str remote_gateway_ip: (optional) Remote gateway IP address. This
@@ -1583,9 +1585,10 @@ class NetworkTypeEnum(str, Enum):
15831585
enumerated values for this property may expand in the future. Code and processes
15841586
using this field must tolerate unexpected values.
15851587
"""
1586-
VPC = 'vpc'
15871588
CLASSIC = 'classic'
1589+
DIRECTLINK = 'directlink'
15881590
GRE_TUNNEL = 'gre_tunnel'
1591+
VPC = 'vpc'
15891592

15901593

15911594
class RequestStatusEnum(str, Enum):
@@ -2267,8 +2270,9 @@ class TransitGatewayConnectionCust():
22672270
22682271
:attr str name: The user-defined name for this transit gateway connection.
22692272
:attr str network_id: (optional) The ID of the network being connected via this
2270-
connection. This field is required for some types, such as 'vpc'. For network
2271-
type 'vpc' this is the CRN of the VPC to be connected.
2273+
connection. This field is required for some types, such as 'vpc' and
2274+
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN of
2275+
the target vpc / gateway respectively.
22722276
:attr str network_type: Defines what type of network is connected via this
22732277
connection. The list of enumerated values for this property may expand in the
22742278
future. Code and processes using this field must tolerate unexpected values.
@@ -2342,8 +2346,9 @@ def __init__(self,
23422346
:param datetime created_at: The date and time that this connection was
23432347
created.
23442348
:param str network_id: (optional) The ID of the network being connected via
2345-
this connection. This field is required for some types, such as 'vpc'. For
2346-
network type 'vpc' this is the CRN of the VPC to be connected.
2349+
this connection. This field is required for some types, such as 'vpc' and
2350+
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN
2351+
of the target vpc / gateway respectively.
23472352
:param str base_connection_id: (optional) network_type 'gre_tunnel'
23482353
connections use 'base_connection_id' to specify the ID of a network_type
23492354
'classic' connection the tunnel is configured over. The specified
@@ -2520,9 +2525,10 @@ class NetworkTypeEnum(str, Enum):
25202525
enumerated values for this property may expand in the future. Code and processes
25212526
using this field must tolerate unexpected values.
25222527
"""
2523-
VPC = 'vpc'
25242528
CLASSIC = 'classic'
2529+
DIRECTLINK = 'directlink'
25252530
GRE_TUNNEL = 'gre_tunnel'
2531+
VPC = 'vpc'
25262532

25272533

25282534
class RequestStatusEnum(str, Enum):

0 commit comments

Comments
 (0)