tencentcloud-sdk-redis 3.0.901 → 3.0.903
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 +141 -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: f8b2621f2022f408e4e486b6652629dcb05b695a
|
4
|
+
data.tar.gz: 597556e63793805e3cc2f3a2583a5fcec7df4b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e043102b155b801b1de668bda1b7d165ab42d139d0aab2cacaea60228a00f9997651d73a5293ad2b4ee8c23ab6af21975b5446074f917104cc7150953aa3044
|
7
|
+
data.tar.gz: 186aa8f0fc6bba778a730f3688c1e3835f2b33065cd5b916088c5d06dc0f5d069ecd7d8d4a4974f1bbdb4d1a0d9672da32afe5e9c2f5a71226ee82141b9bd7b4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.903
|
data/lib/v20180412/client.rb
CHANGED
@@ -773,6 +773,30 @@ module TencentCloud
|
|
773
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
774
|
end
|
775
775
|
|
776
|
+
# 本接口(DescribeInstanceLogDelivery)用于查询实例的日志投递配置。
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeInstanceLogDelivery.
|
779
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::DescribeInstanceLogDeliveryRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::DescribeInstanceLogDeliveryResponse`
|
781
|
+
def DescribeInstanceLogDelivery(request)
|
782
|
+
body = send_request('DescribeInstanceLogDelivery', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeInstanceLogDeliveryResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
776
800
|
# 腾讯云数据库 Redis 已经于2022年10月31日下线查询实例大 Key 接口。具体公告,请参见[查询实例大 Key 接口下线公告](https://cloud.tencent.com/document/product/239/81005)。
|
777
801
|
|
778
802
|
# @param request: Request instance for DescribeInstanceMonitorBigKey.
|
@@ -2021,6 +2045,30 @@ module TencentCloud
|
|
2021
2045
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2022
2046
|
end
|
2023
2047
|
|
2048
|
+
# 本接口(ModifyInstanceLogDelivery)用于开启或关闭投递实例日志到CLS。
|
2049
|
+
|
2050
|
+
# @param request: Request instance for ModifyInstanceLogDelivery.
|
2051
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::ModifyInstanceLogDeliveryRequest`
|
2052
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::ModifyInstanceLogDeliveryResponse`
|
2053
|
+
def ModifyInstanceLogDelivery(request)
|
2054
|
+
body = send_request('ModifyInstanceLogDelivery', request.serialize)
|
2055
|
+
response = JSON.parse(body)
|
2056
|
+
if response['Response'].key?('Error') == false
|
2057
|
+
model = ModifyInstanceLogDeliveryResponse.new
|
2058
|
+
model.deserialize(response['Response'])
|
2059
|
+
model
|
2060
|
+
else
|
2061
|
+
code = response['Response']['Error']['Code']
|
2062
|
+
message = response['Response']['Error']['Message']
|
2063
|
+
reqid = response['Response']['RequestId']
|
2064
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2065
|
+
end
|
2066
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2067
|
+
raise e
|
2068
|
+
rescue StandardError => e
|
2069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2070
|
+
end
|
2071
|
+
|
2024
2072
|
# 本接口(ModifyInstanceParams)用于修改Redis实例的参数配置。
|
2025
2073
|
|
2026
2074
|
# @param request: Request instance for ModifyInstanceParams.
|
data/lib/v20180412/models.rb
CHANGED
@@ -2286,6 +2286,45 @@ module TencentCloud
|
|
2286
2286
|
end
|
2287
2287
|
end
|
2288
2288
|
|
2289
|
+
# DescribeInstanceLogDelivery请求参数结构体
|
2290
|
+
class DescribeInstanceLogDeliveryRequest < TencentCloud::Common::AbstractModel
|
2291
|
+
# @param InstanceId: 实例ID。
|
2292
|
+
# @type InstanceId: String
|
2293
|
+
|
2294
|
+
attr_accessor :InstanceId
|
2295
|
+
|
2296
|
+
def initialize(instanceid=nil)
|
2297
|
+
@InstanceId = instanceid
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
def deserialize(params)
|
2301
|
+
@InstanceId = params['InstanceId']
|
2302
|
+
end
|
2303
|
+
end
|
2304
|
+
|
2305
|
+
# DescribeInstanceLogDelivery返回参数结构体
|
2306
|
+
class DescribeInstanceLogDeliveryResponse < TencentCloud::Common::AbstractModel
|
2307
|
+
# @param SlowLog: 实例慢日志投递信息。
|
2308
|
+
# @type SlowLog: :class:`Tencentcloud::Redis.v20180412.models.LogDeliveryInfo`
|
2309
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2310
|
+
# @type RequestId: String
|
2311
|
+
|
2312
|
+
attr_accessor :SlowLog, :RequestId
|
2313
|
+
|
2314
|
+
def initialize(slowlog=nil, requestid=nil)
|
2315
|
+
@SlowLog = slowlog
|
2316
|
+
@RequestId = requestid
|
2317
|
+
end
|
2318
|
+
|
2319
|
+
def deserialize(params)
|
2320
|
+
unless params['SlowLog'].nil?
|
2321
|
+
@SlowLog = LogDeliveryInfo.new
|
2322
|
+
@SlowLog.deserialize(params['SlowLog'])
|
2323
|
+
end
|
2324
|
+
@RequestId = params['RequestId']
|
2325
|
+
end
|
2326
|
+
end
|
2327
|
+
|
2289
2328
|
# DescribeInstanceMonitorBigKey请求参数结构体
|
2290
2329
|
class DescribeInstanceMonitorBigKeyRequest < TencentCloud::Common::AbstractModel
|
2291
2330
|
# @param InstanceId: 实例Id
|
@@ -5877,6 +5916,38 @@ module TencentCloud
|
|
5877
5916
|
end
|
5878
5917
|
end
|
5879
5918
|
|
5919
|
+
# 日志投递信息
|
5920
|
+
class LogDeliveryInfo < TencentCloud::Common::AbstractModel
|
5921
|
+
# @param Enabled: 日志投递开启状态,开启:true,关闭:false
|
5922
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5923
|
+
# @type Enabled: Boolean
|
5924
|
+
# @param LogsetId: 日志集ID。
|
5925
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5926
|
+
# @type LogsetId: String
|
5927
|
+
# @param TopicId: 日志主题ID。
|
5928
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5929
|
+
# @type TopicId: String
|
5930
|
+
# @param LogRegion: 日志集所在地域
|
5931
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5932
|
+
# @type LogRegion: String
|
5933
|
+
|
5934
|
+
attr_accessor :Enabled, :LogsetId, :TopicId, :LogRegion
|
5935
|
+
|
5936
|
+
def initialize(enabled=nil, logsetid=nil, topicid=nil, logregion=nil)
|
5937
|
+
@Enabled = enabled
|
5938
|
+
@LogsetId = logsetid
|
5939
|
+
@TopicId = topicid
|
5940
|
+
@LogRegion = logregion
|
5941
|
+
end
|
5942
|
+
|
5943
|
+
def deserialize(params)
|
5944
|
+
@Enabled = params['Enabled']
|
5945
|
+
@LogsetId = params['LogsetId']
|
5946
|
+
@TopicId = params['TopicId']
|
5947
|
+
@LogRegion = params['LogRegion']
|
5948
|
+
end
|
5949
|
+
end
|
5950
|
+
|
5880
5951
|
# ManualBackupInstance请求参数结构体
|
5881
5952
|
class ManualBackupInstanceRequest < TencentCloud::Common::AbstractModel
|
5882
5953
|
# @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
@@ -6351,6 +6422,76 @@ module TencentCloud
|
|
6351
6422
|
end
|
6352
6423
|
end
|
6353
6424
|
|
6425
|
+
# ModifyInstanceLogDelivery请求参数结构体
|
6426
|
+
class ModifyInstanceLogDeliveryRequest < TencentCloud::Common::AbstractModel
|
6427
|
+
# @param InstanceId: 实例ID。
|
6428
|
+
# @type InstanceId: String
|
6429
|
+
# @param LogType: 日志类型。当前仅支持设置为slowlog,指慢查询日志。
|
6430
|
+
# @type LogType: String
|
6431
|
+
# @param Enabled: 日志投递开启状态。
|
6432
|
+
# - true:开启。
|
6433
|
+
# - false:关闭。
|
6434
|
+
# @type Enabled: Boolean
|
6435
|
+
# @param LogsetId: 投递的日志集ID。
|
6436
|
+
# @type LogsetId: String
|
6437
|
+
# @param TopicId: 投递的日志主题ID。
|
6438
|
+
# @type TopicId: String
|
6439
|
+
# @param LogsetName: 日志集名称。若**LogsetId**未指定具体的日志集ID,请配置该参数,设置日志集名称,系统会以设置的日志集名称自动创建新的日志集。
|
6440
|
+
# @type LogsetName: String
|
6441
|
+
# @param TopicName: 日志主题名称,TopicId为空时必传,会自动创建新的日志主题。
|
6442
|
+
# @type TopicName: String
|
6443
|
+
# @param LogRegion: 日志集所在地域,不传默认使用实例所在地域。
|
6444
|
+
# @type LogRegion: String
|
6445
|
+
# @param Period: 日志存储时间,默认为30天,可选范围1-3600天。
|
6446
|
+
# @type Period: Integer
|
6447
|
+
# @param CreateIndex: 创建日志主题时,是否创建索引。
|
6448
|
+
# @type CreateIndex: Boolean
|
6449
|
+
|
6450
|
+
attr_accessor :InstanceId, :LogType, :Enabled, :LogsetId, :TopicId, :LogsetName, :TopicName, :LogRegion, :Period, :CreateIndex
|
6451
|
+
|
6452
|
+
def initialize(instanceid=nil, logtype=nil, enabled=nil, logsetid=nil, topicid=nil, logsetname=nil, topicname=nil, logregion=nil, period=nil, createindex=nil)
|
6453
|
+
@InstanceId = instanceid
|
6454
|
+
@LogType = logtype
|
6455
|
+
@Enabled = enabled
|
6456
|
+
@LogsetId = logsetid
|
6457
|
+
@TopicId = topicid
|
6458
|
+
@LogsetName = logsetname
|
6459
|
+
@TopicName = topicname
|
6460
|
+
@LogRegion = logregion
|
6461
|
+
@Period = period
|
6462
|
+
@CreateIndex = createindex
|
6463
|
+
end
|
6464
|
+
|
6465
|
+
def deserialize(params)
|
6466
|
+
@InstanceId = params['InstanceId']
|
6467
|
+
@LogType = params['LogType']
|
6468
|
+
@Enabled = params['Enabled']
|
6469
|
+
@LogsetId = params['LogsetId']
|
6470
|
+
@TopicId = params['TopicId']
|
6471
|
+
@LogsetName = params['LogsetName']
|
6472
|
+
@TopicName = params['TopicName']
|
6473
|
+
@LogRegion = params['LogRegion']
|
6474
|
+
@Period = params['Period']
|
6475
|
+
@CreateIndex = params['CreateIndex']
|
6476
|
+
end
|
6477
|
+
end
|
6478
|
+
|
6479
|
+
# ModifyInstanceLogDelivery返回参数结构体
|
6480
|
+
class ModifyInstanceLogDeliveryResponse < TencentCloud::Common::AbstractModel
|
6481
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6482
|
+
# @type RequestId: String
|
6483
|
+
|
6484
|
+
attr_accessor :RequestId
|
6485
|
+
|
6486
|
+
def initialize(requestid=nil)
|
6487
|
+
@RequestId = requestid
|
6488
|
+
end
|
6489
|
+
|
6490
|
+
def deserialize(params)
|
6491
|
+
@RequestId = params['RequestId']
|
6492
|
+
end
|
6493
|
+
end
|
6494
|
+
|
6354
6495
|
# ModifyInstanceParams请求参数结构体
|
6355
6496
|
class ModifyInstanceParamsRequest < TencentCloud::Common::AbstractModel
|
6356
6497
|
# @param InstanceId: 实例ID。
|
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.903
|
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-09-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|