|
1 | 1 | # coding: utf-8
|
2 | 2 |
|
3 |
| -# (C) Copyright IBM Corp. 2021. |
| 3 | +# (C) Copyright IBM Corp. 2022. |
4 | 4 | #
|
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | # you may not use this file except in compliance with the License.
|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 |
|
17 |
| -# IBM OpenAPI SDK Code Generator Version: 3.39.0-748eb4ca-20210917-165907 |
| 17 | +# IBM OpenAPI SDK Code Generator Version: 3.43.1-ed736235-20211208-170818 |
18 | 18 |
|
19 | 19 | """
|
20 | 20 | No description provided (generated by Openapi Generator
|
@@ -2008,7 +2008,7 @@ def __init__(self) -> None:
|
2008 | 2008 |
|
2009 | 2009 | """
|
2010 | 2010 | msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format(
|
2011 |
| - ", ".join(['GatewayActionTemplateUpdatesItemGatewayClientSpeedUpdate', 'GatewayActionTemplateUpdatesItemGatewayClientBGPIPUpdate', 'GatewayActionTemplateUpdatesItemGatewayClientBGPASNUpdate'])) |
| 2011 | + ", ".join(['GatewayActionTemplateUpdatesItemGatewayClientSpeedUpdate', 'GatewayActionTemplateUpdatesItemGatewayClientBGPIPUpdate', 'GatewayActionTemplateUpdatesItemGatewayClientBGPASNUpdate', 'GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate'])) |
2012 | 2012 | raise Exception(msg)
|
2013 | 2013 |
|
2014 | 2014 | class GatewayAuthenticationKey():
|
@@ -2425,7 +2425,7 @@ def __init__(self) -> None:
|
2425 | 2425 |
|
2426 | 2426 | """
|
2427 | 2427 | msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format(
|
2428 |
| - ", ".join(['GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientSpeedUpdate', 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientBGPIPUpdate', 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientBGPASNUpdate'])) |
| 2428 | + ", ".join(['GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientSpeedUpdate', 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientBGPIPUpdate', 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientBGPASNUpdate', 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate'])) |
2429 | 2429 | raise Exception(msg)
|
2430 | 2430 |
|
2431 | 2431 | class GatewayCollection():
|
@@ -5257,6 +5257,63 @@ def __ne__(self, other: 'GatewayActionTemplateUpdatesItemGatewayClientSpeedUpdat
|
5257 | 5257 | """Return `true` when self and other are not equal, false otherwise."""
|
5258 | 5258 | return not self == other
|
5259 | 5259 |
|
| 5260 | +class GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate(GatewayActionTemplateUpdatesItem): |
| 5261 | + """ |
| 5262 | + Update VLAN for this gateway |
| 5263 | + VLAN provided should be in the range 1 to 4094. |
| 5264 | +
|
| 5265 | + :attr int vlan: (optional) VLAN to be updated for this gateway. |
| 5266 | + """ |
| 5267 | + |
| 5268 | + def __init__(self, |
| 5269 | + *, |
| 5270 | + vlan: int = None) -> None: |
| 5271 | + """ |
| 5272 | + Initialize a GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate object. |
| 5273 | +
|
| 5274 | + :param int vlan: (optional) VLAN to be updated for this gateway. |
| 5275 | + """ |
| 5276 | + # pylint: disable=super-init-not-called |
| 5277 | + self.vlan = vlan |
| 5278 | + |
| 5279 | + @classmethod |
| 5280 | + def from_dict(cls, _dict: Dict) -> 'GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate': |
| 5281 | + """Initialize a GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate object from a json dictionary.""" |
| 5282 | + args = {} |
| 5283 | + if 'vlan' in _dict: |
| 5284 | + args['vlan'] = _dict.get('vlan') |
| 5285 | + return cls(**args) |
| 5286 | + |
| 5287 | + @classmethod |
| 5288 | + def _from_dict(cls, _dict): |
| 5289 | + """Initialize a GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate object from a json dictionary.""" |
| 5290 | + return cls.from_dict(_dict) |
| 5291 | + |
| 5292 | + def to_dict(self) -> Dict: |
| 5293 | + """Return a json dictionary representing this model.""" |
| 5294 | + _dict = {} |
| 5295 | + if hasattr(self, 'vlan') and self.vlan is not None: |
| 5296 | + _dict['vlan'] = self.vlan |
| 5297 | + return _dict |
| 5298 | + |
| 5299 | + def _to_dict(self): |
| 5300 | + """Return a json dictionary representing this model.""" |
| 5301 | + return self.to_dict() |
| 5302 | + |
| 5303 | + def __str__(self) -> str: |
| 5304 | + """Return a `str` version of this GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate object.""" |
| 5305 | + return json.dumps(self.to_dict(), indent=2) |
| 5306 | + |
| 5307 | + def __eq__(self, other: 'GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate') -> bool: |
| 5308 | + """Return `true` when self and other are equal, false otherwise.""" |
| 5309 | + if not isinstance(other, self.__class__): |
| 5310 | + return False |
| 5311 | + return self.__dict__ == other.__dict__ |
| 5312 | + |
| 5313 | + def __ne__(self, other: 'GatewayActionTemplateUpdatesItemGatewayClientVLANUpdate') -> bool: |
| 5314 | + """Return `true` when self and other are not equal, false otherwise.""" |
| 5315 | + return not self == other |
| 5316 | + |
5260 | 5317 | class GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientBGPASNUpdate(GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItem):
|
5261 | 5318 | """
|
5262 | 5319 | The autonomous system number (ASN) of Border Gateway Protocol
|
@@ -5467,6 +5524,63 @@ def __ne__(self, other: 'GatewayChangeRequestGatewayClientGatewayUpdateAttribute
|
5467 | 5524 | """Return `true` when self and other are not equal, false otherwise."""
|
5468 | 5525 | return not self == other
|
5469 | 5526 |
|
| 5527 | +class GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate(GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItem): |
| 5528 | + """ |
| 5529 | + Update VLAN for this gateway |
| 5530 | + VLAN provided should be in the range 1 to 4094. |
| 5531 | +
|
| 5532 | + :attr int vlan: (optional) VLAN to be updated for this gateway. |
| 5533 | + """ |
| 5534 | + |
| 5535 | + def __init__(self, |
| 5536 | + *, |
| 5537 | + vlan: int = None) -> None: |
| 5538 | + """ |
| 5539 | + Initialize a GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate object. |
| 5540 | +
|
| 5541 | + :param int vlan: (optional) VLAN to be updated for this gateway. |
| 5542 | + """ |
| 5543 | + # pylint: disable=super-init-not-called |
| 5544 | + self.vlan = vlan |
| 5545 | + |
| 5546 | + @classmethod |
| 5547 | + def from_dict(cls, _dict: Dict) -> 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate': |
| 5548 | + """Initialize a GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate object from a json dictionary.""" |
| 5549 | + args = {} |
| 5550 | + if 'vlan' in _dict: |
| 5551 | + args['vlan'] = _dict.get('vlan') |
| 5552 | + return cls(**args) |
| 5553 | + |
| 5554 | + @classmethod |
| 5555 | + def _from_dict(cls, _dict): |
| 5556 | + """Initialize a GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate object from a json dictionary.""" |
| 5557 | + return cls.from_dict(_dict) |
| 5558 | + |
| 5559 | + def to_dict(self) -> Dict: |
| 5560 | + """Return a json dictionary representing this model.""" |
| 5561 | + _dict = {} |
| 5562 | + if hasattr(self, 'vlan') and self.vlan is not None: |
| 5563 | + _dict['vlan'] = self.vlan |
| 5564 | + return _dict |
| 5565 | + |
| 5566 | + def _to_dict(self): |
| 5567 | + """Return a json dictionary representing this model.""" |
| 5568 | + return self.to_dict() |
| 5569 | + |
| 5570 | + def __str__(self) -> str: |
| 5571 | + """Return a `str` version of this GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate object.""" |
| 5572 | + return json.dumps(self.to_dict(), indent=2) |
| 5573 | + |
| 5574 | + def __eq__(self, other: 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate') -> bool: |
| 5575 | + """Return `true` when self and other are equal, false otherwise.""" |
| 5576 | + if not isinstance(other, self.__class__): |
| 5577 | + return False |
| 5578 | + return self.__dict__ == other.__dict__ |
| 5579 | + |
| 5580 | + def __ne__(self, other: 'GatewayChangeRequestGatewayClientGatewayUpdateAttributesUpdatesItemGatewayClientVLANUpdate') -> bool: |
| 5581 | + """Return `true` when self and other are not equal, false otherwise.""" |
| 5582 | + return not self == other |
| 5583 | + |
5470 | 5584 | class GatewayChangeRequestGatewayClientGatewayCreate(GatewayChangeRequest):
|
5471 | 5585 | """
|
5472 | 5586 | gateway create.
|
|
0 commit comments