Skip to content

Commit d386f6c

Browse files
author
BitsAdmin
committed
Merge branch 'vpc-Python-2020-04-01-online-1075-2025_04_02_11_34_44' into 'integration_2025-04-10_853697597698'
feat: [development task] vpc-1075-Python (1145262) See merge request iaasng/volcengine-python-sdk!561
2 parents d5aa474 + 2f7bf8c commit d386f6c

9 files changed

+431
-15
lines changed

volcenginesdkvpc/models/associate_route_table_request.py

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,42 @@ class AssociateRouteTableRequest(object):
3434
"""
3535
swagger_types = {
3636
'client_token': 'str',
37+
'gateway_id': 'str',
38+
'gateway_type': 'str',
3739
'route_table_id': 'str',
3840
'subnet_id': 'str'
3941
}
4042

4143
attribute_map = {
4244
'client_token': 'ClientToken',
45+
'gateway_id': 'GatewayId',
46+
'gateway_type': 'GatewayType',
4347
'route_table_id': 'RouteTableId',
4448
'subnet_id': 'SubnetId'
4549
}
4650

47-
def __init__(self, client_token=None, route_table_id=None, subnet_id=None, _configuration=None): # noqa: E501
51+
def __init__(self, client_token=None, gateway_id=None, gateway_type=None, route_table_id=None, subnet_id=None, _configuration=None): # noqa: E501
4852
"""AssociateRouteTableRequest - a model defined in Swagger""" # noqa: E501
4953
if _configuration is None:
5054
_configuration = Configuration()
5155
self._configuration = _configuration
5256

5357
self._client_token = None
58+
self._gateway_id = None
59+
self._gateway_type = None
5460
self._route_table_id = None
5561
self._subnet_id = None
5662
self.discriminator = None
5763

5864
if client_token is not None:
5965
self.client_token = client_token
66+
if gateway_id is not None:
67+
self.gateway_id = gateway_id
68+
if gateway_type is not None:
69+
self.gateway_type = gateway_type
6070
self.route_table_id = route_table_id
61-
self.subnet_id = subnet_id
71+
if subnet_id is not None:
72+
self.subnet_id = subnet_id
6273

6374
@property
6475
def client_token(self):
@@ -81,6 +92,55 @@ def client_token(self, client_token):
8192

8293
self._client_token = client_token
8394

95+
@property
96+
def gateway_id(self):
97+
"""Gets the gateway_id of this AssociateRouteTableRequest. # noqa: E501
98+
99+
100+
:return: The gateway_id of this AssociateRouteTableRequest. # noqa: E501
101+
:rtype: str
102+
"""
103+
return self._gateway_id
104+
105+
@gateway_id.setter
106+
def gateway_id(self, gateway_id):
107+
"""Sets the gateway_id of this AssociateRouteTableRequest.
108+
109+
110+
:param gateway_id: The gateway_id of this AssociateRouteTableRequest. # noqa: E501
111+
:type: str
112+
"""
113+
114+
self._gateway_id = gateway_id
115+
116+
@property
117+
def gateway_type(self):
118+
"""Gets the gateway_type of this AssociateRouteTableRequest. # noqa: E501
119+
120+
121+
:return: The gateway_type of this AssociateRouteTableRequest. # noqa: E501
122+
:rtype: str
123+
"""
124+
return self._gateway_type
125+
126+
@gateway_type.setter
127+
def gateway_type(self, gateway_type):
128+
"""Sets the gateway_type of this AssociateRouteTableRequest.
129+
130+
131+
:param gateway_type: The gateway_type of this AssociateRouteTableRequest. # noqa: E501
132+
:type: str
133+
"""
134+
allowed_values = ["Ipv4Gateway", "Ipv6Gateway"] # noqa: E501
135+
if (self._configuration.client_side_validation and
136+
gateway_type not in allowed_values):
137+
raise ValueError(
138+
"Invalid value for `gateway_type` ({0}), must be one of {1}" # noqa: E501
139+
.format(gateway_type, allowed_values)
140+
)
141+
142+
self._gateway_type = gateway_type
143+
84144
@property
85145
def route_table_id(self):
86146
"""Gets the route_table_id of this AssociateRouteTableRequest. # noqa: E501
@@ -122,8 +182,6 @@ def subnet_id(self, subnet_id):
122182
:param subnet_id: The subnet_id of this AssociateRouteTableRequest. # noqa: E501
123183
:type: str
124184
"""
125-
if self._configuration.client_side_validation and subnet_id is None:
126-
raise ValueError("Invalid value for `subnet_id`, must not be `None`") # noqa: E501
127185

128186
self._subnet_id = subnet_id
129187

volcenginesdkvpc/models/create_route_table_request.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class CreateRouteTableRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'associate_type': 'str',
3637
'client_token': 'str',
3738
'description': 'str',
3839
'project_name': 'str',
@@ -42,6 +43,7 @@ class CreateRouteTableRequest(object):
4243
}
4344

4445
attribute_map = {
46+
'associate_type': 'AssociateType',
4547
'client_token': 'ClientToken',
4648
'description': 'Description',
4749
'project_name': 'ProjectName',
@@ -50,12 +52,13 @@ class CreateRouteTableRequest(object):
5052
'vpc_id': 'VpcId'
5153
}
5254

53-
def __init__(self, client_token=None, description=None, project_name=None, route_table_name=None, tags=None, vpc_id=None, _configuration=None): # noqa: E501
55+
def __init__(self, associate_type=None, client_token=None, description=None, project_name=None, route_table_name=None, tags=None, vpc_id=None, _configuration=None): # noqa: E501
5456
"""CreateRouteTableRequest - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
5759
self._configuration = _configuration
5860

61+
self._associate_type = None
5962
self._client_token = None
6063
self._description = None
6164
self._project_name = None
@@ -64,6 +67,8 @@ def __init__(self, client_token=None, description=None, project_name=None, route
6467
self._vpc_id = None
6568
self.discriminator = None
6669

70+
if associate_type is not None:
71+
self.associate_type = associate_type
6772
if client_token is not None:
6873
self.client_token = client_token
6974
if description is not None:
@@ -76,6 +81,34 @@ def __init__(self, client_token=None, description=None, project_name=None, route
7681
self.tags = tags
7782
self.vpc_id = vpc_id
7883

84+
@property
85+
def associate_type(self):
86+
"""Gets the associate_type of this CreateRouteTableRequest. # noqa: E501
87+
88+
89+
:return: The associate_type of this CreateRouteTableRequest. # noqa: E501
90+
:rtype: str
91+
"""
92+
return self._associate_type
93+
94+
@associate_type.setter
95+
def associate_type(self, associate_type):
96+
"""Sets the associate_type of this CreateRouteTableRequest.
97+
98+
99+
:param associate_type: The associate_type of this CreateRouteTableRequest. # noqa: E501
100+
:type: str
101+
"""
102+
allowed_values = ["Subnet", "Gateway"] # noqa: E501
103+
if (self._configuration.client_side_validation and
104+
associate_type not in allowed_values):
105+
raise ValueError(
106+
"Invalid value for `associate_type` ({0}), must be one of {1}" # noqa: E501
107+
.format(associate_type, allowed_values)
108+
)
109+
110+
self._associate_type = associate_type
111+
79112
@property
80113
def client_token(self):
81114
"""Gets the client_token of this CreateRouteTableRequest. # noqa: E501

volcenginesdkvpc/models/describe_ipv6_gateway_attribute_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class DescribeIpv6GatewayAttributeResponse(object):
3939
'name': 'str',
4040
'project_name': 'str',
4141
'request_id': 'str',
42+
'route_table_id': 'str',
4243
'status': 'str',
4344
'update_time': 'str',
4445
'vpc_id': 'str'
@@ -51,12 +52,13 @@ class DescribeIpv6GatewayAttributeResponse(object):
5152
'name': 'Name',
5253
'project_name': 'ProjectName',
5354
'request_id': 'RequestId',
55+
'route_table_id': 'RouteTableId',
5456
'status': 'Status',
5557
'update_time': 'UpdateTime',
5658
'vpc_id': 'VpcId'
5759
}
5860

59-
def __init__(self, creation_time=None, description=None, ipv6_gateway_id=None, name=None, project_name=None, request_id=None, status=None, update_time=None, vpc_id=None, _configuration=None): # noqa: E501
61+
def __init__(self, creation_time=None, description=None, ipv6_gateway_id=None, name=None, project_name=None, request_id=None, route_table_id=None, status=None, update_time=None, vpc_id=None, _configuration=None): # noqa: E501
6062
"""DescribeIpv6GatewayAttributeResponse - a model defined in Swagger""" # noqa: E501
6163
if _configuration is None:
6264
_configuration = Configuration()
@@ -68,6 +70,7 @@ def __init__(self, creation_time=None, description=None, ipv6_gateway_id=None, n
6870
self._name = None
6971
self._project_name = None
7072
self._request_id = None
73+
self._route_table_id = None
7174
self._status = None
7275
self._update_time = None
7376
self._vpc_id = None
@@ -85,6 +88,8 @@ def __init__(self, creation_time=None, description=None, ipv6_gateway_id=None, n
8588
self.project_name = project_name
8689
if request_id is not None:
8790
self.request_id = request_id
91+
if route_table_id is not None:
92+
self.route_table_id = route_table_id
8893
if status is not None:
8994
self.status = status
9095
if update_time is not None:
@@ -218,6 +223,27 @@ def request_id(self, request_id):
218223

219224
self._request_id = request_id
220225

226+
@property
227+
def route_table_id(self):
228+
"""Gets the route_table_id of this DescribeIpv6GatewayAttributeResponse. # noqa: E501
229+
230+
231+
:return: The route_table_id of this DescribeIpv6GatewayAttributeResponse. # noqa: E501
232+
:rtype: str
233+
"""
234+
return self._route_table_id
235+
236+
@route_table_id.setter
237+
def route_table_id(self, route_table_id):
238+
"""Sets the route_table_id of this DescribeIpv6GatewayAttributeResponse.
239+
240+
241+
:param route_table_id: The route_table_id of this DescribeIpv6GatewayAttributeResponse. # noqa: E501
242+
:type: str
243+
"""
244+
245+
self._route_table_id = route_table_id
246+
221247
@property
222248
def status(self):
223249
"""Gets the status of this DescribeIpv6GatewayAttributeResponse. # noqa: E501

volcenginesdkvpc/models/describe_route_table_list_request.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class DescribeRouteTableListRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'associate_type': 'str',
3637
'max_results': 'int',
3738
'next_token': 'str',
3839
'page_number': 'int',
@@ -45,6 +46,7 @@ class DescribeRouteTableListRequest(object):
4546
}
4647

4748
attribute_map = {
49+
'associate_type': 'AssociateType',
4850
'max_results': 'MaxResults',
4951
'next_token': 'NextToken',
5052
'page_number': 'PageNumber',
@@ -56,12 +58,13 @@ class DescribeRouteTableListRequest(object):
5658
'vpc_id': 'VpcId'
5759
}
5860

59-
def __init__(self, max_results=None, next_token=None, page_number=None, page_size=None, project_name=None, route_table_id=None, route_table_name=None, tag_filters=None, vpc_id=None, _configuration=None): # noqa: E501
61+
def __init__(self, associate_type=None, max_results=None, next_token=None, page_number=None, page_size=None, project_name=None, route_table_id=None, route_table_name=None, tag_filters=None, vpc_id=None, _configuration=None): # noqa: E501
6062
"""DescribeRouteTableListRequest - a model defined in Swagger""" # noqa: E501
6163
if _configuration is None:
6264
_configuration = Configuration()
6365
self._configuration = _configuration
6466

67+
self._associate_type = None
6568
self._max_results = None
6669
self._next_token = None
6770
self._page_number = None
@@ -73,6 +76,8 @@ def __init__(self, max_results=None, next_token=None, page_number=None, page_siz
7376
self._vpc_id = None
7477
self.discriminator = None
7578

79+
if associate_type is not None:
80+
self.associate_type = associate_type
7681
if max_results is not None:
7782
self.max_results = max_results
7883
if next_token is not None:
@@ -92,6 +97,34 @@ def __init__(self, max_results=None, next_token=None, page_number=None, page_siz
9297
if vpc_id is not None:
9398
self.vpc_id = vpc_id
9499

100+
@property
101+
def associate_type(self):
102+
"""Gets the associate_type of this DescribeRouteTableListRequest. # noqa: E501
103+
104+
105+
:return: The associate_type of this DescribeRouteTableListRequest. # noqa: E501
106+
:rtype: str
107+
"""
108+
return self._associate_type
109+
110+
@associate_type.setter
111+
def associate_type(self, associate_type):
112+
"""Sets the associate_type of this DescribeRouteTableListRequest.
113+
114+
115+
:param associate_type: The associate_type of this DescribeRouteTableListRequest. # noqa: E501
116+
:type: str
117+
"""
118+
allowed_values = ["Subnet", "Gateway"] # noqa: E501
119+
if (self._configuration.client_side_validation and
120+
associate_type not in allowed_values):
121+
raise ValueError(
122+
"Invalid value for `associate_type` ({0}), must be one of {1}" # noqa: E501
123+
.format(associate_type, allowed_values)
124+
)
125+
126+
self._associate_type = associate_type
127+
95128
@property
96129
def max_results(self):
97130
"""Gets the max_results of this DescribeRouteTableListRequest. # noqa: E501

0 commit comments

Comments
 (0)