@@ -34,6 +34,8 @@ class CreateVolumeRequest(object):
3434 """
3535 swagger_types = {
3636 'client_token' : 'str' ,
37+ 'delete_protection' : 'bool' ,
38+ 'delete_protection_retention_days' : 'int' ,
3739 'description' : 'str' ,
3840 'extra_performance_iops' : 'int' ,
3941 'extra_performance_throughput_mb' : 'int' ,
@@ -54,6 +56,8 @@ class CreateVolumeRequest(object):
5456
5557 attribute_map = {
5658 'client_token' : 'ClientToken' ,
59+ 'delete_protection' : 'DeleteProtection' ,
60+ 'delete_protection_retention_days' : 'DeleteProtectionRetentionDays' ,
5761 'description' : 'Description' ,
5862 'extra_performance_iops' : 'ExtraPerformanceIOPS' ,
5963 'extra_performance_throughput_mb' : 'ExtraPerformanceThroughputMB' ,
@@ -72,13 +76,15 @@ class CreateVolumeRequest(object):
7276 'zone_id' : 'ZoneId'
7377 }
7478
75- def __init__ (self , client_token = None , description = None , extra_performance_iops = None , extra_performance_throughput_mb = None , extra_performance_type_id = None , instance_id = None , kind = None , placement_group_id = None , project_name = None , size = None , snapshot_id = None , subgroup_number = None , tags = None , volume_charge_type = None , volume_name = None , volume_type = None , zone_id = None , _configuration = None ): # noqa: E501
79+ def __init__ (self , client_token = None , delete_protection = None , delete_protection_retention_days = None , description = None , extra_performance_iops = None , extra_performance_throughput_mb = None , extra_performance_type_id = None , instance_id = None , kind = None , placement_group_id = None , project_name = None , size = None , snapshot_id = None , subgroup_number = None , tags = None , volume_charge_type = None , volume_name = None , volume_type = None , zone_id = None , _configuration = None ): # noqa: E501
7680 """CreateVolumeRequest - a model defined in Swagger""" # noqa: E501
7781 if _configuration is None :
7882 _configuration = Configuration ()
7983 self ._configuration = _configuration
8084
8185 self ._client_token = None
86+ self ._delete_protection = None
87+ self ._delete_protection_retention_days = None
8288 self ._description = None
8389 self ._extra_performance_iops = None
8490 self ._extra_performance_throughput_mb = None
@@ -99,6 +105,10 @@ def __init__(self, client_token=None, description=None, extra_performance_iops=N
99105
100106 if client_token is not None :
101107 self .client_token = client_token
108+ if delete_protection is not None :
109+ self .delete_protection = delete_protection
110+ if delete_protection_retention_days is not None :
111+ self .delete_protection_retention_days = delete_protection_retention_days
102112 if description is not None :
103113 self .description = description
104114 if extra_performance_iops is not None :
@@ -150,6 +160,48 @@ def client_token(self, client_token):
150160
151161 self ._client_token = client_token
152162
163+ @property
164+ def delete_protection (self ):
165+ """Gets the delete_protection of this CreateVolumeRequest. # noqa: E501
166+
167+
168+ :return: The delete_protection of this CreateVolumeRequest. # noqa: E501
169+ :rtype: bool
170+ """
171+ return self ._delete_protection
172+
173+ @delete_protection .setter
174+ def delete_protection (self , delete_protection ):
175+ """Sets the delete_protection of this CreateVolumeRequest.
176+
177+
178+ :param delete_protection: The delete_protection of this CreateVolumeRequest. # noqa: E501
179+ :type: bool
180+ """
181+
182+ self ._delete_protection = delete_protection
183+
184+ @property
185+ def delete_protection_retention_days (self ):
186+ """Gets the delete_protection_retention_days of this CreateVolumeRequest. # noqa: E501
187+
188+
189+ :return: The delete_protection_retention_days of this CreateVolumeRequest. # noqa: E501
190+ :rtype: int
191+ """
192+ return self ._delete_protection_retention_days
193+
194+ @delete_protection_retention_days .setter
195+ def delete_protection_retention_days (self , delete_protection_retention_days ):
196+ """Sets the delete_protection_retention_days of this CreateVolumeRequest.
197+
198+
199+ :param delete_protection_retention_days: The delete_protection_retention_days of this CreateVolumeRequest. # noqa: E501
200+ :type: int
201+ """
202+
203+ self ._delete_protection_retention_days = delete_protection_retention_days
204+
153205 @property
154206 def description (self ):
155207 """Gets the description of this CreateVolumeRequest. # noqa: E501
0 commit comments