tencentcloud-sdk-cdb 3.0.681 → 3.0.682

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83f19cd478be1147f2affe24000f12f274eda2ef
4
- data.tar.gz: 7479613aea84fbf82b9f8bf67eac5ea4dc821ca3
3
+ metadata.gz: 772e633ffc605ea651d5a82651d75c76fb71492b
4
+ data.tar.gz: 79bde87e09bcbb2bd2f32e59e38759239f570d1b
5
5
  SHA512:
6
- metadata.gz: 54a979f86034b01c6bb1412281203ecd92ebd01166ac43fc1dc69be9e65d08a4d5185e0bd40d8972ae34448c88131ae0edd41a767fadfb1f360b95a7d08d6311
7
- data.tar.gz: db75e2f6f6d2af7e7d0985dc760f4cce64d29541af393213e7cad0c2e494c1e48596ea9bee6eec59b4aadd2df2fefa20523cb9392c305bc6b50fc97b8041ed0b
6
+ metadata.gz: c710d72c933deb16a30a1041055220c73165cba0e64c2ee66e0f5b2f0f345ef50bf7c6e08c860cbc11573770770017df982986abb78f4230770a726c47090048
7
+ data.tar.gz: bb933faf5356ea57e50b67f0090d01aa214a64d95f3fc39cc8ff3f3da9d4c509957d9389691b1ac3554a5b813afddfe1f1e2626ab095bf044437c95722c26304
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.681
1
+ 3.0.682
@@ -1464,6 +1464,30 @@ module TencentCloud
1464
1464
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1465
1465
  end
1466
1466
 
1467
+ # 本接口(DescribeDBInstanceLogToCLS)用于查询实例慢日志、错误日志投递CLS的配置,通过appId、Region以及实例ID过滤出当前实例日志投递CLS的配置。
1468
+
1469
+ # @param request: Request instance for DescribeDBInstanceLogToCLS.
1470
+ # @type request: :class:`Tencentcloud::cdb::V20170320::DescribeDBInstanceLogToCLSRequest`
1471
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeDBInstanceLogToCLSResponse`
1472
+ def DescribeDBInstanceLogToCLS(request)
1473
+ body = send_request('DescribeDBInstanceLogToCLS', request.serialize)
1474
+ response = JSON.parse(body)
1475
+ if response['Response'].key?('Error') == false
1476
+ model = DescribeDBInstanceLogToCLSResponse.new
1477
+ model.deserialize(response['Response'])
1478
+ model
1479
+ else
1480
+ code = response['Response']['Error']['Code']
1481
+ message = response['Response']['Error']['Message']
1482
+ reqid = response['Response']['RequestId']
1483
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1484
+ end
1485
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1486
+ raise e
1487
+ rescue StandardError => e
1488
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1489
+ end
1490
+
1467
1491
  # 本接口(DescribeDBInstanceRebootTime)用于查询云数据库实例重启预计所需的时间。
1468
1492
 
1469
1493
  # @param request: Request instance for DescribeDBInstanceRebootTime.
@@ -2673,6 +2697,30 @@ module TencentCloud
2673
2697
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2674
2698
  end
2675
2699
 
2700
+ # 开启/关闭CDB慢日志、错误日志投递CLS
2701
+
2702
+ # @param request: Request instance for ModifyDBInstanceLogToCLS.
2703
+ # @type request: :class:`Tencentcloud::cdb::V20170320::ModifyDBInstanceLogToCLSRequest`
2704
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::ModifyDBInstanceLogToCLSResponse`
2705
+ def ModifyDBInstanceLogToCLS(request)
2706
+ body = send_request('ModifyDBInstanceLogToCLS', request.serialize)
2707
+ response = JSON.parse(body)
2708
+ if response['Response'].key?('Error') == false
2709
+ model = ModifyDBInstanceLogToCLSResponse.new
2710
+ model.deserialize(response['Response'])
2711
+ model
2712
+ else
2713
+ code = response['Response']['Error']['Code']
2714
+ message = response['Response']['Error']['Message']
2715
+ reqid = response['Response']['RequestId']
2716
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2717
+ end
2718
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2719
+ raise e
2720
+ rescue StandardError => e
2721
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2722
+ end
2723
+
2676
2724
  # 本接口(ModifyDBInstanceName)用于修改云数据库实例的名称。
2677
2725
 
2678
2726
  # @param request: Request instance for ModifyDBInstanceName.
@@ -5028,6 +5028,54 @@ module TencentCloud
5028
5028
  end
5029
5029
  end
5030
5030
 
5031
+ # DescribeDBInstanceLogToCLS请求参数结构体
5032
+ class DescribeDBInstanceLogToCLSRequest < TencentCloud::Common::AbstractModel
5033
+ # @param InstanceId: 实例ID
5034
+ # @type InstanceId: String
5035
+
5036
+ attr_accessor :InstanceId
5037
+
5038
+ def initialize(instanceid=nil)
5039
+ @InstanceId = instanceid
5040
+ end
5041
+
5042
+ def deserialize(params)
5043
+ @InstanceId = params['InstanceId']
5044
+ end
5045
+ end
5046
+
5047
+ # DescribeDBInstanceLogToCLS返回参数结构体
5048
+ class DescribeDBInstanceLogToCLSResponse < TencentCloud::Common::AbstractModel
5049
+ # @param ErrorLog: 错误日志投递CLS配置
5050
+ # 注意:此字段可能返回 null,表示取不到有效值。
5051
+ # @type ErrorLog: :class:`Tencentcloud::Cdb.v20170320.models.LogToCLSConfig`
5052
+ # @param SlowLog: 慢日志投递CLS配置
5053
+ # 注意:此字段可能返回 null,表示取不到有效值。
5054
+ # @type SlowLog: :class:`Tencentcloud::Cdb.v20170320.models.LogToCLSConfig`
5055
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5056
+ # @type RequestId: String
5057
+
5058
+ attr_accessor :ErrorLog, :SlowLog, :RequestId
5059
+
5060
+ def initialize(errorlog=nil, slowlog=nil, requestid=nil)
5061
+ @ErrorLog = errorlog
5062
+ @SlowLog = slowlog
5063
+ @RequestId = requestid
5064
+ end
5065
+
5066
+ def deserialize(params)
5067
+ unless params['ErrorLog'].nil?
5068
+ @ErrorLog = LogToCLSConfig.new
5069
+ @ErrorLog.deserialize(params['ErrorLog'])
5070
+ end
5071
+ unless params['SlowLog'].nil?
5072
+ @SlowLog = LogToCLSConfig.new
5073
+ @SlowLog.deserialize(params['SlowLog'])
5074
+ end
5075
+ @RequestId = params['RequestId']
5076
+ end
5077
+ end
5078
+
5031
5079
  # DescribeDBInstanceRebootTime请求参数结构体
5032
5080
  class DescribeDBInstanceRebootTimeRequest < TencentCloud::Common::AbstractModel
5033
5081
  # @param InstanceIds: 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
@@ -8002,6 +8050,33 @@ module TencentCloud
8002
8050
  end
8003
8051
  end
8004
8052
 
8053
+ # DB实例慢日志、错误日志投递CLS配置
8054
+ class LogToCLSConfig < TencentCloud::Common::AbstractModel
8055
+ # @param Status: 投递状态打开或者关闭
8056
+ # 注意:此字段可能返回 null,表示取不到有效值。
8057
+ # @type Status: String
8058
+ # @param LogSetId: CLS日志集ID
8059
+ # 注意:此字段可能返回 null,表示取不到有效值。
8060
+ # @type LogSetId: String
8061
+ # @param LogTopicId: 日志主题ID
8062
+ # 注意:此字段可能返回 null,表示取不到有效值。
8063
+ # @type LogTopicId: String
8064
+
8065
+ attr_accessor :Status, :LogSetId, :LogTopicId
8066
+
8067
+ def initialize(status=nil, logsetid=nil, logtopicid=nil)
8068
+ @Status = status
8069
+ @LogSetId = logsetid
8070
+ @LogTopicId = logtopicid
8071
+ end
8072
+
8073
+ def deserialize(params)
8074
+ @Status = params['Status']
8075
+ @LogSetId = params['LogSetId']
8076
+ @LogTopicId = params['LogTopicId']
8077
+ end
8078
+ end
8079
+
8005
8080
  # 主实例信息
8006
8081
  class MasterInfo < TencentCloud::Common::AbstractModel
8007
8082
  # @param Region: 地域信息
@@ -8866,6 +8941,70 @@ module TencentCloud
8866
8941
  end
8867
8942
  end
8868
8943
 
8944
+ # ModifyDBInstanceLogToCLS请求参数结构体
8945
+ class ModifyDBInstanceLogToCLSRequest < TencentCloud::Common::AbstractModel
8946
+ # @param InstanceId: 实例ID
8947
+ # @type InstanceId: String
8948
+ # @param LogType: 日志类型:errorLog/slowLog
8949
+ # @type LogType: String
8950
+ # @param Status: 投递状态:ON/OFF
8951
+ # @type Status: String
8952
+ # @param CreateLogset: 是否需要创建日志集
8953
+ # @type CreateLogset: Boolean
8954
+ # @param Logset: 需要创建日志集时为日志集名称;选择已有日志集时,为日志集ID
8955
+ # @type Logset: String
8956
+ # @param CreateLogTopic: 是否需要创建日志主题
8957
+ # @type CreateLogTopic: Boolean
8958
+ # @param LogTopic: 需要创建日志主题时为日志主题名称;选择已有日志主题时,为日志主题ID
8959
+ # @type LogTopic: String
8960
+ # @param Period: 日志主题有效期,不填写时,默认30天
8961
+ # @type Period: Integer
8962
+ # @param CreateIndex: 创建日志主题时,是否创建索引
8963
+ # @type CreateIndex: Boolean
8964
+
8965
+ attr_accessor :InstanceId, :LogType, :Status, :CreateLogset, :Logset, :CreateLogTopic, :LogTopic, :Period, :CreateIndex
8966
+
8967
+ def initialize(instanceid=nil, logtype=nil, status=nil, createlogset=nil, logset=nil, createlogtopic=nil, logtopic=nil, period=nil, createindex=nil)
8968
+ @InstanceId = instanceid
8969
+ @LogType = logtype
8970
+ @Status = status
8971
+ @CreateLogset = createlogset
8972
+ @Logset = logset
8973
+ @CreateLogTopic = createlogtopic
8974
+ @LogTopic = logtopic
8975
+ @Period = period
8976
+ @CreateIndex = createindex
8977
+ end
8978
+
8979
+ def deserialize(params)
8980
+ @InstanceId = params['InstanceId']
8981
+ @LogType = params['LogType']
8982
+ @Status = params['Status']
8983
+ @CreateLogset = params['CreateLogset']
8984
+ @Logset = params['Logset']
8985
+ @CreateLogTopic = params['CreateLogTopic']
8986
+ @LogTopic = params['LogTopic']
8987
+ @Period = params['Period']
8988
+ @CreateIndex = params['CreateIndex']
8989
+ end
8990
+ end
8991
+
8992
+ # ModifyDBInstanceLogToCLS返回参数结构体
8993
+ class ModifyDBInstanceLogToCLSResponse < TencentCloud::Common::AbstractModel
8994
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8995
+ # @type RequestId: String
8996
+
8997
+ attr_accessor :RequestId
8998
+
8999
+ def initialize(requestid=nil)
9000
+ @RequestId = requestid
9001
+ end
9002
+
9003
+ def deserialize(params)
9004
+ @RequestId = params['RequestId']
9005
+ end
9006
+ end
9007
+
8869
9008
  # ModifyDBInstanceName请求参数结构体
8870
9009
  class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
8871
9010
  # @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.681
4
+ version: 3.0.682
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-20 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common