Skip to content

Commit e93f2af

Browse files
committed
feat: update storage ebs
1 parent d72c915 commit e93f2af

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

volcenginesdkstorageebs/models/create_volume_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class CreateVolumeRequest(object):
3535
swagger_types = {
3636
'client_token': 'str',
3737
'description': 'str',
38+
'instance_id': 'str',
3839
'kind': 'str',
3940
'project_name': 'str',
4041
'size': 'str',
@@ -48,6 +49,7 @@ class CreateVolumeRequest(object):
4849
attribute_map = {
4950
'client_token': 'ClientToken',
5051
'description': 'Description',
52+
'instance_id': 'InstanceId',
5153
'kind': 'Kind',
5254
'project_name': 'ProjectName',
5355
'size': 'Size',
@@ -58,14 +60,15 @@ class CreateVolumeRequest(object):
5860
'zone_id': 'ZoneId'
5961
}
6062

61-
def __init__(self, client_token=None, description=None, kind=None, project_name=None, size=None, tags=None, volume_charge_type=None, volume_name=None, volume_type=None, zone_id=None, _configuration=None): # noqa: E501
63+
def __init__(self, client_token=None, description=None, instance_id=None, kind=None, project_name=None, size=None, tags=None, volume_charge_type=None, volume_name=None, volume_type=None, zone_id=None, _configuration=None): # noqa: E501
6264
"""CreateVolumeRequest - a model defined in Swagger""" # noqa: E501
6365
if _configuration is None:
6466
_configuration = Configuration()
6567
self._configuration = _configuration
6668

6769
self._client_token = None
6870
self._description = None
71+
self._instance_id = None
6972
self._kind = None
7073
self._project_name = None
7174
self._size = None
@@ -80,6 +83,8 @@ def __init__(self, client_token=None, description=None, kind=None, project_name=
8083
self.client_token = client_token
8184
if description is not None:
8285
self.description = description
86+
if instance_id is not None:
87+
self.instance_id = instance_id
8388
if kind is not None:
8489
self.kind = kind
8590
if project_name is not None:
@@ -139,6 +144,27 @@ def description(self, description):
139144

140145
self._description = description
141146

147+
@property
148+
def instance_id(self):
149+
"""Gets the instance_id of this CreateVolumeRequest. # noqa: E501
150+
151+
152+
:return: The instance_id of this CreateVolumeRequest. # noqa: E501
153+
:rtype: str
154+
"""
155+
return self._instance_id
156+
157+
@instance_id.setter
158+
def instance_id(self, instance_id):
159+
"""Sets the instance_id of this CreateVolumeRequest.
160+
161+
162+
:param instance_id: The instance_id of this CreateVolumeRequest. # noqa: E501
163+
:type: str
164+
"""
165+
166+
self._instance_id = instance_id
167+
142168
@property
143169
def kind(self):
144170
"""Gets the kind of this CreateVolumeRequest. # noqa: E501

0 commit comments

Comments
 (0)