tencentcloud-sdk-redis 3.0.966 → 3.0.968
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180412/client.rb +48 -0
- data/lib/v20180412/models.rb +124 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 681ef4b3f0c910c3e86937ca1237bf0faed0d8ab
|
4
|
+
data.tar.gz: a190cc10e96c8cc63aad8fff7a5e80f8d4b1b136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efd8ff9a2e06afdd1a41b4a13bc23bbc19928ebf5954d24e4b5d92692bbe7d7cc8a0367f2228183c1113269686d5ab1513c18922fc039a26a6aa85d291ff3fb
|
7
|
+
data.tar.gz: 87fc854ce1537c1da4139698f1f0e846c541660721350ca3be6180f86fddd50134256dec28bb23b8f07a3173909d8e29f39fc6c59b131ee7a8718c17cbdbc392
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.968
|
data/lib/v20180412/client.rb
CHANGED
@@ -1493,6 +1493,30 @@ module TencentCloud
|
|
1493
1493
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1494
1494
|
end
|
1495
1495
|
|
1496
|
+
# 查询实例秒级备份信息
|
1497
|
+
|
1498
|
+
# @param request: Request instance for DescribeSecondLevelBackupInfo.
|
1499
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::DescribeSecondLevelBackupInfoRequest`
|
1500
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::DescribeSecondLevelBackupInfoResponse`
|
1501
|
+
def DescribeSecondLevelBackupInfo(request)
|
1502
|
+
body = send_request('DescribeSecondLevelBackupInfo', request.serialize)
|
1503
|
+
response = JSON.parse(body)
|
1504
|
+
if response['Response'].key?('Error') == false
|
1505
|
+
model = DescribeSecondLevelBackupInfoResponse.new
|
1506
|
+
model.deserialize(response['Response'])
|
1507
|
+
model
|
1508
|
+
else
|
1509
|
+
code = response['Response']['Error']['Code']
|
1510
|
+
message = response['Response']['Error']['Message']
|
1511
|
+
reqid = response['Response']['RequestId']
|
1512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1513
|
+
end
|
1514
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1515
|
+
raise e
|
1516
|
+
rescue StandardError => e
|
1517
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1518
|
+
end
|
1519
|
+
|
1496
1520
|
# 本接口(DescribeSlowLog)查询实例慢查询记录。
|
1497
1521
|
|
1498
1522
|
# @param request: Request instance for DescribeSlowLog.
|
@@ -2023,6 +2047,30 @@ module TencentCloud
|
|
2023
2047
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2024
2048
|
end
|
2025
2049
|
|
2050
|
+
# 修改实例的备份模式
|
2051
|
+
|
2052
|
+
# @param request: Request instance for ModifyInstanceBackupMode.
|
2053
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::ModifyInstanceBackupModeRequest`
|
2054
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::ModifyInstanceBackupModeResponse`
|
2055
|
+
def ModifyInstanceBackupMode(request)
|
2056
|
+
body = send_request('ModifyInstanceBackupMode', request.serialize)
|
2057
|
+
response = JSON.parse(body)
|
2058
|
+
if response['Response'].key?('Error') == false
|
2059
|
+
model = ModifyInstanceBackupModeResponse.new
|
2060
|
+
model.deserialize(response['Response'])
|
2061
|
+
model
|
2062
|
+
else
|
2063
|
+
code = response['Response']['Error']['Code']
|
2064
|
+
message = response['Response']['Error']['Message']
|
2065
|
+
reqid = response['Response']['RequestId']
|
2066
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2067
|
+
end
|
2068
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2069
|
+
raise e
|
2070
|
+
rescue StandardError => e
|
2071
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2072
|
+
end
|
2073
|
+
|
2026
2074
|
# 本接口(ModifyInstanceEvent)用于修改实例的运维事件的执行计划。
|
2027
2075
|
|
2028
2076
|
# @param request: Request instance for ModifyInstanceEvent.
|
data/lib/v20180412/models.rb
CHANGED
@@ -4062,6 +4062,66 @@ module TencentCloud
|
|
4062
4062
|
end
|
4063
4063
|
end
|
4064
4064
|
|
4065
|
+
# DescribeSecondLevelBackupInfo请求参数结构体
|
4066
|
+
class DescribeSecondLevelBackupInfoRequest < TencentCloud::Common::AbstractModel
|
4067
|
+
# @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录Redis控制台在实例列表复制实例 ID。
|
4068
|
+
# @type InstanceId: String
|
4069
|
+
# @param BackupTimestamp: 秒级备份时间戳,7天内
|
4070
|
+
# @type BackupTimestamp: Integer
|
4071
|
+
|
4072
|
+
attr_accessor :InstanceId, :BackupTimestamp
|
4073
|
+
|
4074
|
+
def initialize(instanceid=nil, backuptimestamp=nil)
|
4075
|
+
@InstanceId = instanceid
|
4076
|
+
@BackupTimestamp = backuptimestamp
|
4077
|
+
end
|
4078
|
+
|
4079
|
+
def deserialize(params)
|
4080
|
+
@InstanceId = params['InstanceId']
|
4081
|
+
@BackupTimestamp = params['BackupTimestamp']
|
4082
|
+
end
|
4083
|
+
end
|
4084
|
+
|
4085
|
+
# DescribeSecondLevelBackupInfo返回参数结构体
|
4086
|
+
class DescribeSecondLevelBackupInfoResponse < TencentCloud::Common::AbstractModel
|
4087
|
+
# @param BackupId: 备份记录ID
|
4088
|
+
# @type BackupId: String
|
4089
|
+
# @param BackupTimestamp: 备份时间戳
|
4090
|
+
# @type BackupTimestamp: Integer
|
4091
|
+
# @param MissingTimestamps: 备份不存在的时间戳范围
|
4092
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4093
|
+
# @type MissingTimestamps: Array
|
4094
|
+
# @param StartTimestamp: 实例开启秒级备份的时间戳
|
4095
|
+
# @type StartTimestamp: Integer
|
4096
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4097
|
+
# @type RequestId: String
|
4098
|
+
|
4099
|
+
attr_accessor :BackupId, :BackupTimestamp, :MissingTimestamps, :StartTimestamp, :RequestId
|
4100
|
+
|
4101
|
+
def initialize(backupid=nil, backuptimestamp=nil, missingtimestamps=nil, starttimestamp=nil, requestid=nil)
|
4102
|
+
@BackupId = backupid
|
4103
|
+
@BackupTimestamp = backuptimestamp
|
4104
|
+
@MissingTimestamps = missingtimestamps
|
4105
|
+
@StartTimestamp = starttimestamp
|
4106
|
+
@RequestId = requestid
|
4107
|
+
end
|
4108
|
+
|
4109
|
+
def deserialize(params)
|
4110
|
+
@BackupId = params['BackupId']
|
4111
|
+
@BackupTimestamp = params['BackupTimestamp']
|
4112
|
+
unless params['MissingTimestamps'].nil?
|
4113
|
+
@MissingTimestamps = []
|
4114
|
+
params['MissingTimestamps'].each do |i|
|
4115
|
+
secondlevelbackupmissingtimestamps_tmp = SecondLevelBackupMissingTimestamps.new
|
4116
|
+
secondlevelbackupmissingtimestamps_tmp.deserialize(i)
|
4117
|
+
@MissingTimestamps << secondlevelbackupmissingtimestamps_tmp
|
4118
|
+
end
|
4119
|
+
end
|
4120
|
+
@StartTimestamp = params['StartTimestamp']
|
4121
|
+
@RequestId = params['RequestId']
|
4122
|
+
end
|
4123
|
+
end
|
4124
|
+
|
4065
4125
|
# DescribeSlowLog请求参数结构体
|
4066
4126
|
class DescribeSlowLogRequest < TencentCloud::Common::AbstractModel
|
4067
4127
|
# @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
@@ -6392,6 +6452,48 @@ module TencentCloud
|
|
6392
6452
|
end
|
6393
6453
|
end
|
6394
6454
|
|
6455
|
+
# ModifyInstanceBackupMode请求参数结构体
|
6456
|
+
class ModifyInstanceBackupModeRequest < TencentCloud::Common::AbstractModel
|
6457
|
+
# @param InstanceId: 实例的ID,长度在12-36之间。
|
6458
|
+
# @type InstanceId: String
|
6459
|
+
# @param BackupMode: 备份模式:
|
6460
|
+
# - SecondLevelBackup 秒级备份
|
6461
|
+
# - NormalLevelBackup 普通备份
|
6462
|
+
# @type BackupMode: String
|
6463
|
+
|
6464
|
+
attr_accessor :InstanceId, :BackupMode
|
6465
|
+
|
6466
|
+
def initialize(instanceid=nil, backupmode=nil)
|
6467
|
+
@InstanceId = instanceid
|
6468
|
+
@BackupMode = backupmode
|
6469
|
+
end
|
6470
|
+
|
6471
|
+
def deserialize(params)
|
6472
|
+
@InstanceId = params['InstanceId']
|
6473
|
+
@BackupMode = params['BackupMode']
|
6474
|
+
end
|
6475
|
+
end
|
6476
|
+
|
6477
|
+
# ModifyInstanceBackupMode返回参数结构体
|
6478
|
+
class ModifyInstanceBackupModeResponse < TencentCloud::Common::AbstractModel
|
6479
|
+
# @param TaskId: 任务ID
|
6480
|
+
# @type TaskId: Integer
|
6481
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6482
|
+
# @type RequestId: String
|
6483
|
+
|
6484
|
+
attr_accessor :TaskId, :RequestId
|
6485
|
+
|
6486
|
+
def initialize(taskid=nil, requestid=nil)
|
6487
|
+
@TaskId = taskid
|
6488
|
+
@RequestId = requestid
|
6489
|
+
end
|
6490
|
+
|
6491
|
+
def deserialize(params)
|
6492
|
+
@TaskId = params['TaskId']
|
6493
|
+
@RequestId = params['RequestId']
|
6494
|
+
end
|
6495
|
+
end
|
6496
|
+
|
6395
6497
|
# ModifyInstanceEvent请求参数结构体
|
6396
6498
|
class ModifyInstanceEventRequest < TencentCloud::Common::AbstractModel
|
6397
6499
|
# @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
|
@@ -7904,6 +8006,28 @@ module TencentCloud
|
|
7904
8006
|
end
|
7905
8007
|
end
|
7906
8008
|
|
8009
|
+
# 秒级备份不存在的时间戳范围
|
8010
|
+
class SecondLevelBackupMissingTimestamps < TencentCloud::Common::AbstractModel
|
8011
|
+
# @param StartTimeStamp: 开始时间戳
|
8012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8013
|
+
# @type StartTimeStamp: Integer
|
8014
|
+
# @param EndTimeStamp: 结束时间戳
|
8015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8016
|
+
# @type EndTimeStamp: Integer
|
8017
|
+
|
8018
|
+
attr_accessor :StartTimeStamp, :EndTimeStamp
|
8019
|
+
|
8020
|
+
def initialize(starttimestamp=nil, endtimestamp=nil)
|
8021
|
+
@StartTimeStamp = starttimestamp
|
8022
|
+
@EndTimeStamp = endtimestamp
|
8023
|
+
end
|
8024
|
+
|
8025
|
+
def deserialize(params)
|
8026
|
+
@StartTimeStamp = params['StartTimeStamp']
|
8027
|
+
@EndTimeStamp = params['EndTimeStamp']
|
8028
|
+
end
|
8029
|
+
end
|
8030
|
+
|
7907
8031
|
# 安全组规则
|
7908
8032
|
class SecurityGroup < TencentCloud::Common::AbstractModel
|
7909
8033
|
# @param CreateTime: 创建时间,时间格式:yyyy-mm-dd hh:mm:ss。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.968
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|