tencentcloud-sdk-dcdb 3.0.1001 → 3.0.1002
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/v20180411/client.rb +48 -0
- data/lib/v20180411/models.rb +143 -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: cd65d3dabba886004d9b22a1c869d6c4cd000335
|
|
4
|
+
data.tar.gz: f3b3f085e7e4bf0cd95f5b9cdf91078f0c9080ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd0fe500e2e67166cba5cd235debe65a63cd3cbbff63641da55798365d18537894673f778b1ddb6486fec8606b70bb27724cbfaf3c9554f6c71f126f0bf7e07e
|
|
7
|
+
data.tar.gz: 0392124f8f15f0989c4ac07449c6b79158af745f7907fbbac609c5b34011bfc8f5d76cf283d4ba6aa4b1a1791feabb68275a7000870c1cc11d4fbf45509ef92f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1002
|
data/lib/v20180411/client.rb
CHANGED
|
@@ -101,6 +101,30 @@ module TencentCloud
|
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# 取消 Online DDL 任务
|
|
105
|
+
|
|
106
|
+
# @param request: Request instance for CancelOnlineDDLJob.
|
|
107
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::CancelOnlineDDLJobRequest`
|
|
108
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::CancelOnlineDDLJobResponse`
|
|
109
|
+
def CancelOnlineDDLJob(request)
|
|
110
|
+
body = send_request('CancelOnlineDDLJob', request.serialize)
|
|
111
|
+
response = JSON.parse(body)
|
|
112
|
+
if response['Response'].key?('Error') == false
|
|
113
|
+
model = CancelOnlineDDLJobResponse.new
|
|
114
|
+
model.deserialize(response['Response'])
|
|
115
|
+
model
|
|
116
|
+
else
|
|
117
|
+
code = response['Response']['Error']['Code']
|
|
118
|
+
message = response['Response']['Error']['Message']
|
|
119
|
+
reqid = response['Response']['RequestId']
|
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
121
|
+
end
|
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
123
|
+
raise e
|
|
124
|
+
rescue StandardError => e
|
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
126
|
+
end
|
|
127
|
+
|
|
104
128
|
# 本接口(CloneAccount)用于克隆实例账户。
|
|
105
129
|
|
|
106
130
|
# @param request: Request instance for CloneAccount.
|
|
@@ -992,6 +1016,30 @@ module TencentCloud
|
|
|
992
1016
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
993
1017
|
end
|
|
994
1018
|
|
|
1019
|
+
# 查询Online DDL 任务详情
|
|
1020
|
+
|
|
1021
|
+
# @param request: Request instance for DescribeOnlineDDLJob.
|
|
1022
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeOnlineDDLJobRequest`
|
|
1023
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeOnlineDDLJobResponse`
|
|
1024
|
+
def DescribeOnlineDDLJob(request)
|
|
1025
|
+
body = send_request('DescribeOnlineDDLJob', request.serialize)
|
|
1026
|
+
response = JSON.parse(body)
|
|
1027
|
+
if response['Response'].key?('Error') == false
|
|
1028
|
+
model = DescribeOnlineDDLJobResponse.new
|
|
1029
|
+
model.deserialize(response['Response'])
|
|
1030
|
+
model
|
|
1031
|
+
else
|
|
1032
|
+
code = response['Response']['Error']['Code']
|
|
1033
|
+
message = response['Response']['Error']['Message']
|
|
1034
|
+
reqid = response['Response']['RequestId']
|
|
1035
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1036
|
+
end
|
|
1037
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1038
|
+
raise e
|
|
1039
|
+
rescue StandardError => e
|
|
1040
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1041
|
+
end
|
|
1042
|
+
|
|
995
1043
|
# 本接口(DescribeOrders)用于查询分布式数据库订单信息。传入订单ID来查询订单关联的分布式数据库实例,和对应的任务流程ID。
|
|
996
1044
|
|
|
997
1045
|
# @param request: Request instance for DescribeOrders.
|
data/lib/v20180411/models.rb
CHANGED
|
@@ -250,6 +250,42 @@ module TencentCloud
|
|
|
250
250
|
end
|
|
251
251
|
end
|
|
252
252
|
|
|
253
|
+
# CancelOnlineDDLJob请求参数结构体
|
|
254
|
+
class CancelOnlineDDLJobRequest < TencentCloud::Common::AbstractModel
|
|
255
|
+
# @param InstanceId: 实例Id
|
|
256
|
+
# @type InstanceId: String
|
|
257
|
+
# @param FlowId: 要暂停的 Online DDL 任务对应的流程Id。创建任务时,CreateOnlineDDLJob 会返回此流程Id
|
|
258
|
+
# @type FlowId: Integer
|
|
259
|
+
|
|
260
|
+
attr_accessor :InstanceId, :FlowId
|
|
261
|
+
|
|
262
|
+
def initialize(instanceid=nil, flowid=nil)
|
|
263
|
+
@InstanceId = instanceid
|
|
264
|
+
@FlowId = flowid
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
def deserialize(params)
|
|
268
|
+
@InstanceId = params['InstanceId']
|
|
269
|
+
@FlowId = params['FlowId']
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# CancelOnlineDDLJob返回参数结构体
|
|
274
|
+
class CancelOnlineDDLJobResponse < TencentCloud::Common::AbstractModel
|
|
275
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
276
|
+
# @type RequestId: String
|
|
277
|
+
|
|
278
|
+
attr_accessor :RequestId
|
|
279
|
+
|
|
280
|
+
def initialize(requestid=nil)
|
|
281
|
+
@RequestId = requestid
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
def deserialize(params)
|
|
285
|
+
@RequestId = params['RequestId']
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
253
289
|
# CloneAccount请求参数结构体
|
|
254
290
|
class CloneAccountRequest < TencentCloud::Common::AbstractModel
|
|
255
291
|
# @param InstanceId: 实例ID
|
|
@@ -1558,6 +1594,54 @@ module TencentCloud
|
|
|
1558
1594
|
end
|
|
1559
1595
|
end
|
|
1560
1596
|
|
|
1597
|
+
# DDL任务执行详情
|
|
1598
|
+
class DDLDetail < TencentCloud::Common::AbstractModel
|
|
1599
|
+
# @param ShardSerialId: 分片Id
|
|
1600
|
+
# @type ShardSerialId: String
|
|
1601
|
+
# @param DbName: 数据库
|
|
1602
|
+
# @type DbName: String
|
|
1603
|
+
# @param Table: 表
|
|
1604
|
+
# @type Table: String
|
|
1605
|
+
# @param Alter: 执行的DDL任务内容
|
|
1606
|
+
# @type Alter: String
|
|
1607
|
+
# @param BeginTime: 开始执行时间
|
|
1608
|
+
# @type BeginTime: String
|
|
1609
|
+
# @param Status: 当前任务状态。0 成功; 1失败; 2进行中
|
|
1610
|
+
# @type Status: Integer
|
|
1611
|
+
# @param Desc: 任务详细描述信息
|
|
1612
|
+
# @type Desc: String
|
|
1613
|
+
# @param Stage: 任务当前所处阶段
|
|
1614
|
+
# @type Stage: String
|
|
1615
|
+
# @param SwitchStatus: 切换状态:1: 未到切换阶段;2:正在等待进行表切换;3: 正在进行切换;4: 切换成功;5: 切换失败
|
|
1616
|
+
# @type SwitchStatus: Integer
|
|
1617
|
+
|
|
1618
|
+
attr_accessor :ShardSerialId, :DbName, :Table, :Alter, :BeginTime, :Status, :Desc, :Stage, :SwitchStatus
|
|
1619
|
+
|
|
1620
|
+
def initialize(shardserialid=nil, dbname=nil, table=nil, alter=nil, begintime=nil, status=nil, desc=nil, stage=nil, switchstatus=nil)
|
|
1621
|
+
@ShardSerialId = shardserialid
|
|
1622
|
+
@DbName = dbname
|
|
1623
|
+
@Table = table
|
|
1624
|
+
@Alter = alter
|
|
1625
|
+
@BeginTime = begintime
|
|
1626
|
+
@Status = status
|
|
1627
|
+
@Desc = desc
|
|
1628
|
+
@Stage = stage
|
|
1629
|
+
@SwitchStatus = switchstatus
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
def deserialize(params)
|
|
1633
|
+
@ShardSerialId = params['ShardSerialId']
|
|
1634
|
+
@DbName = params['DbName']
|
|
1635
|
+
@Table = params['Table']
|
|
1636
|
+
@Alter = params['Alter']
|
|
1637
|
+
@BeginTime = params['BeginTime']
|
|
1638
|
+
@Status = params['Status']
|
|
1639
|
+
@Desc = params['Desc']
|
|
1640
|
+
@Stage = params['Stage']
|
|
1641
|
+
@SwitchStatus = params['SwitchStatus']
|
|
1642
|
+
end
|
|
1643
|
+
end
|
|
1644
|
+
|
|
1561
1645
|
# 数据库信息
|
|
1562
1646
|
class Database < TencentCloud::Common::AbstractModel
|
|
1563
1647
|
# @param DbName: 数据库名称
|
|
@@ -3725,6 +3809,65 @@ module TencentCloud
|
|
|
3725
3809
|
end
|
|
3726
3810
|
end
|
|
3727
3811
|
|
|
3812
|
+
# DescribeOnlineDDLJob请求参数结构体
|
|
3813
|
+
class DescribeOnlineDDLJobRequest < TencentCloud::Common::AbstractModel
|
|
3814
|
+
# @param InstanceId: 实例Id
|
|
3815
|
+
# @type InstanceId: String
|
|
3816
|
+
# @param FlowId: Online DDL 对应的流程Id。创建任务时,CreateOnlineDDLJob 会返回此流程Id
|
|
3817
|
+
# @type FlowId: Integer
|
|
3818
|
+
|
|
3819
|
+
attr_accessor :InstanceId, :FlowId
|
|
3820
|
+
|
|
3821
|
+
def initialize(instanceid=nil, flowid=nil)
|
|
3822
|
+
@InstanceId = instanceid
|
|
3823
|
+
@FlowId = flowid
|
|
3824
|
+
end
|
|
3825
|
+
|
|
3826
|
+
def deserialize(params)
|
|
3827
|
+
@InstanceId = params['InstanceId']
|
|
3828
|
+
@FlowId = params['FlowId']
|
|
3829
|
+
end
|
|
3830
|
+
end
|
|
3831
|
+
|
|
3832
|
+
# DescribeOnlineDDLJob返回参数结构体
|
|
3833
|
+
class DescribeOnlineDDLJobResponse < TencentCloud::Common::AbstractModel
|
|
3834
|
+
# @param Status: 任务状态。0:成功;1:失败;大于1:进行中
|
|
3835
|
+
# @type Status: Integer
|
|
3836
|
+
# @param Process: 任务进度百分比
|
|
3837
|
+
# @type Process: Integer
|
|
3838
|
+
# @param ErrorMessage: 错误信息或提示信息
|
|
3839
|
+
# @type ErrorMessage: String
|
|
3840
|
+
# @param DDLDetails: 各分片DDL执行详情
|
|
3841
|
+
# @type DDLDetails: Array
|
|
3842
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3843
|
+
# @type RequestId: String
|
|
3844
|
+
|
|
3845
|
+
attr_accessor :Status, :Process, :ErrorMessage, :DDLDetails, :RequestId
|
|
3846
|
+
|
|
3847
|
+
def initialize(status=nil, process=nil, errormessage=nil, ddldetails=nil, requestid=nil)
|
|
3848
|
+
@Status = status
|
|
3849
|
+
@Process = process
|
|
3850
|
+
@ErrorMessage = errormessage
|
|
3851
|
+
@DDLDetails = ddldetails
|
|
3852
|
+
@RequestId = requestid
|
|
3853
|
+
end
|
|
3854
|
+
|
|
3855
|
+
def deserialize(params)
|
|
3856
|
+
@Status = params['Status']
|
|
3857
|
+
@Process = params['Process']
|
|
3858
|
+
@ErrorMessage = params['ErrorMessage']
|
|
3859
|
+
unless params['DDLDetails'].nil?
|
|
3860
|
+
@DDLDetails = []
|
|
3861
|
+
params['DDLDetails'].each do |i|
|
|
3862
|
+
ddldetail_tmp = DDLDetail.new
|
|
3863
|
+
ddldetail_tmp.deserialize(i)
|
|
3864
|
+
@DDLDetails << ddldetail_tmp
|
|
3865
|
+
end
|
|
3866
|
+
end
|
|
3867
|
+
@RequestId = params['RequestId']
|
|
3868
|
+
end
|
|
3869
|
+
end
|
|
3870
|
+
|
|
3728
3871
|
# DescribeOrders请求参数结构体
|
|
3729
3872
|
class DescribeOrdersRequest < TencentCloud::Common::AbstractModel
|
|
3730
3873
|
# @param DealNames: 待查询的长订单号列表,创建实例、续费实例、扩容实例接口返回。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-dcdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1002
|
|
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-02-
|
|
11
|
+
date: 2025-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|