Skip to content

Commit fc6725f

Browse files
committed
feat: update redis
1 parent c9faac0 commit fc6725f

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

volcenginesdkredis/models/describe_slow_logs_request.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def __init__(self, context=None, db_name=None, instance_id=None, node_ids=None,
7575
if node_ids is not None:
7676
self.node_ids = node_ids
7777
self.page_size = page_size
78-
self.query_end_time = query_end_time
78+
if query_end_time is not None:
79+
self.query_end_time = query_end_time
7980
if query_start_time is not None:
8081
self.query_start_time = query_start_time
8182

@@ -206,8 +207,6 @@ def query_end_time(self, query_end_time):
206207
:param query_end_time: The query_end_time of this DescribeSlowLogsRequest. # noqa: E501
207208
:type: str
208209
"""
209-
if self._configuration.client_side_validation and query_end_time is None:
210-
raise ValueError("Invalid value for `query_end_time`, must not be `None`") # noqa: E501
211210

212211
self._query_end_time = query_end_time
213212

volcenginesdkredis/models/instance_detail_for_describe_backups_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class InstanceDetailForDescribeBackupsOutput(object):
3737
'arch_type': 'str',
3838
'charge_type': 'str',
3939
'engine_version': 'str',
40+
'expired_time': 'str',
4041
'instance_id': 'str',
4142
'instance_name': 'str',
4243
'maintenance_time': 'str',
@@ -58,6 +59,7 @@ class InstanceDetailForDescribeBackupsOutput(object):
5859
'arch_type': 'ArchType',
5960
'charge_type': 'ChargeType',
6061
'engine_version': 'EngineVersion',
62+
'expired_time': 'ExpiredTime',
6163
'instance_id': 'InstanceId',
6264
'instance_name': 'InstanceName',
6365
'maintenance_time': 'MaintenanceTime',
@@ -74,7 +76,7 @@ class InstanceDetailForDescribeBackupsOutput(object):
7476
'zone_ids': 'ZoneIds'
7577
}
7678

77-
def __init__(self, account_id=None, arch_type=None, charge_type=None, engine_version=None, instance_id=None, instance_name=None, maintenance_time=None, network_type=None, project_name=None, region_id=None, replicas=None, server_cpu=None, shard_capacity=None, shard_count=None, total_capacity=None, used_capacity=None, vpc_info=None, zone_ids=None, _configuration=None): # noqa: E501
79+
def __init__(self, account_id=None, arch_type=None, charge_type=None, engine_version=None, expired_time=None, instance_id=None, instance_name=None, maintenance_time=None, network_type=None, project_name=None, region_id=None, replicas=None, server_cpu=None, shard_capacity=None, shard_count=None, total_capacity=None, used_capacity=None, vpc_info=None, zone_ids=None, _configuration=None): # noqa: E501
7880
"""InstanceDetailForDescribeBackupsOutput - a model defined in Swagger""" # noqa: E501
7981
if _configuration is None:
8082
_configuration = Configuration()
@@ -84,6 +86,7 @@ def __init__(self, account_id=None, arch_type=None, charge_type=None, engine_ver
8486
self._arch_type = None
8587
self._charge_type = None
8688
self._engine_version = None
89+
self._expired_time = None
8790
self._instance_id = None
8891
self._instance_name = None
8992
self._maintenance_time = None
@@ -108,6 +111,8 @@ def __init__(self, account_id=None, arch_type=None, charge_type=None, engine_ver
108111
self.charge_type = charge_type
109112
if engine_version is not None:
110113
self.engine_version = engine_version
114+
if expired_time is not None:
115+
self.expired_time = expired_time
111116
if instance_id is not None:
112117
self.instance_id = instance_id
113118
if instance_name is not None:
@@ -221,6 +226,27 @@ def engine_version(self, engine_version):
221226

222227
self._engine_version = engine_version
223228

229+
@property
230+
def expired_time(self):
231+
"""Gets the expired_time of this InstanceDetailForDescribeBackupsOutput. # noqa: E501
232+
233+
234+
:return: The expired_time of this InstanceDetailForDescribeBackupsOutput. # noqa: E501
235+
:rtype: str
236+
"""
237+
return self._expired_time
238+
239+
@expired_time.setter
240+
def expired_time(self, expired_time):
241+
"""Sets the expired_time of this InstanceDetailForDescribeBackupsOutput.
242+
243+
244+
:param expired_time: The expired_time of this InstanceDetailForDescribeBackupsOutput. # noqa: E501
245+
:type: str
246+
"""
247+
248+
self._expired_time = expired_time
249+
224250
@property
225251
def instance_id(self):
226252
"""Gets the instance_id of this InstanceDetailForDescribeBackupsOutput. # noqa: E501

0 commit comments

Comments
 (0)