tencentcloud-sdk-dcdb 3.0.938 → 3.0.940
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/v20180411/client.rb +24 -0
- data/lib/v20180411/models.rb +76 -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: 046417cfa0a5fea32ee796895d8d208c56b03090
|
4
|
+
data.tar.gz: 240a27268d646f5aca300b1898b7b052b1d5f480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 731af2ed661040567ea7a8324fa4dcd7e785712073e1e62dd1544e7eb541755cd0972afdae0d5caf7e0182cfdc06aa8be3694824d43d165a73dedb6aa34292af
|
7
|
+
data.tar.gz: 87e31fa52120829fb312dca7ff49bc839a01b7501a2feecae61f0b829cced03a54256dcff325b18f211b64b7ab8f34a48026eefcb4eaaf52d79cfe000d210dfa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.940
|
data/lib/v20180411/client.rb
CHANGED
@@ -270,6 +270,30 @@ module TencentCloud
|
|
270
270
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
271
|
end
|
272
272
|
|
273
|
+
# 创建在线DDL任务
|
274
|
+
|
275
|
+
# @param request: Request instance for CreateOnlineDDLJob.
|
276
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::CreateOnlineDDLJobRequest`
|
277
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::CreateOnlineDDLJobResponse`
|
278
|
+
def CreateOnlineDDLJob(request)
|
279
|
+
body = send_request('CreateOnlineDDLJob', request.serialize)
|
280
|
+
response = JSON.parse(body)
|
281
|
+
if response['Response'].key?('Error') == false
|
282
|
+
model = CreateOnlineDDLJobResponse.new
|
283
|
+
model.deserialize(response['Response'])
|
284
|
+
model
|
285
|
+
else
|
286
|
+
code = response['Response']['Error']['Code']
|
287
|
+
message = response['Response']['Error']['Message']
|
288
|
+
reqid = response['Response']['RequestId']
|
289
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
290
|
+
end
|
291
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
292
|
+
raise e
|
293
|
+
rescue StandardError => e
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
295
|
+
end
|
296
|
+
|
273
297
|
# 回档TDSQL实例
|
274
298
|
|
275
299
|
# @param request: Request instance for CreateTmpDCDBInstance.
|
data/lib/v20180411/models.rb
CHANGED
@@ -1020,6 +1020,82 @@ module TencentCloud
|
|
1020
1020
|
end
|
1021
1021
|
end
|
1022
1022
|
|
1023
|
+
# CreateOnlineDDLJob请求参数结构体
|
1024
|
+
class CreateOnlineDDLJobRequest < TencentCloud::Common::AbstractModel
|
1025
|
+
# @param InstanceId: 实例Id
|
1026
|
+
# @type InstanceId: String
|
1027
|
+
# @param Alter: 要执行的 DDL 语句。常用的在线DDL参考此API文档示例部分
|
1028
|
+
# @type Alter: String
|
1029
|
+
# @param DbName: 要修改的数据库
|
1030
|
+
# @type DbName: String
|
1031
|
+
# @param Table: 要修改的表
|
1032
|
+
# @type Table: String
|
1033
|
+
# @param User: 指定账号执行DDL,需确保账号有 ALTER, CREATE, INSERT, UPDATE, DROP, DELETE, INDEX, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, REPLICATION CLIENT, REPLICATION SLAVE 等相关权限 (若不填写将默认使用系统账号)
|
1034
|
+
# @type User: String
|
1035
|
+
# @param Password: 指定账号的密码
|
1036
|
+
# @type Password: String
|
1037
|
+
# @param CriticalLoad: 运行线程数大于此值时,将终止DDL。不填则默认58
|
1038
|
+
# @type CriticalLoad: Integer
|
1039
|
+
# @param CheckAutoInc: 是否检查自增字段。为1则不允许修改自增字段,0或不填写则不检查
|
1040
|
+
# @type CheckAutoInc: Integer
|
1041
|
+
# @param MaxDelay: 允许的主备延迟时间(单位s),0或不填写则不检查延迟
|
1042
|
+
# @type MaxDelay: Integer
|
1043
|
+
# @param UsePt: 是否使用pt-osc工具做DDL
|
1044
|
+
# @type UsePt: Integer
|
1045
|
+
# @param StartTime: 开始执行时间
|
1046
|
+
# @type StartTime: String
|
1047
|
+
|
1048
|
+
attr_accessor :InstanceId, :Alter, :DbName, :Table, :User, :Password, :CriticalLoad, :CheckAutoInc, :MaxDelay, :UsePt, :StartTime
|
1049
|
+
|
1050
|
+
def initialize(instanceid=nil, alter=nil, dbname=nil, table=nil, user=nil, password=nil, criticalload=nil, checkautoinc=nil, maxdelay=nil, usept=nil, starttime=nil)
|
1051
|
+
@InstanceId = instanceid
|
1052
|
+
@Alter = alter
|
1053
|
+
@DbName = dbname
|
1054
|
+
@Table = table
|
1055
|
+
@User = user
|
1056
|
+
@Password = password
|
1057
|
+
@CriticalLoad = criticalload
|
1058
|
+
@CheckAutoInc = checkautoinc
|
1059
|
+
@MaxDelay = maxdelay
|
1060
|
+
@UsePt = usept
|
1061
|
+
@StartTime = starttime
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
def deserialize(params)
|
1065
|
+
@InstanceId = params['InstanceId']
|
1066
|
+
@Alter = params['Alter']
|
1067
|
+
@DbName = params['DbName']
|
1068
|
+
@Table = params['Table']
|
1069
|
+
@User = params['User']
|
1070
|
+
@Password = params['Password']
|
1071
|
+
@CriticalLoad = params['CriticalLoad']
|
1072
|
+
@CheckAutoInc = params['CheckAutoInc']
|
1073
|
+
@MaxDelay = params['MaxDelay']
|
1074
|
+
@UsePt = params['UsePt']
|
1075
|
+
@StartTime = params['StartTime']
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# CreateOnlineDDLJob返回参数结构体
|
1080
|
+
class CreateOnlineDDLJobResponse < TencentCloud::Common::AbstractModel
|
1081
|
+
# @param FlowId: 在线DDL任务Id
|
1082
|
+
# @type FlowId: Integer
|
1083
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1084
|
+
# @type RequestId: String
|
1085
|
+
|
1086
|
+
attr_accessor :FlowId, :RequestId
|
1087
|
+
|
1088
|
+
def initialize(flowid=nil, requestid=nil)
|
1089
|
+
@FlowId = flowid
|
1090
|
+
@RequestId = requestid
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def deserialize(params)
|
1094
|
+
@FlowId = params['FlowId']
|
1095
|
+
@RequestId = params['RequestId']
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1023
1099
|
# CreateTmpDCDBInstance请求参数结构体
|
1024
1100
|
class CreateTmpDCDBInstanceRequest < TencentCloud::Common::AbstractModel
|
1025
1101
|
# @param InstanceId: 回档实例的ID
|
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.940
|
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-11-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|