Skip to content

Commit 0c79973

Browse files
committed
feat: update iaas api
1 parent ee86958 commit 0c79973

9 files changed

+359
-9
lines changed

volcenginesdkecs/models/network_interface_for_describe_instances_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class NetworkInterfaceForDescribeInstancesOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'ipv6_addresses': 'list[str]',
3637
'mac_address': 'str',
3738
'network_interface_id': 'str',
3839
'primary_ip_address': 'str',
@@ -42,6 +43,7 @@ class NetworkInterfaceForDescribeInstancesOutput(object):
4243
}
4344

4445
attribute_map = {
46+
'ipv6_addresses': 'Ipv6Addresses',
4547
'mac_address': 'MacAddress',
4648
'network_interface_id': 'NetworkInterfaceId',
4749
'primary_ip_address': 'PrimaryIpAddress',
@@ -50,12 +52,13 @@ class NetworkInterfaceForDescribeInstancesOutput(object):
5052
'vpc_id': 'VpcId'
5153
}
5254

53-
def __init__(self, mac_address=None, network_interface_id=None, primary_ip_address=None, subnet_id=None, type=None, vpc_id=None, _configuration=None): # noqa: E501
55+
def __init__(self, ipv6_addresses=None, mac_address=None, network_interface_id=None, primary_ip_address=None, subnet_id=None, type=None, vpc_id=None, _configuration=None): # noqa: E501
5456
"""NetworkInterfaceForDescribeInstancesOutput - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
5759
self._configuration = _configuration
5860

61+
self._ipv6_addresses = None
5962
self._mac_address = None
6063
self._network_interface_id = None
6164
self._primary_ip_address = None
@@ -64,6 +67,8 @@ def __init__(self, mac_address=None, network_interface_id=None, primary_ip_addre
6467
self._vpc_id = None
6568
self.discriminator = None
6669

70+
if ipv6_addresses is not None:
71+
self.ipv6_addresses = ipv6_addresses
6772
if mac_address is not None:
6873
self.mac_address = mac_address
6974
if network_interface_id is not None:
@@ -77,6 +82,27 @@ def __init__(self, mac_address=None, network_interface_id=None, primary_ip_addre
7782
if vpc_id is not None:
7883
self.vpc_id = vpc_id
7984

85+
@property
86+
def ipv6_addresses(self):
87+
"""Gets the ipv6_addresses of this NetworkInterfaceForDescribeInstancesOutput. # noqa: E501
88+
89+
90+
:return: The ipv6_addresses of this NetworkInterfaceForDescribeInstancesOutput. # noqa: E501
91+
:rtype: list[str]
92+
"""
93+
return self._ipv6_addresses
94+
95+
@ipv6_addresses.setter
96+
def ipv6_addresses(self, ipv6_addresses):
97+
"""Sets the ipv6_addresses of this NetworkInterfaceForDescribeInstancesOutput.
98+
99+
100+
:param ipv6_addresses: The ipv6_addresses of this NetworkInterfaceForDescribeInstancesOutput. # noqa: E501
101+
:type: list[str]
102+
"""
103+
104+
self._ipv6_addresses = ipv6_addresses
105+
80106
@property
81107
def mac_address(self):
82108
"""Gets the mac_address of this NetworkInterfaceForDescribeInstancesOutput. # noqa: E501

volcenginesdkvpc/models/create_network_interface_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class CreateNetworkInterfaceRequest(object):
3535
swagger_types = {
3636
'client_token': 'str',
3737
'description': 'str',
38+
'ipv6_address': 'list[str]',
39+
'ipv6_address_count': 'int',
3840
'network_interface_name': 'str',
3941
'port_security_enabled': 'bool',
4042
'primary_ip_address': 'str',
@@ -49,6 +51,8 @@ class CreateNetworkInterfaceRequest(object):
4951
attribute_map = {
5052
'client_token': 'ClientToken',
5153
'description': 'Description',
54+
'ipv6_address': 'Ipv6Address',
55+
'ipv6_address_count': 'Ipv6AddressCount',
5256
'network_interface_name': 'NetworkInterfaceName',
5357
'port_security_enabled': 'PortSecurityEnabled',
5458
'primary_ip_address': 'PrimaryIpAddress',
@@ -60,14 +64,16 @@ class CreateNetworkInterfaceRequest(object):
6064
'tags': 'Tags'
6165
}
6266

63-
def __init__(self, client_token=None, description=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_address=None, project_name=None, secondary_private_ip_address_count=None, security_group_ids=None, subnet_id=None, tags=None, _configuration=None): # noqa: E501
67+
def __init__(self, client_token=None, description=None, ipv6_address=None, ipv6_address_count=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_address=None, project_name=None, secondary_private_ip_address_count=None, security_group_ids=None, subnet_id=None, tags=None, _configuration=None): # noqa: E501
6468
"""CreateNetworkInterfaceRequest - a model defined in Swagger""" # noqa: E501
6569
if _configuration is None:
6670
_configuration = Configuration()
6771
self._configuration = _configuration
6872

6973
self._client_token = None
7074
self._description = None
75+
self._ipv6_address = None
76+
self._ipv6_address_count = None
7177
self._network_interface_name = None
7278
self._port_security_enabled = None
7379
self._primary_ip_address = None
@@ -83,6 +89,10 @@ def __init__(self, client_token=None, description=None, network_interface_name=N
8389
self.client_token = client_token
8490
if description is not None:
8591
self.description = description
92+
if ipv6_address is not None:
93+
self.ipv6_address = ipv6_address
94+
if ipv6_address_count is not None:
95+
self.ipv6_address_count = ipv6_address_count
8696
if network_interface_name is not None:
8797
self.network_interface_name = network_interface_name
8898
if port_security_enabled is not None:
@@ -149,6 +159,48 @@ def description(self, description):
149159

150160
self._description = description
151161

162+
@property
163+
def ipv6_address(self):
164+
"""Gets the ipv6_address of this CreateNetworkInterfaceRequest. # noqa: E501
165+
166+
167+
:return: The ipv6_address of this CreateNetworkInterfaceRequest. # noqa: E501
168+
:rtype: list[str]
169+
"""
170+
return self._ipv6_address
171+
172+
@ipv6_address.setter
173+
def ipv6_address(self, ipv6_address):
174+
"""Sets the ipv6_address of this CreateNetworkInterfaceRequest.
175+
176+
177+
:param ipv6_address: The ipv6_address of this CreateNetworkInterfaceRequest. # noqa: E501
178+
:type: list[str]
179+
"""
180+
181+
self._ipv6_address = ipv6_address
182+
183+
@property
184+
def ipv6_address_count(self):
185+
"""Gets the ipv6_address_count of this CreateNetworkInterfaceRequest. # noqa: E501
186+
187+
188+
:return: The ipv6_address_count of this CreateNetworkInterfaceRequest. # noqa: E501
189+
:rtype: int
190+
"""
191+
return self._ipv6_address_count
192+
193+
@ipv6_address_count.setter
194+
def ipv6_address_count(self, ipv6_address_count):
195+
"""Sets the ipv6_address_count of this CreateNetworkInterfaceRequest.
196+
197+
198+
:param ipv6_address_count: The ipv6_address_count of this CreateNetworkInterfaceRequest. # noqa: E501
199+
:type: int
200+
"""
201+
202+
self._ipv6_address_count = ipv6_address_count
203+
152204
@property
153205
def network_interface_name(self):
154206
"""Gets the network_interface_name of this CreateNetworkInterfaceRequest. # noqa: E501

volcenginesdkvpc/models/create_subnet_request.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class CreateSubnetRequest(object):
3636
'cidr_block': 'str',
3737
'client_token': 'str',
3838
'description': 'str',
39+
'ipv6_cidr_block': 'int',
3940
'subnet_name': 'str',
4041
'vpc_id': 'str',
4142
'zone_id': 'str'
@@ -45,12 +46,13 @@ class CreateSubnetRequest(object):
4546
'cidr_block': 'CidrBlock',
4647
'client_token': 'ClientToken',
4748
'description': 'Description',
49+
'ipv6_cidr_block': 'Ipv6CidrBlock',
4850
'subnet_name': 'SubnetName',
4951
'vpc_id': 'VpcId',
5052
'zone_id': 'ZoneId'
5153
}
5254

53-
def __init__(self, cidr_block=None, client_token=None, description=None, subnet_name=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
55+
def __init__(self, cidr_block=None, client_token=None, description=None, ipv6_cidr_block=None, subnet_name=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
5456
"""CreateSubnetRequest - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
@@ -59,6 +61,7 @@ def __init__(self, cidr_block=None, client_token=None, description=None, subnet_
5961
self._cidr_block = None
6062
self._client_token = None
6163
self._description = None
64+
self._ipv6_cidr_block = None
6265
self._subnet_name = None
6366
self._vpc_id = None
6467
self._zone_id = None
@@ -69,6 +72,8 @@ def __init__(self, cidr_block=None, client_token=None, description=None, subnet_
6972
self.client_token = client_token
7073
if description is not None:
7174
self.description = description
75+
if ipv6_cidr_block is not None:
76+
self.ipv6_cidr_block = ipv6_cidr_block
7277
if subnet_name is not None:
7378
self.subnet_name = subnet_name
7479
self.vpc_id = vpc_id
@@ -145,6 +150,33 @@ def description(self, description):
145150

146151
self._description = description
147152

153+
@property
154+
def ipv6_cidr_block(self):
155+
"""Gets the ipv6_cidr_block of this CreateSubnetRequest. # noqa: E501
156+
157+
158+
:return: The ipv6_cidr_block of this CreateSubnetRequest. # noqa: E501
159+
:rtype: int
160+
"""
161+
return self._ipv6_cidr_block
162+
163+
@ipv6_cidr_block.setter
164+
def ipv6_cidr_block(self, ipv6_cidr_block):
165+
"""Sets the ipv6_cidr_block of this CreateSubnetRequest.
166+
167+
168+
:param ipv6_cidr_block: The ipv6_cidr_block of this CreateSubnetRequest. # noqa: E501
169+
:type: int
170+
"""
171+
if (self._configuration.client_side_validation and
172+
ipv6_cidr_block is not None and ipv6_cidr_block > 255): # noqa: E501
173+
raise ValueError("Invalid value for `ipv6_cidr_block`, must be a value less than or equal to `255`") # noqa: E501
174+
if (self._configuration.client_side_validation and
175+
ipv6_cidr_block is not None and ipv6_cidr_block < 0): # noqa: E501
176+
raise ValueError("Invalid value for `ipv6_cidr_block`, must be a value greater than or equal to `0`") # noqa: E501
177+
178+
self._ipv6_cidr_block = ipv6_cidr_block
179+
148180
@property
149181
def subnet_name(self):
150182
"""Gets the subnet_name of this CreateSubnetRequest. # noqa: E501

volcenginesdkvpc/models/create_vpc_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class CreateVpcRequest(object):
3737
'client_token': 'str',
3838
'description': 'str',
3939
'dns_servers': 'list[str]',
40+
'enable_ipv6': 'bool',
41+
'ipv6_cidr_block': 'str',
4042
'project_name': 'str',
4143
'tags': 'list[TagForCreateVpcInput]',
4244
'vpc_name': 'str'
@@ -47,12 +49,14 @@ class CreateVpcRequest(object):
4749
'client_token': 'ClientToken',
4850
'description': 'Description',
4951
'dns_servers': 'DnsServers',
52+
'enable_ipv6': 'EnableIpv6',
53+
'ipv6_cidr_block': 'Ipv6CidrBlock',
5054
'project_name': 'ProjectName',
5155
'tags': 'Tags',
5256
'vpc_name': 'VpcName'
5357
}
5458

55-
def __init__(self, cidr_block=None, client_token=None, description=None, dns_servers=None, project_name=None, tags=None, vpc_name=None, _configuration=None): # noqa: E501
59+
def __init__(self, cidr_block=None, client_token=None, description=None, dns_servers=None, enable_ipv6=None, ipv6_cidr_block=None, project_name=None, tags=None, vpc_name=None, _configuration=None): # noqa: E501
5660
"""CreateVpcRequest - a model defined in Swagger""" # noqa: E501
5761
if _configuration is None:
5862
_configuration = Configuration()
@@ -62,6 +66,8 @@ def __init__(self, cidr_block=None, client_token=None, description=None, dns_ser
6266
self._client_token = None
6367
self._description = None
6468
self._dns_servers = None
69+
self._enable_ipv6 = None
70+
self._ipv6_cidr_block = None
6571
self._project_name = None
6672
self._tags = None
6773
self._vpc_name = None
@@ -74,6 +80,10 @@ def __init__(self, cidr_block=None, client_token=None, description=None, dns_ser
7480
self.description = description
7581
if dns_servers is not None:
7682
self.dns_servers = dns_servers
83+
if enable_ipv6 is not None:
84+
self.enable_ipv6 = enable_ipv6
85+
if ipv6_cidr_block is not None:
86+
self.ipv6_cidr_block = ipv6_cidr_block
7787
if project_name is not None:
7888
self.project_name = project_name
7989
if tags is not None:
@@ -173,6 +183,48 @@ def dns_servers(self, dns_servers):
173183

174184
self._dns_servers = dns_servers
175185

186+
@property
187+
def enable_ipv6(self):
188+
"""Gets the enable_ipv6 of this CreateVpcRequest. # noqa: E501
189+
190+
191+
:return: The enable_ipv6 of this CreateVpcRequest. # noqa: E501
192+
:rtype: bool
193+
"""
194+
return self._enable_ipv6
195+
196+
@enable_ipv6.setter
197+
def enable_ipv6(self, enable_ipv6):
198+
"""Sets the enable_ipv6 of this CreateVpcRequest.
199+
200+
201+
:param enable_ipv6: The enable_ipv6 of this CreateVpcRequest. # noqa: E501
202+
:type: bool
203+
"""
204+
205+
self._enable_ipv6 = enable_ipv6
206+
207+
@property
208+
def ipv6_cidr_block(self):
209+
"""Gets the ipv6_cidr_block of this CreateVpcRequest. # noqa: E501
210+
211+
212+
:return: The ipv6_cidr_block of this CreateVpcRequest. # noqa: E501
213+
:rtype: str
214+
"""
215+
return self._ipv6_cidr_block
216+
217+
@ipv6_cidr_block.setter
218+
def ipv6_cidr_block(self, ipv6_cidr_block):
219+
"""Sets the ipv6_cidr_block of this CreateVpcRequest.
220+
221+
222+
:param ipv6_cidr_block: The ipv6_cidr_block of this CreateVpcRequest. # noqa: E501
223+
:type: str
224+
"""
225+
226+
self._ipv6_cidr_block = ipv6_cidr_block
227+
176228
@property
177229
def project_name(self):
178230
"""Gets the project_name of this CreateVpcRequest. # noqa: E501

0 commit comments

Comments
 (0)