Skip to content

Commit f4d51f0

Browse files
committed
feat: update ecs
1 parent a92558f commit f4d51f0

8 files changed

+117
-39
lines changed

volcenginesdkecs/models/copy_image_response.py

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,24 @@ class CopyImageResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'image_id': 'str',
37-
'task_id': 'str'
36+
'image_id': 'str'
3837
}
3938

4039
attribute_map = {
41-
'image_id': 'ImageId',
42-
'task_id': 'TaskId'
40+
'image_id': 'ImageId'
4341
}
4442

45-
def __init__(self, image_id=None, task_id=None, _configuration=None): # noqa: E501
43+
def __init__(self, image_id=None, _configuration=None): # noqa: E501
4644
"""CopyImageResponse - a model defined in Swagger""" # noqa: E501
4745
if _configuration is None:
4846
_configuration = Configuration()
4947
self._configuration = _configuration
5048

5149
self._image_id = None
52-
self._task_id = None
5350
self.discriminator = None
5451

5552
if image_id is not None:
5653
self.image_id = image_id
57-
if task_id is not None:
58-
self.task_id = task_id
5954

6055
@property
6156
def image_id(self):
@@ -78,27 +73,6 @@ def image_id(self, image_id):
7873

7974
self._image_id = image_id
8075

81-
@property
82-
def task_id(self):
83-
"""Gets the task_id of this CopyImageResponse. # noqa: E501
84-
85-
86-
:return: The task_id of this CopyImageResponse. # noqa: E501
87-
:rtype: str
88-
"""
89-
return self._task_id
90-
91-
@task_id.setter
92-
def task_id(self, task_id):
93-
"""Sets the task_id of this CopyImageResponse.
94-
95-
96-
:param task_id: The task_id of this CopyImageResponse. # noqa: E501
97-
:type: str
98-
"""
99-
100-
self._task_id = task_id
101-
10276
def to_dict(self):
10377
"""Returns the model properties as a dict"""
10478
result = {}

volcenginesdkecs/models/describe_tasks_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,19 @@ class DescribeTasksRequest(object):
3636
'max_results': 'str',
3737
'next_token': 'str',
3838
'resource_id': 'str',
39+
'resource_ids': 'list[str]',
3940
'task_ids': 'list[str]'
4041
}
4142

4243
attribute_map = {
4344
'max_results': 'MaxResults',
4445
'next_token': 'NextToken',
4546
'resource_id': 'ResourceId',
47+
'resource_ids': 'ResourceIds',
4648
'task_ids': 'TaskIds'
4749
}
4850

49-
def __init__(self, max_results=None, next_token=None, resource_id=None, task_ids=None, _configuration=None): # noqa: E501
51+
def __init__(self, max_results=None, next_token=None, resource_id=None, resource_ids=None, task_ids=None, _configuration=None): # noqa: E501
5052
"""DescribeTasksRequest - a model defined in Swagger""" # noqa: E501
5153
if _configuration is None:
5254
_configuration = Configuration()
@@ -55,6 +57,7 @@ def __init__(self, max_results=None, next_token=None, resource_id=None, task_ids
5557
self._max_results = None
5658
self._next_token = None
5759
self._resource_id = None
60+
self._resource_ids = None
5861
self._task_ids = None
5962
self.discriminator = None
6063

@@ -64,6 +67,8 @@ def __init__(self, max_results=None, next_token=None, resource_id=None, task_ids
6467
self.next_token = next_token
6568
if resource_id is not None:
6669
self.resource_id = resource_id
70+
if resource_ids is not None:
71+
self.resource_ids = resource_ids
6772
if task_ids is not None:
6873
self.task_ids = task_ids
6974

@@ -130,6 +135,27 @@ def resource_id(self, resource_id):
130135

131136
self._resource_id = resource_id
132137

138+
@property
139+
def resource_ids(self):
140+
"""Gets the resource_ids of this DescribeTasksRequest. # noqa: E501
141+
142+
143+
:return: The resource_ids of this DescribeTasksRequest. # noqa: E501
144+
:rtype: list[str]
145+
"""
146+
return self._resource_ids
147+
148+
@resource_ids.setter
149+
def resource_ids(self, resource_ids):
150+
"""Sets the resource_ids of this DescribeTasksRequest.
151+
152+
153+
:param resource_ids: The resource_ids of this DescribeTasksRequest. # noqa: E501
154+
:type: list[str]
155+
"""
156+
157+
self._resource_ids = resource_ids
158+
133159
@property
134160
def task_ids(self):
135161
"""Gets the task_ids of this DescribeTasksRequest. # noqa: E501

volcenginesdkecs/models/run_instances_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ def dry_run(self, dry_run):
379379
def host_name(self):
380380
"""Gets the host_name of this RunInstancesRequest. # noqa: E501
381381
382+
this field is deprecated # noqa: E501
382383
383384
:return: The host_name of this RunInstancesRequest. # noqa: E501
384385
:rtype: str
@@ -389,6 +390,7 @@ def host_name(self):
389390
def host_name(self, host_name):
390391
"""Sets the host_name of this RunInstancesRequest.
391392
393+
this field is deprecated # noqa: E501
392394
393395
:param host_name: The host_name of this RunInstancesRequest. # noqa: E501
394396
:type: str

volcenginesdkecs/models/system_event_for_describe_system_events_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class SystemEventForDescribeSystemEventsOutput(object):
3434
"""
3535
swagger_types = {
3636
'created_at': 'str',
37+
'extra_info': 'dict(str, str)',
3738
'id': 'str',
3839
'operated_end_at': 'str',
3940
'operated_start_at': 'str',
@@ -45,6 +46,7 @@ class SystemEventForDescribeSystemEventsOutput(object):
4546

4647
attribute_map = {
4748
'created_at': 'CreatedAt',
49+
'extra_info': 'ExtraInfo',
4850
'id': 'Id',
4951
'operated_end_at': 'OperatedEndAt',
5052
'operated_start_at': 'OperatedStartAt',
@@ -54,13 +56,14 @@ class SystemEventForDescribeSystemEventsOutput(object):
5456
'updated_at': 'UpdatedAt'
5557
}
5658

57-
def __init__(self, created_at=None, id=None, operated_end_at=None, operated_start_at=None, resource_id=None, status=None, type=None, updated_at=None, _configuration=None): # noqa: E501
59+
def __init__(self, created_at=None, extra_info=None, id=None, operated_end_at=None, operated_start_at=None, resource_id=None, status=None, type=None, updated_at=None, _configuration=None): # noqa: E501
5860
"""SystemEventForDescribeSystemEventsOutput - a model defined in Swagger""" # noqa: E501
5961
if _configuration is None:
6062
_configuration = Configuration()
6163
self._configuration = _configuration
6264

6365
self._created_at = None
66+
self._extra_info = None
6467
self._id = None
6568
self._operated_end_at = None
6669
self._operated_start_at = None
@@ -72,6 +75,8 @@ def __init__(self, created_at=None, id=None, operated_end_at=None, operated_star
7275

7376
if created_at is not None:
7477
self.created_at = created_at
78+
if extra_info is not None:
79+
self.extra_info = extra_info
7580
if id is not None:
7681
self.id = id
7782
if operated_end_at is not None:
@@ -108,6 +113,27 @@ def created_at(self, created_at):
108113

109114
self._created_at = created_at
110115

116+
@property
117+
def extra_info(self):
118+
"""Gets the extra_info of this SystemEventForDescribeSystemEventsOutput. # noqa: E501
119+
120+
121+
:return: The extra_info of this SystemEventForDescribeSystemEventsOutput. # noqa: E501
122+
:rtype: dict(str, str)
123+
"""
124+
return self._extra_info
125+
126+
@extra_info.setter
127+
def extra_info(self, extra_info):
128+
"""Sets the extra_info of this SystemEventForDescribeSystemEventsOutput.
129+
130+
131+
:param extra_info: The extra_info of this SystemEventForDescribeSystemEventsOutput. # noqa: E501
132+
:type: dict(str, str)
133+
"""
134+
135+
self._extra_info = extra_info
136+
111137
@property
112138
def id(self):
113139
"""Gets the id of this SystemEventForDescribeSystemEventsOutput. # noqa: E501

volcenginesdkvpc/models/authorize_security_group_egress_request.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def __init__(self, cidr_ip=None, client_token=None, description=None, policy=Non
7676
self._source_group_id = None
7777
self.discriminator = None
7878

79-
self.cidr_ip = cidr_ip
79+
if cidr_ip is not None:
80+
self.cidr_ip = cidr_ip
8081
if client_token is not None:
8182
self.client_token = client_token
8283
if description is not None:
@@ -110,8 +111,6 @@ def cidr_ip(self, cidr_ip):
110111
:param cidr_ip: The cidr_ip of this AuthorizeSecurityGroupEgressRequest. # noqa: E501
111112
:type: str
112113
"""
113-
if self._configuration.client_side_validation and cidr_ip is None:
114-
raise ValueError("Invalid value for `cidr_ip`, must not be `None`") # noqa: E501
115114

116115
self._cidr_ip = cidr_ip
117116

volcenginesdkvpc/models/authorize_security_group_ingress_request.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def __init__(self, cidr_ip=None, client_token=None, description=None, policy=Non
7676
self._source_group_id = None
7777
self.discriminator = None
7878

79-
self.cidr_ip = cidr_ip
79+
if cidr_ip is not None:
80+
self.cidr_ip = cidr_ip
8081
if client_token is not None:
8182
self.client_token = client_token
8283
if description is not None:
@@ -110,8 +111,6 @@ def cidr_ip(self, cidr_ip):
110111
:param cidr_ip: The cidr_ip of this AuthorizeSecurityGroupIngressRequest. # noqa: E501
111112
:type: str
112113
"""
113-
if self._configuration.client_side_validation and cidr_ip is None:
114-
raise ValueError("Invalid value for `cidr_ip`, must not be `None`") # noqa: E501
115114

116115
self._cidr_ip = cidr_ip
117116

volcenginesdkvpc/models/describe_network_interface_attributes_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class DescribeNetworkInterfaceAttributesResponse(object):
3838
'created_at': 'str',
3939
'description': 'str',
4040
'device_id': 'str',
41+
'i_pv6_sets': 'list[str]',
4142
'mac_address': 'str',
4243
'network_interface_id': 'str',
4344
'network_interface_name': 'str',
@@ -64,6 +65,7 @@ class DescribeNetworkInterfaceAttributesResponse(object):
6465
'created_at': 'CreatedAt',
6566
'description': 'Description',
6667
'device_id': 'DeviceId',
68+
'i_pv6_sets': 'IPv6Sets',
6769
'mac_address': 'MacAddress',
6870
'network_interface_id': 'NetworkInterfaceId',
6971
'network_interface_name': 'NetworkInterfaceName',
@@ -84,7 +86,7 @@ class DescribeNetworkInterfaceAttributesResponse(object):
8486
'zone_id': 'ZoneId'
8587
}
8688

87-
def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None, description=None, device_id=None, mac_address=None, network_interface_id=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_sets=None, project_name=None, request_id=None, security_group_ids=None, service_managed=None, status=None, subnet_id=None, tags=None, type=None, updated_at=None, vpc_id=None, vpc_name=None, zone_id=None, _configuration=None): # noqa: E501
89+
def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None, description=None, device_id=None, i_pv6_sets=None, mac_address=None, network_interface_id=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_sets=None, project_name=None, request_id=None, security_group_ids=None, service_managed=None, status=None, subnet_id=None, tags=None, type=None, updated_at=None, vpc_id=None, vpc_name=None, zone_id=None, _configuration=None): # noqa: E501
8890
"""DescribeNetworkInterfaceAttributesResponse - a model defined in Swagger""" # noqa: E501
8991
if _configuration is None:
9092
_configuration = Configuration()
@@ -95,6 +97,7 @@ def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None,
9597
self._created_at = None
9698
self._description = None
9799
self._device_id = None
100+
self._i_pv6_sets = None
98101
self._mac_address = None
99102
self._network_interface_id = None
100103
self._network_interface_name = None
@@ -125,6 +128,8 @@ def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None,
125128
self.description = description
126129
if device_id is not None:
127130
self.device_id = device_id
131+
if i_pv6_sets is not None:
132+
self.i_pv6_sets = i_pv6_sets
128133
if mac_address is not None:
129134
self.mac_address = mac_address
130135
if network_interface_id is not None:
@@ -267,6 +272,27 @@ def device_id(self, device_id):
267272

268273
self._device_id = device_id
269274

275+
@property
276+
def i_pv6_sets(self):
277+
"""Gets the i_pv6_sets of this DescribeNetworkInterfaceAttributesResponse. # noqa: E501
278+
279+
280+
:return: The i_pv6_sets of this DescribeNetworkInterfaceAttributesResponse. # noqa: E501
281+
:rtype: list[str]
282+
"""
283+
return self._i_pv6_sets
284+
285+
@i_pv6_sets.setter
286+
def i_pv6_sets(self, i_pv6_sets):
287+
"""Sets the i_pv6_sets of this DescribeNetworkInterfaceAttributesResponse.
288+
289+
290+
:param i_pv6_sets: The i_pv6_sets of this DescribeNetworkInterfaceAttributesResponse. # noqa: E501
291+
:type: list[str]
292+
"""
293+
294+
self._i_pv6_sets = i_pv6_sets
295+
270296
@property
271297
def mac_address(self):
272298
"""Gets the mac_address of this DescribeNetworkInterfaceAttributesResponse. # noqa: E501

volcenginesdkvpc/models/network_interface_set_for_describe_network_interfaces_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class NetworkInterfaceSetForDescribeNetworkInterfacesOutput(object):
3838
'created_at': 'str',
3939
'description': 'str',
4040
'device_id': 'str',
41+
'i_pv6_sets': 'list[str]',
4142
'mac_address': 'str',
4243
'network_interface_id': 'str',
4344
'network_interface_name': 'str',
@@ -63,6 +64,7 @@ class NetworkInterfaceSetForDescribeNetworkInterfacesOutput(object):
6364
'created_at': 'CreatedAt',
6465
'description': 'Description',
6566
'device_id': 'DeviceId',
67+
'i_pv6_sets': 'IPv6Sets',
6668
'mac_address': 'MacAddress',
6769
'network_interface_id': 'NetworkInterfaceId',
6870
'network_interface_name': 'NetworkInterfaceName',
@@ -82,7 +84,7 @@ class NetworkInterfaceSetForDescribeNetworkInterfacesOutput(object):
8284
'zone_id': 'ZoneId'
8385
}
8486

85-
def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None, description=None, device_id=None, mac_address=None, network_interface_id=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_sets=None, project_name=None, security_group_ids=None, service_managed=None, status=None, subnet_id=None, tags=None, type=None, updated_at=None, vpc_id=None, vpc_name=None, zone_id=None, _configuration=None): # noqa: E501
87+
def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None, description=None, device_id=None, i_pv6_sets=None, mac_address=None, network_interface_id=None, network_interface_name=None, port_security_enabled=None, primary_ip_address=None, private_ip_sets=None, project_name=None, security_group_ids=None, service_managed=None, status=None, subnet_id=None, tags=None, type=None, updated_at=None, vpc_id=None, vpc_name=None, zone_id=None, _configuration=None): # noqa: E501
8688
"""NetworkInterfaceSetForDescribeNetworkInterfacesOutput - a model defined in Swagger""" # noqa: E501
8789
if _configuration is None:
8890
_configuration = Configuration()
@@ -93,6 +95,7 @@ def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None,
9395
self._created_at = None
9496
self._description = None
9597
self._device_id = None
98+
self._i_pv6_sets = None
9699
self._mac_address = None
97100
self._network_interface_id = None
98101
self._network_interface_name = None
@@ -122,6 +125,8 @@ def __init__(self, account_id=None, associated_elastic_ip=None, created_at=None,
122125
self.description = description
123126
if device_id is not None:
124127
self.device_id = device_id
128+
if i_pv6_sets is not None:
129+
self.i_pv6_sets = i_pv6_sets
125130
if mac_address is not None:
126131
self.mac_address = mac_address
127132
if network_interface_id is not None:
@@ -262,6 +267,27 @@ def device_id(self, device_id):
262267

263268
self._device_id = device_id
264269

270+
@property
271+
def i_pv6_sets(self):
272+
"""Gets the i_pv6_sets of this NetworkInterfaceSetForDescribeNetworkInterfacesOutput. # noqa: E501
273+
274+
275+
:return: The i_pv6_sets of this NetworkInterfaceSetForDescribeNetworkInterfacesOutput. # noqa: E501
276+
:rtype: list[str]
277+
"""
278+
return self._i_pv6_sets
279+
280+
@i_pv6_sets.setter
281+
def i_pv6_sets(self, i_pv6_sets):
282+
"""Sets the i_pv6_sets of this NetworkInterfaceSetForDescribeNetworkInterfacesOutput.
283+
284+
285+
:param i_pv6_sets: The i_pv6_sets of this NetworkInterfaceSetForDescribeNetworkInterfacesOutput. # noqa: E501
286+
:type: list[str]
287+
"""
288+
289+
self._i_pv6_sets = i_pv6_sets
290+
265291
@property
266292
def mac_address(self):
267293
"""Gets the mac_address of this NetworkInterfaceSetForDescribeNetworkInterfacesOutput. # noqa: E501

0 commit comments

Comments
 (0)