Skip to content

Commit c9faac0

Browse files
committed
feat: update eip
1 parent b1b3394 commit c9faac0

8 files changed

+488
-4
lines changed

volcenginesdkvpc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
from volcenginesdkvpc.models.tag_for_create_network_interface_input import TagForCreateNetworkInterfaceInput
180180
from volcenginesdkvpc.models.tag_for_create_security_group_input import TagForCreateSecurityGroupInput
181181
from volcenginesdkvpc.models.tag_for_create_vpc_input import TagForCreateVpcInput
182+
from volcenginesdkvpc.models.tag_for_describe_eip_address_attributes_output import TagForDescribeEipAddressAttributesOutput
183+
from volcenginesdkvpc.models.tag_for_describe_eip_addresses_output import TagForDescribeEipAddressesOutput
182184
from volcenginesdkvpc.models.tag_for_describe_network_interface_attributes_output import TagForDescribeNetworkInterfaceAttributesOutput
183185
from volcenginesdkvpc.models.tag_for_describe_network_interfaces_output import TagForDescribeNetworkInterfacesOutput
184186
from volcenginesdkvpc.models.tag_for_describe_security_group_attributes_output import TagForDescribeSecurityGroupAttributesOutput

volcenginesdkvpc/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@
175175
from volcenginesdkvpc.models.tag_for_create_network_interface_input import TagForCreateNetworkInterfaceInput
176176
from volcenginesdkvpc.models.tag_for_create_security_group_input import TagForCreateSecurityGroupInput
177177
from volcenginesdkvpc.models.tag_for_create_vpc_input import TagForCreateVpcInput
178+
from volcenginesdkvpc.models.tag_for_describe_eip_address_attributes_output import TagForDescribeEipAddressAttributesOutput
179+
from volcenginesdkvpc.models.tag_for_describe_eip_addresses_output import TagForDescribeEipAddressesOutput
178180
from volcenginesdkvpc.models.tag_for_describe_network_interface_attributes_output import TagForDescribeNetworkInterfaceAttributesOutput
179181
from volcenginesdkvpc.models.tag_for_describe_network_interfaces_output import TagForDescribeNetworkInterfacesOutput
180182
from volcenginesdkvpc.models.tag_for_describe_security_group_attributes_output import TagForDescribeSecurityGroupAttributesOutput

volcenginesdkvpc/models/allocate_eip_address_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,46 @@ class AllocateEipAddressRequest(object):
3535
swagger_types = {
3636
'bandwidth': 'int',
3737
'billing_type': 'int',
38+
'client_token': 'str',
3839
'description': 'str',
3940
'isp': 'str',
4041
'name': 'str',
4142
'period': 'int',
4243
'period_unit': 'int',
44+
'project_name': 'str',
4345
'security_protection_types': 'list[str]',
4446
'tags': 'list[TagForAllocateEipAddressInput]'
4547
}
4648

4749
attribute_map = {
4850
'bandwidth': 'Bandwidth',
4951
'billing_type': 'BillingType',
52+
'client_token': 'ClientToken',
5053
'description': 'Description',
5154
'isp': 'ISP',
5255
'name': 'Name',
5356
'period': 'Period',
5457
'period_unit': 'PeriodUnit',
58+
'project_name': 'ProjectName',
5559
'security_protection_types': 'SecurityProtectionTypes',
5660
'tags': 'Tags'
5761
}
5862

59-
def __init__(self, bandwidth=None, billing_type=None, description=None, isp=None, name=None, period=None, period_unit=None, security_protection_types=None, tags=None, _configuration=None): # noqa: E501
63+
def __init__(self, bandwidth=None, billing_type=None, client_token=None, description=None, isp=None, name=None, period=None, period_unit=None, project_name=None, security_protection_types=None, tags=None, _configuration=None): # noqa: E501
6064
"""AllocateEipAddressRequest - a model defined in Swagger""" # noqa: E501
6165
if _configuration is None:
6266
_configuration = Configuration()
6367
self._configuration = _configuration
6468

6569
self._bandwidth = None
6670
self._billing_type = None
71+
self._client_token = None
6772
self._description = None
6873
self._isp = None
6974
self._name = None
7075
self._period = None
7176
self._period_unit = None
77+
self._project_name = None
7278
self._security_protection_types = None
7379
self._tags = None
7480
self.discriminator = None
@@ -77,6 +83,8 @@ def __init__(self, bandwidth=None, billing_type=None, description=None, isp=None
7783
self.bandwidth = bandwidth
7884
if billing_type is not None:
7985
self.billing_type = billing_type
86+
if client_token is not None:
87+
self.client_token = client_token
8088
if description is not None:
8189
self.description = description
8290
if isp is not None:
@@ -87,6 +95,8 @@ def __init__(self, bandwidth=None, billing_type=None, description=None, isp=None
8795
self.period = period
8896
if period_unit is not None:
8997
self.period_unit = period_unit
98+
if project_name is not None:
99+
self.project_name = project_name
90100
if security_protection_types is not None:
91101
self.security_protection_types = security_protection_types
92102
if tags is not None:
@@ -146,6 +156,27 @@ def billing_type(self, billing_type):
146156

147157
self._billing_type = billing_type
148158

159+
@property
160+
def client_token(self):
161+
"""Gets the client_token of this AllocateEipAddressRequest. # noqa: E501
162+
163+
164+
:return: The client_token of this AllocateEipAddressRequest. # noqa: E501
165+
:rtype: str
166+
"""
167+
return self._client_token
168+
169+
@client_token.setter
170+
def client_token(self, client_token):
171+
"""Sets the client_token of this AllocateEipAddressRequest.
172+
173+
174+
:param client_token: The client_token of this AllocateEipAddressRequest. # noqa: E501
175+
:type: str
176+
"""
177+
178+
self._client_token = client_token
179+
149180
@property
150181
def description(self):
151182
"""Gets the description of this AllocateEipAddressRequest. # noqa: E501
@@ -276,6 +307,27 @@ def period_unit(self, period_unit):
276307

277308
self._period_unit = period_unit
278309

310+
@property
311+
def project_name(self):
312+
"""Gets the project_name of this AllocateEipAddressRequest. # noqa: E501
313+
314+
315+
:return: The project_name of this AllocateEipAddressRequest. # noqa: E501
316+
:rtype: str
317+
"""
318+
return self._project_name
319+
320+
@project_name.setter
321+
def project_name(self, project_name):
322+
"""Sets the project_name of this AllocateEipAddressRequest.
323+
324+
325+
:param project_name: The project_name of this AllocateEipAddressRequest. # noqa: E501
326+
:type: str
327+
"""
328+
329+
self._project_name = project_name
330+
279331
@property
280332
def security_protection_types(self):
281333
"""Gets the security_protection_types of this AllocateEipAddressRequest. # noqa: E501

volcenginesdkvpc/models/describe_eip_address_attributes_response.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ class DescribeEipAddressAttributesResponse(object):
4949
'lock_reason': 'str',
5050
'name': 'str',
5151
'overdue_time': 'str',
52+
'project_name': 'str',
5253
'request_id': 'str',
5354
'security_protection_types': 'list[str]',
5455
'status': 'str',
56+
'tags': 'list[TagForDescribeEipAddressAttributesOutput]',
5557
'updated_at': 'str'
5658
}
5759

@@ -72,13 +74,15 @@ class DescribeEipAddressAttributesResponse(object):
7274
'lock_reason': 'LockReason',
7375
'name': 'Name',
7476
'overdue_time': 'OverdueTime',
77+
'project_name': 'ProjectName',
7578
'request_id': 'RequestId',
7679
'security_protection_types': 'SecurityProtectionTypes',
7780
'status': 'Status',
81+
'tags': 'Tags',
7882
'updated_at': 'UpdatedAt'
7983
}
8084

81-
def __init__(self, allocation_id=None, allocation_time=None, bandwidth=None, bandwidth_package_id=None, billing_type=None, business_status=None, deleted_time=None, description=None, eip_address=None, expired_time=None, isp=None, instance_id=None, instance_type=None, lock_reason=None, name=None, overdue_time=None, request_id=None, security_protection_types=None, status=None, updated_at=None, _configuration=None): # noqa: E501
85+
def __init__(self, allocation_id=None, allocation_time=None, bandwidth=None, bandwidth_package_id=None, billing_type=None, business_status=None, deleted_time=None, description=None, eip_address=None, expired_time=None, isp=None, instance_id=None, instance_type=None, lock_reason=None, name=None, overdue_time=None, project_name=None, request_id=None, security_protection_types=None, status=None, tags=None, updated_at=None, _configuration=None): # noqa: E501
8286
"""DescribeEipAddressAttributesResponse - a model defined in Swagger""" # noqa: E501
8387
if _configuration is None:
8488
_configuration = Configuration()
@@ -100,9 +104,11 @@ def __init__(self, allocation_id=None, allocation_time=None, bandwidth=None, ban
100104
self._lock_reason = None
101105
self._name = None
102106
self._overdue_time = None
107+
self._project_name = None
103108
self._request_id = None
104109
self._security_protection_types = None
105110
self._status = None
111+
self._tags = None
106112
self._updated_at = None
107113
self.discriminator = None
108114

@@ -138,12 +144,16 @@ def __init__(self, allocation_id=None, allocation_time=None, bandwidth=None, ban
138144
self.name = name
139145
if overdue_time is not None:
140146
self.overdue_time = overdue_time
147+
if project_name is not None:
148+
self.project_name = project_name
141149
if request_id is not None:
142150
self.request_id = request_id
143151
if security_protection_types is not None:
144152
self.security_protection_types = security_protection_types
145153
if status is not None:
146154
self.status = status
155+
if tags is not None:
156+
self.tags = tags
147157
if updated_at is not None:
148158
self.updated_at = updated_at
149159

@@ -483,6 +493,27 @@ def overdue_time(self, overdue_time):
483493

484494
self._overdue_time = overdue_time
485495

496+
@property
497+
def project_name(self):
498+
"""Gets the project_name of this DescribeEipAddressAttributesResponse. # noqa: E501
499+
500+
501+
:return: The project_name of this DescribeEipAddressAttributesResponse. # noqa: E501
502+
:rtype: str
503+
"""
504+
return self._project_name
505+
506+
@project_name.setter
507+
def project_name(self, project_name):
508+
"""Sets the project_name of this DescribeEipAddressAttributesResponse.
509+
510+
511+
:param project_name: The project_name of this DescribeEipAddressAttributesResponse. # noqa: E501
512+
:type: str
513+
"""
514+
515+
self._project_name = project_name
516+
486517
@property
487518
def request_id(self):
488519
"""Gets the request_id of this DescribeEipAddressAttributesResponse. # noqa: E501
@@ -546,6 +577,27 @@ def status(self, status):
546577

547578
self._status = status
548579

580+
@property
581+
def tags(self):
582+
"""Gets the tags of this DescribeEipAddressAttributesResponse. # noqa: E501
583+
584+
585+
:return: The tags of this DescribeEipAddressAttributesResponse. # noqa: E501
586+
:rtype: list[TagForDescribeEipAddressAttributesOutput]
587+
"""
588+
return self._tags
589+
590+
@tags.setter
591+
def tags(self, tags):
592+
"""Sets the tags of this DescribeEipAddressAttributesResponse.
593+
594+
595+
:param tags: The tags of this DescribeEipAddressAttributesResponse. # noqa: E501
596+
:type: list[TagForDescribeEipAddressAttributesOutput]
597+
"""
598+
599+
self._tags = tags
600+
549601
@property
550602
def updated_at(self):
551603
"""Gets the updated_at of this DescribeEipAddressAttributesResponse. # noqa: E501

volcenginesdkvpc/models/describe_eip_addresses_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class DescribeEipAddressesRequest(object):
4242
'name': 'str',
4343
'page_number': 'int',
4444
'page_size': 'int',
45+
'project_name': 'str',
4546
'security_protection_enabled': 'bool',
4647
'status': 'str',
4748
'tag_filters': 'list[TagFilterForDescribeEipAddressesInput]'
@@ -57,12 +58,13 @@ class DescribeEipAddressesRequest(object):
5758
'name': 'Name',
5859
'page_number': 'PageNumber',
5960
'page_size': 'PageSize',
61+
'project_name': 'ProjectName',
6062
'security_protection_enabled': 'SecurityProtectionEnabled',
6163
'status': 'Status',
6264
'tag_filters': 'TagFilters'
6365
}
6466

65-
def __init__(self, allocation_ids=None, associated_instance_id=None, associated_instance_type=None, billing_type=None, eip_addresses=None, isp=None, name=None, page_number=None, page_size=None, security_protection_enabled=None, status=None, tag_filters=None, _configuration=None): # noqa: E501
67+
def __init__(self, allocation_ids=None, associated_instance_id=None, associated_instance_type=None, billing_type=None, eip_addresses=None, isp=None, name=None, page_number=None, page_size=None, project_name=None, security_protection_enabled=None, status=None, tag_filters=None, _configuration=None): # noqa: E501
6668
"""DescribeEipAddressesRequest - a model defined in Swagger""" # noqa: E501
6769
if _configuration is None:
6870
_configuration = Configuration()
@@ -77,6 +79,7 @@ def __init__(self, allocation_ids=None, associated_instance_id=None, associated_
7779
self._name = None
7880
self._page_number = None
7981
self._page_size = None
82+
self._project_name = None
8083
self._security_protection_enabled = None
8184
self._status = None
8285
self._tag_filters = None
@@ -100,6 +103,8 @@ def __init__(self, allocation_ids=None, associated_instance_id=None, associated_
100103
self.page_number = page_number
101104
if page_size is not None:
102105
self.page_size = page_size
106+
if project_name is not None:
107+
self.project_name = project_name
103108
if security_protection_enabled is not None:
104109
self.security_protection_enabled = security_protection_enabled
105110
if status is not None:
@@ -319,6 +324,27 @@ def page_size(self, page_size):
319324

320325
self._page_size = page_size
321326

327+
@property
328+
def project_name(self):
329+
"""Gets the project_name of this DescribeEipAddressesRequest. # noqa: E501
330+
331+
332+
:return: The project_name of this DescribeEipAddressesRequest. # noqa: E501
333+
:rtype: str
334+
"""
335+
return self._project_name
336+
337+
@project_name.setter
338+
def project_name(self, project_name):
339+
"""Sets the project_name of this DescribeEipAddressesRequest.
340+
341+
342+
:param project_name: The project_name of this DescribeEipAddressesRequest. # noqa: E501
343+
:type: str
344+
"""
345+
346+
self._project_name = project_name
347+
322348
@property
323349
def security_protection_enabled(self):
324350
"""Gets the security_protection_enabled of this DescribeEipAddressesRequest. # noqa: E501

0 commit comments

Comments
 (0)