@@ -355,15 +355,19 @@ def create_gateway_action(self,
355
355
356
356
:param str id: Direct Link Connect gateway identifier.
357
357
:param str action: Action request.
358
- :param bool global_: (optional) Set for create_gateway_approve requests to
359
- select the gateway's routing option. Gateways with global routing (`true`)
360
- can connect to networks outside of their associated region.
361
- :param bool metered: (optional) Set for create_gateway_approve requests to
362
- select the gateway's metered billing option. When `true` gateway usage is
363
- billed per gigabyte. When `false` there is no per gigabyte usage charge,
364
- instead a flat rate is charged for the gateway.
358
+ :param bool global_: (optional) Required for create_gateway_approve
359
+ requests to select the gateway's routing option. Gateways with global
360
+ routing (`true`) can connect to networks outside of their associated
361
+ region.
362
+ :param bool metered: (optional) Required for create_gateway_approve
363
+ requests to select the gateway's metered billing option. When `true`
364
+ gateway usage is billed per gigabyte. When `false` there is no per
365
+ gigabyte usage charge, instead a flat rate is charged for the gateway.
365
366
:param ResourceGroupIdentity resource_group: (optional) Set for
366
- create_gateway_approve requests to select the gateway's resource group.
367
+ create_gateway_approve requests to select the gateway's resource group. If
368
+ unspecified on create_gateway_approve, the account's [default resource
369
+ group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is
370
+ used.
367
371
:param List[object] updates: (optional) Specify attribute updates being
368
372
approved or rejected, update_attributes_approve and
369
373
update_attributes_reject actions must provide an updates field that matches
@@ -1095,31 +1099,31 @@ class CrossConnectRouter():
1095
1099
"""
1096
1100
Cross Connect Router details.
1097
1101
1098
- :attr str name : (optional) The name of the Router.
1102
+ :attr str router_name : (optional) The name of the Router.
1099
1103
:attr int total_connections: (optional) Count of existing Direct Link Dedicated
1100
1104
gateways on this router for this account.
1101
1105
"""
1102
1106
1103
1107
def __init__ (self ,
1104
1108
* ,
1105
- name : str = None ,
1109
+ router_name : str = None ,
1106
1110
total_connections : int = None ) -> None :
1107
1111
"""
1108
1112
Initialize a CrossConnectRouter object.
1109
1113
1110
- :param str name : (optional) The name of the Router.
1114
+ :param str router_name : (optional) The name of the Router.
1111
1115
:param int total_connections: (optional) Count of existing Direct Link
1112
1116
Dedicated gateways on this router for this account.
1113
1117
"""
1114
- self .name = name
1118
+ self .router_name = router_name
1115
1119
self .total_connections = total_connections
1116
1120
1117
1121
@classmethod
1118
1122
def from_dict (cls , _dict : Dict ) -> 'CrossConnectRouter' :
1119
1123
"""Initialize a CrossConnectRouter object from a json dictionary."""
1120
1124
args = {}
1121
- if 'name ' in _dict :
1122
- args ['name ' ] = _dict .get ('name ' )
1125
+ if 'router_name ' in _dict :
1126
+ args ['router_name ' ] = _dict .get ('router_name ' )
1123
1127
if 'total_connections' in _dict :
1124
1128
args ['total_connections' ] = _dict .get ('total_connections' )
1125
1129
return cls (** args )
@@ -1132,8 +1136,8 @@ def _from_dict(cls, _dict):
1132
1136
def to_dict (self ) -> Dict :
1133
1137
"""Return a json dictionary representing this model."""
1134
1138
_dict = {}
1135
- if hasattr (self , 'name ' ) and self .name is not None :
1136
- _dict ['name ' ] = self .name
1139
+ if hasattr (self , 'router_name ' ) and self .router_name is not None :
1140
+ _dict ['router_name ' ] = self .router_name
1137
1141
if hasattr (self , 'total_connections' ) and self .total_connections is not None :
1138
1142
_dict ['total_connections' ] = self .total_connections
1139
1143
return _dict
@@ -1508,6 +1512,7 @@ class OperationalStatusEnum(str, Enum):
1508
1512
AWAITING_COMPLETION_NOTICE = 'awaiting_completion_notice'
1509
1513
AWAITING_LOA = 'awaiting_loa'
1510
1514
CREATE_PENDING = 'create_pending'
1515
+ CREATE_REJECTED = 'create_rejected'
1511
1516
COMPLETION_NOTICE_APPROVED = 'completion_notice_approved'
1512
1517
COMPLETION_NOTICE_RECEIVED = 'completion_notice_received'
1513
1518
COMPLETION_NOTICE_REJECTED = 'completion_notice_rejected'
@@ -1731,8 +1736,7 @@ class GatewayTemplate():
1731
1736
:attr str name: The unique user-defined name for this gateway.
1732
1737
:attr ResourceGroupIdentity resource_group: (optional) Resource group for this
1733
1738
resource. If unspecified, the account's [default resource
1734
- group](https://console.bluemix.net/apidocs/resource-manager#introduction) is
1735
- used.
1739
+ group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.
1736
1740
:attr int speed_mbps: Gateway speed in megabits per second.
1737
1741
:attr str type: Gateway type.
1738
1742
"""
@@ -1770,8 +1774,8 @@ def __init__(self,
1770
1774
ommitted and a CIDR will be selected automatically.
1771
1775
:param ResourceGroupIdentity resource_group: (optional) Resource group for
1772
1776
this resource. If unspecified, the account's [default resource
1773
- group](https://console.bluemix.net /apidocs/resource-manager#introduction)
1774
- is used.
1777
+ group](https://cloud.ibm.com /apidocs/resource-manager#introduction) is
1778
+ used.
1775
1779
"""
1776
1780
msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}" .format (
1777
1781
", " .join (['GatewayTemplateGatewayTypeDedicatedTemplate' , 'GatewayTemplateGatewayTypeConnectTemplate' ]))
@@ -2120,45 +2124,59 @@ class LocationOutput():
2120
2124
"""
2121
2125
location.
2122
2126
2123
- :attr str billing_location: Billing location.
2127
+ :attr str billing_location: (optional) Billing location. Only present for
2128
+ locations where provisioning is enabled.
2124
2129
:attr str building_colocation_owner: (optional) Building colocation owner. Only
2125
- present for offering_type=dedicated locations.
2130
+ present for offering_type=dedicated locations where provisioning is enabled .
2126
2131
:attr str display_name: Location long name.
2127
2132
:attr str location_type: Location type.
2128
2133
:attr str market: Location market.
2129
- :attr str market_geography: Location geography.
2130
- :attr bool mzr: Is location a multi-zone region (MZR).
2134
+ :attr str market_geography: (optional) Location geography. Only present for
2135
+ locations where provisioning is enabled.
2136
+ :attr bool mzr: (optional) Is location a multi-zone region (MZR). Only present
2137
+ for locations where provisioning is enabled.
2131
2138
:attr str name: Location short name.
2132
2139
:attr str offering_type: Location offering type.
2133
- :attr str vpc_region: (optional) Location's VPC region.
2140
+ :attr bool provision_enabled: Indicates for the specific offering_type whether
2141
+ this location supports gateway provisioning.
2142
+ :attr str vpc_region: (optional) Location's VPC region. Only present for
2143
+ locations where provisioning is enabled.
2134
2144
"""
2135
2145
2136
2146
def __init__ (self ,
2137
- billing_location : str ,
2138
2147
display_name : str ,
2139
2148
location_type : str ,
2140
2149
market : str ,
2141
- market_geography : str ,
2142
- mzr : bool ,
2143
2150
name : str ,
2144
2151
offering_type : str ,
2152
+ provision_enabled : bool ,
2145
2153
* ,
2154
+ billing_location : str = None ,
2146
2155
building_colocation_owner : str = None ,
2156
+ market_geography : str = None ,
2157
+ mzr : bool = None ,
2147
2158
vpc_region : str = None ) -> None :
2148
2159
"""
2149
2160
Initialize a LocationOutput object.
2150
2161
2151
- :param str billing_location: Billing location.
2152
2162
:param str display_name: Location long name.
2153
2163
:param str location_type: Location type.
2154
2164
:param str market: Location market.
2155
- :param str market_geography: Location geography.
2156
- :param bool mzr: Is location a multi-zone region (MZR).
2157
2165
:param str name: Location short name.
2158
2166
:param str offering_type: Location offering type.
2167
+ :param bool provision_enabled: Indicates for the specific offering_type
2168
+ whether this location supports gateway provisioning.
2169
+ :param str billing_location: (optional) Billing location. Only present for
2170
+ locations where provisioning is enabled.
2159
2171
:param str building_colocation_owner: (optional) Building colocation owner.
2160
- Only present for offering_type=dedicated locations.
2161
- :param str vpc_region: (optional) Location's VPC region.
2172
+ Only present for offering_type=dedicated locations where provisioning is
2173
+ enabled.
2174
+ :param str market_geography: (optional) Location geography. Only present
2175
+ for locations where provisioning is enabled.
2176
+ :param bool mzr: (optional) Is location a multi-zone region (MZR). Only
2177
+ present for locations where provisioning is enabled.
2178
+ :param str vpc_region: (optional) Location's VPC region. Only present for
2179
+ locations where provisioning is enabled.
2162
2180
"""
2163
2181
self .billing_location = billing_location
2164
2182
self .building_colocation_owner = building_colocation_owner
@@ -2169,6 +2187,7 @@ def __init__(self,
2169
2187
self .mzr = mzr
2170
2188
self .name = name
2171
2189
self .offering_type = offering_type
2190
+ self .provision_enabled = provision_enabled
2172
2191
self .vpc_region = vpc_region
2173
2192
2174
2193
@classmethod
@@ -2177,8 +2196,6 @@ def from_dict(cls, _dict: Dict) -> 'LocationOutput':
2177
2196
args = {}
2178
2197
if 'billing_location' in _dict :
2179
2198
args ['billing_location' ] = _dict .get ('billing_location' )
2180
- else :
2181
- raise ValueError ('Required property \' billing_location\' not present in LocationOutput JSON' )
2182
2199
if 'building_colocation_owner' in _dict :
2183
2200
args ['building_colocation_owner' ] = _dict .get ('building_colocation_owner' )
2184
2201
if 'display_name' in _dict :
@@ -2195,12 +2212,8 @@ def from_dict(cls, _dict: Dict) -> 'LocationOutput':
2195
2212
raise ValueError ('Required property \' market\' not present in LocationOutput JSON' )
2196
2213
if 'market_geography' in _dict :
2197
2214
args ['market_geography' ] = _dict .get ('market_geography' )
2198
- else :
2199
- raise ValueError ('Required property \' market_geography\' not present in LocationOutput JSON' )
2200
2215
if 'mzr' in _dict :
2201
2216
args ['mzr' ] = _dict .get ('mzr' )
2202
- else :
2203
- raise ValueError ('Required property \' mzr\' not present in LocationOutput JSON' )
2204
2217
if 'name' in _dict :
2205
2218
args ['name' ] = _dict .get ('name' )
2206
2219
else :
@@ -2209,6 +2222,10 @@ def from_dict(cls, _dict: Dict) -> 'LocationOutput':
2209
2222
args ['offering_type' ] = _dict .get ('offering_type' )
2210
2223
else :
2211
2224
raise ValueError ('Required property \' offering_type\' not present in LocationOutput JSON' )
2225
+ if 'provision_enabled' in _dict :
2226
+ args ['provision_enabled' ] = _dict .get ('provision_enabled' )
2227
+ else :
2228
+ raise ValueError ('Required property \' provision_enabled\' not present in LocationOutput JSON' )
2212
2229
if 'vpc_region' in _dict :
2213
2230
args ['vpc_region' ] = _dict .get ('vpc_region' )
2214
2231
return cls (** args )
@@ -2239,6 +2256,8 @@ def to_dict(self) -> Dict:
2239
2256
_dict ['name' ] = self .name
2240
2257
if hasattr (self , 'offering_type' ) and self .offering_type is not None :
2241
2258
_dict ['offering_type' ] = self .offering_type
2259
+ if hasattr (self , 'provision_enabled' ) and self .provision_enabled is not None :
2260
+ _dict ['provision_enabled' ] = self .provision_enabled
2242
2261
if hasattr (self , 'vpc_region' ) and self .vpc_region is not None :
2243
2262
_dict ['vpc_region' ] = self .vpc_region
2244
2263
return _dict
@@ -2717,7 +2736,7 @@ def __ne__(self, other: 'PortsPaginatedCollectionNext') -> bool:
2717
2736
class ResourceGroupIdentity ():
2718
2737
"""
2719
2738
Resource group for this resource. If unspecified, the account's [default resource
2720
- group](https://console.bluemix.net /apidocs/resource-manager#introduction) is used.
2739
+ group](https://cloud.ibm.com /apidocs/resource-manager#introduction) is used.
2721
2740
2722
2741
:attr str id: Resource group identifier.
2723
2742
"""
@@ -3049,8 +3068,7 @@ class GatewayTemplateGatewayTypeConnectTemplate(GatewayTemplate):
3049
3068
:attr str name: The unique user-defined name for this gateway.
3050
3069
:attr ResourceGroupIdentity resource_group: (optional) Resource group for this
3051
3070
resource. If unspecified, the account's [default resource
3052
- group](https://console.bluemix.net/apidocs/resource-manager#introduction) is
3053
- used.
3071
+ group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.
3054
3072
:attr int speed_mbps: Gateway speed in megabits per second.
3055
3073
:attr str type: Gateway type.
3056
3074
:attr GatewayPortIdentity port: Select Port Label for new type=connect gateway.
@@ -3092,8 +3110,8 @@ def __init__(self,
3092
3110
ommitted and a CIDR will be selected automatically.
3093
3111
:param ResourceGroupIdentity resource_group: (optional) Resource group for
3094
3112
this resource. If unspecified, the account's [default resource
3095
- group](https://console.bluemix.net /apidocs/resource-manager#introduction)
3096
- is used.
3113
+ group](https://cloud.ibm.com /apidocs/resource-manager#introduction) is
3114
+ used.
3097
3115
"""
3098
3116
# pylint: disable=super-init-not-called
3099
3117
self .bgp_asn = bgp_asn
@@ -3230,8 +3248,7 @@ class GatewayTemplateGatewayTypeDedicatedTemplate(GatewayTemplate):
3230
3248
:attr str name: The unique user-defined name for this gateway.
3231
3249
:attr ResourceGroupIdentity resource_group: (optional) Resource group for this
3232
3250
resource. If unspecified, the account's [default resource
3233
- group](https://console.bluemix.net/apidocs/resource-manager#introduction) is
3234
- used.
3251
+ group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.
3235
3252
:attr int speed_mbps: Gateway speed in megabits per second.
3236
3253
:attr str type: Gateway type.
3237
3254
:attr str carrier_name: Carrier name.
@@ -3285,8 +3302,8 @@ def __init__(self,
3285
3302
ommitted and a CIDR will be selected automatically.
3286
3303
:param ResourceGroupIdentity resource_group: (optional) Resource group for
3287
3304
this resource. If unspecified, the account's [default resource
3288
- group](https://console.bluemix.net /apidocs/resource-manager#introduction)
3289
- is used.
3305
+ group](https://cloud.ibm.com /apidocs/resource-manager#introduction) is
3306
+ used.
3290
3307
:param str dedicated_hosting_id: (optional) The unique identifier of the
3291
3308
dedicated hosting instance for this gateway. Valid only for Dedicated
3292
3309
Hosting Offering.
0 commit comments