tencentcloud-sdk-dbbrain 3.0.1058 → 3.0.1059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210527/client.rb +48 -0
- data/lib/v20210527/models.rb +128 -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: 5d208df07db82ded08d1577cdd940fe60db60c8f
|
4
|
+
data.tar.gz: a145b726e66a9be3123dc627e668fe3fa73381f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b9abcd42472c96e1e615cd2c3bc94af6c91b3e697b1c598445f80c35234226e2f468ebbcca35ceff5065b2e2726958dcd9c6d19a088a710628fcb89f5e34cfd
|
7
|
+
data.tar.gz: f04bc99802a864ee038733d957cf17a56738ee7f7310e77d209b1f432dced0cfc3183d92ec3c0183432169fb8cd6d664f1524a30aec28fa3cc23a8a0c234f472
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1059
|
data/lib/v20210527/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 自治中心-终止自治事件
|
81
|
+
|
82
|
+
# @param request: Request instance for CancelDBAutonomyEvent.
|
83
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CancelDBAutonomyEventRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CancelDBAutonomyEventResponse`
|
85
|
+
def CancelDBAutonomyEvent(request)
|
86
|
+
body = send_request('CancelDBAutonomyEvent', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CancelDBAutonomyEventResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 终止中断会话任务。
|
81
105
|
|
82
106
|
# @param request: Request instance for CancelKillTask.
|
@@ -653,6 +677,30 @@ module TencentCloud
|
|
653
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
678
|
end
|
655
679
|
|
680
|
+
# 自治中心-查询自治事件任务详情。
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeDBAutonomyAction.
|
683
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyActionRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyActionResponse`
|
685
|
+
def DescribeDBAutonomyAction(request)
|
686
|
+
body = send_request('DescribeDBAutonomyAction', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeDBAutonomyActionResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
656
704
|
# 自治中心-终止自治任务(单次)
|
657
705
|
|
658
706
|
# @param request: Request instance for DescribeDBAutonomyActions.
|
data/lib/v20210527/models.rb
CHANGED
@@ -589,6 +589,46 @@ module TencentCloud
|
|
589
589
|
end
|
590
590
|
end
|
591
591
|
|
592
|
+
# CancelDBAutonomyEvent请求参数结构体
|
593
|
+
class CancelDBAutonomyEventRequest < TencentCloud::Common::AbstractModel
|
594
|
+
# @param EventId: 自治事件ID。
|
595
|
+
# @type EventId: Integer
|
596
|
+
# @param InstanceId: 实列ID。
|
597
|
+
# @type InstanceId: String
|
598
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
599
|
+
# @type Product: String
|
600
|
+
|
601
|
+
attr_accessor :EventId, :InstanceId, :Product
|
602
|
+
|
603
|
+
def initialize(eventid=nil, instanceid=nil, product=nil)
|
604
|
+
@EventId = eventid
|
605
|
+
@InstanceId = instanceid
|
606
|
+
@Product = product
|
607
|
+
end
|
608
|
+
|
609
|
+
def deserialize(params)
|
610
|
+
@EventId = params['EventId']
|
611
|
+
@InstanceId = params['InstanceId']
|
612
|
+
@Product = params['Product']
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# CancelDBAutonomyEvent返回参数结构体
|
617
|
+
class CancelDBAutonomyEventResponse < TencentCloud::Common::AbstractModel
|
618
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
619
|
+
# @type RequestId: String
|
620
|
+
|
621
|
+
attr_accessor :RequestId
|
622
|
+
|
623
|
+
def initialize(requestid=nil)
|
624
|
+
@RequestId = requestid
|
625
|
+
end
|
626
|
+
|
627
|
+
def deserialize(params)
|
628
|
+
@RequestId = params['RequestId']
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
592
632
|
# CancelKillTask请求参数结构体
|
593
633
|
class CancelKillTaskRequest < TencentCloud::Common::AbstractModel
|
594
634
|
# @param InstanceId: 实例ID。
|
@@ -1901,6 +1941,94 @@ module TencentCloud
|
|
1901
1941
|
end
|
1902
1942
|
end
|
1903
1943
|
|
1944
|
+
# DescribeDBAutonomyAction请求参数结构体
|
1945
|
+
class DescribeDBAutonomyActionRequest < TencentCloud::Common::AbstractModel
|
1946
|
+
# @param ActionId: 自治任务ID。
|
1947
|
+
# @type ActionId: Integer
|
1948
|
+
# @param InstanceId: 实列ID。
|
1949
|
+
# @type InstanceId: String
|
1950
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1951
|
+
# @type Product: String
|
1952
|
+
|
1953
|
+
attr_accessor :ActionId, :InstanceId, :Product
|
1954
|
+
|
1955
|
+
def initialize(actionid=nil, instanceid=nil, product=nil)
|
1956
|
+
@ActionId = actionid
|
1957
|
+
@InstanceId = instanceid
|
1958
|
+
@Product = product
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
def deserialize(params)
|
1962
|
+
@ActionId = params['ActionId']
|
1963
|
+
@InstanceId = params['InstanceId']
|
1964
|
+
@Product = params['Product']
|
1965
|
+
end
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
# DescribeDBAutonomyAction返回参数结构体
|
1969
|
+
class DescribeDBAutonomyActionResponse < TencentCloud::Common::AbstractModel
|
1970
|
+
# @param ActionId: 自治任务ID。
|
1971
|
+
# @type ActionId: Integer
|
1972
|
+
# @param EventId: 自治事件ID。
|
1973
|
+
# @type EventId: Integer
|
1974
|
+
# @param TaskId: 任务ID。
|
1975
|
+
# @type TaskId: Integer
|
1976
|
+
# @param Type: 类型:支持RedisAutoScaleUp
|
1977
|
+
# @type Type: String
|
1978
|
+
# @param TriggerTime: 自治任务触发时间。
|
1979
|
+
# @type TriggerTime: String
|
1980
|
+
# @param CreateTime: 自治任务创建时间。
|
1981
|
+
# @type CreateTime: String
|
1982
|
+
# @param UpdateTime: 自治任务更新时间。
|
1983
|
+
# @type UpdateTime: String
|
1984
|
+
# @param FinishTime: 自治任务完成时间。
|
1985
|
+
# @type FinishTime: String
|
1986
|
+
# @param ExpireTime: 剩余时间,单位:秒。
|
1987
|
+
# @type ExpireTime: Integer
|
1988
|
+
# @param Reason: 触发原因。
|
1989
|
+
# @type Reason: String
|
1990
|
+
# @param Status: 自治任务状态:支持 RUNNING,FINISHED,TERMINATED,CANCELLED
|
1991
|
+
# @type Status: String
|
1992
|
+
# @param Info: 任务相关的图表等信息。
|
1993
|
+
# @type Info: String
|
1994
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1995
|
+
# @type RequestId: String
|
1996
|
+
|
1997
|
+
attr_accessor :ActionId, :EventId, :TaskId, :Type, :TriggerTime, :CreateTime, :UpdateTime, :FinishTime, :ExpireTime, :Reason, :Status, :Info, :RequestId
|
1998
|
+
|
1999
|
+
def initialize(actionid=nil, eventid=nil, taskid=nil, type=nil, triggertime=nil, createtime=nil, updatetime=nil, finishtime=nil, expiretime=nil, reason=nil, status=nil, info=nil, requestid=nil)
|
2000
|
+
@ActionId = actionid
|
2001
|
+
@EventId = eventid
|
2002
|
+
@TaskId = taskid
|
2003
|
+
@Type = type
|
2004
|
+
@TriggerTime = triggertime
|
2005
|
+
@CreateTime = createtime
|
2006
|
+
@UpdateTime = updatetime
|
2007
|
+
@FinishTime = finishtime
|
2008
|
+
@ExpireTime = expiretime
|
2009
|
+
@Reason = reason
|
2010
|
+
@Status = status
|
2011
|
+
@Info = info
|
2012
|
+
@RequestId = requestid
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
def deserialize(params)
|
2016
|
+
@ActionId = params['ActionId']
|
2017
|
+
@EventId = params['EventId']
|
2018
|
+
@TaskId = params['TaskId']
|
2019
|
+
@Type = params['Type']
|
2020
|
+
@TriggerTime = params['TriggerTime']
|
2021
|
+
@CreateTime = params['CreateTime']
|
2022
|
+
@UpdateTime = params['UpdateTime']
|
2023
|
+
@FinishTime = params['FinishTime']
|
2024
|
+
@ExpireTime = params['ExpireTime']
|
2025
|
+
@Reason = params['Reason']
|
2026
|
+
@Status = params['Status']
|
2027
|
+
@Info = params['Info']
|
2028
|
+
@RequestId = params['RequestId']
|
2029
|
+
end
|
2030
|
+
end
|
2031
|
+
|
1904
2032
|
# DescribeDBAutonomyActions请求参数结构体
|
1905
2033
|
class DescribeDBAutonomyActionsRequest < TencentCloud::Common::AbstractModel
|
1906
2034
|
# @param EventId: 事件ID。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dbbrain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1059
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|