@@ -263,6 +263,7 @@ def update_gateway(self,
263
263
id : str ,
264
264
* ,
265
265
authentication_key : 'GatewayPatchTemplateAuthenticationKey' = None ,
266
+ connection_mode : str = None ,
266
267
global_ : bool = None ,
267
268
loa_reject_reason : str = None ,
268
269
macsec_config : 'GatewayMacsecConfigPatchTemplate' = None ,
@@ -283,6 +284,12 @@ def update_gateway(self,
283
284
The key material that you provide must be base64 encoded and original
284
285
string must be maximum 126 ASCII characters in length.
285
286
To clear the optional `authentication_key` field patch its crn to `""`.
287
+ :param str connection_mode: (optional) Type of services this Gateway is
288
+ attached to. Mode transit means this Gateway will be attached to Transit
289
+ Gateway Service and direct means this Gateway will be attached to vpc or
290
+ classic connection. The list of enumerated values for this property may
291
+ expand in the future. Code and processes using this field must tolerate
292
+ unexpected values.
286
293
:param bool global_: (optional) Gateways with global routing (`true`) can
287
294
connect to networks outside of their associated region.
288
295
:param str loa_reject_reason: (optional) Use this field during LOA
@@ -326,6 +333,7 @@ def update_gateway(self,
326
333
327
334
data = {
328
335
'authentication_key' : authentication_key ,
336
+ 'connection_mode' : connection_mode ,
329
337
'global' : global_ ,
330
338
'loa_reject_reason' : loa_reject_reason ,
331
339
'macsec_config' : macsec_config ,
@@ -358,6 +366,7 @@ def create_gateway_action(self,
358
366
action : str ,
359
367
* ,
360
368
authentication_key : 'GatewayActionTemplateAuthenticationKey' = None ,
369
+ connection_mode : str = None ,
361
370
global_ : bool = None ,
362
371
metered : bool = None ,
363
372
resource_group : 'ResourceGroupIdentity' = None ,
@@ -379,6 +388,12 @@ def create_gateway_action(self,
379
388
The key material that you provide must be base64 encoded and original
380
389
string must be maximum 126 ASCII characters in length.
381
390
To clear the optional `authentication_key` field patch its crn to `""`.
391
+ :param str connection_mode: (optional) Type of services this Gateway is
392
+ attached to. Mode transit means this Gateway will be attached to Transit
393
+ Gateway Service and direct means this Gateway will be attached to vpc or
394
+ classic connection. The list of enumerated values for this property may
395
+ expand in the future. Code and processes using this field must tolerate
396
+ unexpected values.
382
397
:param bool global_: (optional) Required for create_gateway_approve
383
398
requests to select the gateway's routing option. Gateways with global
384
399
routing (`true`) can connect to networks outside of their associated
@@ -422,6 +437,7 @@ def create_gateway_action(self,
422
437
data = {
423
438
'action' : action ,
424
439
'authentication_key' : authentication_key ,
440
+ 'connection_mode' : connection_mode ,
425
441
'global' : global_ ,
426
442
'metered' : metered ,
427
443
'resource_group' : resource_group ,
@@ -1285,6 +1301,11 @@ class Gateway():
1285
1301
:attr str completion_notice_reject_reason: (optional) Reason for completion
1286
1302
notice rejection. Only included on type=dedicated gateways with a rejected
1287
1303
completion notice.
1304
+ :attr str connection_mode: (optional) Type of services this Gateway is attached
1305
+ to. Mode transit means this Gateway will be attached to Transit Gateway Service
1306
+ and direct means this Gateway will be attached to vpc or classic connection. The
1307
+ list of enumerated values for this property may expand in the future. Code and
1308
+ processes using this field must tolerate unexpected values.
1288
1309
:attr datetime created_at: The date and time resource was created.
1289
1310
:attr str crn: The CRN (Cloud Resource Name) of this gateway.
1290
1311
:attr str cross_connect_router: (optional) Cross connect router. Only included
@@ -1346,6 +1367,7 @@ def __init__(self,
1346
1367
carrier_name : str = None ,
1347
1368
change_request : 'GatewayChangeRequest' = None ,
1348
1369
completion_notice_reject_reason : str = None ,
1370
+ connection_mode : str = None ,
1349
1371
cross_connect_router : str = None ,
1350
1372
customer_name : str = None ,
1351
1373
link_status : str = None ,
@@ -1400,6 +1422,12 @@ def __init__(self,
1400
1422
:param str completion_notice_reject_reason: (optional) Reason for
1401
1423
completion notice rejection. Only included on type=dedicated gateways with
1402
1424
a rejected completion notice.
1425
+ :param str connection_mode: (optional) Type of services this Gateway is
1426
+ attached to. Mode transit means this Gateway will be attached to Transit
1427
+ Gateway Service and direct means this Gateway will be attached to vpc or
1428
+ classic connection. The list of enumerated values for this property may
1429
+ expand in the future. Code and processes using this field must tolerate
1430
+ unexpected values.
1403
1431
:param str cross_connect_router: (optional) Cross connect router. Only
1404
1432
included on type=dedicated gateways.
1405
1433
:param str customer_name: (optional) Customer name. Only set for
@@ -1429,6 +1457,7 @@ def __init__(self,
1429
1457
self .carrier_name = carrier_name
1430
1458
self .change_request = change_request
1431
1459
self .completion_notice_reject_reason = completion_notice_reject_reason
1460
+ self .connection_mode = connection_mode
1432
1461
self .created_at = created_at
1433
1462
self .crn = crn
1434
1463
self .cross_connect_router = cross_connect_router
@@ -1475,6 +1504,8 @@ def from_dict(cls, _dict: Dict) -> 'Gateway':
1475
1504
args ['change_request' ] = _dict .get ('change_request' )
1476
1505
if 'completion_notice_reject_reason' in _dict :
1477
1506
args ['completion_notice_reject_reason' ] = _dict .get ('completion_notice_reject_reason' )
1507
+ if 'connection_mode' in _dict :
1508
+ args ['connection_mode' ] = _dict .get ('connection_mode' )
1478
1509
if 'created_at' in _dict :
1479
1510
args ['created_at' ] = string_to_datetime (_dict .get ('created_at' ))
1480
1511
else :
@@ -1565,6 +1596,8 @@ def to_dict(self) -> Dict:
1565
1596
_dict ['change_request' ] = self .change_request
1566
1597
if hasattr (self , 'completion_notice_reject_reason' ) and self .completion_notice_reject_reason is not None :
1567
1598
_dict ['completion_notice_reject_reason' ] = self .completion_notice_reject_reason
1599
+ if hasattr (self , 'connection_mode' ) and self .connection_mode is not None :
1600
+ _dict ['connection_mode' ] = self .connection_mode
1568
1601
if hasattr (self , 'created_at' ) and self .created_at is not None :
1569
1602
_dict ['created_at' ] = datetime_to_string (self .created_at )
1570
1603
if hasattr (self , 'crn' ) and self .crn is not None :
@@ -1634,6 +1667,18 @@ class BgpStatusEnum(Enum):
1634
1667
IDLE = "idle"
1635
1668
1636
1669
1670
+ class ConnectionModeEnum (Enum ):
1671
+ """
1672
+ Type of services this Gateway is attached to. Mode transit means this Gateway will
1673
+ be attached to Transit Gateway Service and direct means this Gateway will be
1674
+ attached to vpc or classic connection. The list of enumerated values for this
1675
+ property may expand in the future. Code and processes using this field must
1676
+ tolerate unexpected values.
1677
+ """
1678
+ DIRECT = "direct"
1679
+ TRANSIT = "transit"
1680
+
1681
+
1637
1682
class LinkStatusEnum (Enum ):
1638
1683
"""
1639
1684
Gateway link status. Only included on type=dedicated gateways. The list of
@@ -3092,6 +3137,11 @@ class GatewayTemplate():
3092
3137
value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16",
3093
3138
"169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must
3094
3139
have matching network and subnet mask values.
3140
+ :attr str connection_mode: (optional) Type of services this Gateway is attached
3141
+ to. Mode transit means this Gateway will be attached to Transit Gateway Service
3142
+ and direct means this Gateway will be attached to vpc or classic connection. The
3143
+ list of enumerated values for this property may expand in the future. Code and
3144
+ processes using this field must tolerate unexpected values.
3095
3145
:attr bool global_: Gateways with global routing (`true`) can connect to
3096
3146
networks outside their associated region.
3097
3147
:attr bool metered: Metered billing option. When `true` gateway usage is billed
@@ -3117,6 +3167,7 @@ def __init__(self,
3117
3167
bgp_base_cidr : str = None ,
3118
3168
bgp_cer_cidr : str = None ,
3119
3169
bgp_ibm_cidr : str = None ,
3170
+ connection_mode : str = None ,
3120
3171
resource_group : 'ResourceGroupIdentity' = None ) -> None :
3121
3172
"""
3122
3173
Initialize a GatewayTemplate object.
@@ -3155,6 +3206,12 @@ def __init__(self,
3155
3206
the value must reside in one of "10.254.0.0/16", "172.16.0.0/12",
3156
3207
"192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr
3157
3208
and bgp_ibm_cidr must have matching network and subnet mask values.
3209
+ :param str connection_mode: (optional) Type of services this Gateway is
3210
+ attached to. Mode transit means this Gateway will be attached to Transit
3211
+ Gateway Service and direct means this Gateway will be attached to vpc or
3212
+ classic connection. The list of enumerated values for this property may
3213
+ expand in the future. Code and processes using this field must tolerate
3214
+ unexpected values.
3158
3215
:param ResourceGroupIdentity resource_group: (optional) Resource group for
3159
3216
this resource. If unspecified, the account's [default resource
3160
3217
group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is
@@ -3164,6 +3221,18 @@ def __init__(self,
3164
3221
", " .join (['GatewayTemplateGatewayTypeDedicatedTemplate' , 'GatewayTemplateGatewayTypeConnectTemplate' ]))
3165
3222
raise Exception (msg )
3166
3223
3224
+ class ConnectionModeEnum (Enum ):
3225
+ """
3226
+ Type of services this Gateway is attached to. Mode transit means this Gateway will
3227
+ be attached to Transit Gateway Service and direct means this Gateway will be
3228
+ attached to vpc or classic connection. The list of enumerated values for this
3229
+ property may expand in the future. Code and processes using this field must
3230
+ tolerate unexpected values.
3231
+ """
3232
+ DIRECT = "direct"
3233
+ TRANSIT = "transit"
3234
+
3235
+
3167
3236
class TypeEnum (Enum ):
3168
3237
"""
3169
3238
Offering type.
@@ -4698,6 +4767,11 @@ class GatewayTemplateGatewayTypeConnectTemplate(GatewayTemplate):
4698
4767
value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16",
4699
4768
"169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must
4700
4769
have matching network and subnet mask values.
4770
+ :attr str connection_mode: (optional) Type of services this Gateway is attached
4771
+ to. Mode transit means this Gateway will be attached to Transit Gateway Service
4772
+ and direct means this Gateway will be attached to vpc or classic connection. The
4773
+ list of enumerated values for this property may expand in the future. Code and
4774
+ processes using this field must tolerate unexpected values.
4701
4775
:attr bool global_: Gateways with global routing (`true`) can connect to
4702
4776
networks outside their associated region.
4703
4777
:attr bool metered: Metered billing option. When `true` gateway usage is billed
@@ -4725,6 +4799,7 @@ def __init__(self,
4725
4799
bgp_base_cidr : str = None ,
4726
4800
bgp_cer_cidr : str = None ,
4727
4801
bgp_ibm_cidr : str = None ,
4802
+ connection_mode : str = None ,
4728
4803
resource_group : 'ResourceGroupIdentity' = None ) -> None :
4729
4804
"""
4730
4805
Initialize a GatewayTemplateGatewayTypeConnectTemplate object.
@@ -4766,6 +4841,12 @@ def __init__(self,
4766
4841
the value must reside in one of "10.254.0.0/16", "172.16.0.0/12",
4767
4842
"192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr
4768
4843
and bgp_ibm_cidr must have matching network and subnet mask values.
4844
+ :param str connection_mode: (optional) Type of services this Gateway is
4845
+ attached to. Mode transit means this Gateway will be attached to Transit
4846
+ Gateway Service and direct means this Gateway will be attached to vpc or
4847
+ classic connection. The list of enumerated values for this property may
4848
+ expand in the future. Code and processes using this field must tolerate
4849
+ unexpected values.
4769
4850
:param ResourceGroupIdentity resource_group: (optional) Resource group for
4770
4851
this resource. If unspecified, the account's [default resource
4771
4852
group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is
@@ -4777,6 +4858,7 @@ def __init__(self,
4777
4858
self .bgp_base_cidr = bgp_base_cidr
4778
4859
self .bgp_cer_cidr = bgp_cer_cidr
4779
4860
self .bgp_ibm_cidr = bgp_ibm_cidr
4861
+ self .connection_mode = connection_mode
4780
4862
self .global_ = global_
4781
4863
self .metered = metered
4782
4864
self .name = name
@@ -4801,6 +4883,8 @@ def from_dict(cls, _dict: Dict) -> 'GatewayTemplateGatewayTypeConnectTemplate':
4801
4883
args ['bgp_cer_cidr' ] = _dict .get ('bgp_cer_cidr' )
4802
4884
if 'bgp_ibm_cidr' in _dict :
4803
4885
args ['bgp_ibm_cidr' ] = _dict .get ('bgp_ibm_cidr' )
4886
+ if 'connection_mode' in _dict :
4887
+ args ['connection_mode' ] = _dict .get ('connection_mode' )
4804
4888
if 'global' in _dict :
4805
4889
args ['global_' ] = _dict .get ('global' )
4806
4890
else :
@@ -4847,6 +4931,8 @@ def to_dict(self) -> Dict:
4847
4931
_dict ['bgp_cer_cidr' ] = self .bgp_cer_cidr
4848
4932
if hasattr (self , 'bgp_ibm_cidr' ) and self .bgp_ibm_cidr is not None :
4849
4933
_dict ['bgp_ibm_cidr' ] = self .bgp_ibm_cidr
4934
+ if hasattr (self , 'connection_mode' ) and self .connection_mode is not None :
4935
+ _dict ['connection_mode' ] = self .connection_mode
4850
4936
if hasattr (self , 'global_' ) and self .global_ is not None :
4851
4937
_dict ['global' ] = self .global_
4852
4938
if hasattr (self , 'metered' ) and self .metered is not None :
@@ -4881,6 +4967,18 @@ def __ne__(self, other: 'GatewayTemplateGatewayTypeConnectTemplate') -> bool:
4881
4967
"""Return `true` when self and other are not equal, false otherwise."""
4882
4968
return not self == other
4883
4969
4970
+ class ConnectionModeEnum (Enum ):
4971
+ """
4972
+ Type of services this Gateway is attached to. Mode transit means this Gateway will
4973
+ be attached to Transit Gateway Service and direct means this Gateway will be
4974
+ attached to vpc or classic connection. The list of enumerated values for this
4975
+ property may expand in the future. Code and processes using this field must
4976
+ tolerate unexpected values.
4977
+ """
4978
+ DIRECT = "direct"
4979
+ TRANSIT = "transit"
4980
+
4981
+
4884
4982
class TypeEnum (Enum ):
4885
4983
"""
4886
4984
Offering type.
@@ -4920,6 +5018,11 @@ class GatewayTemplateGatewayTypeDedicatedTemplate(GatewayTemplate):
4920
5018
value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16",
4921
5019
"169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must
4922
5020
have matching network and subnet mask values.
5021
+ :attr str connection_mode: (optional) Type of services this Gateway is attached
5022
+ to. Mode transit means this Gateway will be attached to Transit Gateway Service
5023
+ and direct means this Gateway will be attached to vpc or classic connection. The
5024
+ list of enumerated values for this property may expand in the future. Code and
5025
+ processes using this field must tolerate unexpected values.
4923
5026
:attr bool global_: Gateways with global routing (`true`) can connect to
4924
5027
networks outside their associated region.
4925
5028
:attr bool metered: Metered billing option. When `true` gateway usage is billed
@@ -4955,6 +5058,7 @@ def __init__(self,
4955
5058
bgp_base_cidr : str = None ,
4956
5059
bgp_cer_cidr : str = None ,
4957
5060
bgp_ibm_cidr : str = None ,
5061
+ connection_mode : str = None ,
4958
5062
resource_group : 'ResourceGroupIdentity' = None ,
4959
5063
macsec_config : 'GatewayMacsecConfigTemplate' = None ) -> None :
4960
5064
"""
@@ -4999,6 +5103,12 @@ def __init__(self,
4999
5103
the value must reside in one of "10.254.0.0/16", "172.16.0.0/12",
5000
5104
"192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr
5001
5105
and bgp_ibm_cidr must have matching network and subnet mask values.
5106
+ :param str connection_mode: (optional) Type of services this Gateway is
5107
+ attached to. Mode transit means this Gateway will be attached to Transit
5108
+ Gateway Service and direct means this Gateway will be attached to vpc or
5109
+ classic connection. The list of enumerated values for this property may
5110
+ expand in the future. Code and processes using this field must tolerate
5111
+ unexpected values.
5002
5112
:param ResourceGroupIdentity resource_group: (optional) Resource group for
5003
5113
this resource. If unspecified, the account's [default resource
5004
5114
group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is
@@ -5012,6 +5122,7 @@ def __init__(self,
5012
5122
self .bgp_base_cidr = bgp_base_cidr
5013
5123
self .bgp_cer_cidr = bgp_cer_cidr
5014
5124
self .bgp_ibm_cidr = bgp_ibm_cidr
5125
+ self .connection_mode = connection_mode
5015
5126
self .global_ = global_
5016
5127
self .metered = metered
5017
5128
self .name = name
@@ -5040,6 +5151,8 @@ def from_dict(cls, _dict: Dict) -> 'GatewayTemplateGatewayTypeDedicatedTemplate'
5040
5151
args ['bgp_cer_cidr' ] = _dict .get ('bgp_cer_cidr' )
5041
5152
if 'bgp_ibm_cidr' in _dict :
5042
5153
args ['bgp_ibm_cidr' ] = _dict .get ('bgp_ibm_cidr' )
5154
+ if 'connection_mode' in _dict :
5155
+ args ['connection_mode' ] = _dict .get ('connection_mode' )
5043
5156
if 'global' in _dict :
5044
5157
args ['global_' ] = _dict .get ('global' )
5045
5158
else :
@@ -5100,6 +5213,8 @@ def to_dict(self) -> Dict:
5100
5213
_dict ['bgp_cer_cidr' ] = self .bgp_cer_cidr
5101
5214
if hasattr (self , 'bgp_ibm_cidr' ) and self .bgp_ibm_cidr is not None :
5102
5215
_dict ['bgp_ibm_cidr' ] = self .bgp_ibm_cidr
5216
+ if hasattr (self , 'connection_mode' ) and self .connection_mode is not None :
5217
+ _dict ['connection_mode' ] = self .connection_mode
5103
5218
if hasattr (self , 'global_' ) and self .global_ is not None :
5104
5219
_dict ['global' ] = self .global_
5105
5220
if hasattr (self , 'metered' ) and self .metered is not None :
@@ -5142,6 +5257,18 @@ def __ne__(self, other: 'GatewayTemplateGatewayTypeDedicatedTemplate') -> bool:
5142
5257
"""Return `true` when self and other are not equal, false otherwise."""
5143
5258
return not self == other
5144
5259
5260
+ class ConnectionModeEnum (Enum ):
5261
+ """
5262
+ Type of services this Gateway is attached to. Mode transit means this Gateway will
5263
+ be attached to Transit Gateway Service and direct means this Gateway will be
5264
+ attached to vpc or classic connection. The list of enumerated values for this
5265
+ property may expand in the future. Code and processes using this field must
5266
+ tolerate unexpected values.
5267
+ """
5268
+ DIRECT = "direct"
5269
+ TRANSIT = "transit"
5270
+
5271
+
5145
5272
class TypeEnum (Enum ):
5146
5273
"""
5147
5274
Offering type.
0 commit comments