Skip to content

Commit 71b46ea

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for vedbm-Python-2022-01-01-online-879-2024_12_25_17_22_26
1 parent d0878f3 commit 71b46ea

17 files changed

+356
-33
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.117",
3-
"meta_commit": "2210833c30450b487401a215db24501634363c42"
2+
"lasted": "1.0.118",
3+
"meta_commit": "83cefad161a59c479d67d238842ceaf588a732b3"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "1.0.117"
6+
VERSION = "1.0.118"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/1.0.117'
70+
self.user_agent = 'volcstack-python-sdk/1.0.118'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.117".\
224+
"SDK Package Version: 1.0.118".\
225225
format(env=sys.platform, pyversion=sys.version)

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(

0 commit comments

Comments
 (0)