Skip to content

Commit 50919ad

Browse files
committed
feat: update ecs
1 parent b680595 commit 50919ad

File tree

4 files changed

+108
-4
lines changed

4 files changed

+108
-4
lines changed

volcenginesdkecs/models/describe_instances_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class DescribeInstancesRequest(object):
4444
'max_results': 'int',
4545
'next_token': 'str',
4646
'primary_ip_address': 'str',
47+
'project_name': 'str',
4748
'status': 'str',
4849
'vpc_id': 'str',
4950
'zone_id': 'str'
@@ -61,12 +62,13 @@ class DescribeInstancesRequest(object):
6162
'max_results': 'MaxResults',
6263
'next_token': 'NextToken',
6364
'primary_ip_address': 'PrimaryIpAddress',
65+
'project_name': 'ProjectName',
6466
'status': 'Status',
6567
'vpc_id': 'VpcId',
6668
'zone_id': 'ZoneId'
6769
}
6870

69-
def __init__(self, hpc_cluster_id=None, instance_charge_type=None, instance_ids=None, instance_name=None, instance_type_families=None, instance_type_ids=None, instance_types=None, key_pair_name=None, max_results=None, next_token=None, primary_ip_address=None, status=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
71+
def __init__(self, hpc_cluster_id=None, instance_charge_type=None, instance_ids=None, instance_name=None, instance_type_families=None, instance_type_ids=None, instance_types=None, key_pair_name=None, max_results=None, next_token=None, primary_ip_address=None, project_name=None, status=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
7072
"""DescribeInstancesRequest - a model defined in Swagger""" # noqa: E501
7173
if _configuration is None:
7274
_configuration = Configuration()
@@ -83,6 +85,7 @@ def __init__(self, hpc_cluster_id=None, instance_charge_type=None, instance_ids=
8385
self._max_results = None
8486
self._next_token = None
8587
self._primary_ip_address = None
88+
self._project_name = None
8689
self._status = None
8790
self._vpc_id = None
8891
self._zone_id = None
@@ -110,6 +113,8 @@ def __init__(self, hpc_cluster_id=None, instance_charge_type=None, instance_ids=
110113
self.next_token = next_token
111114
if primary_ip_address is not None:
112115
self.primary_ip_address = primary_ip_address
116+
if project_name is not None:
117+
self.project_name = project_name
113118
if status is not None:
114119
self.status = status
115120
if vpc_id is not None:
@@ -348,6 +353,27 @@ def primary_ip_address(self, primary_ip_address):
348353

349354
self._primary_ip_address = primary_ip_address
350355

356+
@property
357+
def project_name(self):
358+
"""Gets the project_name of this DescribeInstancesRequest. # noqa: E501
359+
360+
361+
:return: The project_name of this DescribeInstancesRequest. # noqa: E501
362+
:rtype: str
363+
"""
364+
return self._project_name
365+
366+
@project_name.setter
367+
def project_name(self, project_name):
368+
"""Sets the project_name of this DescribeInstancesRequest.
369+
370+
371+
:param project_name: The project_name of this DescribeInstancesRequest. # noqa: E501
372+
:type: str
373+
"""
374+
375+
self._project_name = project_name
376+
351377
@property
352378
def status(self):
353379
"""Gets the status of this DescribeInstancesRequest. # noqa: E501

volcenginesdkecs/models/instance_for_describe_instances_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class InstanceForDescribeInstancesOutput(object):
5151
'network_interfaces': 'list[NetworkInterfaceForDescribeInstancesOutput]',
5252
'os_name': 'str',
5353
'os_type': 'str',
54+
'project_name': 'str',
5455
'rdma_ip_addresses': 'list[str]',
5556
'status': 'str',
5657
'stopped_mode': 'str',
@@ -79,6 +80,7 @@ class InstanceForDescribeInstancesOutput(object):
7980
'network_interfaces': 'NetworkInterfaces',
8081
'os_name': 'OsName',
8182
'os_type': 'OsType',
83+
'project_name': 'ProjectName',
8284
'rdma_ip_addresses': 'RdmaIpAddresses',
8385
'status': 'Status',
8486
'stopped_mode': 'StoppedMode',
@@ -88,7 +90,7 @@ class InstanceForDescribeInstancesOutput(object):
8890
'zone_id': 'ZoneId'
8991
}
9092

91-
def __init__(self, cpus=None, created_at=None, description=None, eip_address=None, expired_at=None, host_name=None, image_id=None, instance_charge_type=None, instance_id=None, instance_name=None, instance_type_id=None, key_pair_id=None, key_pair_name=None, local_volumes=None, memory_size=None, network_interfaces=None, os_name=None, os_type=None, rdma_ip_addresses=None, status=None, stopped_mode=None, updated_at=None, uuid=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
93+
def __init__(self, cpus=None, created_at=None, description=None, eip_address=None, expired_at=None, host_name=None, image_id=None, instance_charge_type=None, instance_id=None, instance_name=None, instance_type_id=None, key_pair_id=None, key_pair_name=None, local_volumes=None, memory_size=None, network_interfaces=None, os_name=None, os_type=None, project_name=None, rdma_ip_addresses=None, status=None, stopped_mode=None, updated_at=None, uuid=None, vpc_id=None, zone_id=None, _configuration=None): # noqa: E501
9294
"""InstanceForDescribeInstancesOutput - a model defined in Swagger""" # noqa: E501
9395
if _configuration is None:
9496
_configuration = Configuration()
@@ -112,6 +114,7 @@ def __init__(self, cpus=None, created_at=None, description=None, eip_address=Non
112114
self._network_interfaces = None
113115
self._os_name = None
114116
self._os_type = None
117+
self._project_name = None
115118
self._rdma_ip_addresses = None
116119
self._status = None
117120
self._stopped_mode = None
@@ -157,6 +160,8 @@ def __init__(self, cpus=None, created_at=None, description=None, eip_address=Non
157160
self.os_name = os_name
158161
if os_type is not None:
159162
self.os_type = os_type
163+
if project_name is not None:
164+
self.project_name = project_name
160165
if rdma_ip_addresses is not None:
161166
self.rdma_ip_addresses = rdma_ip_addresses
162167
if status is not None:
@@ -550,6 +555,27 @@ def os_type(self, os_type):
550555

551556
self._os_type = os_type
552557

558+
@property
559+
def project_name(self):
560+
"""Gets the project_name of this InstanceForDescribeInstancesOutput. # noqa: E501
561+
562+
563+
:return: The project_name of this InstanceForDescribeInstancesOutput. # noqa: E501
564+
:rtype: str
565+
"""
566+
return self._project_name
567+
568+
@project_name.setter
569+
def project_name(self, project_name):
570+
"""Sets the project_name of this InstanceForDescribeInstancesOutput.
571+
572+
573+
:param project_name: The project_name of this InstanceForDescribeInstancesOutput. # noqa: E501
574+
:type: str
575+
"""
576+
577+
self._project_name = project_name
578+
553579
@property
554580
def rdma_ip_addresses(self):
555581
"""Gets the rdma_ip_addresses of this InstanceForDescribeInstancesOutput. # noqa: E501

volcenginesdkecs/models/network_interface_for_run_instances_input.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,56 @@ class NetworkInterfaceForRunInstancesInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'primary_ip_address': 'str',
3637
'security_group_ids': 'list[str]',
3738
'subnet_id': 'str'
3839
}
3940

4041
attribute_map = {
42+
'primary_ip_address': 'PrimaryIpAddress',
4143
'security_group_ids': 'SecurityGroupIds',
4244
'subnet_id': 'SubnetId'
4345
}
4446

45-
def __init__(self, security_group_ids=None, subnet_id=None, _configuration=None): # noqa: E501
47+
def __init__(self, primary_ip_address=None, security_group_ids=None, subnet_id=None, _configuration=None): # noqa: E501
4648
"""NetworkInterfaceForRunInstancesInput - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

53+
self._primary_ip_address = None
5154
self._security_group_ids = None
5255
self._subnet_id = None
5356
self.discriminator = None
5457

58+
if primary_ip_address is not None:
59+
self.primary_ip_address = primary_ip_address
5560
if security_group_ids is not None:
5661
self.security_group_ids = security_group_ids
5762
if subnet_id is not None:
5863
self.subnet_id = subnet_id
5964

65+
@property
66+
def primary_ip_address(self):
67+
"""Gets the primary_ip_address of this NetworkInterfaceForRunInstancesInput. # noqa: E501
68+
69+
70+
:return: The primary_ip_address of this NetworkInterfaceForRunInstancesInput. # noqa: E501
71+
:rtype: str
72+
"""
73+
return self._primary_ip_address
74+
75+
@primary_ip_address.setter
76+
def primary_ip_address(self, primary_ip_address):
77+
"""Sets the primary_ip_address of this NetworkInterfaceForRunInstancesInput.
78+
79+
80+
:param primary_ip_address: The primary_ip_address of this NetworkInterfaceForRunInstancesInput. # noqa: E501
81+
:type: str
82+
"""
83+
84+
self._primary_ip_address = primary_ip_address
85+
6086
@property
6187
def security_group_ids(self):
6288
"""Gets the security_group_ids of this NetworkInterfaceForRunInstancesInput. # noqa: E501

volcenginesdkecs/models/run_instances_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class RunInstancesRequest(object):
5353
'password': 'str',
5454
'period': 'int',
5555
'period_unit': 'str',
56+
'project_name': 'str',
5657
'security_enhancement_strategy': 'str',
5758
'suffix_index': 'int',
5859
'unique_suffix': 'bool',
@@ -82,6 +83,7 @@ class RunInstancesRequest(object):
8283
'password': 'Password',
8384
'period': 'Period',
8485
'period_unit': 'PeriodUnit',
86+
'project_name': 'ProjectName',
8587
'security_enhancement_strategy': 'SecurityEnhancementStrategy',
8688
'suffix_index': 'SuffixIndex',
8789
'unique_suffix': 'UniqueSuffix',
@@ -90,7 +92,7 @@ class RunInstancesRequest(object):
9092
'zone_id': 'ZoneId'
9193
}
9294

93-
def __init__(self, auto_renew=None, auto_renew_period=None, client_token=None, count=None, credit_specification=None, description=None, dry_run=None, host_name=None, hpc_cluster_id=None, image_id=None, instance_charge_type=None, instance_name=None, instance_type=None, instance_type_id=None, key_pair_name=None, min_count=None, network_interfaces=None, password=None, period=None, period_unit=None, security_enhancement_strategy=None, suffix_index=None, unique_suffix=None, user_data=None, volumes=None, zone_id=None, _configuration=None): # noqa: E501
95+
def __init__(self, auto_renew=None, auto_renew_period=None, client_token=None, count=None, credit_specification=None, description=None, dry_run=None, host_name=None, hpc_cluster_id=None, image_id=None, instance_charge_type=None, instance_name=None, instance_type=None, instance_type_id=None, key_pair_name=None, min_count=None, network_interfaces=None, password=None, period=None, period_unit=None, project_name=None, security_enhancement_strategy=None, suffix_index=None, unique_suffix=None, user_data=None, volumes=None, zone_id=None, _configuration=None): # noqa: E501
9496
"""RunInstancesRequest - a model defined in Swagger""" # noqa: E501
9597
if _configuration is None:
9698
_configuration = Configuration()
@@ -116,6 +118,7 @@ def __init__(self, auto_renew=None, auto_renew_period=None, client_token=None, c
116118
self._password = None
117119
self._period = None
118120
self._period_unit = None
121+
self._project_name = None
119122
self._security_enhancement_strategy = None
120123
self._suffix_index = None
121124
self._unique_suffix = None
@@ -164,6 +167,8 @@ def __init__(self, auto_renew=None, auto_renew_period=None, client_token=None, c
164167
self.period = period
165168
if period_unit is not None:
166169
self.period_unit = period_unit
170+
if project_name is not None:
171+
self.project_name = project_name
167172
if security_enhancement_strategy is not None:
168173
self.security_enhancement_strategy = security_enhancement_strategy
169174
if suffix_index is not None:
@@ -597,6 +602,27 @@ def period_unit(self, period_unit):
597602

598603
self._period_unit = period_unit
599604

605+
@property
606+
def project_name(self):
607+
"""Gets the project_name of this RunInstancesRequest. # noqa: E501
608+
609+
610+
:return: The project_name of this RunInstancesRequest. # noqa: E501
611+
:rtype: str
612+
"""
613+
return self._project_name
614+
615+
@project_name.setter
616+
def project_name(self, project_name):
617+
"""Sets the project_name of this RunInstancesRequest.
618+
619+
620+
:param project_name: The project_name of this RunInstancesRequest. # noqa: E501
621+
:type: str
622+
"""
623+
624+
self._project_name = project_name
625+
600626
@property
601627
def security_enhancement_strategy(self):
602628
"""Gets the security_enhancement_strategy of this RunInstancesRequest. # noqa: E501

0 commit comments

Comments
 (0)