Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for directlink connection type #36

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions ibm_cloud_networking_services/transit_gateway_apis_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ def create_transit_gateway_connection(self,
in a different account than the gateway. This field is required to be
unspecified for network type 'gre_tunnel'.
:param str network_id: (optional) The ID of the network being connected via
this connection. This field is required for some types, such as 'vpc'. For
network type 'vpc' this is the CRN of the VPC to be connected. This field
is required to be unspecified for network type 'classic' and 'gre_tunnel'
connections.
this connection. This field is required for some types, such as 'vpc' and
'directlink'. For network types 'vpc' and 'directlink' this is the CRN of
the VPC / Direct Link gateway respectively. This field is required to be
unspecified for network type 'classic' and 'gre_tunnel' connections.
:param str remote_bgp_asn: (optional) Remote network BGP ASN. This field
is only applicable to 'gre_tunnel' type connections. The following ASN
values are reserved and unavailable 64512-64513, 65100, 65201-65234,
Expand Down Expand Up @@ -1335,8 +1335,9 @@ class TransitConnection():
connected network. Generally only used if the network is in a different IBM
Cloud account than the gateway.
:attr str network_id: (optional) The ID of the network being connected via this
connection. This field is required for some types, such as 'vpc'. For network
type 'vpc' this is the CRN of the VPC to be connected.
connection. This field is required for some types, such as 'vpc' and
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN of
the target vpc / gateway respectively.
:attr str network_type: Defines what type of network is connected via this
connection. The list of enumerated values for this property may expand in the
future. Code and processes using this field must tolerate unexpected values.
Expand Down Expand Up @@ -1417,8 +1418,9 @@ def __init__(self,
the connected network. Generally only used if the network is in a different
IBM Cloud account than the gateway.
:param str network_id: (optional) The ID of the network being connected via
this connection. This field is required for some types, such as 'vpc'. For
network type 'vpc' this is the CRN of the VPC to be connected.
this connection. This field is required for some types, such as 'vpc' and
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN
of the target vpc / gateway respectively.
:param int remote_bgp_asn: (optional) Remote network BGP ASN. This field
only applies to network type 'gre_tunnel' connections.
:param str remote_gateway_ip: (optional) Remote gateway IP address. This
Expand Down Expand Up @@ -1583,9 +1585,10 @@ class NetworkTypeEnum(str, Enum):
enumerated values for this property may expand in the future. Code and processes
using this field must tolerate unexpected values.
"""
VPC = 'vpc'
CLASSIC = 'classic'
DIRECTLINK = 'directlink'
GRE_TUNNEL = 'gre_tunnel'
VPC = 'vpc'


class RequestStatusEnum(str, Enum):
Expand Down Expand Up @@ -2267,8 +2270,9 @@ class TransitGatewayConnectionCust():

:attr str name: The user-defined name for this transit gateway connection.
:attr str network_id: (optional) The ID of the network being connected via this
connection. This field is required for some types, such as 'vpc'. For network
type 'vpc' this is the CRN of the VPC to be connected.
connection. This field is required for some types, such as 'vpc' and
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN of
the target vpc / gateway respectively.
:attr str network_type: Defines what type of network is connected via this
connection. The list of enumerated values for this property may expand in the
future. Code and processes using this field must tolerate unexpected values.
Expand Down Expand Up @@ -2342,8 +2346,9 @@ def __init__(self,
:param datetime created_at: The date and time that this connection was
created.
:param str network_id: (optional) The ID of the network being connected via
this connection. This field is required for some types, such as 'vpc'. For
network type 'vpc' this is the CRN of the VPC to be connected.
this connection. This field is required for some types, such as 'vpc' and
'directlink'. For network types 'vpc' and 'directlink' it should be the CRN
of the target vpc / gateway respectively.
:param str base_connection_id: (optional) network_type 'gre_tunnel'
connections use 'base_connection_id' to specify the ID of a network_type
'classic' connection the tunnel is configured over. The specified
Expand Down Expand Up @@ -2520,9 +2525,10 @@ class NetworkTypeEnum(str, Enum):
enumerated values for this property may expand in the future. Code and processes
using this field must tolerate unexpected values.
"""
VPC = 'vpc'
CLASSIC = 'classic'
DIRECTLINK = 'directlink'
GRE_TUNNEL = 'gre_tunnel'
VPC = 'vpc'


class RequestStatusEnum(str, Enum):
Expand Down