Skip to content

Commit e4bf20a

Browse files
author
BitsAdmin
committed
Merge branch 'vedbm-Python-2022-01-01-online-879-2024_12_25_17_22_26' into 'integration_2024-12-26_654549934850'
feat: [development task] vedbm-879-Python (938966) See merge request iaasng/volcengine-python-sdk!463
2 parents a959351 + 6dc2ba8 commit e4bf20a

13 files changed

+351
-28
lines changed

volcenginesdkvedbm/models/allow_list_for_describe_allow_lists_output.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class AllowListForDescribeAllowListsOutput(object):
3838
'allow_list_id': 'str',
3939
'allow_list_name': 'str',
4040
'allow_list_type': 'str',
41-
'associated_instance_num': 'int'
41+
'associated_instance_num': 'int',
42+
'project_name': 'str'
4243
}
4344

4445
attribute_map = {
@@ -47,10 +48,11 @@ class AllowListForDescribeAllowListsOutput(object):
4748
'allow_list_id': 'AllowListId',
4849
'allow_list_name': 'AllowListName',
4950
'allow_list_type': 'AllowListType',
50-
'associated_instance_num': 'AssociatedInstanceNum'
51+
'associated_instance_num': 'AssociatedInstanceNum',
52+
'project_name': 'ProjectName'
5153
}
5254

53-
def __init__(self, allow_list_desc=None, allow_list_ip_num=None, allow_list_id=None, allow_list_name=None, allow_list_type=None, associated_instance_num=None, _configuration=None): # noqa: E501
55+
def __init__(self, allow_list_desc=None, allow_list_ip_num=None, allow_list_id=None, allow_list_name=None, allow_list_type=None, associated_instance_num=None, project_name=None, _configuration=None): # noqa: E501
5456
"""AllowListForDescribeAllowListsOutput - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
@@ -62,6 +64,7 @@ def __init__(self, allow_list_desc=None, allow_list_ip_num=None, allow_list_id=N
6264
self._allow_list_name = None
6365
self._allow_list_type = None
6466
self._associated_instance_num = None
67+
self._project_name = None
6568
self.discriminator = None
6669

6770
if allow_list_desc is not None:
@@ -76,6 +79,8 @@ def __init__(self, allow_list_desc=None, allow_list_ip_num=None, allow_list_id=N
7679
self.allow_list_type = allow_list_type
7780
if associated_instance_num is not None:
7881
self.associated_instance_num = associated_instance_num
82+
if project_name is not None:
83+
self.project_name = project_name
7984

8085
@property
8186
def allow_list_desc(self):
@@ -203,6 +208,27 @@ def associated_instance_num(self, associated_instance_num):
203208

204209
self._associated_instance_num = associated_instance_num
205210

211+
@property
212+
def project_name(self):
213+
"""Gets the project_name of this AllowListForDescribeAllowListsOutput. # noqa: E501
214+
215+
216+
:return: The project_name of this AllowListForDescribeAllowListsOutput. # noqa: E501
217+
:rtype: str
218+
"""
219+
return self._project_name
220+
221+
@project_name.setter
222+
def project_name(self, project_name):
223+
"""Sets the project_name of this AllowListForDescribeAllowListsOutput.
224+
225+
226+
:param project_name: The project_name of this AllowListForDescribeAllowListsOutput. # noqa: E501
227+
:type: str
228+
"""
229+
230+
self._project_name = project_name
231+
206232
def to_dict(self):
207233
"""Returns the model properties as a dict"""
208234
result = {}

volcenginesdkvedbm/models/associated_instance_for_describe_allow_list_detail_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,35 @@ class AssociatedInstanceForDescribeAllowListDetailOutput(object):
3535
swagger_types = {
3636
'instance_id': 'str',
3737
'instance_name': 'str',
38+
'project_name': 'str',
3839
'vpc': 'str'
3940
}
4041

4142
attribute_map = {
4243
'instance_id': 'InstanceId',
4344
'instance_name': 'InstanceName',
45+
'project_name': 'ProjectName',
4446
'vpc': 'VPC'
4547
}
4648

47-
def __init__(self, instance_id=None, instance_name=None, vpc=None, _configuration=None): # noqa: E501
49+
def __init__(self, instance_id=None, instance_name=None, project_name=None, vpc=None, _configuration=None): # noqa: E501
4850
"""AssociatedInstanceForDescribeAllowListDetailOutput - a model defined in Swagger""" # noqa: E501
4951
if _configuration is None:
5052
_configuration = Configuration()
5153
self._configuration = _configuration
5254

5355
self._instance_id = None
5456
self._instance_name = None
57+
self._project_name = None
5558
self._vpc = None
5659
self.discriminator = None
5760

5861
if instance_id is not None:
5962
self.instance_id = instance_id
6063
if instance_name is not None:
6164
self.instance_name = instance_name
65+
if project_name is not None:
66+
self.project_name = project_name
6267
if vpc is not None:
6368
self.vpc = vpc
6469

@@ -104,6 +109,27 @@ def instance_name(self, instance_name):
104109

105110
self._instance_name = instance_name
106111

112+
@property
113+
def project_name(self):
114+
"""Gets the project_name of this AssociatedInstanceForDescribeAllowListDetailOutput. # noqa: E501
115+
116+
117+
:return: The project_name of this AssociatedInstanceForDescribeAllowListDetailOutput. # noqa: E501
118+
:rtype: str
119+
"""
120+
return self._project_name
121+
122+
@project_name.setter
123+
def project_name(self, project_name):
124+
"""Sets the project_name of this AssociatedInstanceForDescribeAllowListDetailOutput.
125+
126+
127+
:param project_name: The project_name of this AssociatedInstanceForDescribeAllowListDetailOutput. # noqa: E501
128+
:type: str
129+
"""
130+
131+
self._project_name = project_name
132+
107133
@property
108134
def vpc(self):
109135
"""Gets the vpc of this AssociatedInstanceForDescribeAllowListDetailOutput. # noqa: E501

volcenginesdkvedbm/models/create_allow_list_request.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,19 @@ class CreateAllowListRequest(object):
3636
'allow_list': 'str',
3737
'allow_list_desc': 'str',
3838
'allow_list_name': 'str',
39-
'allow_list_type': 'str'
39+
'allow_list_type': 'str',
40+
'project_name': 'str'
4041
}
4142

4243
attribute_map = {
4344
'allow_list': 'AllowList',
4445
'allow_list_desc': 'AllowListDesc',
4546
'allow_list_name': 'AllowListName',
46-
'allow_list_type': 'AllowListType'
47+
'allow_list_type': 'AllowListType',
48+
'project_name': 'ProjectName'
4749
}
4850

49-
def __init__(self, allow_list=None, allow_list_desc=None, allow_list_name=None, allow_list_type=None, _configuration=None): # noqa: E501
51+
def __init__(self, allow_list=None, allow_list_desc=None, allow_list_name=None, allow_list_type=None, project_name=None, _configuration=None): # noqa: E501
5052
"""CreateAllowListRequest - a model defined in Swagger""" # noqa: E501
5153
if _configuration is None:
5254
_configuration = Configuration()
@@ -56,6 +58,7 @@ def __init__(self, allow_list=None, allow_list_desc=None, allow_list_name=None,
5658
self._allow_list_desc = None
5759
self._allow_list_name = None
5860
self._allow_list_type = None
61+
self._project_name = None
5962
self.discriminator = None
6063

6164
self.allow_list = allow_list
@@ -64,6 +67,8 @@ def __init__(self, allow_list=None, allow_list_desc=None, allow_list_name=None,
6467
self.allow_list_name = allow_list_name
6568
if allow_list_type is not None:
6669
self.allow_list_type = allow_list_type
70+
if project_name is not None:
71+
self.project_name = project_name
6772

6873
@property
6974
def allow_list(self):
@@ -153,6 +158,27 @@ def allow_list_type(self, allow_list_type):
153158

154159
self._allow_list_type = allow_list_type
155160

161+
@property
162+
def project_name(self):
163+
"""Gets the project_name of this CreateAllowListRequest. # noqa: E501
164+
165+
166+
:return: The project_name of this CreateAllowListRequest. # noqa: E501
167+
:rtype: str
168+
"""
169+
return self._project_name
170+
171+
@project_name.setter
172+
def project_name(self, project_name):
173+
"""Sets the project_name of this CreateAllowListRequest.
174+
175+
176+
:param project_name: The project_name of this CreateAllowListRequest. # noqa: E501
177+
:type: str
178+
"""
179+
180+
self._project_name = project_name
181+
156182
def to_dict(self):
157183
"""Returns the model properties as a dict"""
158184
result = {}

volcenginesdkvedbm/models/create_db_instance_request.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class CreateDBInstanceRequest(object):
3838
'db_engine_version': 'str',
3939
'db_minor_version': 'str',
4040
'db_time_zone': 'str',
41+
'deletion_protection': 'str',
4142
'instance_name': 'str',
4243
'lower_case_table_names': 'str',
4344
'node_number': 'int',
@@ -63,6 +64,7 @@ class CreateDBInstanceRequest(object):
6364
'db_engine_version': 'DBEngineVersion',
6465
'db_minor_version': 'DBMinorVersion',
6566
'db_time_zone': 'DBTimeZone',
67+
'deletion_protection': 'DeletionProtection',
6668
'instance_name': 'InstanceName',
6769
'lower_case_table_names': 'LowerCaseTableNames',
6870
'node_number': 'NodeNumber',
@@ -82,7 +84,7 @@ class CreateDBInstanceRequest(object):
8284
'zone_ids': 'ZoneIds'
8385
}
8486

85-
def __init__(self, auto_renew=None, charge_type=None, db_engine_version=None, db_minor_version=None, db_time_zone=None, instance_name=None, lower_case_table_names=None, node_number=None, node_spec=None, number=None, period=None, period_unit=None, port=None, pre_paid_storage_in_gb=None, project_name=None, storage_charge_type=None, subnet_id=None, super_account_name=None, super_account_password=None, tags=None, vpc_id=None, zone_ids=None, _configuration=None): # noqa: E501
87+
def __init__(self, auto_renew=None, charge_type=None, db_engine_version=None, db_minor_version=None, db_time_zone=None, deletion_protection=None, instance_name=None, lower_case_table_names=None, node_number=None, node_spec=None, number=None, period=None, period_unit=None, port=None, pre_paid_storage_in_gb=None, project_name=None, storage_charge_type=None, subnet_id=None, super_account_name=None, super_account_password=None, tags=None, vpc_id=None, zone_ids=None, _configuration=None): # noqa: E501
8688
"""CreateDBInstanceRequest - a model defined in Swagger""" # noqa: E501
8789
if _configuration is None:
8890
_configuration = Configuration()
@@ -93,6 +95,7 @@ def __init__(self, auto_renew=None, charge_type=None, db_engine_version=None, db
9395
self._db_engine_version = None
9496
self._db_minor_version = None
9597
self._db_time_zone = None
98+
self._deletion_protection = None
9699
self._instance_name = None
97100
self._lower_case_table_names = None
98101
self._node_number = None
@@ -120,6 +123,8 @@ def __init__(self, auto_renew=None, charge_type=None, db_engine_version=None, db
120123
self.db_minor_version = db_minor_version
121124
if db_time_zone is not None:
122125
self.db_time_zone = db_time_zone
126+
if deletion_protection is not None:
127+
self.deletion_protection = deletion_protection
123128
if instance_name is not None:
124129
self.instance_name = instance_name
125130
if lower_case_table_names is not None:
@@ -280,6 +285,34 @@ def db_time_zone(self, db_time_zone):
280285

281286
self._db_time_zone = db_time_zone
282287

288+
@property
289+
def deletion_protection(self):
290+
"""Gets the deletion_protection of this CreateDBInstanceRequest. # noqa: E501
291+
292+
293+
:return: The deletion_protection of this CreateDBInstanceRequest. # noqa: E501
294+
:rtype: str
295+
"""
296+
return self._deletion_protection
297+
298+
@deletion_protection.setter
299+
def deletion_protection(self, deletion_protection):
300+
"""Sets the deletion_protection of this CreateDBInstanceRequest.
301+
302+
303+
:param deletion_protection: The deletion_protection of this CreateDBInstanceRequest. # noqa: E501
304+
:type: str
305+
"""
306+
allowed_values = ["disabled", "enabled"] # noqa: E501
307+
if (self._configuration.client_side_validation and
308+
deletion_protection not in allowed_values):
309+
raise ValueError(
310+
"Invalid value for `deletion_protection` ({0}), must be one of {1}" # noqa: E501
311+
.format(deletion_protection, allowed_values)
312+
)
313+
314+
self._deletion_protection = deletion_protection
315+
283316
@property
284317
def instance_name(self):
285318
"""Gets the instance_name of this CreateDBInstanceRequest. # noqa: E501

volcenginesdkvedbm/models/delete_db_instance_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def data_keep_policy(self, data_keep_policy):
7474
:param data_keep_policy: The data_keep_policy of this DeleteDBInstanceRequest. # noqa: E501
7575
:type: str
7676
"""
77-
allowed_values = ["None", "All", "Last"] # noqa: E501
77+
allowed_values = ["Last"] # noqa: E501
7878
if (self._configuration.client_side_validation and
7979
data_keep_policy not in allowed_values):
8080
raise ValueError(

volcenginesdkvedbm/models/describe_allow_list_detail_response.py

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ class DescribeAllowListDetailResponse(object):
3838
'allow_list_id': 'str',
3939
'allow_list_name': 'str',
4040
'allow_list_type': 'str',
41-
'associated_instances': 'list[AssociatedInstanceForDescribeAllowListDetailOutput]'
41+
'associated_instance_num': 'int',
42+
'associated_instances': 'list[AssociatedInstanceForDescribeAllowListDetailOutput]',
43+
'project_name': 'str'
4244
}
4345

4446
attribute_map = {
@@ -47,10 +49,12 @@ class DescribeAllowListDetailResponse(object):
4749
'allow_list_id': 'AllowListId',
4850
'allow_list_name': 'AllowListName',
4951
'allow_list_type': 'AllowListType',
50-
'associated_instances': 'AssociatedInstances'
52+
'associated_instance_num': 'AssociatedInstanceNum',
53+
'associated_instances': 'AssociatedInstances',
54+
'project_name': 'ProjectName'
5155
}
5256

53-
def __init__(self, allow_list=None, allow_list_desc=None, allow_list_id=None, allow_list_name=None, allow_list_type=None, associated_instances=None, _configuration=None): # noqa: E501
57+
def __init__(self, allow_list=None, allow_list_desc=None, allow_list_id=None, allow_list_name=None, allow_list_type=None, associated_instance_num=None, associated_instances=None, project_name=None, _configuration=None): # noqa: E501
5458
"""DescribeAllowListDetailResponse - a model defined in Swagger""" # noqa: E501
5559
if _configuration is None:
5660
_configuration = Configuration()
@@ -61,7 +65,9 @@ def __init__(self, allow_list=None, allow_list_desc=None, allow_list_id=None, al
6165
self._allow_list_id = None
6266
self._allow_list_name = None
6367
self._allow_list_type = None
68+
self._associated_instance_num = None
6469
self._associated_instances = None
70+
self._project_name = None
6571
self.discriminator = None
6672

6773
if allow_list is not None:
@@ -74,8 +80,12 @@ def __init__(self, allow_list=None, allow_list_desc=None, allow_list_id=None, al
7480
self.allow_list_name = allow_list_name
7581
if allow_list_type is not None:
7682
self.allow_list_type = allow_list_type
83+
if associated_instance_num is not None:
84+
self.associated_instance_num = associated_instance_num
7785
if associated_instances is not None:
7886
self.associated_instances = associated_instances
87+
if project_name is not None:
88+
self.project_name = project_name
7989

8090
@property
8191
def allow_list(self):
@@ -182,6 +192,27 @@ def allow_list_type(self, allow_list_type):
182192

183193
self._allow_list_type = allow_list_type
184194

195+
@property
196+
def associated_instance_num(self):
197+
"""Gets the associated_instance_num of this DescribeAllowListDetailResponse. # noqa: E501
198+
199+
200+
:return: The associated_instance_num of this DescribeAllowListDetailResponse. # noqa: E501
201+
:rtype: int
202+
"""
203+
return self._associated_instance_num
204+
205+
@associated_instance_num.setter
206+
def associated_instance_num(self, associated_instance_num):
207+
"""Sets the associated_instance_num of this DescribeAllowListDetailResponse.
208+
209+
210+
:param associated_instance_num: The associated_instance_num of this DescribeAllowListDetailResponse. # noqa: E501
211+
:type: int
212+
"""
213+
214+
self._associated_instance_num = associated_instance_num
215+
185216
@property
186217
def associated_instances(self):
187218
"""Gets the associated_instances of this DescribeAllowListDetailResponse. # noqa: E501
@@ -203,6 +234,27 @@ def associated_instances(self, associated_instances):
203234

204235
self._associated_instances = associated_instances
205236

237+
@property
238+
def project_name(self):
239+
"""Gets the project_name of this DescribeAllowListDetailResponse. # noqa: E501
240+
241+
242+
:return: The project_name of this DescribeAllowListDetailResponse. # noqa: E501
243+
:rtype: str
244+
"""
245+
return self._project_name
246+
247+
@project_name.setter
248+
def project_name(self, project_name):
249+
"""Sets the project_name of this DescribeAllowListDetailResponse.
250+
251+
252+
:param project_name: The project_name of this DescribeAllowListDetailResponse. # noqa: E501
253+
:type: str
254+
"""
255+
256+
self._project_name = project_name
257+
206258
def to_dict(self):
207259
"""Returns the model properties as a dict"""
208260
result = {}

0 commit comments

Comments
 (0)