Skip to content

Commit 1d78354

Browse files
author
BitsAdmin
committed
Merge branch 'transitrouter-Python-2020-04-01-online-1483-2025_08_26_21_10_31' into 'integration_2025-09-11_1051496969474'
feat: [development task] transitrouter-1483-Python (1649508) See merge request iaasng/volcengine-python-sdk!800
2 parents e185ff6 + d88f7e6 commit 1d78354

File tree

60 files changed

+13040
-2804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+13040
-2804
lines changed

volcenginesdktransitrouter/__init__.py

Lines changed: 49 additions & 6 deletions
Large diffs are not rendered by default.

volcenginesdktransitrouter/api/transitrouter_api.py

Lines changed: 2318 additions & 572 deletions
Large diffs are not rendered by default.

volcenginesdktransitrouter/models/__init__.py

Lines changed: 49 additions & 4 deletions
Large diffs are not rendered by default.
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# coding: utf-8
2+
3+
"""
4+
transitrouter
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AssociateTransitRouterMulticastDomainRequest(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'subnet_id': 'str',
37+
'transit_router_attachment_id': 'str',
38+
'transit_router_multicast_domain_id': 'str'
39+
}
40+
41+
attribute_map = {
42+
'subnet_id': 'SubnetId',
43+
'transit_router_attachment_id': 'TransitRouterAttachmentId',
44+
'transit_router_multicast_domain_id': 'TransitRouterMulticastDomainId'
45+
}
46+
47+
def __init__(self, subnet_id=None, transit_router_attachment_id=None, transit_router_multicast_domain_id=None, _configuration=None): # noqa: E501
48+
"""AssociateTransitRouterMulticastDomainRequest - a model defined in Swagger""" # noqa: E501
49+
if _configuration is None:
50+
_configuration = Configuration()
51+
self._configuration = _configuration
52+
53+
self._subnet_id = None
54+
self._transit_router_attachment_id = None
55+
self._transit_router_multicast_domain_id = None
56+
self.discriminator = None
57+
58+
self.subnet_id = subnet_id
59+
self.transit_router_attachment_id = transit_router_attachment_id
60+
self.transit_router_multicast_domain_id = transit_router_multicast_domain_id
61+
62+
@property
63+
def subnet_id(self):
64+
"""Gets the subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
65+
66+
67+
:return: The subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
68+
:rtype: str
69+
"""
70+
return self._subnet_id
71+
72+
@subnet_id.setter
73+
def subnet_id(self, subnet_id):
74+
"""Sets the subnet_id of this AssociateTransitRouterMulticastDomainRequest.
75+
76+
77+
:param subnet_id: The subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
78+
:type: str
79+
"""
80+
if self._configuration.client_side_validation and subnet_id is None:
81+
raise ValueError("Invalid value for `subnet_id`, must not be `None`") # noqa: E501
82+
83+
self._subnet_id = subnet_id
84+
85+
@property
86+
def transit_router_attachment_id(self):
87+
"""Gets the transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
88+
89+
90+
:return: The transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
91+
:rtype: str
92+
"""
93+
return self._transit_router_attachment_id
94+
95+
@transit_router_attachment_id.setter
96+
def transit_router_attachment_id(self, transit_router_attachment_id):
97+
"""Sets the transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest.
98+
99+
100+
:param transit_router_attachment_id: The transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
101+
:type: str
102+
"""
103+
if self._configuration.client_side_validation and transit_router_attachment_id is None:
104+
raise ValueError("Invalid value for `transit_router_attachment_id`, must not be `None`") # noqa: E501
105+
106+
self._transit_router_attachment_id = transit_router_attachment_id
107+
108+
@property
109+
def transit_router_multicast_domain_id(self):
110+
"""Gets the transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
111+
112+
113+
:return: The transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
114+
:rtype: str
115+
"""
116+
return self._transit_router_multicast_domain_id
117+
118+
@transit_router_multicast_domain_id.setter
119+
def transit_router_multicast_domain_id(self, transit_router_multicast_domain_id):
120+
"""Sets the transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest.
121+
122+
123+
:param transit_router_multicast_domain_id: The transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501
124+
:type: str
125+
"""
126+
if self._configuration.client_side_validation and transit_router_multicast_domain_id is None:
127+
raise ValueError("Invalid value for `transit_router_multicast_domain_id`, must not be `None`") # noqa: E501
128+
129+
self._transit_router_multicast_domain_id = transit_router_multicast_domain_id
130+
131+
def to_dict(self):
132+
"""Returns the model properties as a dict"""
133+
result = {}
134+
135+
for attr, _ in six.iteritems(self.swagger_types):
136+
value = getattr(self, attr)
137+
if isinstance(value, list):
138+
result[attr] = list(map(
139+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140+
value
141+
))
142+
elif hasattr(value, "to_dict"):
143+
result[attr] = value.to_dict()
144+
elif isinstance(value, dict):
145+
result[attr] = dict(map(
146+
lambda item: (item[0], item[1].to_dict())
147+
if hasattr(item[1], "to_dict") else item,
148+
value.items()
149+
))
150+
else:
151+
result[attr] = value
152+
if issubclass(AssociateTransitRouterMulticastDomainRequest, dict):
153+
for key, value in self.items():
154+
result[key] = value
155+
156+
return result
157+
158+
def to_str(self):
159+
"""Returns the string representation of the model"""
160+
return pprint.pformat(self.to_dict())
161+
162+
def __repr__(self):
163+
"""For `print` and `pprint`"""
164+
return self.to_str()
165+
166+
def __eq__(self, other):
167+
"""Returns true if both objects are equal"""
168+
if not isinstance(other, AssociateTransitRouterMulticastDomainRequest):
169+
return False
170+
171+
return self.to_dict() == other.to_dict()
172+
173+
def __ne__(self, other):
174+
"""Returns true if both objects are not equal"""
175+
if not isinstance(other, AssociateTransitRouterMulticastDomainRequest):
176+
return True
177+
178+
return self.to_dict() != other.to_dict()
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# coding: utf-8
2+
3+
"""
4+
transitrouter
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AssociateTransitRouterMulticastDomainResponse(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
}
37+
38+
attribute_map = {
39+
}
40+
41+
def __init__(self, _configuration=None): # noqa: E501
42+
"""AssociateTransitRouterMulticastDomainResponse - a model defined in Swagger""" # noqa: E501
43+
if _configuration is None:
44+
_configuration = Configuration()
45+
self._configuration = _configuration
46+
self.discriminator = None
47+
48+
def to_dict(self):
49+
"""Returns the model properties as a dict"""
50+
result = {}
51+
52+
for attr, _ in six.iteritems(self.swagger_types):
53+
value = getattr(self, attr)
54+
if isinstance(value, list):
55+
result[attr] = list(map(
56+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57+
value
58+
))
59+
elif hasattr(value, "to_dict"):
60+
result[attr] = value.to_dict()
61+
elif isinstance(value, dict):
62+
result[attr] = dict(map(
63+
lambda item: (item[0], item[1].to_dict())
64+
if hasattr(item[1], "to_dict") else item,
65+
value.items()
66+
))
67+
else:
68+
result[attr] = value
69+
if issubclass(AssociateTransitRouterMulticastDomainResponse, dict):
70+
for key, value in self.items():
71+
result[key] = value
72+
73+
return result
74+
75+
def to_str(self):
76+
"""Returns the string representation of the model"""
77+
return pprint.pformat(self.to_dict())
78+
79+
def __repr__(self):
80+
"""For `print` and `pprint`"""
81+
return self.to_str()
82+
83+
def __eq__(self, other):
84+
"""Returns true if both objects are equal"""
85+
if not isinstance(other, AssociateTransitRouterMulticastDomainResponse):
86+
return False
87+
88+
return self.to_dict() == other.to_dict()
89+
90+
def __ne__(self, other):
91+
"""Returns true if both objects are not equal"""
92+
if not isinstance(other, AssociateTransitRouterMulticastDomainResponse):
93+
return True
94+
95+
return self.to_dict() != other.to_dict()

volcenginesdktransitrouter/models/create_transit_router_bandwidth_package_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class CreateTransitRouterBandwidthPackageRequest(object):
3737
'billing_type': 'int',
3838
'client_token': 'str',
3939
'description': 'str',
40+
'line_operator': 'str',
4041
'local_geographic_region_set_id': 'str',
4142
'peer_geographic_region_set_id': 'str',
4243
'period': 'int',
@@ -51,6 +52,7 @@ class CreateTransitRouterBandwidthPackageRequest(object):
5152
'billing_type': 'BillingType',
5253
'client_token': 'ClientToken',
5354
'description': 'Description',
55+
'line_operator': 'LineOperator',
5456
'local_geographic_region_set_id': 'LocalGeographicRegionSetId',
5557
'peer_geographic_region_set_id': 'PeerGeographicRegionSetId',
5658
'period': 'Period',
@@ -60,7 +62,7 @@ class CreateTransitRouterBandwidthPackageRequest(object):
6062
'transit_router_bandwidth_package_name': 'TransitRouterBandwidthPackageName'
6163
}
6264

63-
def __init__(self, bandwidth=None, billing_type=None, client_token=None, description=None, local_geographic_region_set_id=None, peer_geographic_region_set_id=None, period=None, period_unit=None, project_name=None, tags=None, transit_router_bandwidth_package_name=None, _configuration=None): # noqa: E501
65+
def __init__(self, bandwidth=None, billing_type=None, client_token=None, description=None, line_operator=None, local_geographic_region_set_id=None, peer_geographic_region_set_id=None, period=None, period_unit=None, project_name=None, tags=None, transit_router_bandwidth_package_name=None, _configuration=None): # noqa: E501
6466
"""CreateTransitRouterBandwidthPackageRequest - a model defined in Swagger""" # noqa: E501
6567
if _configuration is None:
6668
_configuration = Configuration()
@@ -70,6 +72,7 @@ def __init__(self, bandwidth=None, billing_type=None, client_token=None, descrip
7072
self._billing_type = None
7173
self._client_token = None
7274
self._description = None
75+
self._line_operator = None
7376
self._local_geographic_region_set_id = None
7477
self._peer_geographic_region_set_id = None
7578
self._period = None
@@ -87,6 +90,8 @@ def __init__(self, bandwidth=None, billing_type=None, client_token=None, descrip
8790
self.client_token = client_token
8891
if description is not None:
8992
self.description = description
93+
if line_operator is not None:
94+
self.line_operator = line_operator
9095
self.local_geographic_region_set_id = local_geographic_region_set_id
9196
self.peer_geographic_region_set_id = peer_geographic_region_set_id
9297
if period is not None:
@@ -184,6 +189,27 @@ def description(self, description):
184189

185190
self._description = description
186191

192+
@property
193+
def line_operator(self):
194+
"""Gets the line_operator of this CreateTransitRouterBandwidthPackageRequest. # noqa: E501
195+
196+
197+
:return: The line_operator of this CreateTransitRouterBandwidthPackageRequest. # noqa: E501
198+
:rtype: str
199+
"""
200+
return self._line_operator
201+
202+
@line_operator.setter
203+
def line_operator(self, line_operator):
204+
"""Sets the line_operator of this CreateTransitRouterBandwidthPackageRequest.
205+
206+
207+
:param line_operator: The line_operator of this CreateTransitRouterBandwidthPackageRequest. # noqa: E501
208+
:type: str
209+
"""
210+
211+
self._line_operator = line_operator
212+
187213
@property
188214
def local_geographic_region_set_id(self):
189215
"""Gets the local_geographic_region_set_id of this CreateTransitRouterBandwidthPackageRequest. # noqa: E501

0 commit comments

Comments
 (0)