Skip to content

Commit 748733e

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for redis-Python-2020-12-07-online-355-2024_03_15_13_03_37
1 parent 3855ccd commit 748733e

16 files changed

+449
-28
lines changed

meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.69",
3-
"meta_commit": "7d2b98a5db22c2b209b488653efd0ca0ae619377"
4-
}
2+
"lasted": "1.0.70",
3+
"meta_commit": "4b7787e2b1f8c7f96853976ca27cefb6bce90486"
4+
}

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.69"
6+
VERSION = "1.0.70"
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.69'
70+
self.user_agent = 'volcstack-python-sdk/1.0.70'
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.69".\
224+
"SDK Package Version: 1.0.70".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkredis/models/backup_for_describe_backups_output.py

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,58 @@ class BackupForDescribeBackupsOutput(object):
3434
"""
3535
swagger_types = {
3636
'backup_point_id': 'str',
37+
'backup_point_name': 'str',
3738
'backup_strategy': 'str',
3839
'backup_type': 'str',
3940
'end_time': 'str',
4041
'instance_detail': 'InstanceDetailForDescribeBackupsOutput',
4142
'instance_id': 'str',
43+
'project_name': 'str',
4244
'size': 'int',
4345
'start_time': 'str',
44-
'status': 'str'
46+
'status': 'str',
47+
'ttl': 'int'
4548
}
4649

4750
attribute_map = {
4851
'backup_point_id': 'BackupPointId',
52+
'backup_point_name': 'BackupPointName',
4953
'backup_strategy': 'BackupStrategy',
5054
'backup_type': 'BackupType',
5155
'end_time': 'EndTime',
5256
'instance_detail': 'InstanceDetail',
5357
'instance_id': 'InstanceId',
58+
'project_name': 'ProjectName',
5459
'size': 'Size',
5560
'start_time': 'StartTime',
56-
'status': 'Status'
61+
'status': 'Status',
62+
'ttl': 'TTL'
5763
}
5864

59-
def __init__(self, backup_point_id=None, backup_strategy=None, backup_type=None, end_time=None, instance_detail=None, instance_id=None, size=None, start_time=None, status=None, _configuration=None): # noqa: E501
65+
def __init__(self, backup_point_id=None, backup_point_name=None, backup_strategy=None, backup_type=None, end_time=None, instance_detail=None, instance_id=None, project_name=None, size=None, start_time=None, status=None, ttl=None, _configuration=None): # noqa: E501
6066
"""BackupForDescribeBackupsOutput - a model defined in Swagger""" # noqa: E501
6167
if _configuration is None:
6268
_configuration = Configuration()
6369
self._configuration = _configuration
6470

6571
self._backup_point_id = None
72+
self._backup_point_name = None
6673
self._backup_strategy = None
6774
self._backup_type = None
6875
self._end_time = None
6976
self._instance_detail = None
7077
self._instance_id = None
78+
self._project_name = None
7179
self._size = None
7280
self._start_time = None
7381
self._status = None
82+
self._ttl = None
7483
self.discriminator = None
7584

7685
if backup_point_id is not None:
7786
self.backup_point_id = backup_point_id
87+
if backup_point_name is not None:
88+
self.backup_point_name = backup_point_name
7889
if backup_strategy is not None:
7990
self.backup_strategy = backup_strategy
8091
if backup_type is not None:
@@ -85,12 +96,16 @@ def __init__(self, backup_point_id=None, backup_strategy=None, backup_type=None,
8596
self.instance_detail = instance_detail
8697
if instance_id is not None:
8798
self.instance_id = instance_id
99+
if project_name is not None:
100+
self.project_name = project_name
88101
if size is not None:
89102
self.size = size
90103
if start_time is not None:
91104
self.start_time = start_time
92105
if status is not None:
93106
self.status = status
107+
if ttl is not None:
108+
self.ttl = ttl
94109

95110
@property
96111
def backup_point_id(self):
@@ -113,6 +128,27 @@ def backup_point_id(self, backup_point_id):
113128

114129
self._backup_point_id = backup_point_id
115130

131+
@property
132+
def backup_point_name(self):
133+
"""Gets the backup_point_name of this BackupForDescribeBackupsOutput. # noqa: E501
134+
135+
136+
:return: The backup_point_name of this BackupForDescribeBackupsOutput. # noqa: E501
137+
:rtype: str
138+
"""
139+
return self._backup_point_name
140+
141+
@backup_point_name.setter
142+
def backup_point_name(self, backup_point_name):
143+
"""Sets the backup_point_name of this BackupForDescribeBackupsOutput.
144+
145+
146+
:param backup_point_name: The backup_point_name of this BackupForDescribeBackupsOutput. # noqa: E501
147+
:type: str
148+
"""
149+
150+
self._backup_point_name = backup_point_name
151+
116152
@property
117153
def backup_strategy(self):
118154
"""Gets the backup_strategy of this BackupForDescribeBackupsOutput. # noqa: E501
@@ -218,6 +254,27 @@ def instance_id(self, instance_id):
218254

219255
self._instance_id = instance_id
220256

257+
@property
258+
def project_name(self):
259+
"""Gets the project_name of this BackupForDescribeBackupsOutput. # noqa: E501
260+
261+
262+
:return: The project_name of this BackupForDescribeBackupsOutput. # noqa: E501
263+
:rtype: str
264+
"""
265+
return self._project_name
266+
267+
@project_name.setter
268+
def project_name(self, project_name):
269+
"""Sets the project_name of this BackupForDescribeBackupsOutput.
270+
271+
272+
:param project_name: The project_name of this BackupForDescribeBackupsOutput. # noqa: E501
273+
:type: str
274+
"""
275+
276+
self._project_name = project_name
277+
221278
@property
222279
def size(self):
223280
"""Gets the size of this BackupForDescribeBackupsOutput. # noqa: E501
@@ -281,6 +338,27 @@ def status(self, status):
281338

282339
self._status = status
283340

341+
@property
342+
def ttl(self):
343+
"""Gets the ttl of this BackupForDescribeBackupsOutput. # noqa: E501
344+
345+
346+
:return: The ttl of this BackupForDescribeBackupsOutput. # noqa: E501
347+
:rtype: int
348+
"""
349+
return self._ttl
350+
351+
@ttl.setter
352+
def ttl(self, ttl):
353+
"""Sets the ttl of this BackupForDescribeBackupsOutput.
354+
355+
356+
:param ttl: The ttl of this BackupForDescribeBackupsOutput. # noqa: E501
357+
:type: int
358+
"""
359+
360+
self._ttl = ttl
361+
284362
def to_dict(self):
285363
"""Returns the model properties as a dict"""
286364
result = {}

volcenginesdkredis/models/create_backup_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,55 @@ class CreateBackupRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'backup_point_name': 'str',
3637
'client_token': 'str',
3738
'instance_id': 'str'
3839
}
3940

4041
attribute_map = {
42+
'backup_point_name': 'BackupPointName',
4143
'client_token': 'ClientToken',
4244
'instance_id': 'InstanceId'
4345
}
4446

45-
def __init__(self, client_token=None, instance_id=None, _configuration=None): # noqa: E501
47+
def __init__(self, backup_point_name=None, client_token=None, instance_id=None, _configuration=None): # noqa: E501
4648
"""CreateBackupRequest - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

53+
self._backup_point_name = None
5154
self._client_token = None
5255
self._instance_id = None
5356
self.discriminator = None
5457

58+
if backup_point_name is not None:
59+
self.backup_point_name = backup_point_name
5560
if client_token is not None:
5661
self.client_token = client_token
5762
self.instance_id = instance_id
5863

64+
@property
65+
def backup_point_name(self):
66+
"""Gets the backup_point_name of this CreateBackupRequest. # noqa: E501
67+
68+
69+
:return: The backup_point_name of this CreateBackupRequest. # noqa: E501
70+
:rtype: str
71+
"""
72+
return self._backup_point_name
73+
74+
@backup_point_name.setter
75+
def backup_point_name(self, backup_point_name):
76+
"""Sets the backup_point_name of this CreateBackupRequest.
77+
78+
79+
:param backup_point_name: The backup_point_name of this CreateBackupRequest. # noqa: E501
80+
:type: str
81+
"""
82+
83+
self._backup_point_name = backup_point_name
84+
5985
@property
6086
def client_token(self):
6187
"""Gets the client_token of this CreateBackupRequest. # noqa: E501

volcenginesdkredis/models/decrease_db_instance_node_number_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class DecreaseDBInstanceNodeNumberRequest(object):
3434
"""
3535
swagger_types = {
3636
'apply_immediately': 'bool',
37+
'backup_point_name': 'str',
3738
'client_token': 'str',
3839
'create_backup': 'bool',
3940
'instance_id': 'str',
@@ -43,20 +44,22 @@ class DecreaseDBInstanceNodeNumberRequest(object):
4344

4445
attribute_map = {
4546
'apply_immediately': 'ApplyImmediately',
47+
'backup_point_name': 'BackupPointName',
4648
'client_token': 'ClientToken',
4749
'create_backup': 'CreateBackup',
4850
'instance_id': 'InstanceId',
4951
'nodes_number_to_decrease': 'NodesNumberToDecrease',
5052
'nodes_to_remove': 'NodesToRemove'
5153
}
5254

53-
def __init__(self, apply_immediately=None, client_token=None, create_backup=None, instance_id=None, nodes_number_to_decrease=None, nodes_to_remove=None, _configuration=None): # noqa: E501
55+
def __init__(self, apply_immediately=None, backup_point_name=None, client_token=None, create_backup=None, instance_id=None, nodes_number_to_decrease=None, nodes_to_remove=None, _configuration=None): # noqa: E501
5456
"""DecreaseDBInstanceNodeNumberRequest - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
5759
self._configuration = _configuration
5860

5961
self._apply_immediately = None
62+
self._backup_point_name = None
6063
self._client_token = None
6164
self._create_backup = None
6265
self._instance_id = None
@@ -65,6 +68,8 @@ def __init__(self, apply_immediately=None, client_token=None, create_backup=None
6568
self.discriminator = None
6669

6770
self.apply_immediately = apply_immediately
71+
if backup_point_name is not None:
72+
self.backup_point_name = backup_point_name
6873
if client_token is not None:
6974
self.client_token = client_token
7075
if create_backup is not None:
@@ -97,6 +102,27 @@ def apply_immediately(self, apply_immediately):
97102

98103
self._apply_immediately = apply_immediately
99104

105+
@property
106+
def backup_point_name(self):
107+
"""Gets the backup_point_name of this DecreaseDBInstanceNodeNumberRequest. # noqa: E501
108+
109+
110+
:return: The backup_point_name of this DecreaseDBInstanceNodeNumberRequest. # noqa: E501
111+
:rtype: str
112+
"""
113+
return self._backup_point_name
114+
115+
@backup_point_name.setter
116+
def backup_point_name(self, backup_point_name):
117+
"""Sets the backup_point_name of this DecreaseDBInstanceNodeNumberRequest.
118+
119+
120+
:param backup_point_name: The backup_point_name of this DecreaseDBInstanceNodeNumberRequest. # noqa: E501
121+
:type: str
122+
"""
123+
124+
self._backup_point_name = backup_point_name
125+
100126
@property
101127
def client_token(self):
102128
"""Gets the client_token of this DecreaseDBInstanceNodeNumberRequest. # noqa: E501

volcenginesdkredis/models/delete_db_instance_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,55 @@ class DeleteDBInstanceRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'backup_point_name': 'str',
3637
'client_token': 'str',
3738
'instance_id': 'str'
3839
}
3940

4041
attribute_map = {
42+
'backup_point_name': 'BackupPointName',
4143
'client_token': 'ClientToken',
4244
'instance_id': 'InstanceId'
4345
}
4446

45-
def __init__(self, client_token=None, instance_id=None, _configuration=None): # noqa: E501
47+
def __init__(self, backup_point_name=None, client_token=None, instance_id=None, _configuration=None): # noqa: E501
4648
"""DeleteDBInstanceRequest - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

53+
self._backup_point_name = None
5154
self._client_token = None
5255
self._instance_id = None
5356
self.discriminator = None
5457

58+
if backup_point_name is not None:
59+
self.backup_point_name = backup_point_name
5560
if client_token is not None:
5661
self.client_token = client_token
5762
self.instance_id = instance_id
5863

64+
@property
65+
def backup_point_name(self):
66+
"""Gets the backup_point_name of this DeleteDBInstanceRequest. # noqa: E501
67+
68+
69+
:return: The backup_point_name of this DeleteDBInstanceRequest. # noqa: E501
70+
:rtype: str
71+
"""
72+
return self._backup_point_name
73+
74+
@backup_point_name.setter
75+
def backup_point_name(self, backup_point_name):
76+
"""Sets the backup_point_name of this DeleteDBInstanceRequest.
77+
78+
79+
:param backup_point_name: The backup_point_name of this DeleteDBInstanceRequest. # noqa: E501
80+
:type: str
81+
"""
82+
83+
self._backup_point_name = backup_point_name
84+
5985
@property
6086
def client_token(self):
6187
"""Gets the client_token of this DeleteDBInstanceRequest. # noqa: E501

0 commit comments

Comments
 (0)