tencentcloud-sdk-dcdb 3.0.938 → 3.0.939

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f6498c647c60d199283120f0cfa2ae11b1e36da
4
- data.tar.gz: 33162ee1204132b95e6dc4443b98af4ba0290d41
3
+ metadata.gz: a7144f8d2f75b0ef781169e4f1352369b10e71bc
4
+ data.tar.gz: fff0fb2f3b69fe1380c24ccdbf50e044d3bfd60c
5
5
  SHA512:
6
- metadata.gz: d89d09a103c06e7f53ce3c8aabc01599e0c70de2b2711da8a714f97ed2f313be053402ea0042196b5439a8e44419ad99519a2b1be06ab36db0213ccf2a238f8d
7
- data.tar.gz: f21ba985eb200fe3d89f801da0b25032f34e17bcad588169f56db99d1a0327fbdb5fc53f8589a3ac13f4fa56ea9f8511092e156eea2003439ebb146efe1c6170
6
+ metadata.gz: d3015463236805f5da3192fa10bfdb2e4fcf6d353edbe8f3f3982ffdefa802a4642f9b984ca71dd974c7e3d5f3befe302b7298b3eeb484e11e554561ca851b6f
7
+ data.tar.gz: fd2b674e06a8366fdbbffc974729ef6e618539482ab7a063b0a8d2f4fd2a8cd2556a33d77e97b6aea29d5243aacecd28413e87e2690e6217d86962fe20abc77b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.938
1
+ 3.0.939
@@ -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.
@@ -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.938
4
+ version: 3.0.939
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-07 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common