tencentcloud-sdk-dts 3.0.439 → 3.0.440
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/tencentcloud-sdk-dts.rb +3 -0
- data/lib/v20211206/client.rb +907 -0
- data/lib/v20211206/models.rb +4242 -0
- metadata +4 -2
@@ -0,0 +1,4242 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Dts
|
19
|
+
module V20211206
|
20
|
+
# 检查步骤
|
21
|
+
class CheckStep < TencentCloud::Common::AbstractModel
|
22
|
+
# @param StepNo: 步骤编号
|
23
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
+
# @type StepNo: Integer
|
25
|
+
# @param StepId: 步骤Id, 如:ConnectDBCheck、VersionCheck、SrcPrivilegeCheck等,具体校验项和源目标实例相关
|
26
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
+
# @type StepId: String
|
28
|
+
# @param StepName: 步骤名称
|
29
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
30
|
+
# @type StepName: String
|
31
|
+
# @param StepStatus: 此检查步骤的结果,pass(校验通过)、failed(校验失败)、notStarted(校验还未开始进行)、blocked(检验阻塞)、warning(校验有告警,但仍通过)
|
32
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
33
|
+
# @type StepStatus: String
|
34
|
+
# @param StepMessage: 此检查步骤的错误消息
|
35
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
|
+
# @type StepMessage: String
|
37
|
+
# @param DetailCheckItems: 每个检查步骤里的具体检查项
|
38
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
39
|
+
# @type DetailCheckItems: Array
|
40
|
+
# @param HasSkipped: 是否已跳过
|
41
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
42
|
+
# @type HasSkipped: Boolean
|
43
|
+
|
44
|
+
attr_accessor :StepNo, :StepId, :StepName, :StepStatus, :StepMessage, :DetailCheckItems, :HasSkipped
|
45
|
+
|
46
|
+
def initialize(stepno=nil, stepid=nil, stepname=nil, stepstatus=nil, stepmessage=nil, detailcheckitems=nil, hasskipped=nil)
|
47
|
+
@StepNo = stepno
|
48
|
+
@StepId = stepid
|
49
|
+
@StepName = stepname
|
50
|
+
@StepStatus = stepstatus
|
51
|
+
@StepMessage = stepmessage
|
52
|
+
@DetailCheckItems = detailcheckitems
|
53
|
+
@HasSkipped = hasskipped
|
54
|
+
end
|
55
|
+
|
56
|
+
def deserialize(params)
|
57
|
+
@StepNo = params['StepNo']
|
58
|
+
@StepId = params['StepId']
|
59
|
+
@StepName = params['StepName']
|
60
|
+
@StepStatus = params['StepStatus']
|
61
|
+
@StepMessage = params['StepMessage']
|
62
|
+
unless params['DetailCheckItems'].nil?
|
63
|
+
@DetailCheckItems = []
|
64
|
+
params['DetailCheckItems'].each do |i|
|
65
|
+
detailcheckitem_tmp = DetailCheckItem.new
|
66
|
+
detailcheckitem_tmp.deserialize(i)
|
67
|
+
@DetailCheckItems << detailcheckitem_tmp
|
68
|
+
end
|
69
|
+
end
|
70
|
+
@HasSkipped = params['HasSkipped']
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# 校验任务运行详情
|
75
|
+
class CheckStepInfo < TencentCloud::Common::AbstractModel
|
76
|
+
# @param StartAt: 任务开始时间
|
77
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
78
|
+
# @type StartAt: String
|
79
|
+
# @param EndAt: 任务结束时间
|
80
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
81
|
+
# @type EndAt: String
|
82
|
+
# @param Progress: 任务步骤信息
|
83
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
84
|
+
# @type Progress: :class:`Tencentcloud::Dts.v20211206.models.ProcessProgress`
|
85
|
+
|
86
|
+
attr_accessor :StartAt, :EndAt, :Progress
|
87
|
+
|
88
|
+
def initialize(startat=nil, endat=nil, progress=nil)
|
89
|
+
@StartAt = startat
|
90
|
+
@EndAt = endat
|
91
|
+
@Progress = progress
|
92
|
+
end
|
93
|
+
|
94
|
+
def deserialize(params)
|
95
|
+
@StartAt = params['StartAt']
|
96
|
+
@EndAt = params['EndAt']
|
97
|
+
unless params['Progress'].nil?
|
98
|
+
@Progress = ProcessProgress.new
|
99
|
+
@Progress.deserialize(params['Progress'])
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# 一致性校验摘要信息
|
105
|
+
class CompareAbstractInfo < TencentCloud::Common::AbstractModel
|
106
|
+
# @param Conclusion: 对比结论: same,different
|
107
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
108
|
+
# @type Conclusion: String
|
109
|
+
# @param Status: 任务状态: success,failed
|
110
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
111
|
+
# @type Status: String
|
112
|
+
# @param TotalTables: 总的表数量
|
113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
114
|
+
# @type TotalTables: Integer
|
115
|
+
# @param CheckedTables: 已校验的表数量
|
116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
117
|
+
# @type CheckedTables: Integer
|
118
|
+
# @param DifferentTables: 不一致的表数量
|
119
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
120
|
+
# @type DifferentTables: Integer
|
121
|
+
# @param SkippedTables: 跳过校验的表数量
|
122
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
123
|
+
# @type SkippedTables: Integer
|
124
|
+
# @param DifferentRows: 不一致的数据行数量
|
125
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
126
|
+
# @type DifferentRows: Integer
|
127
|
+
|
128
|
+
attr_accessor :Conclusion, :Status, :TotalTables, :CheckedTables, :DifferentTables, :SkippedTables, :DifferentRows
|
129
|
+
|
130
|
+
def initialize(conclusion=nil, status=nil, totaltables=nil, checkedtables=nil, differenttables=nil, skippedtables=nil, differentrows=nil)
|
131
|
+
@Conclusion = conclusion
|
132
|
+
@Status = status
|
133
|
+
@TotalTables = totaltables
|
134
|
+
@CheckedTables = checkedtables
|
135
|
+
@DifferentTables = differenttables
|
136
|
+
@SkippedTables = skippedtables
|
137
|
+
@DifferentRows = differentrows
|
138
|
+
end
|
139
|
+
|
140
|
+
def deserialize(params)
|
141
|
+
@Conclusion = params['Conclusion']
|
142
|
+
@Status = params['Status']
|
143
|
+
@TotalTables = params['TotalTables']
|
144
|
+
@CheckedTables = params['CheckedTables']
|
145
|
+
@DifferentTables = params['DifferentTables']
|
146
|
+
@SkippedTables = params['SkippedTables']
|
147
|
+
@DifferentRows = params['DifferentRows']
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# 一致性校验详细信息
|
152
|
+
class CompareDetailInfo < TencentCloud::Common::AbstractModel
|
153
|
+
# @param Difference: 数据不一致的表详情
|
154
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
155
|
+
# @type Difference: :class:`Tencentcloud::Dts.v20211206.models.DifferenceDetail`
|
156
|
+
# @param Skipped: 跳过校验的表详情
|
157
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
158
|
+
# @type Skipped: :class:`Tencentcloud::Dts.v20211206.models.SkippedDetail`
|
159
|
+
|
160
|
+
attr_accessor :Difference, :Skipped
|
161
|
+
|
162
|
+
def initialize(difference=nil, skipped=nil)
|
163
|
+
@Difference = difference
|
164
|
+
@Skipped = skipped
|
165
|
+
end
|
166
|
+
|
167
|
+
def deserialize(params)
|
168
|
+
unless params['Difference'].nil?
|
169
|
+
@Difference = DifferenceDetail.new
|
170
|
+
@Difference.deserialize(params['Difference'])
|
171
|
+
end
|
172
|
+
unless params['Skipped'].nil?
|
173
|
+
@Skipped = SkippedDetail.new
|
174
|
+
@Skipped.deserialize(params['Skipped'])
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# 一致性对比对象配置
|
180
|
+
class CompareObject < TencentCloud::Common::AbstractModel
|
181
|
+
# @param ObjectMode: 迁移对象模式 all(所有迁移对象),partial(部分对象迁移)
|
182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
183
|
+
# @type ObjectMode: String
|
184
|
+
# @param ObjectItems: 迁移对象库表配置
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type ObjectItems: Array
|
187
|
+
|
188
|
+
attr_accessor :ObjectMode, :ObjectItems
|
189
|
+
|
190
|
+
def initialize(objectmode=nil, objectitems=nil)
|
191
|
+
@ObjectMode = objectmode
|
192
|
+
@ObjectItems = objectitems
|
193
|
+
end
|
194
|
+
|
195
|
+
def deserialize(params)
|
196
|
+
@ObjectMode = params['ObjectMode']
|
197
|
+
unless params['ObjectItems'].nil?
|
198
|
+
@ObjectItems = []
|
199
|
+
params['ObjectItems'].each do |i|
|
200
|
+
compareobjectitem_tmp = CompareObjectItem.new
|
201
|
+
compareobjectitem_tmp.deserialize(i)
|
202
|
+
@ObjectItems << compareobjectitem_tmp
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# 一致性校验库表对象
|
209
|
+
class CompareObjectItem < TencentCloud::Common::AbstractModel
|
210
|
+
# @param DbName: 迁移的库
|
211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
212
|
+
# @type DbName: String
|
213
|
+
# @param DbMode: 数据库选择模式: all 为当前对象下的所有对象,partial 为部分对象
|
214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
215
|
+
# @type DbMode: String
|
216
|
+
# @param SchemaName: 迁移的 schema
|
217
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
218
|
+
# @type SchemaName: String
|
219
|
+
# @param TableMode: 表选择模式: all 为当前对象下的所有表对象,partial 为部分表对象
|
220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
221
|
+
# @type TableMode: String
|
222
|
+
# @param Tables: 用于一致性校验的表配置,当 TableMode 为 partial 时,需要填写
|
223
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
224
|
+
# @type Tables: Array
|
225
|
+
# @param ViewMode: 视图选择模式: all 为当前对象下的所有视图对象,partial 为部分视图对象
|
226
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
227
|
+
# @type ViewMode: String
|
228
|
+
# @param Views: 用于一致性校验的视图配置,当 ViewMode 为 partial 时, 需要填写
|
229
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
230
|
+
# @type Views: Array
|
231
|
+
|
232
|
+
attr_accessor :DbName, :DbMode, :SchemaName, :TableMode, :Tables, :ViewMode, :Views
|
233
|
+
|
234
|
+
def initialize(dbname=nil, dbmode=nil, schemaname=nil, tablemode=nil, tables=nil, viewmode=nil, views=nil)
|
235
|
+
@DbName = dbname
|
236
|
+
@DbMode = dbmode
|
237
|
+
@SchemaName = schemaname
|
238
|
+
@TableMode = tablemode
|
239
|
+
@Tables = tables
|
240
|
+
@ViewMode = viewmode
|
241
|
+
@Views = views
|
242
|
+
end
|
243
|
+
|
244
|
+
def deserialize(params)
|
245
|
+
@DbName = params['DbName']
|
246
|
+
@DbMode = params['DbMode']
|
247
|
+
@SchemaName = params['SchemaName']
|
248
|
+
@TableMode = params['TableMode']
|
249
|
+
unless params['Tables'].nil?
|
250
|
+
@Tables = []
|
251
|
+
params['Tables'].each do |i|
|
252
|
+
comparetableitem_tmp = CompareTableItem.new
|
253
|
+
comparetableitem_tmp.deserialize(i)
|
254
|
+
@Tables << comparetableitem_tmp
|
255
|
+
end
|
256
|
+
end
|
257
|
+
@ViewMode = params['ViewMode']
|
258
|
+
unless params['Views'].nil?
|
259
|
+
@Views = []
|
260
|
+
params['Views'].each do |i|
|
261
|
+
compareviewitem_tmp = CompareViewItem.new
|
262
|
+
compareviewitem_tmp.deserialize(i)
|
263
|
+
@Views << compareviewitem_tmp
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# 用于一致性校验的表配置
|
270
|
+
class CompareTableItem < TencentCloud::Common::AbstractModel
|
271
|
+
# @param TableName: 表名称
|
272
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
273
|
+
# @type TableName: String
|
274
|
+
|
275
|
+
attr_accessor :TableName
|
276
|
+
|
277
|
+
def initialize(tablename=nil)
|
278
|
+
@TableName = tablename
|
279
|
+
end
|
280
|
+
|
281
|
+
def deserialize(params)
|
282
|
+
@TableName = params['TableName']
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# 数据一致性校验结果
|
287
|
+
class CompareTaskInfo < TencentCloud::Common::AbstractModel
|
288
|
+
# @param CompareTaskId: 一致性校验任务Id
|
289
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
290
|
+
# @type CompareTaskId: String
|
291
|
+
# @param Status: 一致性校验结果,包括:unstart(未启动)、running(校验中)、canceled(已终止)、failed(校验任务失败)、inconsistent(不一致)、consistent(一致)、notexist(不存在校验任务)
|
292
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
293
|
+
# @type Status: String
|
294
|
+
|
295
|
+
attr_accessor :CompareTaskId, :Status
|
296
|
+
|
297
|
+
def initialize(comparetaskid=nil, status=nil)
|
298
|
+
@CompareTaskId = comparetaskid
|
299
|
+
@Status = status
|
300
|
+
end
|
301
|
+
|
302
|
+
def deserialize(params)
|
303
|
+
@CompareTaskId = params['CompareTaskId']
|
304
|
+
@Status = params['Status']
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# 一致性校验对象信息
|
309
|
+
class CompareTaskItem < TencentCloud::Common::AbstractModel
|
310
|
+
# @param JobId: 迁移任务id
|
311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
312
|
+
# @type JobId: String
|
313
|
+
# @param CompareTaskId: 对比任务 Id
|
314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
315
|
+
# @type CompareTaskId: String
|
316
|
+
# @param TaskName: 对比任务名称
|
317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
318
|
+
# @type TaskName: String
|
319
|
+
# @param Status: 对比任务状态, 可能的值:created - 创建完成;readyRun - 等待运行;running - 运行中;success - 成功;stopping - 结束中;failed - 失败;canceled - 已终止
|
320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
321
|
+
# @type Status: String
|
322
|
+
# @param Config: 对比任务配置
|
323
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
324
|
+
# @type Config: :class:`Tencentcloud::Dts.v20211206.models.CompareObject`
|
325
|
+
# @param CheckProcess: 对比任务校验详情
|
326
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
327
|
+
# @type CheckProcess: :class:`Tencentcloud::Dts.v20211206.models.ProcessProgress`
|
328
|
+
# @param CompareProcess: 对比任务运行详情
|
329
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
330
|
+
# @type CompareProcess: :class:`Tencentcloud::Dts.v20211206.models.ProcessProgress`
|
331
|
+
# @param Conclusion: 对比结果, 可能的值:same - 一致;different - 不一致;skipAll - 跳过
|
332
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
333
|
+
# @type Conclusion: String
|
334
|
+
# @param CreatedAt: 任务创建时间
|
335
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
336
|
+
# @type CreatedAt: String
|
337
|
+
# @param StartedAt: 任务启动时间
|
338
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
339
|
+
# @type StartedAt: String
|
340
|
+
# @param FinishedAt: 对比结束时间
|
341
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
342
|
+
# @type FinishedAt: String
|
343
|
+
|
344
|
+
attr_accessor :JobId, :CompareTaskId, :TaskName, :Status, :Config, :CheckProcess, :CompareProcess, :Conclusion, :CreatedAt, :StartedAt, :FinishedAt
|
345
|
+
|
346
|
+
def initialize(jobid=nil, comparetaskid=nil, taskname=nil, status=nil, config=nil, checkprocess=nil, compareprocess=nil, conclusion=nil, createdat=nil, startedat=nil, finishedat=nil)
|
347
|
+
@JobId = jobid
|
348
|
+
@CompareTaskId = comparetaskid
|
349
|
+
@TaskName = taskname
|
350
|
+
@Status = status
|
351
|
+
@Config = config
|
352
|
+
@CheckProcess = checkprocess
|
353
|
+
@CompareProcess = compareprocess
|
354
|
+
@Conclusion = conclusion
|
355
|
+
@CreatedAt = createdat
|
356
|
+
@StartedAt = startedat
|
357
|
+
@FinishedAt = finishedat
|
358
|
+
end
|
359
|
+
|
360
|
+
def deserialize(params)
|
361
|
+
@JobId = params['JobId']
|
362
|
+
@CompareTaskId = params['CompareTaskId']
|
363
|
+
@TaskName = params['TaskName']
|
364
|
+
@Status = params['Status']
|
365
|
+
unless params['Config'].nil?
|
366
|
+
@Config = CompareObject.new
|
367
|
+
@Config.deserialize(params['Config'])
|
368
|
+
end
|
369
|
+
unless params['CheckProcess'].nil?
|
370
|
+
@CheckProcess = ProcessProgress.new
|
371
|
+
@CheckProcess.deserialize(params['CheckProcess'])
|
372
|
+
end
|
373
|
+
unless params['CompareProcess'].nil?
|
374
|
+
@CompareProcess = ProcessProgress.new
|
375
|
+
@CompareProcess.deserialize(params['CompareProcess'])
|
376
|
+
end
|
377
|
+
@Conclusion = params['Conclusion']
|
378
|
+
@CreatedAt = params['CreatedAt']
|
379
|
+
@StartedAt = params['StartedAt']
|
380
|
+
@FinishedAt = params['FinishedAt']
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# 用于一致性校验的视图配置
|
385
|
+
class CompareViewItem < TencentCloud::Common::AbstractModel
|
386
|
+
# @param ViewName: 视图名
|
387
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
388
|
+
# @type ViewName: String
|
389
|
+
|
390
|
+
attr_accessor :ViewName
|
391
|
+
|
392
|
+
def initialize(viewname=nil)
|
393
|
+
@ViewName = viewname
|
394
|
+
end
|
395
|
+
|
396
|
+
def deserialize(params)
|
397
|
+
@ViewName = params['ViewName']
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
# CompleteMigrateJob请求参数结构体
|
402
|
+
class CompleteMigrateJobRequest < TencentCloud::Common::AbstractModel
|
403
|
+
# @param JobId: 数据迁移任务ID
|
404
|
+
# @type JobId: String
|
405
|
+
# @param CompleteMode: 完成任务的方式,仅支持旧版MySQL迁移任务。waitForSync-等待主从差距为0才停止,immediately-立即完成,不会等待主从差距一致。默认为waitForSync
|
406
|
+
# @type CompleteMode: String
|
407
|
+
|
408
|
+
attr_accessor :JobId, :CompleteMode
|
409
|
+
|
410
|
+
def initialize(jobid=nil, completemode=nil)
|
411
|
+
@JobId = jobid
|
412
|
+
@CompleteMode = completemode
|
413
|
+
end
|
414
|
+
|
415
|
+
def deserialize(params)
|
416
|
+
@JobId = params['JobId']
|
417
|
+
@CompleteMode = params['CompleteMode']
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
# CompleteMigrateJob返回参数结构体
|
422
|
+
class CompleteMigrateJobResponse < TencentCloud::Common::AbstractModel
|
423
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
424
|
+
# @type RequestId: String
|
425
|
+
|
426
|
+
attr_accessor :RequestId
|
427
|
+
|
428
|
+
def initialize(requestid=nil)
|
429
|
+
@RequestId = requestid
|
430
|
+
end
|
431
|
+
|
432
|
+
def deserialize(params)
|
433
|
+
@RequestId = params['RequestId']
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
# ConfigureSyncJob请求参数结构体
|
438
|
+
class ConfigureSyncJobRequest < TencentCloud::Common::AbstractModel
|
439
|
+
# @param JobId: 同步实例id(即标识一个同步作业),形如sync-werwfs23
|
440
|
+
# @type JobId: String
|
441
|
+
# @param SrcAccessType: 源端接入类型,cdb(云数据库)、cvm(云主机自建)、vpc(私有网络)、extranet(外网)、vpncloud(vpn接入)、dcg(专线接入)、ccn(云联网)、intranet(自研上云)、noProxy,注意具体可选值依赖当前链路
|
442
|
+
# @type SrcAccessType: String
|
443
|
+
# @param SrcInfo: 源端信息
|
444
|
+
# @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
|
445
|
+
# @param DstAccessType: 目标端接入类型,cdb(云数据库)、cvm(云主机自建)、vpc(私有网络)、extranet(外网)、vpncloud(vpn接入)、dcg(专线接入)、ccn(云联网)、intranet(自研上云)、noProxy,注意具体可选值依赖当前链路
|
446
|
+
# @type DstAccessType: String
|
447
|
+
# @param DstInfo: 目标端信息
|
448
|
+
# @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
|
449
|
+
# @param Options: 同步任务选项
|
450
|
+
# @type Options: :class:`Tencentcloud::Dts.v20211206.models.Options`
|
451
|
+
# @param Objects: 同步库表对象信息
|
452
|
+
# @type Objects: :class:`Tencentcloud::Dts.v20211206.models.Objects`
|
453
|
+
# @param JobName: 同步任务名称
|
454
|
+
# @type JobName: String
|
455
|
+
# @param RunMode: 运行模式,取值如:Immediate(表示立即运行,默认为此项值)、Timed(表示定时运行)
|
456
|
+
# @type RunMode: String
|
457
|
+
# @param ExpectRunTime: 期待启动时间,当RunMode取值为Timed时,此值必填,形如:"2006-01-02 15:04:05"
|
458
|
+
# @type ExpectRunTime: String
|
459
|
+
|
460
|
+
attr_accessor :JobId, :SrcAccessType, :SrcInfo, :DstAccessType, :DstInfo, :Options, :Objects, :JobName, :RunMode, :ExpectRunTime
|
461
|
+
|
462
|
+
def initialize(jobid=nil, srcaccesstype=nil, srcinfo=nil, dstaccesstype=nil, dstinfo=nil, options=nil, objects=nil, jobname=nil, runmode=nil, expectruntime=nil)
|
463
|
+
@JobId = jobid
|
464
|
+
@SrcAccessType = srcaccesstype
|
465
|
+
@SrcInfo = srcinfo
|
466
|
+
@DstAccessType = dstaccesstype
|
467
|
+
@DstInfo = dstinfo
|
468
|
+
@Options = options
|
469
|
+
@Objects = objects
|
470
|
+
@JobName = jobname
|
471
|
+
@RunMode = runmode
|
472
|
+
@ExpectRunTime = expectruntime
|
473
|
+
end
|
474
|
+
|
475
|
+
def deserialize(params)
|
476
|
+
@JobId = params['JobId']
|
477
|
+
@SrcAccessType = params['SrcAccessType']
|
478
|
+
unless params['SrcInfo'].nil?
|
479
|
+
@SrcInfo = Endpoint.new
|
480
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
481
|
+
end
|
482
|
+
@DstAccessType = params['DstAccessType']
|
483
|
+
unless params['DstInfo'].nil?
|
484
|
+
@DstInfo = Endpoint.new
|
485
|
+
@DstInfo.deserialize(params['DstInfo'])
|
486
|
+
end
|
487
|
+
unless params['Options'].nil?
|
488
|
+
@Options = Options.new
|
489
|
+
@Options.deserialize(params['Options'])
|
490
|
+
end
|
491
|
+
unless params['Objects'].nil?
|
492
|
+
@Objects = Objects.new
|
493
|
+
@Objects.deserialize(params['Objects'])
|
494
|
+
end
|
495
|
+
@JobName = params['JobName']
|
496
|
+
@RunMode = params['RunMode']
|
497
|
+
@ExpectRunTime = params['ExpectRunTime']
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
# ConfigureSyncJob返回参数结构体
|
502
|
+
class ConfigureSyncJobResponse < TencentCloud::Common::AbstractModel
|
503
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
504
|
+
# @type RequestId: String
|
505
|
+
|
506
|
+
attr_accessor :RequestId
|
507
|
+
|
508
|
+
def initialize(requestid=nil)
|
509
|
+
@RequestId = requestid
|
510
|
+
end
|
511
|
+
|
512
|
+
def deserialize(params)
|
513
|
+
@RequestId = params['RequestId']
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
# 冲突处理里的详细描述
|
518
|
+
class ConflictHandleOption < TencentCloud::Common::AbstractModel
|
519
|
+
# @param ConditionColumn: 条件覆盖的列
|
520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
521
|
+
# @type ConditionColumn: String
|
522
|
+
# @param ConditionOperator: 条件覆盖操作
|
523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
524
|
+
# @type ConditionOperator: String
|
525
|
+
# @param ConditionOrderInSrcAndDst: 条件覆盖优先级处理
|
526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
527
|
+
# @type ConditionOrderInSrcAndDst: String
|
528
|
+
|
529
|
+
attr_accessor :ConditionColumn, :ConditionOperator, :ConditionOrderInSrcAndDst
|
530
|
+
|
531
|
+
def initialize(conditioncolumn=nil, conditionoperator=nil, conditionorderinsrcanddst=nil)
|
532
|
+
@ConditionColumn = conditioncolumn
|
533
|
+
@ConditionOperator = conditionoperator
|
534
|
+
@ConditionOrderInSrcAndDst = conditionorderinsrcanddst
|
535
|
+
end
|
536
|
+
|
537
|
+
def deserialize(params)
|
538
|
+
@ConditionColumn = params['ConditionColumn']
|
539
|
+
@ConditionOperator = params['ConditionOperator']
|
540
|
+
@ConditionOrderInSrcAndDst = params['ConditionOrderInSrcAndDst']
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
# 数据一致性校验选项, 默认为不开启一致性校验
|
545
|
+
class ConsistencyOption < TencentCloud::Common::AbstractModel
|
546
|
+
# @param Mode: 一致性检测类型: full(全量检测迁移对象)、noCheck(不检测)、notConfigured(未配置)
|
547
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
548
|
+
# @type Mode: String
|
549
|
+
|
550
|
+
attr_accessor :Mode
|
551
|
+
|
552
|
+
def initialize(mode=nil)
|
553
|
+
@Mode = mode
|
554
|
+
end
|
555
|
+
|
556
|
+
def deserialize(params)
|
557
|
+
@Mode = params['Mode']
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
561
|
+
# CreateCheckSyncJob请求参数结构体
|
562
|
+
class CreateCheckSyncJobRequest < TencentCloud::Common::AbstractModel
|
563
|
+
# @param JobId: 同步任务id
|
564
|
+
# @type JobId: String
|
565
|
+
|
566
|
+
attr_accessor :JobId
|
567
|
+
|
568
|
+
def initialize(jobid=nil)
|
569
|
+
@JobId = jobid
|
570
|
+
end
|
571
|
+
|
572
|
+
def deserialize(params)
|
573
|
+
@JobId = params['JobId']
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
# CreateCheckSyncJob返回参数结构体
|
578
|
+
class CreateCheckSyncJobResponse < TencentCloud::Common::AbstractModel
|
579
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
580
|
+
# @type RequestId: String
|
581
|
+
|
582
|
+
attr_accessor :RequestId
|
583
|
+
|
584
|
+
def initialize(requestid=nil)
|
585
|
+
@RequestId = requestid
|
586
|
+
end
|
587
|
+
|
588
|
+
def deserialize(params)
|
589
|
+
@RequestId = params['RequestId']
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
# CreateCompareTask请求参数结构体
|
594
|
+
class CreateCompareTaskRequest < TencentCloud::Common::AbstractModel
|
595
|
+
# @param JobId: 迁移任务 Id
|
596
|
+
# @type JobId: String
|
597
|
+
# @param TaskName: 数据对比任务名称,若为空则默认给CompareTaskId相同值
|
598
|
+
# @type TaskName: String
|
599
|
+
# @param ObjectMode: 数据对比对象模式,sameAsMigrate(全部迁移对象, 默认为此项配置),custom(自定义模式)
|
600
|
+
# @type ObjectMode: String
|
601
|
+
# @param Objects: 一致性对比对象配置
|
602
|
+
# @type Objects: :class:`Tencentcloud::Dts.v20211206.models.CompareObject`
|
603
|
+
|
604
|
+
attr_accessor :JobId, :TaskName, :ObjectMode, :Objects
|
605
|
+
|
606
|
+
def initialize(jobid=nil, taskname=nil, objectmode=nil, objects=nil)
|
607
|
+
@JobId = jobid
|
608
|
+
@TaskName = taskname
|
609
|
+
@ObjectMode = objectmode
|
610
|
+
@Objects = objects
|
611
|
+
end
|
612
|
+
|
613
|
+
def deserialize(params)
|
614
|
+
@JobId = params['JobId']
|
615
|
+
@TaskName = params['TaskName']
|
616
|
+
@ObjectMode = params['ObjectMode']
|
617
|
+
unless params['Objects'].nil?
|
618
|
+
@Objects = CompareObject.new
|
619
|
+
@Objects.deserialize(params['Objects'])
|
620
|
+
end
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
# CreateCompareTask返回参数结构体
|
625
|
+
class CreateCompareTaskResponse < TencentCloud::Common::AbstractModel
|
626
|
+
# @param CompareTaskId: 数据对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
627
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
628
|
+
# @type CompareTaskId: String
|
629
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
630
|
+
# @type RequestId: String
|
631
|
+
|
632
|
+
attr_accessor :CompareTaskId, :RequestId
|
633
|
+
|
634
|
+
def initialize(comparetaskid=nil, requestid=nil)
|
635
|
+
@CompareTaskId = comparetaskid
|
636
|
+
@RequestId = requestid
|
637
|
+
end
|
638
|
+
|
639
|
+
def deserialize(params)
|
640
|
+
@CompareTaskId = params['CompareTaskId']
|
641
|
+
@RequestId = params['RequestId']
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
# CreateMigrateCheckJob请求参数结构体
|
646
|
+
class CreateMigrateCheckJobRequest < TencentCloud::Common::AbstractModel
|
647
|
+
# @param JobId: 数据迁移任务ID
|
648
|
+
# @type JobId: String
|
649
|
+
|
650
|
+
attr_accessor :JobId
|
651
|
+
|
652
|
+
def initialize(jobid=nil)
|
653
|
+
@JobId = jobid
|
654
|
+
end
|
655
|
+
|
656
|
+
def deserialize(params)
|
657
|
+
@JobId = params['JobId']
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# CreateMigrateCheckJob返回参数结构体
|
662
|
+
class CreateMigrateCheckJobResponse < TencentCloud::Common::AbstractModel
|
663
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
664
|
+
# @type RequestId: String
|
665
|
+
|
666
|
+
attr_accessor :RequestId
|
667
|
+
|
668
|
+
def initialize(requestid=nil)
|
669
|
+
@RequestId = requestid
|
670
|
+
end
|
671
|
+
|
672
|
+
def deserialize(params)
|
673
|
+
@RequestId = params['RequestId']
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
# CreateMigrationService请求参数结构体
|
678
|
+
class CreateMigrationServiceRequest < TencentCloud::Common::AbstractModel
|
679
|
+
# @param SrcDatabaseType: 源实例数据库类型,mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb
|
680
|
+
# @type SrcDatabaseType: String
|
681
|
+
# @param DstDatabaseType: 目标实例数据库类型,mysql,redis,percona,mongodb,postgresql,sqlserver,mariadb
|
682
|
+
# @type DstDatabaseType: String
|
683
|
+
# @param SrcRegion: 源实例地域,如:ap-guangzhou
|
684
|
+
# @type SrcRegion: String
|
685
|
+
# @param DstRegion: 目标实例地域,如:ap-guangzhou。注意,目标地域必须和API请求地域保持一致。
|
686
|
+
# @type DstRegion: String
|
687
|
+
# @param InstanceClass: 实例规格,包括:micro、small、medium、large、xlarge、2xlarge
|
688
|
+
# @type InstanceClass: String
|
689
|
+
# @param Count: 购买数量,范围为[1,15],默认为1
|
690
|
+
# @type Count: Integer
|
691
|
+
# @param JobName: 迁移服务名称,最大长度128
|
692
|
+
# @type JobName: String
|
693
|
+
# @param Tags: 标签信息
|
694
|
+
# @type Tags: Array
|
695
|
+
|
696
|
+
attr_accessor :SrcDatabaseType, :DstDatabaseType, :SrcRegion, :DstRegion, :InstanceClass, :Count, :JobName, :Tags
|
697
|
+
|
698
|
+
def initialize(srcdatabasetype=nil, dstdatabasetype=nil, srcregion=nil, dstregion=nil, instanceclass=nil, count=nil, jobname=nil, tags=nil)
|
699
|
+
@SrcDatabaseType = srcdatabasetype
|
700
|
+
@DstDatabaseType = dstdatabasetype
|
701
|
+
@SrcRegion = srcregion
|
702
|
+
@DstRegion = dstregion
|
703
|
+
@InstanceClass = instanceclass
|
704
|
+
@Count = count
|
705
|
+
@JobName = jobname
|
706
|
+
@Tags = tags
|
707
|
+
end
|
708
|
+
|
709
|
+
def deserialize(params)
|
710
|
+
@SrcDatabaseType = params['SrcDatabaseType']
|
711
|
+
@DstDatabaseType = params['DstDatabaseType']
|
712
|
+
@SrcRegion = params['SrcRegion']
|
713
|
+
@DstRegion = params['DstRegion']
|
714
|
+
@InstanceClass = params['InstanceClass']
|
715
|
+
@Count = params['Count']
|
716
|
+
@JobName = params['JobName']
|
717
|
+
unless params['Tags'].nil?
|
718
|
+
@Tags = []
|
719
|
+
params['Tags'].each do |i|
|
720
|
+
tagitem_tmp = TagItem.new
|
721
|
+
tagitem_tmp.deserialize(i)
|
722
|
+
@Tags << tagitem_tmp
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
728
|
+
# CreateMigrationService返回参数结构体
|
729
|
+
class CreateMigrationServiceResponse < TencentCloud::Common::AbstractModel
|
730
|
+
# @param JobIds: 下单成功随机生成的迁移服务id列表,形如:dts-c1f6rs21
|
731
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
732
|
+
# @type JobIds: Array
|
733
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
734
|
+
# @type RequestId: String
|
735
|
+
|
736
|
+
attr_accessor :JobIds, :RequestId
|
737
|
+
|
738
|
+
def initialize(jobids=nil, requestid=nil)
|
739
|
+
@JobIds = jobids
|
740
|
+
@RequestId = requestid
|
741
|
+
end
|
742
|
+
|
743
|
+
def deserialize(params)
|
744
|
+
@JobIds = params['JobIds']
|
745
|
+
@RequestId = params['RequestId']
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
749
|
+
# CreateSyncJob请求参数结构体
|
750
|
+
class CreateSyncJobRequest < TencentCloud::Common::AbstractModel
|
751
|
+
# @param PayMode: 支付类型,PrePay:包年包月 PostPay:按时按量
|
752
|
+
# @type PayMode: String
|
753
|
+
# @param SrcDatabaseType: 源端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql等
|
754
|
+
# @type SrcDatabaseType: String
|
755
|
+
# @param SrcRegion: 源端数据库所在地域,如ap-guangzhou
|
756
|
+
# @type SrcRegion: String
|
757
|
+
# @param DstDatabaseType: 目标端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql等
|
758
|
+
# @type DstDatabaseType: String
|
759
|
+
# @param DstRegion: 目标端数据库所在地域,如ap-guangzhou
|
760
|
+
# @type DstRegion: String
|
761
|
+
# @param Specification: 同步任务规格,Standard:标准版
|
762
|
+
# @type Specification: String
|
763
|
+
# @param Tags: 无
|
764
|
+
# @type Tags: Array
|
765
|
+
# @param Count: 同步任务数量
|
766
|
+
# @type Count: Integer
|
767
|
+
# @param AutoRenew: 自动续费标识
|
768
|
+
# @type AutoRenew: Integer
|
769
|
+
# @param InstanceClass: 同步链路规格
|
770
|
+
# @type InstanceClass: String
|
771
|
+
# @param JobName: 同步链路名称
|
772
|
+
# @type JobName: String
|
773
|
+
# @param ExistedJobId: 创建类似任务的现有任务Id
|
774
|
+
# @type ExistedJobId: String
|
775
|
+
|
776
|
+
attr_accessor :PayMode, :SrcDatabaseType, :SrcRegion, :DstDatabaseType, :DstRegion, :Specification, :Tags, :Count, :AutoRenew, :InstanceClass, :JobName, :ExistedJobId
|
777
|
+
|
778
|
+
def initialize(paymode=nil, srcdatabasetype=nil, srcregion=nil, dstdatabasetype=nil, dstregion=nil, specification=nil, tags=nil, count=nil, autorenew=nil, instanceclass=nil, jobname=nil, existedjobid=nil)
|
779
|
+
@PayMode = paymode
|
780
|
+
@SrcDatabaseType = srcdatabasetype
|
781
|
+
@SrcRegion = srcregion
|
782
|
+
@DstDatabaseType = dstdatabasetype
|
783
|
+
@DstRegion = dstregion
|
784
|
+
@Specification = specification
|
785
|
+
@Tags = tags
|
786
|
+
@Count = count
|
787
|
+
@AutoRenew = autorenew
|
788
|
+
@InstanceClass = instanceclass
|
789
|
+
@JobName = jobname
|
790
|
+
@ExistedJobId = existedjobid
|
791
|
+
end
|
792
|
+
|
793
|
+
def deserialize(params)
|
794
|
+
@PayMode = params['PayMode']
|
795
|
+
@SrcDatabaseType = params['SrcDatabaseType']
|
796
|
+
@SrcRegion = params['SrcRegion']
|
797
|
+
@DstDatabaseType = params['DstDatabaseType']
|
798
|
+
@DstRegion = params['DstRegion']
|
799
|
+
@Specification = params['Specification']
|
800
|
+
unless params['Tags'].nil?
|
801
|
+
@Tags = []
|
802
|
+
params['Tags'].each do |i|
|
803
|
+
tagitem_tmp = TagItem.new
|
804
|
+
tagitem_tmp.deserialize(i)
|
805
|
+
@Tags << tagitem_tmp
|
806
|
+
end
|
807
|
+
end
|
808
|
+
@Count = params['Count']
|
809
|
+
@AutoRenew = params['AutoRenew']
|
810
|
+
@InstanceClass = params['InstanceClass']
|
811
|
+
@JobName = params['JobName']
|
812
|
+
@ExistedJobId = params['ExistedJobId']
|
813
|
+
end
|
814
|
+
end
|
815
|
+
|
816
|
+
# CreateSyncJob返回参数结构体
|
817
|
+
class CreateSyncJobResponse < TencentCloud::Common::AbstractModel
|
818
|
+
# @param JobIds: 同步任务ids
|
819
|
+
# @type JobIds: Array
|
820
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
821
|
+
# @type RequestId: String
|
822
|
+
|
823
|
+
attr_accessor :JobIds, :RequestId
|
824
|
+
|
825
|
+
def initialize(jobids=nil, requestid=nil)
|
826
|
+
@JobIds = jobids
|
827
|
+
@RequestId = requestid
|
828
|
+
end
|
829
|
+
|
830
|
+
def deserialize(params)
|
831
|
+
@JobIds = params['JobIds']
|
832
|
+
@RequestId = params['RequestId']
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
836
|
+
# 实例信息
|
837
|
+
class DBEndpointInfo < TencentCloud::Common::AbstractModel
|
838
|
+
# @param Region: 实例所在地域
|
839
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
840
|
+
# @type Region: String
|
841
|
+
# @param AccessType: 实例网络接入类型,如:extranet(外网)、ipv6(公网ipv6)、cvm(云主机自建)、dcg(专线接入)、vpncloud(vpn接入的实例)、cdb(云数据库)、ccn(云联网)、intranet(自研上云)、vpc(私有网络)等,注意具体可选值依赖当前链路
|
842
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
843
|
+
# @type AccessType: String
|
844
|
+
# @param DatabaseType: 实例数据库类型,如:mysql,redis,mongodb,postgresql,mariadb,percona 等
|
845
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
846
|
+
# @type DatabaseType: String
|
847
|
+
# @param NodeType: 节点类型,为空或者"simple":表示普通节点,"cluster": 集群节点
|
848
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
849
|
+
# @type NodeType: String
|
850
|
+
# @param Info: 数据库信息
|
851
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
852
|
+
# @type Info: Array
|
853
|
+
# @param Supplier: 实例服务提供商,如:"aliyun","others"
|
854
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
855
|
+
# @type Supplier: String
|
856
|
+
# @param ExtraAttr: MongoDB可定义如下的参数: ['AuthDatabase':'admin',
|
857
|
+
# 'AuthFlag': "1", 'AuthMechanism':"SCRAM-SHA-1"]
|
858
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
859
|
+
# @type ExtraAttr: Array
|
860
|
+
|
861
|
+
attr_accessor :Region, :AccessType, :DatabaseType, :NodeType, :Info, :Supplier, :ExtraAttr
|
862
|
+
|
863
|
+
def initialize(region=nil, accesstype=nil, databasetype=nil, nodetype=nil, info=nil, supplier=nil, extraattr=nil)
|
864
|
+
@Region = region
|
865
|
+
@AccessType = accesstype
|
866
|
+
@DatabaseType = databasetype
|
867
|
+
@NodeType = nodetype
|
868
|
+
@Info = info
|
869
|
+
@Supplier = supplier
|
870
|
+
@ExtraAttr = extraattr
|
871
|
+
end
|
872
|
+
|
873
|
+
def deserialize(params)
|
874
|
+
@Region = params['Region']
|
875
|
+
@AccessType = params['AccessType']
|
876
|
+
@DatabaseType = params['DatabaseType']
|
877
|
+
@NodeType = params['NodeType']
|
878
|
+
unless params['Info'].nil?
|
879
|
+
@Info = []
|
880
|
+
params['Info'].each do |i|
|
881
|
+
dbinfo_tmp = DBInfo.new
|
882
|
+
dbinfo_tmp.deserialize(i)
|
883
|
+
@Info << dbinfo_tmp
|
884
|
+
end
|
885
|
+
end
|
886
|
+
@Supplier = params['Supplier']
|
887
|
+
unless params['ExtraAttr'].nil?
|
888
|
+
@ExtraAttr = []
|
889
|
+
params['ExtraAttr'].each do |i|
|
890
|
+
keyvaluepairoption_tmp = KeyValuePairOption.new
|
891
|
+
keyvaluepairoption_tmp.deserialize(i)
|
892
|
+
@ExtraAttr << keyvaluepairoption_tmp
|
893
|
+
end
|
894
|
+
end
|
895
|
+
end
|
896
|
+
end
|
897
|
+
|
898
|
+
# 数据库信息
|
899
|
+
class DBInfo < TencentCloud::Common::AbstractModel
|
900
|
+
# @param Role: 表示节点角色,针对分布式数据库,如mongodb中的mongos节点
|
901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
902
|
+
# @type Role: String
|
903
|
+
# @param DbKernel: 内核版本,针对mariadb的不同内核版本等
|
904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
905
|
+
# @type DbKernel: String
|
906
|
+
# @param Host: 实例的IP地址,对于公网、专线、VPN、云联网、自研上云、VPC等接入方式此项必填
|
907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
908
|
+
# @type Host: String
|
909
|
+
# @param Port: 实例的端口,对于公网、云主机自建、专线、VPN、云联网、自研上云、VPC等接入方式此项必填
|
910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
911
|
+
# @type Port: Integer
|
912
|
+
# @param User: 实例的用户名
|
913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
914
|
+
# @type User: String
|
915
|
+
# @param Password: 实例的密码
|
916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
917
|
+
# @type Password: String
|
918
|
+
# @param CvmInstanceId: CVM实例短ID,格式如:ins-olgl39y8;与云服务器控制台页面显示的实例ID相同;如果接入类型为云主机自建的方式,此项必填
|
919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
920
|
+
# @type CvmInstanceId: String
|
921
|
+
# @param UniqVpnGwId: VPN网关ID,格式如:vpngw-9ghexg7q;如果接入类型为vpncloud的方式,此项必填
|
922
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
923
|
+
# @type UniqVpnGwId: String
|
924
|
+
# @param UniqDcgId: 专线网关ID,格式如:dcg-0rxtqqxb;如果接入类型为专线接入的方式,此项必填
|
925
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
926
|
+
# @type UniqDcgId: String
|
927
|
+
# @param InstanceId: 数据库实例ID,格式如:cdb-powiqx8q;如果接入类型为云数据库的方式,此项必填
|
928
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
929
|
+
# @type InstanceId: String
|
930
|
+
# @param CcnGwId: 云联网ID,如:ccn-afp6kltc 注意:此字段可能返回 null,表示取不到有效值。
|
931
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
932
|
+
# @type CcnGwId: String
|
933
|
+
# @param VpcId: 私有网络ID,格式如:vpc-92jblxto;如果接入类型为vpc、vpncloud、ccn、dcg的方式,此项必填
|
934
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
935
|
+
# @type VpcId: String
|
936
|
+
# @param SubnetId: 私有网络下的子网ID,格式如:subnet-3paxmkdz;如果接入类型为vpc、vpncloud、ccn、dcg的方式,此项必填
|
937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
938
|
+
# @type SubnetId: String
|
939
|
+
# @param EngineVersion: 数据库版本,当实例为RDS实例时才有效,格式如:5.6或者5.7,默认为5.6
|
940
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
941
|
+
# @type EngineVersion: String
|
942
|
+
# @param Account: 实例所属账号
|
943
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
944
|
+
# @type Account: String
|
945
|
+
# @param AccountRole: 跨账号迁移时的角色,只允许[a-zA-Z0-9\-\_]+
|
946
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
947
|
+
# @type AccountRole: String
|
948
|
+
# @param AccountMode: 资源所属账号 为空或self(表示本账号内资源)、other(表示其他账户资源)
|
949
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
950
|
+
# @type AccountMode: String
|
951
|
+
# @param TmpSecretId: 临时秘钥Id
|
952
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
953
|
+
# @type TmpSecretId: String
|
954
|
+
# @param TmpSecretKey: 临时秘钥Key
|
955
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
956
|
+
# @type TmpSecretKey: String
|
957
|
+
# @param TmpToken: 临时Token
|
958
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
959
|
+
# @type TmpToken: String
|
960
|
+
|
961
|
+
attr_accessor :Role, :DbKernel, :Host, :Port, :User, :Password, :CvmInstanceId, :UniqVpnGwId, :UniqDcgId, :InstanceId, :CcnGwId, :VpcId, :SubnetId, :EngineVersion, :Account, :AccountRole, :AccountMode, :TmpSecretId, :TmpSecretKey, :TmpToken
|
962
|
+
|
963
|
+
def initialize(role=nil, dbkernel=nil, host=nil, port=nil, user=nil, password=nil, cvminstanceid=nil, uniqvpngwid=nil, uniqdcgid=nil, instanceid=nil, ccngwid=nil, vpcid=nil, subnetid=nil, engineversion=nil, account=nil, accountrole=nil, accountmode=nil, tmpsecretid=nil, tmpsecretkey=nil, tmptoken=nil)
|
964
|
+
@Role = role
|
965
|
+
@DbKernel = dbkernel
|
966
|
+
@Host = host
|
967
|
+
@Port = port
|
968
|
+
@User = user
|
969
|
+
@Password = password
|
970
|
+
@CvmInstanceId = cvminstanceid
|
971
|
+
@UniqVpnGwId = uniqvpngwid
|
972
|
+
@UniqDcgId = uniqdcgid
|
973
|
+
@InstanceId = instanceid
|
974
|
+
@CcnGwId = ccngwid
|
975
|
+
@VpcId = vpcid
|
976
|
+
@SubnetId = subnetid
|
977
|
+
@EngineVersion = engineversion
|
978
|
+
@Account = account
|
979
|
+
@AccountRole = accountrole
|
980
|
+
@AccountMode = accountmode
|
981
|
+
@TmpSecretId = tmpsecretid
|
982
|
+
@TmpSecretKey = tmpsecretkey
|
983
|
+
@TmpToken = tmptoken
|
984
|
+
end
|
985
|
+
|
986
|
+
def deserialize(params)
|
987
|
+
@Role = params['Role']
|
988
|
+
@DbKernel = params['DbKernel']
|
989
|
+
@Host = params['Host']
|
990
|
+
@Port = params['Port']
|
991
|
+
@User = params['User']
|
992
|
+
@Password = params['Password']
|
993
|
+
@CvmInstanceId = params['CvmInstanceId']
|
994
|
+
@UniqVpnGwId = params['UniqVpnGwId']
|
995
|
+
@UniqDcgId = params['UniqDcgId']
|
996
|
+
@InstanceId = params['InstanceId']
|
997
|
+
@CcnGwId = params['CcnGwId']
|
998
|
+
@VpcId = params['VpcId']
|
999
|
+
@SubnetId = params['SubnetId']
|
1000
|
+
@EngineVersion = params['EngineVersion']
|
1001
|
+
@Account = params['Account']
|
1002
|
+
@AccountRole = params['AccountRole']
|
1003
|
+
@AccountMode = params['AccountMode']
|
1004
|
+
@TmpSecretId = params['TmpSecretId']
|
1005
|
+
@TmpSecretKey = params['TmpSecretKey']
|
1006
|
+
@TmpToken = params['TmpToken']
|
1007
|
+
end
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# 迁移对象信息
|
1011
|
+
class DBItem < TencentCloud::Common::AbstractModel
|
1012
|
+
# @param DbName: 需要迁移或同步的库名,当ObjectMode为partial时,此项必填
|
1013
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1014
|
+
# @type DbName: String
|
1015
|
+
# @param NewDbName: 迁移或同步后的库名,默认与源库相同
|
1016
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1017
|
+
# @type NewDbName: String
|
1018
|
+
# @param SchemaName: 迁移或同步的 schema
|
1019
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1020
|
+
# @type SchemaName: String
|
1021
|
+
# @param NewSchemaName: 迁移或同步后的 schema name
|
1022
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1023
|
+
# @type NewSchemaName: String
|
1024
|
+
# @param DBMode: DB选择模式: all(为当前对象下的所有对象),partial(部分对象),当ObjectMode为partial时,此项必填
|
1025
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1026
|
+
# @type DBMode: String
|
1027
|
+
# @param SchemaMode: schema选择模式: all(为当前对象下的所有对象),partial(部分对象)
|
1028
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1029
|
+
# @type SchemaMode: String
|
1030
|
+
# @param TableMode: 表选择模式: all(为当前对象下的所有对象),partial(部分对象),当DBMode为partial时此项必填
|
1031
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1032
|
+
# @type TableMode: String
|
1033
|
+
# @param Tables: 表图对象集合,当 TableMode 为 partial 时,此项需要填写
|
1034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1035
|
+
# @type Tables: Array
|
1036
|
+
# @param ViewMode: 视图选择模式: all 为当前对象下的所有视图对象,partial 为部分视图对象
|
1037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1038
|
+
# @type ViewMode: String
|
1039
|
+
# @param Views: 视图对象集合,当 ViewMode 为 partial 时, 此项需要填写
|
1040
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1041
|
+
# @type Views: Array
|
1042
|
+
# @param RoleMode: postgresql独有参数,角色选择模式: all 为当前对象下的所有角色对象,partial 为部分角色对象
|
1043
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1044
|
+
# @type RoleMode: String
|
1045
|
+
# @param Roles: postgresql独有参数,当 RoleMode 为 partial 时, 此项需要填写
|
1046
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1047
|
+
# @type Roles: Array
|
1048
|
+
# @param FunctionMode: 选择要同步的模式,partial为部分,all为整选
|
1049
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1050
|
+
# @type FunctionMode: String
|
1051
|
+
# @param TriggerMode: 选择要同步的模式,partial为部分,all为整选
|
1052
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1053
|
+
# @type TriggerMode: String
|
1054
|
+
# @param EventMode: 选择要同步的模式,partial为部分,all为整选
|
1055
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1056
|
+
# @type EventMode: String
|
1057
|
+
# @param ProcedureMode: 选择要同步的模式,partial为部分,all为整选
|
1058
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1059
|
+
# @type ProcedureMode: String
|
1060
|
+
# @param Functions: FunctionMode取值为partial时需要填写
|
1061
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1062
|
+
# @type Functions: Array
|
1063
|
+
# @param Procedures: ProcedureMode取值为partial时需要填写
|
1064
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1065
|
+
# @type Procedures: Array
|
1066
|
+
# @param Events: EventMode取值为partial时需要填写
|
1067
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1068
|
+
# @type Events: Array
|
1069
|
+
# @param Triggers: TriggerMode取值为partial时需要填写
|
1070
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1071
|
+
# @type Triggers: Array
|
1072
|
+
|
1073
|
+
attr_accessor :DbName, :NewDbName, :SchemaName, :NewSchemaName, :DBMode, :SchemaMode, :TableMode, :Tables, :ViewMode, :Views, :RoleMode, :Roles, :FunctionMode, :TriggerMode, :EventMode, :ProcedureMode, :Functions, :Procedures, :Events, :Triggers
|
1074
|
+
|
1075
|
+
def initialize(dbname=nil, newdbname=nil, schemaname=nil, newschemaname=nil, dbmode=nil, schemamode=nil, tablemode=nil, tables=nil, viewmode=nil, views=nil, rolemode=nil, roles=nil, functionmode=nil, triggermode=nil, eventmode=nil, proceduremode=nil, functions=nil, procedures=nil, events=nil, triggers=nil)
|
1076
|
+
@DbName = dbname
|
1077
|
+
@NewDbName = newdbname
|
1078
|
+
@SchemaName = schemaname
|
1079
|
+
@NewSchemaName = newschemaname
|
1080
|
+
@DBMode = dbmode
|
1081
|
+
@SchemaMode = schemamode
|
1082
|
+
@TableMode = tablemode
|
1083
|
+
@Tables = tables
|
1084
|
+
@ViewMode = viewmode
|
1085
|
+
@Views = views
|
1086
|
+
@RoleMode = rolemode
|
1087
|
+
@Roles = roles
|
1088
|
+
@FunctionMode = functionmode
|
1089
|
+
@TriggerMode = triggermode
|
1090
|
+
@EventMode = eventmode
|
1091
|
+
@ProcedureMode = proceduremode
|
1092
|
+
@Functions = functions
|
1093
|
+
@Procedures = procedures
|
1094
|
+
@Events = events
|
1095
|
+
@Triggers = triggers
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
def deserialize(params)
|
1099
|
+
@DbName = params['DbName']
|
1100
|
+
@NewDbName = params['NewDbName']
|
1101
|
+
@SchemaName = params['SchemaName']
|
1102
|
+
@NewSchemaName = params['NewSchemaName']
|
1103
|
+
@DBMode = params['DBMode']
|
1104
|
+
@SchemaMode = params['SchemaMode']
|
1105
|
+
@TableMode = params['TableMode']
|
1106
|
+
unless params['Tables'].nil?
|
1107
|
+
@Tables = []
|
1108
|
+
params['Tables'].each do |i|
|
1109
|
+
tableitem_tmp = TableItem.new
|
1110
|
+
tableitem_tmp.deserialize(i)
|
1111
|
+
@Tables << tableitem_tmp
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
@ViewMode = params['ViewMode']
|
1115
|
+
unless params['Views'].nil?
|
1116
|
+
@Views = []
|
1117
|
+
params['Views'].each do |i|
|
1118
|
+
viewitem_tmp = ViewItem.new
|
1119
|
+
viewitem_tmp.deserialize(i)
|
1120
|
+
@Views << viewitem_tmp
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
@RoleMode = params['RoleMode']
|
1124
|
+
unless params['Roles'].nil?
|
1125
|
+
@Roles = []
|
1126
|
+
params['Roles'].each do |i|
|
1127
|
+
roleitem_tmp = RoleItem.new
|
1128
|
+
roleitem_tmp.deserialize(i)
|
1129
|
+
@Roles << roleitem_tmp
|
1130
|
+
end
|
1131
|
+
end
|
1132
|
+
@FunctionMode = params['FunctionMode']
|
1133
|
+
@TriggerMode = params['TriggerMode']
|
1134
|
+
@EventMode = params['EventMode']
|
1135
|
+
@ProcedureMode = params['ProcedureMode']
|
1136
|
+
@Functions = params['Functions']
|
1137
|
+
@Procedures = params['Procedures']
|
1138
|
+
@Events = params['Events']
|
1139
|
+
@Triggers = params['Triggers']
|
1140
|
+
end
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
# 需要同步的库表对象
|
1144
|
+
class Database < TencentCloud::Common::AbstractModel
|
1145
|
+
# @param DbName: 需要迁移或同步的库名,当ObjectMode为Partial时,此项必填
|
1146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1147
|
+
# @type DbName: String
|
1148
|
+
# @param NewDbName: 迁移或同步后的库名,默认与源库相同
|
1149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1150
|
+
# @type NewDbName: String
|
1151
|
+
# @param DbMode: DB选择模式: All(为当前对象下的所有对象),Partial(部分对象),当Mode为Partial时,此项必填。注意,高级对象的同步不依赖此值。
|
1152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1153
|
+
# @type DbMode: String
|
1154
|
+
# @param SchemaName: 迁移或同步的 schema
|
1155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1156
|
+
# @type SchemaName: String
|
1157
|
+
# @param NewSchemaName: 迁移或同步后的 schema name
|
1158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1159
|
+
# @type NewSchemaName: String
|
1160
|
+
# @param TableMode: 表选择模式: All(为当前对象下的所有对象),Partial(部分对象),当DBMode为Partial时此项必填
|
1161
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1162
|
+
# @type TableMode: String
|
1163
|
+
# @param Tables: 表图对象集合,当 TableMode 为 Partial 时,此项需要填写
|
1164
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1165
|
+
# @type Tables: Array
|
1166
|
+
# @param ViewMode: 视图选择模式: All 为当前对象下的所有视图对象,Partial 为部分视图对象
|
1167
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1168
|
+
# @type ViewMode: String
|
1169
|
+
# @param Views: 视图对象集合,当 ViewMode 为 Partial 时, 此项需要填写
|
1170
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1171
|
+
# @type Views: Array
|
1172
|
+
# @param FunctionMode: 选择要同步的模式,Partial为部分,all为整选
|
1173
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1174
|
+
# @type FunctionMode: String
|
1175
|
+
# @param Functions: FunctionMode取值为Partial时需要填写
|
1176
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1177
|
+
# @type Functions: Array
|
1178
|
+
# @param ProcedureMode: 选择要同步的模式,Partial为部分,All为整选
|
1179
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1180
|
+
# @type ProcedureMode: String
|
1181
|
+
# @param Procedures: ProcedureMode取值为Partial时需要填写
|
1182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1183
|
+
# @type Procedures: Array
|
1184
|
+
|
1185
|
+
attr_accessor :DbName, :NewDbName, :DbMode, :SchemaName, :NewSchemaName, :TableMode, :Tables, :ViewMode, :Views, :FunctionMode, :Functions, :ProcedureMode, :Procedures
|
1186
|
+
|
1187
|
+
def initialize(dbname=nil, newdbname=nil, dbmode=nil, schemaname=nil, newschemaname=nil, tablemode=nil, tables=nil, viewmode=nil, views=nil, functionmode=nil, functions=nil, proceduremode=nil, procedures=nil)
|
1188
|
+
@DbName = dbname
|
1189
|
+
@NewDbName = newdbname
|
1190
|
+
@DbMode = dbmode
|
1191
|
+
@SchemaName = schemaname
|
1192
|
+
@NewSchemaName = newschemaname
|
1193
|
+
@TableMode = tablemode
|
1194
|
+
@Tables = tables
|
1195
|
+
@ViewMode = viewmode
|
1196
|
+
@Views = views
|
1197
|
+
@FunctionMode = functionmode
|
1198
|
+
@Functions = functions
|
1199
|
+
@ProcedureMode = proceduremode
|
1200
|
+
@Procedures = procedures
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
def deserialize(params)
|
1204
|
+
@DbName = params['DbName']
|
1205
|
+
@NewDbName = params['NewDbName']
|
1206
|
+
@DbMode = params['DbMode']
|
1207
|
+
@SchemaName = params['SchemaName']
|
1208
|
+
@NewSchemaName = params['NewSchemaName']
|
1209
|
+
@TableMode = params['TableMode']
|
1210
|
+
unless params['Tables'].nil?
|
1211
|
+
@Tables = []
|
1212
|
+
params['Tables'].each do |i|
|
1213
|
+
table_tmp = Table.new
|
1214
|
+
table_tmp.deserialize(i)
|
1215
|
+
@Tables << table_tmp
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
@ViewMode = params['ViewMode']
|
1219
|
+
unless params['Views'].nil?
|
1220
|
+
@Views = []
|
1221
|
+
params['Views'].each do |i|
|
1222
|
+
view_tmp = View.new
|
1223
|
+
view_tmp.deserialize(i)
|
1224
|
+
@Views << view_tmp
|
1225
|
+
end
|
1226
|
+
end
|
1227
|
+
@FunctionMode = params['FunctionMode']
|
1228
|
+
@Functions = params['Functions']
|
1229
|
+
@ProcedureMode = params['ProcedureMode']
|
1230
|
+
@Procedures = params['Procedures']
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# 迁移对象选项,需要告知迁移服务迁移哪些库表对象
|
1235
|
+
class DatabaseTableObject < TencentCloud::Common::AbstractModel
|
1236
|
+
# @param ObjectMode: 迁移对象类型 all(全实例),partial(部分对象)
|
1237
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1238
|
+
# @type ObjectMode: String
|
1239
|
+
# @param Databases: 迁移对象,当 ObjectMode 为 partial 时,不为空
|
1240
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1241
|
+
# @type Databases: Array
|
1242
|
+
# @param AdvancedObjects: 高级对象类型,如trigger、function、procedure、event
|
1243
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1244
|
+
# @type AdvancedObjects: Array
|
1245
|
+
|
1246
|
+
attr_accessor :ObjectMode, :Databases, :AdvancedObjects
|
1247
|
+
|
1248
|
+
def initialize(objectmode=nil, databases=nil, advancedobjects=nil)
|
1249
|
+
@ObjectMode = objectmode
|
1250
|
+
@Databases = databases
|
1251
|
+
@AdvancedObjects = advancedobjects
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
def deserialize(params)
|
1255
|
+
@ObjectMode = params['ObjectMode']
|
1256
|
+
unless params['Databases'].nil?
|
1257
|
+
@Databases = []
|
1258
|
+
params['Databases'].each do |i|
|
1259
|
+
dbitem_tmp = DBItem.new
|
1260
|
+
dbitem_tmp.deserialize(i)
|
1261
|
+
@Databases << dbitem_tmp
|
1262
|
+
end
|
1263
|
+
end
|
1264
|
+
@AdvancedObjects = params['AdvancedObjects']
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# 数据同步中的ddl同步处理
|
1269
|
+
class DdlOption < TencentCloud::Common::AbstractModel
|
1270
|
+
# @param DdlObject: ddl类型,如database,table,view等
|
1271
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1272
|
+
# @type DdlObject: String
|
1273
|
+
# @param DdlValue: ddl具体值,如Create,Drop等
|
1274
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1275
|
+
# @type DdlValue: Array
|
1276
|
+
|
1277
|
+
attr_accessor :DdlObject, :DdlValue
|
1278
|
+
|
1279
|
+
def initialize(ddlobject=nil, ddlvalue=nil)
|
1280
|
+
@DdlObject = ddlobject
|
1281
|
+
@DdlValue = ddlvalue
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
def deserialize(params)
|
1285
|
+
@DdlObject = params['DdlObject']
|
1286
|
+
@DdlValue = params['DdlValue']
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# DeleteCompareTask请求参数结构体
|
1291
|
+
class DeleteCompareTaskRequest < TencentCloud::Common::AbstractModel
|
1292
|
+
# @param JobId: 迁移任务 Id
|
1293
|
+
# @type JobId: String
|
1294
|
+
# @param CompareTaskId: 对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
1295
|
+
# @type CompareTaskId: String
|
1296
|
+
|
1297
|
+
attr_accessor :JobId, :CompareTaskId
|
1298
|
+
|
1299
|
+
def initialize(jobid=nil, comparetaskid=nil)
|
1300
|
+
@JobId = jobid
|
1301
|
+
@CompareTaskId = comparetaskid
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
def deserialize(params)
|
1305
|
+
@JobId = params['JobId']
|
1306
|
+
@CompareTaskId = params['CompareTaskId']
|
1307
|
+
end
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
# DeleteCompareTask返回参数结构体
|
1311
|
+
class DeleteCompareTaskResponse < TencentCloud::Common::AbstractModel
|
1312
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1313
|
+
# @type RequestId: String
|
1314
|
+
|
1315
|
+
attr_accessor :RequestId
|
1316
|
+
|
1317
|
+
def initialize(requestid=nil)
|
1318
|
+
@RequestId = requestid
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
def deserialize(params)
|
1322
|
+
@RequestId = params['RequestId']
|
1323
|
+
end
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# DescribeCheckSyncJobResult请求参数结构体
|
1327
|
+
class DescribeCheckSyncJobResultRequest < TencentCloud::Common::AbstractModel
|
1328
|
+
# @param JobId: 同步任务id
|
1329
|
+
# @type JobId: String
|
1330
|
+
|
1331
|
+
attr_accessor :JobId
|
1332
|
+
|
1333
|
+
def initialize(jobid=nil)
|
1334
|
+
@JobId = jobid
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
def deserialize(params)
|
1338
|
+
@JobId = params['JobId']
|
1339
|
+
end
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
# DescribeCheckSyncJobResult返回参数结构体
|
1343
|
+
class DescribeCheckSyncJobResultResponse < TencentCloud::Common::AbstractModel
|
1344
|
+
# @param Status: 校验结果
|
1345
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1346
|
+
# @type Status: String
|
1347
|
+
# @param StepCount: 步骤总数
|
1348
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1349
|
+
# @type StepCount: Integer
|
1350
|
+
# @param StepCur: 当前所在步骤
|
1351
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1352
|
+
# @type StepCur: Integer
|
1353
|
+
# @param Progress: 总体进度
|
1354
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1355
|
+
# @type Progress: Integer
|
1356
|
+
# @param StepInfos: 步骤信息
|
1357
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1358
|
+
# @type StepInfos: Array
|
1359
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1360
|
+
# @type RequestId: String
|
1361
|
+
|
1362
|
+
attr_accessor :Status, :StepCount, :StepCur, :Progress, :StepInfos, :RequestId
|
1363
|
+
|
1364
|
+
def initialize(status=nil, stepcount=nil, stepcur=nil, progress=nil, stepinfos=nil, requestid=nil)
|
1365
|
+
@Status = status
|
1366
|
+
@StepCount = stepcount
|
1367
|
+
@StepCur = stepcur
|
1368
|
+
@Progress = progress
|
1369
|
+
@StepInfos = stepinfos
|
1370
|
+
@RequestId = requestid
|
1371
|
+
end
|
1372
|
+
|
1373
|
+
def deserialize(params)
|
1374
|
+
@Status = params['Status']
|
1375
|
+
@StepCount = params['StepCount']
|
1376
|
+
@StepCur = params['StepCur']
|
1377
|
+
@Progress = params['Progress']
|
1378
|
+
unless params['StepInfos'].nil?
|
1379
|
+
@StepInfos = []
|
1380
|
+
params['StepInfos'].each do |i|
|
1381
|
+
stepinfo_tmp = StepInfo.new
|
1382
|
+
stepinfo_tmp.deserialize(i)
|
1383
|
+
@StepInfos << stepinfo_tmp
|
1384
|
+
end
|
1385
|
+
end
|
1386
|
+
@RequestId = params['RequestId']
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# DescribeCompareReport请求参数结构体
|
1391
|
+
class DescribeCompareReportRequest < TencentCloud::Common::AbstractModel
|
1392
|
+
# @param JobId: 迁移任务 Id
|
1393
|
+
# @type JobId: String
|
1394
|
+
# @param CompareTaskId: 校验任务 Id
|
1395
|
+
# @type CompareTaskId: String
|
1396
|
+
# @param DifferenceLimit: 校验不一致结果的 limit
|
1397
|
+
# @type DifferenceLimit: Integer
|
1398
|
+
# @param DifferenceOffset: 不一致的 Offset
|
1399
|
+
# @type DifferenceOffset: Integer
|
1400
|
+
# @param DifferenceDB: 搜索条件,不一致的库名
|
1401
|
+
# @type DifferenceDB: String
|
1402
|
+
# @param DifferenceTable: 搜索条件,不一致的表名
|
1403
|
+
# @type DifferenceTable: String
|
1404
|
+
# @param SkippedLimit: 未校验的 Limit
|
1405
|
+
# @type SkippedLimit: Integer
|
1406
|
+
# @param SkippedOffset: 未校验的 Offset
|
1407
|
+
# @type SkippedOffset: Integer
|
1408
|
+
# @param SkippedDB: 搜索条件,未校验的库名
|
1409
|
+
# @type SkippedDB: String
|
1410
|
+
# @param SkippedTable: 搜索条件,未校验的表名
|
1411
|
+
# @type SkippedTable: String
|
1412
|
+
|
1413
|
+
attr_accessor :JobId, :CompareTaskId, :DifferenceLimit, :DifferenceOffset, :DifferenceDB, :DifferenceTable, :SkippedLimit, :SkippedOffset, :SkippedDB, :SkippedTable
|
1414
|
+
|
1415
|
+
def initialize(jobid=nil, comparetaskid=nil, differencelimit=nil, differenceoffset=nil, differencedb=nil, differencetable=nil, skippedlimit=nil, skippedoffset=nil, skippeddb=nil, skippedtable=nil)
|
1416
|
+
@JobId = jobid
|
1417
|
+
@CompareTaskId = comparetaskid
|
1418
|
+
@DifferenceLimit = differencelimit
|
1419
|
+
@DifferenceOffset = differenceoffset
|
1420
|
+
@DifferenceDB = differencedb
|
1421
|
+
@DifferenceTable = differencetable
|
1422
|
+
@SkippedLimit = skippedlimit
|
1423
|
+
@SkippedOffset = skippedoffset
|
1424
|
+
@SkippedDB = skippeddb
|
1425
|
+
@SkippedTable = skippedtable
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
def deserialize(params)
|
1429
|
+
@JobId = params['JobId']
|
1430
|
+
@CompareTaskId = params['CompareTaskId']
|
1431
|
+
@DifferenceLimit = params['DifferenceLimit']
|
1432
|
+
@DifferenceOffset = params['DifferenceOffset']
|
1433
|
+
@DifferenceDB = params['DifferenceDB']
|
1434
|
+
@DifferenceTable = params['DifferenceTable']
|
1435
|
+
@SkippedLimit = params['SkippedLimit']
|
1436
|
+
@SkippedOffset = params['SkippedOffset']
|
1437
|
+
@SkippedDB = params['SkippedDB']
|
1438
|
+
@SkippedTable = params['SkippedTable']
|
1439
|
+
end
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# DescribeCompareReport返回参数结构体
|
1443
|
+
class DescribeCompareReportResponse < TencentCloud::Common::AbstractModel
|
1444
|
+
# @param Abstract: 一致性校验摘要信息
|
1445
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1446
|
+
# @type Abstract: :class:`Tencentcloud::Dts.v20211206.models.CompareAbstractInfo`
|
1447
|
+
# @param Detail: 一致性校验详细信息
|
1448
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1449
|
+
# @type Detail: :class:`Tencentcloud::Dts.v20211206.models.CompareDetailInfo`
|
1450
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1451
|
+
# @type RequestId: String
|
1452
|
+
|
1453
|
+
attr_accessor :Abstract, :Detail, :RequestId
|
1454
|
+
|
1455
|
+
def initialize(abstract=nil, detail=nil, requestid=nil)
|
1456
|
+
@Abstract = abstract
|
1457
|
+
@Detail = detail
|
1458
|
+
@RequestId = requestid
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
def deserialize(params)
|
1462
|
+
unless params['Abstract'].nil?
|
1463
|
+
@Abstract = CompareAbstractInfo.new
|
1464
|
+
@Abstract.deserialize(params['Abstract'])
|
1465
|
+
end
|
1466
|
+
unless params['Detail'].nil?
|
1467
|
+
@Detail = CompareDetailInfo.new
|
1468
|
+
@Detail.deserialize(params['Detail'])
|
1469
|
+
end
|
1470
|
+
@RequestId = params['RequestId']
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# DescribeCompareTasks请求参数结构体
|
1475
|
+
class DescribeCompareTasksRequest < TencentCloud::Common::AbstractModel
|
1476
|
+
# @param JobId: 迁移任务 Id
|
1477
|
+
# @type JobId: String
|
1478
|
+
# @param Limit: 分页设置,表示每页显示多少条任务,默认为 20
|
1479
|
+
# @type Limit: Integer
|
1480
|
+
# @param Offset: 分页偏移量
|
1481
|
+
# @type Offset: Integer
|
1482
|
+
|
1483
|
+
attr_accessor :JobId, :Limit, :Offset
|
1484
|
+
|
1485
|
+
def initialize(jobid=nil, limit=nil, offset=nil)
|
1486
|
+
@JobId = jobid
|
1487
|
+
@Limit = limit
|
1488
|
+
@Offset = offset
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
def deserialize(params)
|
1492
|
+
@JobId = params['JobId']
|
1493
|
+
@Limit = params['Limit']
|
1494
|
+
@Offset = params['Offset']
|
1495
|
+
end
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# DescribeCompareTasks返回参数结构体
|
1499
|
+
class DescribeCompareTasksResponse < TencentCloud::Common::AbstractModel
|
1500
|
+
# @param TotalCount: 数量
|
1501
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1502
|
+
# @type TotalCount: Integer
|
1503
|
+
# @param Items: 一致性校验列表
|
1504
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1505
|
+
# @type Items: Array
|
1506
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1507
|
+
# @type RequestId: String
|
1508
|
+
|
1509
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
1510
|
+
|
1511
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
1512
|
+
@TotalCount = totalcount
|
1513
|
+
@Items = items
|
1514
|
+
@RequestId = requestid
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
def deserialize(params)
|
1518
|
+
@TotalCount = params['TotalCount']
|
1519
|
+
unless params['Items'].nil?
|
1520
|
+
@Items = []
|
1521
|
+
params['Items'].each do |i|
|
1522
|
+
comparetaskitem_tmp = CompareTaskItem.new
|
1523
|
+
comparetaskitem_tmp.deserialize(i)
|
1524
|
+
@Items << comparetaskitem_tmp
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
@RequestId = params['RequestId']
|
1528
|
+
end
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
# DescribeMigrateDBInstances请求参数结构体
|
1532
|
+
class DescribeMigrateDBInstancesRequest < TencentCloud::Common::AbstractModel
|
1533
|
+
# @param DatabaseType: 数据库类型,如mysql
|
1534
|
+
# @type DatabaseType: String
|
1535
|
+
# @param MigrateRole: 实例作为迁移的源还是目标,src(表示源),dst(表示目标)
|
1536
|
+
# @type MigrateRole: String
|
1537
|
+
# @param InstanceId: 云数据库实例ID
|
1538
|
+
# @type InstanceId: String
|
1539
|
+
# @param InstanceName: 云数据库名称
|
1540
|
+
# @type InstanceName: String
|
1541
|
+
# @param Limit: 返回数量限制
|
1542
|
+
# @type Limit: Integer
|
1543
|
+
# @param Offset: 偏移量
|
1544
|
+
# @type Offset: Integer
|
1545
|
+
# @param AccountMode: 资源所属账号 为空值或self(表示本账号内资源)、other(表示其他账户资源)
|
1546
|
+
# @type AccountMode: String
|
1547
|
+
# @param TmpSecretId: 临时秘钥Id,若为跨账号资源此项必填
|
1548
|
+
# @type TmpSecretId: String
|
1549
|
+
# @param TmpSecretKey: 临时秘钥Key,若为跨账号资源此项必填
|
1550
|
+
# @type TmpSecretKey: String
|
1551
|
+
# @param TmpToken: 临时秘钥Token,若为跨账号资源此项必填
|
1552
|
+
# @type TmpToken: String
|
1553
|
+
|
1554
|
+
attr_accessor :DatabaseType, :MigrateRole, :InstanceId, :InstanceName, :Limit, :Offset, :AccountMode, :TmpSecretId, :TmpSecretKey, :TmpToken
|
1555
|
+
|
1556
|
+
def initialize(databasetype=nil, migraterole=nil, instanceid=nil, instancename=nil, limit=nil, offset=nil, accountmode=nil, tmpsecretid=nil, tmpsecretkey=nil, tmptoken=nil)
|
1557
|
+
@DatabaseType = databasetype
|
1558
|
+
@MigrateRole = migraterole
|
1559
|
+
@InstanceId = instanceid
|
1560
|
+
@InstanceName = instancename
|
1561
|
+
@Limit = limit
|
1562
|
+
@Offset = offset
|
1563
|
+
@AccountMode = accountmode
|
1564
|
+
@TmpSecretId = tmpsecretid
|
1565
|
+
@TmpSecretKey = tmpsecretkey
|
1566
|
+
@TmpToken = tmptoken
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
def deserialize(params)
|
1570
|
+
@DatabaseType = params['DatabaseType']
|
1571
|
+
@MigrateRole = params['MigrateRole']
|
1572
|
+
@InstanceId = params['InstanceId']
|
1573
|
+
@InstanceName = params['InstanceName']
|
1574
|
+
@Limit = params['Limit']
|
1575
|
+
@Offset = params['Offset']
|
1576
|
+
@AccountMode = params['AccountMode']
|
1577
|
+
@TmpSecretId = params['TmpSecretId']
|
1578
|
+
@TmpSecretKey = params['TmpSecretKey']
|
1579
|
+
@TmpToken = params['TmpToken']
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
# DescribeMigrateDBInstances返回参数结构体
|
1584
|
+
class DescribeMigrateDBInstancesResponse < TencentCloud::Common::AbstractModel
|
1585
|
+
# @param TotalCount: 符合筛选条件的数量
|
1586
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1587
|
+
# @type TotalCount: Integer
|
1588
|
+
# @param Instances: 实例列表
|
1589
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1590
|
+
# @type Instances: Array
|
1591
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1592
|
+
# @type RequestId: String
|
1593
|
+
|
1594
|
+
attr_accessor :TotalCount, :Instances, :RequestId
|
1595
|
+
|
1596
|
+
def initialize(totalcount=nil, instances=nil, requestid=nil)
|
1597
|
+
@TotalCount = totalcount
|
1598
|
+
@Instances = instances
|
1599
|
+
@RequestId = requestid
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
def deserialize(params)
|
1603
|
+
@TotalCount = params['TotalCount']
|
1604
|
+
unless params['Instances'].nil?
|
1605
|
+
@Instances = []
|
1606
|
+
params['Instances'].each do |i|
|
1607
|
+
migratedbitem_tmp = MigrateDBItem.new
|
1608
|
+
migratedbitem_tmp.deserialize(i)
|
1609
|
+
@Instances << migratedbitem_tmp
|
1610
|
+
end
|
1611
|
+
end
|
1612
|
+
@RequestId = params['RequestId']
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# DescribeMigrationCheckJob请求参数结构体
|
1617
|
+
class DescribeMigrationCheckJobRequest < TencentCloud::Common::AbstractModel
|
1618
|
+
# @param JobId: 任务id
|
1619
|
+
# @type JobId: String
|
1620
|
+
|
1621
|
+
attr_accessor :JobId
|
1622
|
+
|
1623
|
+
def initialize(jobid=nil)
|
1624
|
+
@JobId = jobid
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
def deserialize(params)
|
1628
|
+
@JobId = params['JobId']
|
1629
|
+
end
|
1630
|
+
end
|
1631
|
+
|
1632
|
+
# DescribeMigrationCheckJob返回参数结构体
|
1633
|
+
class DescribeMigrationCheckJobResponse < TencentCloud::Common::AbstractModel
|
1634
|
+
# @param Status: 校验任务执行状态,如:notStarted(未开始)、running(校验中)、failed(校验任务失败)、success(任务成功)
|
1635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1636
|
+
# @type Status: String
|
1637
|
+
# @param BriefMsg: 校验任务结果输出简要信息
|
1638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1639
|
+
# @type BriefMsg: String
|
1640
|
+
# @param StepInfo: 检查步骤
|
1641
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1642
|
+
# @type StepInfo: Array
|
1643
|
+
# @param CheckFlag: 校验结果,如:checkPass(校验通过)、checkNotPass(校验未通过)
|
1644
|
+
# @type CheckFlag: String
|
1645
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1646
|
+
# @type RequestId: String
|
1647
|
+
|
1648
|
+
attr_accessor :Status, :BriefMsg, :StepInfo, :CheckFlag, :RequestId
|
1649
|
+
|
1650
|
+
def initialize(status=nil, briefmsg=nil, stepinfo=nil, checkflag=nil, requestid=nil)
|
1651
|
+
@Status = status
|
1652
|
+
@BriefMsg = briefmsg
|
1653
|
+
@StepInfo = stepinfo
|
1654
|
+
@CheckFlag = checkflag
|
1655
|
+
@RequestId = requestid
|
1656
|
+
end
|
1657
|
+
|
1658
|
+
def deserialize(params)
|
1659
|
+
@Status = params['Status']
|
1660
|
+
@BriefMsg = params['BriefMsg']
|
1661
|
+
unless params['StepInfo'].nil?
|
1662
|
+
@StepInfo = []
|
1663
|
+
params['StepInfo'].each do |i|
|
1664
|
+
checkstep_tmp = CheckStep.new
|
1665
|
+
checkstep_tmp.deserialize(i)
|
1666
|
+
@StepInfo << checkstep_tmp
|
1667
|
+
end
|
1668
|
+
end
|
1669
|
+
@CheckFlag = params['CheckFlag']
|
1670
|
+
@RequestId = params['RequestId']
|
1671
|
+
end
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# DescribeMigrationDetail请求参数结构体
|
1675
|
+
class DescribeMigrationDetailRequest < TencentCloud::Common::AbstractModel
|
1676
|
+
# @param JobId: 数据迁移任务ID
|
1677
|
+
# @type JobId: String
|
1678
|
+
|
1679
|
+
attr_accessor :JobId
|
1680
|
+
|
1681
|
+
def initialize(jobid=nil)
|
1682
|
+
@JobId = jobid
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
def deserialize(params)
|
1686
|
+
@JobId = params['JobId']
|
1687
|
+
end
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# DescribeMigrationDetail返回参数结构体
|
1691
|
+
class DescribeMigrationDetailResponse < TencentCloud::Common::AbstractModel
|
1692
|
+
# @param JobId: 数据迁移任务ID
|
1693
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1694
|
+
# @type JobId: String
|
1695
|
+
# @param JobName: 数据迁移任务名称
|
1696
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1697
|
+
# @type JobName: String
|
1698
|
+
# @param CreateTime: 任务创建(提交)时间,格式为 yyyy-mm-dd hh:mm:ss
|
1699
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1700
|
+
# @type CreateTime: String
|
1701
|
+
# @param UpdateTime: 任务更新时间,格式为 yyyy-mm-dd hh:mm:ss
|
1702
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1703
|
+
# @type UpdateTime: String
|
1704
|
+
# @param StartTime: 任务开始执行时间,格式为 yyyy-mm-dd hh:mm:ss
|
1705
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1706
|
+
# @type StartTime: String
|
1707
|
+
# @param EndTime: 任务执行结束时间,格式为 yyyy-mm-dd hh:mm:ss
|
1708
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1709
|
+
# @type EndTime: String
|
1710
|
+
# @param BriefMsg: 迁移任务简要错误信息
|
1711
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1712
|
+
# @type BriefMsg: String
|
1713
|
+
# @param Status: 任务状态,取值为:created(创建完成)、checking(校验中)、checkPass(校验通过)、checkNotPass(校验不通过)、readyRun(准备运行)、running(任务运行中)、readyComplete(准备完成)、success(任务成功)、failed(任务失败)、stopping(中止中)、completing(完成中)
|
1714
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1715
|
+
# @type Status: String
|
1716
|
+
# @param Action: 任务操作信息
|
1717
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1718
|
+
# @type Action: :class:`Tencentcloud::Dts.v20211206.models.MigrateAction`
|
1719
|
+
# @param StepInfo: 迁移执行过程信息,在校验阶段显示校验过程步骤信息,在迁移阶段会显示迁移步骤信息
|
1720
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1721
|
+
# @type StepInfo: :class:`Tencentcloud::Dts.v20211206.models.MigrateDetailInfo`
|
1722
|
+
# @param SrcInfo: 源实例信息
|
1723
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1724
|
+
# @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
1725
|
+
# @param DstInfo: 目标端信息
|
1726
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1727
|
+
# @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
1728
|
+
# @param CompareTask: 数据一致性校验结果
|
1729
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1730
|
+
# @type CompareTask: :class:`Tencentcloud::Dts.v20211206.models.CompareTaskInfo`
|
1731
|
+
# @param Tags: 标签信息
|
1732
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1733
|
+
# @type Tags: Array
|
1734
|
+
# @param RunMode: 运行模式,取值如:immediate(表示立即运行)、timed(表示定时运行)
|
1735
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1736
|
+
# @type RunMode: String
|
1737
|
+
# @param ExpectRunTime: 期待启动时间,当RunMode取值为timed时,此值必填,形如:"2006-01-02 15:04:05"
|
1738
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1739
|
+
# @type ExpectRunTime: String
|
1740
|
+
# @param MigrateOption: 迁移选项,描述任务如何执行迁移等一系列配置信息
|
1741
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1742
|
+
# @type MigrateOption: :class:`Tencentcloud::Dts.v20211206.models.MigrateOption`
|
1743
|
+
# @param CheckStepInfo: 校验任务运行详情
|
1744
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1745
|
+
# @type CheckStepInfo: :class:`Tencentcloud::Dts.v20211206.models.CheckStepInfo`
|
1746
|
+
# @param TradeInfo: 描述计费相关的信息
|
1747
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1748
|
+
# @type TradeInfo: :class:`Tencentcloud::Dts.v20211206.models.TradeInfo`
|
1749
|
+
# @param ErrorInfo: 任务错误信息
|
1750
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1751
|
+
# @type ErrorInfo: Array
|
1752
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1753
|
+
# @type RequestId: String
|
1754
|
+
|
1755
|
+
attr_accessor :JobId, :JobName, :CreateTime, :UpdateTime, :StartTime, :EndTime, :BriefMsg, :Status, :Action, :StepInfo, :SrcInfo, :DstInfo, :CompareTask, :Tags, :RunMode, :ExpectRunTime, :MigrateOption, :CheckStepInfo, :TradeInfo, :ErrorInfo, :RequestId
|
1756
|
+
|
1757
|
+
def initialize(jobid=nil, jobname=nil, createtime=nil, updatetime=nil, starttime=nil, endtime=nil, briefmsg=nil, status=nil, action=nil, stepinfo=nil, srcinfo=nil, dstinfo=nil, comparetask=nil, tags=nil, runmode=nil, expectruntime=nil, migrateoption=nil, checkstepinfo=nil, tradeinfo=nil, errorinfo=nil, requestid=nil)
|
1758
|
+
@JobId = jobid
|
1759
|
+
@JobName = jobname
|
1760
|
+
@CreateTime = createtime
|
1761
|
+
@UpdateTime = updatetime
|
1762
|
+
@StartTime = starttime
|
1763
|
+
@EndTime = endtime
|
1764
|
+
@BriefMsg = briefmsg
|
1765
|
+
@Status = status
|
1766
|
+
@Action = action
|
1767
|
+
@StepInfo = stepinfo
|
1768
|
+
@SrcInfo = srcinfo
|
1769
|
+
@DstInfo = dstinfo
|
1770
|
+
@CompareTask = comparetask
|
1771
|
+
@Tags = tags
|
1772
|
+
@RunMode = runmode
|
1773
|
+
@ExpectRunTime = expectruntime
|
1774
|
+
@MigrateOption = migrateoption
|
1775
|
+
@CheckStepInfo = checkstepinfo
|
1776
|
+
@TradeInfo = tradeinfo
|
1777
|
+
@ErrorInfo = errorinfo
|
1778
|
+
@RequestId = requestid
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
def deserialize(params)
|
1782
|
+
@JobId = params['JobId']
|
1783
|
+
@JobName = params['JobName']
|
1784
|
+
@CreateTime = params['CreateTime']
|
1785
|
+
@UpdateTime = params['UpdateTime']
|
1786
|
+
@StartTime = params['StartTime']
|
1787
|
+
@EndTime = params['EndTime']
|
1788
|
+
@BriefMsg = params['BriefMsg']
|
1789
|
+
@Status = params['Status']
|
1790
|
+
unless params['Action'].nil?
|
1791
|
+
@Action = MigrateAction.new
|
1792
|
+
@Action.deserialize(params['Action'])
|
1793
|
+
end
|
1794
|
+
unless params['StepInfo'].nil?
|
1795
|
+
@StepInfo = MigrateDetailInfo.new
|
1796
|
+
@StepInfo.deserialize(params['StepInfo'])
|
1797
|
+
end
|
1798
|
+
unless params['SrcInfo'].nil?
|
1799
|
+
@SrcInfo = DBEndpointInfo.new
|
1800
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
1801
|
+
end
|
1802
|
+
unless params['DstInfo'].nil?
|
1803
|
+
@DstInfo = DBEndpointInfo.new
|
1804
|
+
@DstInfo.deserialize(params['DstInfo'])
|
1805
|
+
end
|
1806
|
+
unless params['CompareTask'].nil?
|
1807
|
+
@CompareTask = CompareTaskInfo.new
|
1808
|
+
@CompareTask.deserialize(params['CompareTask'])
|
1809
|
+
end
|
1810
|
+
unless params['Tags'].nil?
|
1811
|
+
@Tags = []
|
1812
|
+
params['Tags'].each do |i|
|
1813
|
+
tagitem_tmp = TagItem.new
|
1814
|
+
tagitem_tmp.deserialize(i)
|
1815
|
+
@Tags << tagitem_tmp
|
1816
|
+
end
|
1817
|
+
end
|
1818
|
+
@RunMode = params['RunMode']
|
1819
|
+
@ExpectRunTime = params['ExpectRunTime']
|
1820
|
+
unless params['MigrateOption'].nil?
|
1821
|
+
@MigrateOption = MigrateOption.new
|
1822
|
+
@MigrateOption.deserialize(params['MigrateOption'])
|
1823
|
+
end
|
1824
|
+
unless params['CheckStepInfo'].nil?
|
1825
|
+
@CheckStepInfo = CheckStepInfo.new
|
1826
|
+
@CheckStepInfo.deserialize(params['CheckStepInfo'])
|
1827
|
+
end
|
1828
|
+
unless params['TradeInfo'].nil?
|
1829
|
+
@TradeInfo = TradeInfo.new
|
1830
|
+
@TradeInfo.deserialize(params['TradeInfo'])
|
1831
|
+
end
|
1832
|
+
unless params['ErrorInfo'].nil?
|
1833
|
+
@ErrorInfo = []
|
1834
|
+
params['ErrorInfo'].each do |i|
|
1835
|
+
errorinfoitem_tmp = ErrorInfoItem.new
|
1836
|
+
errorinfoitem_tmp.deserialize(i)
|
1837
|
+
@ErrorInfo << errorinfoitem_tmp
|
1838
|
+
end
|
1839
|
+
end
|
1840
|
+
@RequestId = params['RequestId']
|
1841
|
+
end
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
# DescribeMigrationJobs请求参数结构体
|
1845
|
+
class DescribeMigrationJobsRequest < TencentCloud::Common::AbstractModel
|
1846
|
+
# @param JobId: 数据迁移任务ID,如:dts-amm1jw5q
|
1847
|
+
# @type JobId: String
|
1848
|
+
# @param JobName: 数据迁移任务名称
|
1849
|
+
# @type JobName: String
|
1850
|
+
# @param Status: 数据迁移任务状态,可取值包括:created(创建完成)、checking(校验中)、checkPass(校验通过)、checkNotPass(校验不通过)、readyRun(准备运行)、running(任务运行中)、readyComplete(准备完成)、success(任务成功)、failed(任务失败)、stopping(中止中)、completing(完成中)
|
1851
|
+
# @type Status: Array
|
1852
|
+
# @param SrcInstanceId: 源实例ID,格式如:cdb-c1nl9rpv
|
1853
|
+
# @type SrcInstanceId: String
|
1854
|
+
# @param SrcRegion: 源实例地域,如:ap-guangzhou
|
1855
|
+
# @type SrcRegion: String
|
1856
|
+
# @param SrcDatabaseType: 源实例数据库类型,如:sqlserver,mysql,mongodb,redis,tendis,keewidb,clickhouse,cynosdbmysql,percona,tdsqlpercona,mariadb,tdsqlmysql,postgresql
|
1857
|
+
# @type SrcDatabaseType: Array
|
1858
|
+
# @param SrcAccessType: 源实例接入类型,值包括:extranet(外网)、vpncloud(云vpn接入的实例)、dcg(专线接入的实例)、ccn(云联网接入的实例)、cdb(云上cdb实例)、cvm(cvm自建实例)
|
1859
|
+
# @type SrcAccessType: Array
|
1860
|
+
# @param DstInstanceId: 目标实例ID,格式如:cdb-c1nl9rpv
|
1861
|
+
# @type DstInstanceId: String
|
1862
|
+
# @param DstRegion: 目标实例地域,如:ap-guangzhou
|
1863
|
+
# @type DstRegion: String
|
1864
|
+
# @param DstDatabaseType: 目标源实例数据库类型,如:sqlserver,mysql,mongodb,redis,tendis,keewidb,clickhouse,cynosdbmysql,percona,tdsqlpercona,mariadb,tdsqlmysql,postgresql
|
1865
|
+
# @type DstDatabaseType: Array
|
1866
|
+
# @param DstAccessType: 目标实例接入类型,值包括:extranet(外网)、vpncloud(云vpn接入的实例)、dcg(专线接入的实例)、ccn(云联网接入的实例)、cdb(云上cdb实例)、cvm(cvm自建实例)
|
1867
|
+
# @type DstAccessType: Array
|
1868
|
+
# @param RunMode: 任务运行模式,值包括:immediate(立即运行),timed(定时运行)
|
1869
|
+
# @type RunMode: String
|
1870
|
+
# @param OrderSeq: 排序方式,可能取值为asc、desc,默认按照创建时间倒序
|
1871
|
+
# @type OrderSeq: String
|
1872
|
+
# @param Limit: 返回实例数量,默认20,有效区间[1,100]
|
1873
|
+
# @type Limit: Integer
|
1874
|
+
# @param Offset: 偏移量,默认为0
|
1875
|
+
# @type Offset: Integer
|
1876
|
+
# @param TagFilters: 标签过滤
|
1877
|
+
# @type TagFilters: Array
|
1878
|
+
|
1879
|
+
attr_accessor :JobId, :JobName, :Status, :SrcInstanceId, :SrcRegion, :SrcDatabaseType, :SrcAccessType, :DstInstanceId, :DstRegion, :DstDatabaseType, :DstAccessType, :RunMode, :OrderSeq, :Limit, :Offset, :TagFilters
|
1880
|
+
|
1881
|
+
def initialize(jobid=nil, jobname=nil, status=nil, srcinstanceid=nil, srcregion=nil, srcdatabasetype=nil, srcaccesstype=nil, dstinstanceid=nil, dstregion=nil, dstdatabasetype=nil, dstaccesstype=nil, runmode=nil, orderseq=nil, limit=nil, offset=nil, tagfilters=nil)
|
1882
|
+
@JobId = jobid
|
1883
|
+
@JobName = jobname
|
1884
|
+
@Status = status
|
1885
|
+
@SrcInstanceId = srcinstanceid
|
1886
|
+
@SrcRegion = srcregion
|
1887
|
+
@SrcDatabaseType = srcdatabasetype
|
1888
|
+
@SrcAccessType = srcaccesstype
|
1889
|
+
@DstInstanceId = dstinstanceid
|
1890
|
+
@DstRegion = dstregion
|
1891
|
+
@DstDatabaseType = dstdatabasetype
|
1892
|
+
@DstAccessType = dstaccesstype
|
1893
|
+
@RunMode = runmode
|
1894
|
+
@OrderSeq = orderseq
|
1895
|
+
@Limit = limit
|
1896
|
+
@Offset = offset
|
1897
|
+
@TagFilters = tagfilters
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
def deserialize(params)
|
1901
|
+
@JobId = params['JobId']
|
1902
|
+
@JobName = params['JobName']
|
1903
|
+
@Status = params['Status']
|
1904
|
+
@SrcInstanceId = params['SrcInstanceId']
|
1905
|
+
@SrcRegion = params['SrcRegion']
|
1906
|
+
@SrcDatabaseType = params['SrcDatabaseType']
|
1907
|
+
@SrcAccessType = params['SrcAccessType']
|
1908
|
+
@DstInstanceId = params['DstInstanceId']
|
1909
|
+
@DstRegion = params['DstRegion']
|
1910
|
+
@DstDatabaseType = params['DstDatabaseType']
|
1911
|
+
@DstAccessType = params['DstAccessType']
|
1912
|
+
@RunMode = params['RunMode']
|
1913
|
+
@OrderSeq = params['OrderSeq']
|
1914
|
+
@Limit = params['Limit']
|
1915
|
+
@Offset = params['Offset']
|
1916
|
+
unless params['TagFilters'].nil?
|
1917
|
+
@TagFilters = []
|
1918
|
+
params['TagFilters'].each do |i|
|
1919
|
+
tagfilter_tmp = TagFilter.new
|
1920
|
+
tagfilter_tmp.deserialize(i)
|
1921
|
+
@TagFilters << tagfilter_tmp
|
1922
|
+
end
|
1923
|
+
end
|
1924
|
+
end
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
# DescribeMigrationJobs返回参数结构体
|
1928
|
+
class DescribeMigrationJobsResponse < TencentCloud::Common::AbstractModel
|
1929
|
+
# @param TotalCount: 迁移任务数量
|
1930
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1931
|
+
# @type TotalCount: Integer
|
1932
|
+
# @param JobList: 迁移任务列表
|
1933
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1934
|
+
# @type JobList: Array
|
1935
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1936
|
+
# @type RequestId: String
|
1937
|
+
|
1938
|
+
attr_accessor :TotalCount, :JobList, :RequestId
|
1939
|
+
|
1940
|
+
def initialize(totalcount=nil, joblist=nil, requestid=nil)
|
1941
|
+
@TotalCount = totalcount
|
1942
|
+
@JobList = joblist
|
1943
|
+
@RequestId = requestid
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
def deserialize(params)
|
1947
|
+
@TotalCount = params['TotalCount']
|
1948
|
+
unless params['JobList'].nil?
|
1949
|
+
@JobList = []
|
1950
|
+
params['JobList'].each do |i|
|
1951
|
+
jobitem_tmp = JobItem.new
|
1952
|
+
jobitem_tmp.deserialize(i)
|
1953
|
+
@JobList << jobitem_tmp
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
@RequestId = params['RequestId']
|
1957
|
+
end
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
# DescribeSyncJobs请求参数结构体
|
1961
|
+
class DescribeSyncJobsRequest < TencentCloud::Common::AbstractModel
|
1962
|
+
# @param JobId: 同步任务id
|
1963
|
+
# @type JobId: String
|
1964
|
+
# @param JobName: 同步任务名
|
1965
|
+
# @type JobName: String
|
1966
|
+
# @param Order: 排序字段,可以取值为CreateTime
|
1967
|
+
# @type Order: String
|
1968
|
+
# @param OrderSeq: 排序方式,升序为ASC,降序为DESC,默认为CreateTime降序
|
1969
|
+
# @type OrderSeq: String
|
1970
|
+
# @param Offset: 偏移量,默认为0
|
1971
|
+
# @type Offset: Integer
|
1972
|
+
# @param Limit: 返回同步任务实例数量,默认20,有效区间[1,100]
|
1973
|
+
# @type Limit: Integer
|
1974
|
+
# @param Status: 状态集合,如Initialized,CheckPass,Running,ResumableErr,Stopped
|
1975
|
+
# @type Status: Array
|
1976
|
+
# @param RunMode: 运行模式,如Immediate:立即运行,Timed:定时运行
|
1977
|
+
# @type RunMode: String
|
1978
|
+
# @param JobType: 任务类型,如mysql2mysql:msyql同步到mysql
|
1979
|
+
# @type JobType: String
|
1980
|
+
# @param PayMode: 付费类型,PrePay:预付费,PostPay:后付费
|
1981
|
+
# @type PayMode: String
|
1982
|
+
# @param TagFilters: tag
|
1983
|
+
# @type TagFilters: Array
|
1984
|
+
|
1985
|
+
attr_accessor :JobId, :JobName, :Order, :OrderSeq, :Offset, :Limit, :Status, :RunMode, :JobType, :PayMode, :TagFilters
|
1986
|
+
|
1987
|
+
def initialize(jobid=nil, jobname=nil, order=nil, orderseq=nil, offset=nil, limit=nil, status=nil, runmode=nil, jobtype=nil, paymode=nil, tagfilters=nil)
|
1988
|
+
@JobId = jobid
|
1989
|
+
@JobName = jobname
|
1990
|
+
@Order = order
|
1991
|
+
@OrderSeq = orderseq
|
1992
|
+
@Offset = offset
|
1993
|
+
@Limit = limit
|
1994
|
+
@Status = status
|
1995
|
+
@RunMode = runmode
|
1996
|
+
@JobType = jobtype
|
1997
|
+
@PayMode = paymode
|
1998
|
+
@TagFilters = tagfilters
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
def deserialize(params)
|
2002
|
+
@JobId = params['JobId']
|
2003
|
+
@JobName = params['JobName']
|
2004
|
+
@Order = params['Order']
|
2005
|
+
@OrderSeq = params['OrderSeq']
|
2006
|
+
@Offset = params['Offset']
|
2007
|
+
@Limit = params['Limit']
|
2008
|
+
@Status = params['Status']
|
2009
|
+
@RunMode = params['RunMode']
|
2010
|
+
@JobType = params['JobType']
|
2011
|
+
@PayMode = params['PayMode']
|
2012
|
+
unless params['TagFilters'].nil?
|
2013
|
+
@TagFilters = []
|
2014
|
+
params['TagFilters'].each do |i|
|
2015
|
+
tagfilter_tmp = TagFilter.new
|
2016
|
+
tagfilter_tmp.deserialize(i)
|
2017
|
+
@TagFilters << tagfilter_tmp
|
2018
|
+
end
|
2019
|
+
end
|
2020
|
+
end
|
2021
|
+
end
|
2022
|
+
|
2023
|
+
# DescribeSyncJobs返回参数结构体
|
2024
|
+
class DescribeSyncJobsResponse < TencentCloud::Common::AbstractModel
|
2025
|
+
# @param TotalCount: 任务数目
|
2026
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2027
|
+
# @type TotalCount: Integer
|
2028
|
+
# @param JobList: 任务详情数组
|
2029
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2030
|
+
# @type JobList: Array
|
2031
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2032
|
+
# @type RequestId: String
|
2033
|
+
|
2034
|
+
attr_accessor :TotalCount, :JobList, :RequestId
|
2035
|
+
|
2036
|
+
def initialize(totalcount=nil, joblist=nil, requestid=nil)
|
2037
|
+
@TotalCount = totalcount
|
2038
|
+
@JobList = joblist
|
2039
|
+
@RequestId = requestid
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
def deserialize(params)
|
2043
|
+
@TotalCount = params['TotalCount']
|
2044
|
+
unless params['JobList'].nil?
|
2045
|
+
@JobList = []
|
2046
|
+
params['JobList'].each do |i|
|
2047
|
+
syncjobinfo_tmp = SyncJobInfo.new
|
2048
|
+
syncjobinfo_tmp.deserialize(i)
|
2049
|
+
@JobList << syncjobinfo_tmp
|
2050
|
+
end
|
2051
|
+
end
|
2052
|
+
@RequestId = params['RequestId']
|
2053
|
+
end
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
# DestroyMigrateJob请求参数结构体
|
2057
|
+
class DestroyMigrateJobRequest < TencentCloud::Common::AbstractModel
|
2058
|
+
# @param JobId: 任务id
|
2059
|
+
# @type JobId: String
|
2060
|
+
|
2061
|
+
attr_accessor :JobId
|
2062
|
+
|
2063
|
+
def initialize(jobid=nil)
|
2064
|
+
@JobId = jobid
|
2065
|
+
end
|
2066
|
+
|
2067
|
+
def deserialize(params)
|
2068
|
+
@JobId = params['JobId']
|
2069
|
+
end
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
# DestroyMigrateJob返回参数结构体
|
2073
|
+
class DestroyMigrateJobResponse < TencentCloud::Common::AbstractModel
|
2074
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2075
|
+
# @type RequestId: String
|
2076
|
+
|
2077
|
+
attr_accessor :RequestId
|
2078
|
+
|
2079
|
+
def initialize(requestid=nil)
|
2080
|
+
@RequestId = requestid
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
def deserialize(params)
|
2084
|
+
@RequestId = params['RequestId']
|
2085
|
+
end
|
2086
|
+
end
|
2087
|
+
|
2088
|
+
# DestroySyncJob请求参数结构体
|
2089
|
+
class DestroySyncJobRequest < TencentCloud::Common::AbstractModel
|
2090
|
+
# @param JobId: 同步任务id
|
2091
|
+
# @type JobId: String
|
2092
|
+
|
2093
|
+
attr_accessor :JobId
|
2094
|
+
|
2095
|
+
def initialize(jobid=nil)
|
2096
|
+
@JobId = jobid
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
def deserialize(params)
|
2100
|
+
@JobId = params['JobId']
|
2101
|
+
end
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
# DestroySyncJob返回参数结构体
|
2105
|
+
class DestroySyncJobResponse < TencentCloud::Common::AbstractModel
|
2106
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2107
|
+
# @type RequestId: String
|
2108
|
+
|
2109
|
+
attr_accessor :RequestId
|
2110
|
+
|
2111
|
+
def initialize(requestid=nil)
|
2112
|
+
@RequestId = requestid
|
2113
|
+
end
|
2114
|
+
|
2115
|
+
def deserialize(params)
|
2116
|
+
@RequestId = params['RequestId']
|
2117
|
+
end
|
2118
|
+
end
|
2119
|
+
|
2120
|
+
# 每个检查步骤里的具体检查项
|
2121
|
+
class DetailCheckItem < TencentCloud::Common::AbstractModel
|
2122
|
+
# @param CheckItemName: 检查项的名称,如:源实例权限检查
|
2123
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2124
|
+
# @type CheckItemName: String
|
2125
|
+
# @param Description: 检查项详细内容
|
2126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2127
|
+
# @type Description: String
|
2128
|
+
# @param CheckResult: pass(通过),failed(失败), warning(校验有警告,但仍通过)
|
2129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2130
|
+
# @type CheckResult: String
|
2131
|
+
# @param FailureReason: 检查项失败原因
|
2132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2133
|
+
# @type FailureReason: String
|
2134
|
+
# @param Solution: 解决方案
|
2135
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2136
|
+
# @type Solution: String
|
2137
|
+
# @param ErrorLog: 运行报错日志
|
2138
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2139
|
+
# @type ErrorLog: Array
|
2140
|
+
# @param HelpDoc: 详细帮助的文档链接
|
2141
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2142
|
+
# @type HelpDoc: Array
|
2143
|
+
# @param SkipInfo: 跳过风险文案
|
2144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2145
|
+
# @type SkipInfo: String
|
2146
|
+
|
2147
|
+
attr_accessor :CheckItemName, :Description, :CheckResult, :FailureReason, :Solution, :ErrorLog, :HelpDoc, :SkipInfo
|
2148
|
+
|
2149
|
+
def initialize(checkitemname=nil, description=nil, checkresult=nil, failurereason=nil, solution=nil, errorlog=nil, helpdoc=nil, skipinfo=nil)
|
2150
|
+
@CheckItemName = checkitemname
|
2151
|
+
@Description = description
|
2152
|
+
@CheckResult = checkresult
|
2153
|
+
@FailureReason = failurereason
|
2154
|
+
@Solution = solution
|
2155
|
+
@ErrorLog = errorlog
|
2156
|
+
@HelpDoc = helpdoc
|
2157
|
+
@SkipInfo = skipinfo
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
def deserialize(params)
|
2161
|
+
@CheckItemName = params['CheckItemName']
|
2162
|
+
@Description = params['Description']
|
2163
|
+
@CheckResult = params['CheckResult']
|
2164
|
+
@FailureReason = params['FailureReason']
|
2165
|
+
@Solution = params['Solution']
|
2166
|
+
@ErrorLog = params['ErrorLog']
|
2167
|
+
@HelpDoc = params['HelpDoc']
|
2168
|
+
@SkipInfo = params['SkipInfo']
|
2169
|
+
end
|
2170
|
+
end
|
2171
|
+
|
2172
|
+
# 数据不一致的表详情
|
2173
|
+
class DifferenceDetail < TencentCloud::Common::AbstractModel
|
2174
|
+
# @param TotalCount: 数据不一致的表数量
|
2175
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2176
|
+
# @type TotalCount: Integer
|
2177
|
+
# @param Items: 校验不一致的表详情
|
2178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2179
|
+
# @type Items: Array
|
2180
|
+
|
2181
|
+
attr_accessor :TotalCount, :Items
|
2182
|
+
|
2183
|
+
def initialize(totalcount=nil, items=nil)
|
2184
|
+
@TotalCount = totalcount
|
2185
|
+
@Items = items
|
2186
|
+
end
|
2187
|
+
|
2188
|
+
def deserialize(params)
|
2189
|
+
@TotalCount = params['TotalCount']
|
2190
|
+
unless params['Items'].nil?
|
2191
|
+
@Items = []
|
2192
|
+
params['Items'].each do |i|
|
2193
|
+
differenceitem_tmp = DifferenceItem.new
|
2194
|
+
differenceitem_tmp.deserialize(i)
|
2195
|
+
@Items << differenceitem_tmp
|
2196
|
+
end
|
2197
|
+
end
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
# 校验不一致的表详情
|
2202
|
+
class DifferenceItem < TencentCloud::Common::AbstractModel
|
2203
|
+
# @param Db: 数据库名
|
2204
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2205
|
+
# @type Db: String
|
2206
|
+
# @param Table: 表名
|
2207
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2208
|
+
# @type Table: String
|
2209
|
+
# @param Chunk: 分块号
|
2210
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2211
|
+
# @type Chunk: Integer
|
2212
|
+
# @param SrcItem: 源库数值
|
2213
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2214
|
+
# @type SrcItem: String
|
2215
|
+
# @param DstItem: 目标库数值
|
2216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2217
|
+
# @type DstItem: String
|
2218
|
+
# @param IndexName: 索引名称
|
2219
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2220
|
+
# @type IndexName: String
|
2221
|
+
# @param LowerBoundary: 索引下边界
|
2222
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2223
|
+
# @type LowerBoundary: String
|
2224
|
+
# @param UpperBoundary: 索引上边界
|
2225
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2226
|
+
# @type UpperBoundary: String
|
2227
|
+
# @param CostTime: 对比消耗时间,单位为 ms
|
2228
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2229
|
+
# @type CostTime: Float
|
2230
|
+
# @param FinishedAt: 完成时间
|
2231
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2232
|
+
# @type FinishedAt: String
|
2233
|
+
|
2234
|
+
attr_accessor :Db, :Table, :Chunk, :SrcItem, :DstItem, :IndexName, :LowerBoundary, :UpperBoundary, :CostTime, :FinishedAt
|
2235
|
+
|
2236
|
+
def initialize(db=nil, table=nil, chunk=nil, srcitem=nil, dstitem=nil, indexname=nil, lowerboundary=nil, upperboundary=nil, costtime=nil, finishedat=nil)
|
2237
|
+
@Db = db
|
2238
|
+
@Table = table
|
2239
|
+
@Chunk = chunk
|
2240
|
+
@SrcItem = srcitem
|
2241
|
+
@DstItem = dstitem
|
2242
|
+
@IndexName = indexname
|
2243
|
+
@LowerBoundary = lowerboundary
|
2244
|
+
@UpperBoundary = upperboundary
|
2245
|
+
@CostTime = costtime
|
2246
|
+
@FinishedAt = finishedat
|
2247
|
+
end
|
2248
|
+
|
2249
|
+
def deserialize(params)
|
2250
|
+
@Db = params['Db']
|
2251
|
+
@Table = params['Table']
|
2252
|
+
@Chunk = params['Chunk']
|
2253
|
+
@SrcItem = params['SrcItem']
|
2254
|
+
@DstItem = params['DstItem']
|
2255
|
+
@IndexName = params['IndexName']
|
2256
|
+
@LowerBoundary = params['LowerBoundary']
|
2257
|
+
@UpperBoundary = params['UpperBoundary']
|
2258
|
+
@CostTime = params['CostTime']
|
2259
|
+
@FinishedAt = params['FinishedAt']
|
2260
|
+
end
|
2261
|
+
end
|
2262
|
+
|
2263
|
+
# 数据同步中的描述源端和目的端的信息
|
2264
|
+
class Endpoint < TencentCloud::Common::AbstractModel
|
2265
|
+
# @param Region: 地域英文名,如:ap-guangzhou
|
2266
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2267
|
+
# @type Region: String
|
2268
|
+
# @param DbKernel: 数据库内核类型,tdsql中用于区分不同内核:percona,mariadb,mysql
|
2269
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2270
|
+
# @type DbKernel: String
|
2271
|
+
# @param InstanceId: 数据库实例ID,格式如:cdb-powiqx8q
|
2272
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2273
|
+
# @type InstanceId: String
|
2274
|
+
# @param Ip: 实例的IP地址,接入类型为非cdb时此项必填
|
2275
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2276
|
+
# @type Ip: String
|
2277
|
+
# @param Port: 实例端口,接入类型为非cdb时此项必填
|
2278
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2279
|
+
# @type Port: Integer
|
2280
|
+
# @param User: 用户名,对于访问需要用户名密码认证的实例必填
|
2281
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2282
|
+
# @type User: String
|
2283
|
+
# @param Password: 密码,对于访问需要用户名密码认证的实例必填
|
2284
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2285
|
+
# @type Password: String
|
2286
|
+
# @param DbName: 数据库名,数据库为cdwpg时,需要提供
|
2287
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2288
|
+
# @type DbName: String
|
2289
|
+
# @param VpcId: 私有网络ID,对于私有网络、专线、VPN的接入方式此项必填,格式如:vpc-92jblxto
|
2290
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2291
|
+
# @type VpcId: String
|
2292
|
+
# @param SubnetId: 私有网络下的子网ID,对于私有网络、专线、VPN的接入方式此项必填,格式如:subnet-3paxmkdz
|
2293
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2294
|
+
# @type SubnetId: String
|
2295
|
+
# @param CvmInstanceId: CVM实例短ID,格式如:ins-olgl39y8,与云服务器控制台页面显示的实例ID相同。如果是CVM自建实例,需要传递此字段
|
2296
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2297
|
+
# @type CvmInstanceId: String
|
2298
|
+
# @param UniqDcgId: 专线网关ID,对于专线接入类型此项必填,格式如:dcg-0rxtqqxb
|
2299
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2300
|
+
# @type UniqDcgId: String
|
2301
|
+
# @param UniqVpnGwId: VPN网关ID,对于vpn接入类型此项必填,格式如:vpngw-9ghexg7q
|
2302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2303
|
+
# @type UniqVpnGwId: String
|
2304
|
+
# @param CcnId: 云联网ID,对于云联网接入类型此项必填,如:ccn-afp6kltc
|
2305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2306
|
+
# @type CcnId: String
|
2307
|
+
# @param Supplier: 云厂商类型,当实例为RDS实例时,填写为aliyun, 其他情况均填写others,默认为others
|
2308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2309
|
+
# @type Supplier: String
|
2310
|
+
# @param EngineVersion: 数据库版本,当实例为RDS实例时才有效,其他实例忽略,格式如:5.6或者5.7,默认为5.6
|
2311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2312
|
+
# @type EngineVersion: String
|
2313
|
+
# @param AccountMode: 资源所属账号 为空或self(表示本账号内资源)、other(表示跨账号资源)
|
2314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2315
|
+
# @type AccountMode: String
|
2316
|
+
# @param Account: 实例所属账号,如果为跨账号实例此项必填
|
2317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2318
|
+
# @type Account: String
|
2319
|
+
# @param AccountRole: 跨账号同步时的角色,只允许[a-zA-Z0-9\-\_]+,如果为跨账号实例此项必填
|
2320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2321
|
+
# @type AccountRole: String
|
2322
|
+
# @param TmpSecretId: 临时秘钥Id,如果为跨账号实例此项必填
|
2323
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2324
|
+
# @type TmpSecretId: String
|
2325
|
+
# @param TmpSecretKey: 临时秘钥Key,如果为跨账号实例此项必填
|
2326
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2327
|
+
# @type TmpSecretKey: String
|
2328
|
+
# @param TmpToken: 临时Token,如果为跨账号实例此项必填
|
2329
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2330
|
+
# @type TmpToken: String
|
2331
|
+
|
2332
|
+
attr_accessor :Region, :DbKernel, :InstanceId, :Ip, :Port, :User, :Password, :DbName, :VpcId, :SubnetId, :CvmInstanceId, :UniqDcgId, :UniqVpnGwId, :CcnId, :Supplier, :EngineVersion, :AccountMode, :Account, :AccountRole, :TmpSecretId, :TmpSecretKey, :TmpToken
|
2333
|
+
|
2334
|
+
def initialize(region=nil, dbkernel=nil, instanceid=nil, ip=nil, port=nil, user=nil, password=nil, dbname=nil, vpcid=nil, subnetid=nil, cvminstanceid=nil, uniqdcgid=nil, uniqvpngwid=nil, ccnid=nil, supplier=nil, engineversion=nil, accountmode=nil, account=nil, accountrole=nil, tmpsecretid=nil, tmpsecretkey=nil, tmptoken=nil)
|
2335
|
+
@Region = region
|
2336
|
+
@DbKernel = dbkernel
|
2337
|
+
@InstanceId = instanceid
|
2338
|
+
@Ip = ip
|
2339
|
+
@Port = port
|
2340
|
+
@User = user
|
2341
|
+
@Password = password
|
2342
|
+
@DbName = dbname
|
2343
|
+
@VpcId = vpcid
|
2344
|
+
@SubnetId = subnetid
|
2345
|
+
@CvmInstanceId = cvminstanceid
|
2346
|
+
@UniqDcgId = uniqdcgid
|
2347
|
+
@UniqVpnGwId = uniqvpngwid
|
2348
|
+
@CcnId = ccnid
|
2349
|
+
@Supplier = supplier
|
2350
|
+
@EngineVersion = engineversion
|
2351
|
+
@AccountMode = accountmode
|
2352
|
+
@Account = account
|
2353
|
+
@AccountRole = accountrole
|
2354
|
+
@TmpSecretId = tmpsecretid
|
2355
|
+
@TmpSecretKey = tmpsecretkey
|
2356
|
+
@TmpToken = tmptoken
|
2357
|
+
end
|
2358
|
+
|
2359
|
+
def deserialize(params)
|
2360
|
+
@Region = params['Region']
|
2361
|
+
@DbKernel = params['DbKernel']
|
2362
|
+
@InstanceId = params['InstanceId']
|
2363
|
+
@Ip = params['Ip']
|
2364
|
+
@Port = params['Port']
|
2365
|
+
@User = params['User']
|
2366
|
+
@Password = params['Password']
|
2367
|
+
@DbName = params['DbName']
|
2368
|
+
@VpcId = params['VpcId']
|
2369
|
+
@SubnetId = params['SubnetId']
|
2370
|
+
@CvmInstanceId = params['CvmInstanceId']
|
2371
|
+
@UniqDcgId = params['UniqDcgId']
|
2372
|
+
@UniqVpnGwId = params['UniqVpnGwId']
|
2373
|
+
@CcnId = params['CcnId']
|
2374
|
+
@Supplier = params['Supplier']
|
2375
|
+
@EngineVersion = params['EngineVersion']
|
2376
|
+
@AccountMode = params['AccountMode']
|
2377
|
+
@Account = params['Account']
|
2378
|
+
@AccountRole = params['AccountRole']
|
2379
|
+
@TmpSecretId = params['TmpSecretId']
|
2380
|
+
@TmpSecretKey = params['TmpSecretKey']
|
2381
|
+
@TmpToken = params['TmpToken']
|
2382
|
+
end
|
2383
|
+
end
|
2384
|
+
|
2385
|
+
# 任务错误信息
|
2386
|
+
class ErrorInfoItem < TencentCloud::Common::AbstractModel
|
2387
|
+
# @param Code: 错误码
|
2388
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2389
|
+
# @type Code: String
|
2390
|
+
# @param Solution: 解决方案
|
2391
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2392
|
+
# @type Solution: String
|
2393
|
+
# @param ErrorLog: 错误日志信息
|
2394
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2395
|
+
# @type ErrorLog: String
|
2396
|
+
# @param HelpDoc: 文档提示
|
2397
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2398
|
+
# @type HelpDoc: String
|
2399
|
+
|
2400
|
+
attr_accessor :Code, :Solution, :ErrorLog, :HelpDoc
|
2401
|
+
|
2402
|
+
def initialize(code=nil, solution=nil, errorlog=nil, helpdoc=nil)
|
2403
|
+
@Code = code
|
2404
|
+
@Solution = solution
|
2405
|
+
@ErrorLog = errorlog
|
2406
|
+
@HelpDoc = helpdoc
|
2407
|
+
end
|
2408
|
+
|
2409
|
+
def deserialize(params)
|
2410
|
+
@Code = params['Code']
|
2411
|
+
@Solution = params['Solution']
|
2412
|
+
@ErrorLog = params['ErrorLog']
|
2413
|
+
@HelpDoc = params['HelpDoc']
|
2414
|
+
end
|
2415
|
+
end
|
2416
|
+
|
2417
|
+
# IsolateMigrateJob请求参数结构体
|
2418
|
+
class IsolateMigrateJobRequest < TencentCloud::Common::AbstractModel
|
2419
|
+
# @param JobId: 任务id
|
2420
|
+
# @type JobId: String
|
2421
|
+
|
2422
|
+
attr_accessor :JobId
|
2423
|
+
|
2424
|
+
def initialize(jobid=nil)
|
2425
|
+
@JobId = jobid
|
2426
|
+
end
|
2427
|
+
|
2428
|
+
def deserialize(params)
|
2429
|
+
@JobId = params['JobId']
|
2430
|
+
end
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
# IsolateMigrateJob返回参数结构体
|
2434
|
+
class IsolateMigrateJobResponse < TencentCloud::Common::AbstractModel
|
2435
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2436
|
+
# @type RequestId: String
|
2437
|
+
|
2438
|
+
attr_accessor :RequestId
|
2439
|
+
|
2440
|
+
def initialize(requestid=nil)
|
2441
|
+
@RequestId = requestid
|
2442
|
+
end
|
2443
|
+
|
2444
|
+
def deserialize(params)
|
2445
|
+
@RequestId = params['RequestId']
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
# IsolateSyncJob请求参数结构体
|
2450
|
+
class IsolateSyncJobRequest < TencentCloud::Common::AbstractModel
|
2451
|
+
# @param JobId: 同步任务id
|
2452
|
+
# @type JobId: String
|
2453
|
+
|
2454
|
+
attr_accessor :JobId
|
2455
|
+
|
2456
|
+
def initialize(jobid=nil)
|
2457
|
+
@JobId = jobid
|
2458
|
+
end
|
2459
|
+
|
2460
|
+
def deserialize(params)
|
2461
|
+
@JobId = params['JobId']
|
2462
|
+
end
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
# IsolateSyncJob返回参数结构体
|
2466
|
+
class IsolateSyncJobResponse < TencentCloud::Common::AbstractModel
|
2467
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2468
|
+
# @type RequestId: String
|
2469
|
+
|
2470
|
+
attr_accessor :RequestId
|
2471
|
+
|
2472
|
+
def initialize(requestid=nil)
|
2473
|
+
@RequestId = requestid
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
def deserialize(params)
|
2477
|
+
@RequestId = params['RequestId']
|
2478
|
+
end
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
# 迁移任务列表
|
2482
|
+
class JobItem < TencentCloud::Common::AbstractModel
|
2483
|
+
# @param JobId: 数据迁移任务ID
|
2484
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2485
|
+
# @type JobId: String
|
2486
|
+
# @param JobName: 数据迁移任务名称
|
2487
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2488
|
+
# @type JobName: String
|
2489
|
+
# @param CreateTime: 任务创建(提交)时间,格式为 yyyy-mm-dd hh:mm:ss
|
2490
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2491
|
+
# @type CreateTime: String
|
2492
|
+
# @param UpdateTime: 任务更新时间,格式为 yyyy-mm-dd hh:mm:ss
|
2493
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2494
|
+
# @type UpdateTime: String
|
2495
|
+
# @param StartTime: 任务开始执行时间,格式为 yyyy-mm-dd hh:mm:ss
|
2496
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2497
|
+
# @type StartTime: String
|
2498
|
+
# @param EndTime: 任务执行结束时间,格式为 yyyy-mm-dd hh:mm:ss
|
2499
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2500
|
+
# @type EndTime: String
|
2501
|
+
# @param BriefMsg: 迁移任务错误信息
|
2502
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2503
|
+
# @type BriefMsg: String
|
2504
|
+
# @param Status: 任务状态,取值为:creating(创建中)、created(创建完成)、checking(校验中)、checkPass(校验通过)、checkNotPass(校验不通过)、readyRun(准备运行)、running(任务运行)、readyComplete(准备完成)、success(任务成功)、failed(任务失败)、stopping(中止中)、completing(完成中)
|
2505
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2506
|
+
# @type Status: String
|
2507
|
+
# @param RunMode: 任务运行模式,值包括:immediate(立即运行),timed(定时运行)
|
2508
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2509
|
+
# @type RunMode: String
|
2510
|
+
# @param ExpectRunTime: 期待启动时间,当RunMode取值为timed时,此值必填,形如:2022-07-11 16:20:49
|
2511
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2512
|
+
# @type ExpectRunTime: String
|
2513
|
+
# @param Action: 任务操作信息
|
2514
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2515
|
+
# @type Action: :class:`Tencentcloud::Dts.v20211206.models.MigrateAction`
|
2516
|
+
# @param StepInfo: 迁移执行过程信息
|
2517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2518
|
+
# @type StepInfo: :class:`Tencentcloud::Dts.v20211206.models.MigrateDetailInfo`
|
2519
|
+
# @param SrcInfo: 源实例信息
|
2520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2521
|
+
# @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
2522
|
+
# @param DstInfo: 目标端信息
|
2523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2524
|
+
# @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
2525
|
+
# @param CompareTask: 数据一致性校验结果
|
2526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2527
|
+
# @type CompareTask: :class:`Tencentcloud::Dts.v20211206.models.CompareTaskInfo`
|
2528
|
+
# @param TradeInfo: 计费状态信息
|
2529
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2530
|
+
# @type TradeInfo: :class:`Tencentcloud::Dts.v20211206.models.TradeInfo`
|
2531
|
+
# @param Tags: 标签信息
|
2532
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2533
|
+
# @type Tags: Array
|
2534
|
+
|
2535
|
+
attr_accessor :JobId, :JobName, :CreateTime, :UpdateTime, :StartTime, :EndTime, :BriefMsg, :Status, :RunMode, :ExpectRunTime, :Action, :StepInfo, :SrcInfo, :DstInfo, :CompareTask, :TradeInfo, :Tags
|
2536
|
+
|
2537
|
+
def initialize(jobid=nil, jobname=nil, createtime=nil, updatetime=nil, starttime=nil, endtime=nil, briefmsg=nil, status=nil, runmode=nil, expectruntime=nil, action=nil, stepinfo=nil, srcinfo=nil, dstinfo=nil, comparetask=nil, tradeinfo=nil, tags=nil)
|
2538
|
+
@JobId = jobid
|
2539
|
+
@JobName = jobname
|
2540
|
+
@CreateTime = createtime
|
2541
|
+
@UpdateTime = updatetime
|
2542
|
+
@StartTime = starttime
|
2543
|
+
@EndTime = endtime
|
2544
|
+
@BriefMsg = briefmsg
|
2545
|
+
@Status = status
|
2546
|
+
@RunMode = runmode
|
2547
|
+
@ExpectRunTime = expectruntime
|
2548
|
+
@Action = action
|
2549
|
+
@StepInfo = stepinfo
|
2550
|
+
@SrcInfo = srcinfo
|
2551
|
+
@DstInfo = dstinfo
|
2552
|
+
@CompareTask = comparetask
|
2553
|
+
@TradeInfo = tradeinfo
|
2554
|
+
@Tags = tags
|
2555
|
+
end
|
2556
|
+
|
2557
|
+
def deserialize(params)
|
2558
|
+
@JobId = params['JobId']
|
2559
|
+
@JobName = params['JobName']
|
2560
|
+
@CreateTime = params['CreateTime']
|
2561
|
+
@UpdateTime = params['UpdateTime']
|
2562
|
+
@StartTime = params['StartTime']
|
2563
|
+
@EndTime = params['EndTime']
|
2564
|
+
@BriefMsg = params['BriefMsg']
|
2565
|
+
@Status = params['Status']
|
2566
|
+
@RunMode = params['RunMode']
|
2567
|
+
@ExpectRunTime = params['ExpectRunTime']
|
2568
|
+
unless params['Action'].nil?
|
2569
|
+
@Action = MigrateAction.new
|
2570
|
+
@Action.deserialize(params['Action'])
|
2571
|
+
end
|
2572
|
+
unless params['StepInfo'].nil?
|
2573
|
+
@StepInfo = MigrateDetailInfo.new
|
2574
|
+
@StepInfo.deserialize(params['StepInfo'])
|
2575
|
+
end
|
2576
|
+
unless params['SrcInfo'].nil?
|
2577
|
+
@SrcInfo = DBEndpointInfo.new
|
2578
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
2579
|
+
end
|
2580
|
+
unless params['DstInfo'].nil?
|
2581
|
+
@DstInfo = DBEndpointInfo.new
|
2582
|
+
@DstInfo.deserialize(params['DstInfo'])
|
2583
|
+
end
|
2584
|
+
unless params['CompareTask'].nil?
|
2585
|
+
@CompareTask = CompareTaskInfo.new
|
2586
|
+
@CompareTask.deserialize(params['CompareTask'])
|
2587
|
+
end
|
2588
|
+
unless params['TradeInfo'].nil?
|
2589
|
+
@TradeInfo = TradeInfo.new
|
2590
|
+
@TradeInfo.deserialize(params['TradeInfo'])
|
2591
|
+
end
|
2592
|
+
unless params['Tags'].nil?
|
2593
|
+
@Tags = []
|
2594
|
+
params['Tags'].each do |i|
|
2595
|
+
tagitem_tmp = TagItem.new
|
2596
|
+
tagitem_tmp.deserialize(i)
|
2597
|
+
@Tags << tagitem_tmp
|
2598
|
+
end
|
2599
|
+
end
|
2600
|
+
end
|
2601
|
+
end
|
2602
|
+
|
2603
|
+
# 存放配置时的额外信息
|
2604
|
+
class KeyValuePairOption < TencentCloud::Common::AbstractModel
|
2605
|
+
# @param Key: 选项key
|
2606
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2607
|
+
# @type Key: String
|
2608
|
+
# @param Value: 选项value
|
2609
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2610
|
+
# @type Value: String
|
2611
|
+
|
2612
|
+
attr_accessor :Key, :Value
|
2613
|
+
|
2614
|
+
def initialize(key=nil, value=nil)
|
2615
|
+
@Key = key
|
2616
|
+
@Value = value
|
2617
|
+
end
|
2618
|
+
|
2619
|
+
def deserialize(params)
|
2620
|
+
@Key = params['Key']
|
2621
|
+
@Value = params['Value']
|
2622
|
+
end
|
2623
|
+
end
|
2624
|
+
|
2625
|
+
# 任务操作信息,包含迁移任务的所有操作列表,及迁移任务在当前状态下允许的操作列表
|
2626
|
+
class MigrateAction < TencentCloud::Common::AbstractModel
|
2627
|
+
# @param AllAction: 任务的所有操作列表
|
2628
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2629
|
+
# @type AllAction: Array
|
2630
|
+
# @param AllowedAction: 任务在当前状态下允许的操作列表
|
2631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2632
|
+
# @type AllowedAction: Array
|
2633
|
+
|
2634
|
+
attr_accessor :AllAction, :AllowedAction
|
2635
|
+
|
2636
|
+
def initialize(allaction=nil, allowedaction=nil)
|
2637
|
+
@AllAction = allaction
|
2638
|
+
@AllowedAction = allowedaction
|
2639
|
+
end
|
2640
|
+
|
2641
|
+
def deserialize(params)
|
2642
|
+
@AllAction = params['AllAction']
|
2643
|
+
@AllowedAction = params['AllowedAction']
|
2644
|
+
end
|
2645
|
+
end
|
2646
|
+
|
2647
|
+
# 查询迁移实例列表的实例对象
|
2648
|
+
class MigrateDBItem < TencentCloud::Common::AbstractModel
|
2649
|
+
# @param InstanceId: 实例ID
|
2650
|
+
# @type InstanceId: String
|
2651
|
+
# @param InstanceName: 实例名称
|
2652
|
+
# @type InstanceName: String
|
2653
|
+
# @param Vip: 实例Vip
|
2654
|
+
# @type Vip: String
|
2655
|
+
# @param Vport: 实例Vport
|
2656
|
+
# @type Vport: Integer
|
2657
|
+
# @param Usable: 是否可以作为迁移对象,1-可以,0-不可以
|
2658
|
+
# @type Usable: Integer
|
2659
|
+
# @param Hint: 不可以作为迁移对象的原因
|
2660
|
+
# @type Hint: String
|
2661
|
+
|
2662
|
+
attr_accessor :InstanceId, :InstanceName, :Vip, :Vport, :Usable, :Hint
|
2663
|
+
|
2664
|
+
def initialize(instanceid=nil, instancename=nil, vip=nil, vport=nil, usable=nil, hint=nil)
|
2665
|
+
@InstanceId = instanceid
|
2666
|
+
@InstanceName = instancename
|
2667
|
+
@Vip = vip
|
2668
|
+
@Vport = vport
|
2669
|
+
@Usable = usable
|
2670
|
+
@Hint = hint
|
2671
|
+
end
|
2672
|
+
|
2673
|
+
def deserialize(params)
|
2674
|
+
@InstanceId = params['InstanceId']
|
2675
|
+
@InstanceName = params['InstanceName']
|
2676
|
+
@Vip = params['Vip']
|
2677
|
+
@Vport = params['Vport']
|
2678
|
+
@Usable = params['Usable']
|
2679
|
+
@Hint = params['Hint']
|
2680
|
+
end
|
2681
|
+
end
|
2682
|
+
|
2683
|
+
# 迁移执行过程信息
|
2684
|
+
class MigrateDetailInfo < TencentCloud::Common::AbstractModel
|
2685
|
+
# @param StepAll: 总步骤数
|
2686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2687
|
+
# @type StepAll: Integer
|
2688
|
+
# @param StepNow: 当前步骤
|
2689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2690
|
+
# @type StepNow: Integer
|
2691
|
+
# @param MasterSlaveDistance: 主从差距,MB;只在任务正常,迁移或者同步的最后一步(追Binlog的阶段才有校),如果是非法值,返回-1
|
2692
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2693
|
+
# @type MasterSlaveDistance: Integer
|
2694
|
+
# @param SecondsBehindMaster: 主从差距,秒;只在任务正常,迁移或者同步的最后一步(追Binlog的阶段才有校),如果是非法值,返回-1
|
2695
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2696
|
+
# @type SecondsBehindMaster: Integer
|
2697
|
+
# @param StepInfo: 步骤信息
|
2698
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2699
|
+
# @type StepInfo: Array
|
2700
|
+
|
2701
|
+
attr_accessor :StepAll, :StepNow, :MasterSlaveDistance, :SecondsBehindMaster, :StepInfo
|
2702
|
+
|
2703
|
+
def initialize(stepall=nil, stepnow=nil, masterslavedistance=nil, secondsbehindmaster=nil, stepinfo=nil)
|
2704
|
+
@StepAll = stepall
|
2705
|
+
@StepNow = stepnow
|
2706
|
+
@MasterSlaveDistance = masterslavedistance
|
2707
|
+
@SecondsBehindMaster = secondsbehindmaster
|
2708
|
+
@StepInfo = stepinfo
|
2709
|
+
end
|
2710
|
+
|
2711
|
+
def deserialize(params)
|
2712
|
+
@StepAll = params['StepAll']
|
2713
|
+
@StepNow = params['StepNow']
|
2714
|
+
@MasterSlaveDistance = params['MasterSlaveDistance']
|
2715
|
+
@SecondsBehindMaster = params['SecondsBehindMaster']
|
2716
|
+
unless params['StepInfo'].nil?
|
2717
|
+
@StepInfo = []
|
2718
|
+
params['StepInfo'].each do |i|
|
2719
|
+
stepdetailinfo_tmp = StepDetailInfo.new
|
2720
|
+
stepdetailinfo_tmp.deserialize(i)
|
2721
|
+
@StepInfo << stepdetailinfo_tmp
|
2722
|
+
end
|
2723
|
+
end
|
2724
|
+
end
|
2725
|
+
end
|
2726
|
+
|
2727
|
+
# 迁移选项,描述任务如何执行迁移等一系列配置信息
|
2728
|
+
class MigrateOption < TencentCloud::Common::AbstractModel
|
2729
|
+
# @param DatabaseTable: 迁移对象选项,需要告知迁移服务迁移哪些库表对象
|
2730
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2731
|
+
# @type DatabaseTable: :class:`Tencentcloud::Dts.v20211206.models.DatabaseTableObject`
|
2732
|
+
# @param MigrateType: 迁移类型,full(全量迁移),structure(结构迁移),fullAndIncrement(全量加增量迁移), 默认为fullAndIncrement
|
2733
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2734
|
+
# @type MigrateType: String
|
2735
|
+
# @param Consistency: 数据一致性校验选项, 默认为不开启一致性校验
|
2736
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2737
|
+
# @type Consistency: :class:`Tencentcloud::Dts.v20211206.models.ConsistencyOption`
|
2738
|
+
# @param IsMigrateAccount: 是否迁移账号,yes(迁移账号),no(不迁移账号)
|
2739
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2740
|
+
# @type IsMigrateAccount: Boolean
|
2741
|
+
# @param IsOverrideRoot: 是否用源库Root账户覆盖目标库,值包括:false-不覆盖,true-覆盖,选择库表或者结构迁移时应该为false,注意只对旧版迁移有效
|
2742
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2743
|
+
# @type IsOverrideRoot: Boolean
|
2744
|
+
# @param IsDstReadOnly: 是否在迁移时设置目标库只读(仅对mysql有效),true(设置只读)、false(不设置只读,默认此值)
|
2745
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2746
|
+
# @type IsDstReadOnly: Boolean
|
2747
|
+
# @param ExtraAttr: 其他附加信息,对于特定库可设置额外参数,Redis可定义如下的参数:
|
2748
|
+
# ["ClientOutputBufferHardLimit":512, 从机缓冲区的硬性容量限制(MB) "ClientOutputBufferSoftLimit":512, 从机缓冲区的软性容量限制(MB) "ClientOutputBufferPersistTime":60, 从机缓冲区的软性限制持续时间(秒) "ReplBacklogSize":512, 环形缓冲区容量限制(MB) "ReplTimeout":120, 复制超时时间(秒) ]
|
2749
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2750
|
+
# @type ExtraAttr: Array
|
2751
|
+
|
2752
|
+
attr_accessor :DatabaseTable, :MigrateType, :Consistency, :IsMigrateAccount, :IsOverrideRoot, :IsDstReadOnly, :ExtraAttr
|
2753
|
+
|
2754
|
+
def initialize(databasetable=nil, migratetype=nil, consistency=nil, ismigrateaccount=nil, isoverrideroot=nil, isdstreadonly=nil, extraattr=nil)
|
2755
|
+
@DatabaseTable = databasetable
|
2756
|
+
@MigrateType = migratetype
|
2757
|
+
@Consistency = consistency
|
2758
|
+
@IsMigrateAccount = ismigrateaccount
|
2759
|
+
@IsOverrideRoot = isoverrideroot
|
2760
|
+
@IsDstReadOnly = isdstreadonly
|
2761
|
+
@ExtraAttr = extraattr
|
2762
|
+
end
|
2763
|
+
|
2764
|
+
def deserialize(params)
|
2765
|
+
unless params['DatabaseTable'].nil?
|
2766
|
+
@DatabaseTable = DatabaseTableObject.new
|
2767
|
+
@DatabaseTable.deserialize(params['DatabaseTable'])
|
2768
|
+
end
|
2769
|
+
@MigrateType = params['MigrateType']
|
2770
|
+
unless params['Consistency'].nil?
|
2771
|
+
@Consistency = ConsistencyOption.new
|
2772
|
+
@Consistency.deserialize(params['Consistency'])
|
2773
|
+
end
|
2774
|
+
@IsMigrateAccount = params['IsMigrateAccount']
|
2775
|
+
@IsOverrideRoot = params['IsOverrideRoot']
|
2776
|
+
@IsDstReadOnly = params['IsDstReadOnly']
|
2777
|
+
unless params['ExtraAttr'].nil?
|
2778
|
+
@ExtraAttr = []
|
2779
|
+
params['ExtraAttr'].each do |i|
|
2780
|
+
keyvaluepairoption_tmp = KeyValuePairOption.new
|
2781
|
+
keyvaluepairoption_tmp.deserialize(i)
|
2782
|
+
@ExtraAttr << keyvaluepairoption_tmp
|
2783
|
+
end
|
2784
|
+
end
|
2785
|
+
end
|
2786
|
+
end
|
2787
|
+
|
2788
|
+
# ModifyCompareTaskName请求参数结构体
|
2789
|
+
class ModifyCompareTaskNameRequest < TencentCloud::Common::AbstractModel
|
2790
|
+
# @param JobId: 迁移任务 Id
|
2791
|
+
# @type JobId: String
|
2792
|
+
# @param CompareTaskId: 对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
2793
|
+
# @type CompareTaskId: String
|
2794
|
+
# @param TaskName: 一致性校验任务名称
|
2795
|
+
# @type TaskName: String
|
2796
|
+
|
2797
|
+
attr_accessor :JobId, :CompareTaskId, :TaskName
|
2798
|
+
|
2799
|
+
def initialize(jobid=nil, comparetaskid=nil, taskname=nil)
|
2800
|
+
@JobId = jobid
|
2801
|
+
@CompareTaskId = comparetaskid
|
2802
|
+
@TaskName = taskname
|
2803
|
+
end
|
2804
|
+
|
2805
|
+
def deserialize(params)
|
2806
|
+
@JobId = params['JobId']
|
2807
|
+
@CompareTaskId = params['CompareTaskId']
|
2808
|
+
@TaskName = params['TaskName']
|
2809
|
+
end
|
2810
|
+
end
|
2811
|
+
|
2812
|
+
# ModifyCompareTaskName返回参数结构体
|
2813
|
+
class ModifyCompareTaskNameResponse < TencentCloud::Common::AbstractModel
|
2814
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2815
|
+
# @type RequestId: String
|
2816
|
+
|
2817
|
+
attr_accessor :RequestId
|
2818
|
+
|
2819
|
+
def initialize(requestid=nil)
|
2820
|
+
@RequestId = requestid
|
2821
|
+
end
|
2822
|
+
|
2823
|
+
def deserialize(params)
|
2824
|
+
@RequestId = params['RequestId']
|
2825
|
+
end
|
2826
|
+
end
|
2827
|
+
|
2828
|
+
# ModifyCompareTask请求参数结构体
|
2829
|
+
class ModifyCompareTaskRequest < TencentCloud::Common::AbstractModel
|
2830
|
+
# @param JobId: 迁移任务 Id
|
2831
|
+
# @type JobId: String
|
2832
|
+
# @param CompareTaskId: 对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
2833
|
+
# @type CompareTaskId: String
|
2834
|
+
# @param TaskName: 任务名称
|
2835
|
+
# @type TaskName: String
|
2836
|
+
# @param ObjectMode: 数据对比对象模式,sameAsMigrate(全部迁移对象, **默认为此项配置**),custom(自定义模式)
|
2837
|
+
# @type ObjectMode: String
|
2838
|
+
# @param Objects: 对比对象,若CompareObjectMode取值为custom,则此项必填
|
2839
|
+
# @type Objects: :class:`Tencentcloud::Dts.v20211206.models.CompareObject`
|
2840
|
+
|
2841
|
+
attr_accessor :JobId, :CompareTaskId, :TaskName, :ObjectMode, :Objects
|
2842
|
+
|
2843
|
+
def initialize(jobid=nil, comparetaskid=nil, taskname=nil, objectmode=nil, objects=nil)
|
2844
|
+
@JobId = jobid
|
2845
|
+
@CompareTaskId = comparetaskid
|
2846
|
+
@TaskName = taskname
|
2847
|
+
@ObjectMode = objectmode
|
2848
|
+
@Objects = objects
|
2849
|
+
end
|
2850
|
+
|
2851
|
+
def deserialize(params)
|
2852
|
+
@JobId = params['JobId']
|
2853
|
+
@CompareTaskId = params['CompareTaskId']
|
2854
|
+
@TaskName = params['TaskName']
|
2855
|
+
@ObjectMode = params['ObjectMode']
|
2856
|
+
unless params['Objects'].nil?
|
2857
|
+
@Objects = CompareObject.new
|
2858
|
+
@Objects.deserialize(params['Objects'])
|
2859
|
+
end
|
2860
|
+
end
|
2861
|
+
end
|
2862
|
+
|
2863
|
+
# ModifyCompareTask返回参数结构体
|
2864
|
+
class ModifyCompareTaskResponse < TencentCloud::Common::AbstractModel
|
2865
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2866
|
+
# @type RequestId: String
|
2867
|
+
|
2868
|
+
attr_accessor :RequestId
|
2869
|
+
|
2870
|
+
def initialize(requestid=nil)
|
2871
|
+
@RequestId = requestid
|
2872
|
+
end
|
2873
|
+
|
2874
|
+
def deserialize(params)
|
2875
|
+
@RequestId = params['RequestId']
|
2876
|
+
end
|
2877
|
+
end
|
2878
|
+
|
2879
|
+
# ModifyMigrateJobSpec请求参数结构体
|
2880
|
+
class ModifyMigrateJobSpecRequest < TencentCloud::Common::AbstractModel
|
2881
|
+
# @param JobId: 任务id
|
2882
|
+
# @type JobId: String
|
2883
|
+
# @param NewInstanceClass: 新实例规格大小,包括:micro、small、medium、large、xlarge、2xlarge
|
2884
|
+
# @type NewInstanceClass: String
|
2885
|
+
|
2886
|
+
attr_accessor :JobId, :NewInstanceClass
|
2887
|
+
|
2888
|
+
def initialize(jobid=nil, newinstanceclass=nil)
|
2889
|
+
@JobId = jobid
|
2890
|
+
@NewInstanceClass = newinstanceclass
|
2891
|
+
end
|
2892
|
+
|
2893
|
+
def deserialize(params)
|
2894
|
+
@JobId = params['JobId']
|
2895
|
+
@NewInstanceClass = params['NewInstanceClass']
|
2896
|
+
end
|
2897
|
+
end
|
2898
|
+
|
2899
|
+
# ModifyMigrateJobSpec返回参数结构体
|
2900
|
+
class ModifyMigrateJobSpecResponse < TencentCloud::Common::AbstractModel
|
2901
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2902
|
+
# @type RequestId: String
|
2903
|
+
|
2904
|
+
attr_accessor :RequestId
|
2905
|
+
|
2906
|
+
def initialize(requestid=nil)
|
2907
|
+
@RequestId = requestid
|
2908
|
+
end
|
2909
|
+
|
2910
|
+
def deserialize(params)
|
2911
|
+
@RequestId = params['RequestId']
|
2912
|
+
end
|
2913
|
+
end
|
2914
|
+
|
2915
|
+
# ModifyMigrateName请求参数结构体
|
2916
|
+
class ModifyMigrateNameRequest < TencentCloud::Common::AbstractModel
|
2917
|
+
# @param JobId: 迁移任务id
|
2918
|
+
# @type JobId: String
|
2919
|
+
# @param JobName: 修改后的迁移任务名
|
2920
|
+
# @type JobName: String
|
2921
|
+
|
2922
|
+
attr_accessor :JobId, :JobName
|
2923
|
+
|
2924
|
+
def initialize(jobid=nil, jobname=nil)
|
2925
|
+
@JobId = jobid
|
2926
|
+
@JobName = jobname
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
def deserialize(params)
|
2930
|
+
@JobId = params['JobId']
|
2931
|
+
@JobName = params['JobName']
|
2932
|
+
end
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
# ModifyMigrateName返回参数结构体
|
2936
|
+
class ModifyMigrateNameResponse < TencentCloud::Common::AbstractModel
|
2937
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2938
|
+
# @type RequestId: String
|
2939
|
+
|
2940
|
+
attr_accessor :RequestId
|
2941
|
+
|
2942
|
+
def initialize(requestid=nil)
|
2943
|
+
@RequestId = requestid
|
2944
|
+
end
|
2945
|
+
|
2946
|
+
def deserialize(params)
|
2947
|
+
@RequestId = params['RequestId']
|
2948
|
+
end
|
2949
|
+
end
|
2950
|
+
|
2951
|
+
# ModifyMigrationJob请求参数结构体
|
2952
|
+
class ModifyMigrationJobRequest < TencentCloud::Common::AbstractModel
|
2953
|
+
# @param JobId: 任务id
|
2954
|
+
# @type JobId: String
|
2955
|
+
# @param RunMode: 运行模式,取值如:immediate(表示立即运行)、timed(表示定时运行)
|
2956
|
+
# @type RunMode: String
|
2957
|
+
# @param MigrateOption: 迁移任务配置选项,描述任务如何执行迁移等一系列配置信息
|
2958
|
+
# @type MigrateOption: :class:`Tencentcloud::Dts.v20211206.models.MigrateOption`
|
2959
|
+
# @param SrcInfo: 源实例信息
|
2960
|
+
# @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
2961
|
+
# @param DstInfo: 目标实例信息
|
2962
|
+
# @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.DBEndpointInfo`
|
2963
|
+
# @param JobName: 迁移任务名称,最大长度128
|
2964
|
+
# @type JobName: String
|
2965
|
+
# @param ExpectRunTime: 期待启动时间,当RunMode取值为timed时,此值必填,形如:"2006-01-02 15:04:05"
|
2966
|
+
# @type ExpectRunTime: String
|
2967
|
+
# @param Tags: 标签信息
|
2968
|
+
# @type Tags: Array
|
2969
|
+
|
2970
|
+
attr_accessor :JobId, :RunMode, :MigrateOption, :SrcInfo, :DstInfo, :JobName, :ExpectRunTime, :Tags
|
2971
|
+
|
2972
|
+
def initialize(jobid=nil, runmode=nil, migrateoption=nil, srcinfo=nil, dstinfo=nil, jobname=nil, expectruntime=nil, tags=nil)
|
2973
|
+
@JobId = jobid
|
2974
|
+
@RunMode = runmode
|
2975
|
+
@MigrateOption = migrateoption
|
2976
|
+
@SrcInfo = srcinfo
|
2977
|
+
@DstInfo = dstinfo
|
2978
|
+
@JobName = jobname
|
2979
|
+
@ExpectRunTime = expectruntime
|
2980
|
+
@Tags = tags
|
2981
|
+
end
|
2982
|
+
|
2983
|
+
def deserialize(params)
|
2984
|
+
@JobId = params['JobId']
|
2985
|
+
@RunMode = params['RunMode']
|
2986
|
+
unless params['MigrateOption'].nil?
|
2987
|
+
@MigrateOption = MigrateOption.new
|
2988
|
+
@MigrateOption.deserialize(params['MigrateOption'])
|
2989
|
+
end
|
2990
|
+
unless params['SrcInfo'].nil?
|
2991
|
+
@SrcInfo = DBEndpointInfo.new
|
2992
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
2993
|
+
end
|
2994
|
+
unless params['DstInfo'].nil?
|
2995
|
+
@DstInfo = DBEndpointInfo.new
|
2996
|
+
@DstInfo.deserialize(params['DstInfo'])
|
2997
|
+
end
|
2998
|
+
@JobName = params['JobName']
|
2999
|
+
@ExpectRunTime = params['ExpectRunTime']
|
3000
|
+
unless params['Tags'].nil?
|
3001
|
+
@Tags = []
|
3002
|
+
params['Tags'].each do |i|
|
3003
|
+
tagitem_tmp = TagItem.new
|
3004
|
+
tagitem_tmp.deserialize(i)
|
3005
|
+
@Tags << tagitem_tmp
|
3006
|
+
end
|
3007
|
+
end
|
3008
|
+
end
|
3009
|
+
end
|
3010
|
+
|
3011
|
+
# ModifyMigrationJob返回参数结构体
|
3012
|
+
class ModifyMigrationJobResponse < TencentCloud::Common::AbstractModel
|
3013
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3014
|
+
# @type RequestId: String
|
3015
|
+
|
3016
|
+
attr_accessor :RequestId
|
3017
|
+
|
3018
|
+
def initialize(requestid=nil)
|
3019
|
+
@RequestId = requestid
|
3020
|
+
end
|
3021
|
+
|
3022
|
+
def deserialize(params)
|
3023
|
+
@RequestId = params['RequestId']
|
3024
|
+
end
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
# 同步的数据库对对象描述
|
3028
|
+
class Objects < TencentCloud::Common::AbstractModel
|
3029
|
+
# @param Mode: 迁移对象类型 Partial(部分对象)
|
3030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3031
|
+
# @type Mode: String
|
3032
|
+
# @param Databases: 同步对象,当 Mode 为 Partial 时,不为空
|
3033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3034
|
+
# @type Databases: Array
|
3035
|
+
# @param AdvancedObjects: 高级对象类型,如function、procedure,当需要同步高级对象时,初始化类型必须包含结构初始化类型,即Options.InitType字段值为Structure或Full
|
3036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3037
|
+
# @type AdvancedObjects: Array
|
3038
|
+
|
3039
|
+
attr_accessor :Mode, :Databases, :AdvancedObjects
|
3040
|
+
|
3041
|
+
def initialize(mode=nil, databases=nil, advancedobjects=nil)
|
3042
|
+
@Mode = mode
|
3043
|
+
@Databases = databases
|
3044
|
+
@AdvancedObjects = advancedobjects
|
3045
|
+
end
|
3046
|
+
|
3047
|
+
def deserialize(params)
|
3048
|
+
@Mode = params['Mode']
|
3049
|
+
unless params['Databases'].nil?
|
3050
|
+
@Databases = []
|
3051
|
+
params['Databases'].each do |i|
|
3052
|
+
database_tmp = Database.new
|
3053
|
+
database_tmp.deserialize(i)
|
3054
|
+
@Databases << database_tmp
|
3055
|
+
end
|
3056
|
+
end
|
3057
|
+
@AdvancedObjects = params['AdvancedObjects']
|
3058
|
+
end
|
3059
|
+
end
|
3060
|
+
|
3061
|
+
# 数据同步中的选项
|
3062
|
+
class Options < TencentCloud::Common::AbstractModel
|
3063
|
+
# @param InitType: 同步初始化选项,Data(全量数据初始化)、Structure(结构初始化)、Full(全量数据且结构初始化,默认)、None(仅增量)
|
3064
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3065
|
+
# @type InitType: String
|
3066
|
+
# @param DealOfExistSameTable: 同名表的处理,ReportErrorAfterCheck(前置校验并报错,默认)、InitializeAfterDelete(删除并重新初始化)、ExecuteAfterIgnore(忽略并继续执行)
|
3067
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3068
|
+
# @type DealOfExistSameTable: String
|
3069
|
+
# @param ConflictHandleType: 冲突处理选项,ReportError(报错,默认为该值)、Ignore(忽略)、Cover(覆盖)、ConditionCover(条件覆盖)
|
3070
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3071
|
+
# @type ConflictHandleType: String
|
3072
|
+
# @param AddAdditionalColumn: 是否添加附加列
|
3073
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3074
|
+
# @type AddAdditionalColumn: Boolean
|
3075
|
+
# @param OpTypes: 所要同步的DML和DDL的选项,Insert(插入操作)、Update(更新操作)、Delete(删除操作)、DDL(结构同步), 不填(不选),PartialDDL(自定义,和DdlOptions一起起作用 )
|
3076
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3077
|
+
# @type OpTypes: Array
|
3078
|
+
# @param ConflictHandleOption: 冲突处理的详细选项,如条件覆盖中的条件行和条件操作
|
3079
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3080
|
+
# @type ConflictHandleOption: :class:`Tencentcloud::Dts.v20211206.models.ConflictHandleOption`
|
3081
|
+
# @param DdlOptions: DDL同步选项,具体描述要同步那些DDL
|
3082
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3083
|
+
# @type DdlOptions: Array
|
3084
|
+
|
3085
|
+
attr_accessor :InitType, :DealOfExistSameTable, :ConflictHandleType, :AddAdditionalColumn, :OpTypes, :ConflictHandleOption, :DdlOptions
|
3086
|
+
|
3087
|
+
def initialize(inittype=nil, dealofexistsametable=nil, conflicthandletype=nil, addadditionalcolumn=nil, optypes=nil, conflicthandleoption=nil, ddloptions=nil)
|
3088
|
+
@InitType = inittype
|
3089
|
+
@DealOfExistSameTable = dealofexistsametable
|
3090
|
+
@ConflictHandleType = conflicthandletype
|
3091
|
+
@AddAdditionalColumn = addadditionalcolumn
|
3092
|
+
@OpTypes = optypes
|
3093
|
+
@ConflictHandleOption = conflicthandleoption
|
3094
|
+
@DdlOptions = ddloptions
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
def deserialize(params)
|
3098
|
+
@InitType = params['InitType']
|
3099
|
+
@DealOfExistSameTable = params['DealOfExistSameTable']
|
3100
|
+
@ConflictHandleType = params['ConflictHandleType']
|
3101
|
+
@AddAdditionalColumn = params['AddAdditionalColumn']
|
3102
|
+
@OpTypes = params['OpTypes']
|
3103
|
+
unless params['ConflictHandleOption'].nil?
|
3104
|
+
@ConflictHandleOption = ConflictHandleOption.new
|
3105
|
+
@ConflictHandleOption.deserialize(params['ConflictHandleOption'])
|
3106
|
+
end
|
3107
|
+
unless params['DdlOptions'].nil?
|
3108
|
+
@DdlOptions = []
|
3109
|
+
params['DdlOptions'].each do |i|
|
3110
|
+
ddloption_tmp = DdlOption.new
|
3111
|
+
ddloption_tmp.deserialize(i)
|
3112
|
+
@DdlOptions << ddloption_tmp
|
3113
|
+
end
|
3114
|
+
end
|
3115
|
+
end
|
3116
|
+
end
|
3117
|
+
|
3118
|
+
# 任务步骤信息
|
3119
|
+
class ProcessProgress < TencentCloud::Common::AbstractModel
|
3120
|
+
# @param Status: 步骤的状态, 包括:notStarted(未开始)、running(运行中)、success(成功)、failed(失败)等
|
3121
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3122
|
+
# @type Status: String
|
3123
|
+
# @param Percent: 进度信息
|
3124
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3125
|
+
# @type Percent: Integer
|
3126
|
+
# @param StepAll: 总的步骤数
|
3127
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3128
|
+
# @type StepAll: Integer
|
3129
|
+
# @param StepNow: 当前进行的步骤
|
3130
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3131
|
+
# @type StepNow: Integer
|
3132
|
+
# @param Message: 当前步骤输出提示信息
|
3133
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3134
|
+
# @type Message: String
|
3135
|
+
# @param Steps: 步骤信息
|
3136
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3137
|
+
# @type Steps: Array
|
3138
|
+
|
3139
|
+
attr_accessor :Status, :Percent, :StepAll, :StepNow, :Message, :Steps
|
3140
|
+
|
3141
|
+
def initialize(status=nil, percent=nil, stepall=nil, stepnow=nil, message=nil, steps=nil)
|
3142
|
+
@Status = status
|
3143
|
+
@Percent = percent
|
3144
|
+
@StepAll = stepall
|
3145
|
+
@StepNow = stepnow
|
3146
|
+
@Message = message
|
3147
|
+
@Steps = steps
|
3148
|
+
end
|
3149
|
+
|
3150
|
+
def deserialize(params)
|
3151
|
+
@Status = params['Status']
|
3152
|
+
@Percent = params['Percent']
|
3153
|
+
@StepAll = params['StepAll']
|
3154
|
+
@StepNow = params['StepNow']
|
3155
|
+
@Message = params['Message']
|
3156
|
+
unless params['Steps'].nil?
|
3157
|
+
@Steps = []
|
3158
|
+
params['Steps'].each do |i|
|
3159
|
+
stepdetailinfo_tmp = StepDetailInfo.new
|
3160
|
+
stepdetailinfo_tmp.deserialize(i)
|
3161
|
+
@Steps << stepdetailinfo_tmp
|
3162
|
+
end
|
3163
|
+
end
|
3164
|
+
end
|
3165
|
+
end
|
3166
|
+
|
3167
|
+
# 错误信息及告警信息对象
|
3168
|
+
class ProcessStepTip < TencentCloud::Common::AbstractModel
|
3169
|
+
# @param Message: 提示信息
|
3170
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3171
|
+
# @type Message: String
|
3172
|
+
# @param Solution: 解决方案
|
3173
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3174
|
+
# @type Solution: String
|
3175
|
+
# @param HelpDoc: 文档提示
|
3176
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3177
|
+
# @type HelpDoc: String
|
3178
|
+
|
3179
|
+
attr_accessor :Message, :Solution, :HelpDoc
|
3180
|
+
|
3181
|
+
def initialize(message=nil, solution=nil, helpdoc=nil)
|
3182
|
+
@Message = message
|
3183
|
+
@Solution = solution
|
3184
|
+
@HelpDoc = helpdoc
|
3185
|
+
end
|
3186
|
+
|
3187
|
+
def deserialize(params)
|
3188
|
+
@Message = params['Message']
|
3189
|
+
@Solution = params['Solution']
|
3190
|
+
@HelpDoc = params['HelpDoc']
|
3191
|
+
end
|
3192
|
+
end
|
3193
|
+
|
3194
|
+
# RecoverMigrateJob请求参数结构体
|
3195
|
+
class RecoverMigrateJobRequest < TencentCloud::Common::AbstractModel
|
3196
|
+
# @param JobId: 任务id
|
3197
|
+
# @type JobId: String
|
3198
|
+
|
3199
|
+
attr_accessor :JobId
|
3200
|
+
|
3201
|
+
def initialize(jobid=nil)
|
3202
|
+
@JobId = jobid
|
3203
|
+
end
|
3204
|
+
|
3205
|
+
def deserialize(params)
|
3206
|
+
@JobId = params['JobId']
|
3207
|
+
end
|
3208
|
+
end
|
3209
|
+
|
3210
|
+
# RecoverMigrateJob返回参数结构体
|
3211
|
+
class RecoverMigrateJobResponse < TencentCloud::Common::AbstractModel
|
3212
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3213
|
+
# @type RequestId: String
|
3214
|
+
|
3215
|
+
attr_accessor :RequestId
|
3216
|
+
|
3217
|
+
def initialize(requestid=nil)
|
3218
|
+
@RequestId = requestid
|
3219
|
+
end
|
3220
|
+
|
3221
|
+
def deserialize(params)
|
3222
|
+
@RequestId = params['RequestId']
|
3223
|
+
end
|
3224
|
+
end
|
3225
|
+
|
3226
|
+
# RecoverSyncJob请求参数结构体
|
3227
|
+
class RecoverSyncJobRequest < TencentCloud::Common::AbstractModel
|
3228
|
+
# @param JobId: 同步实例id(即标识一个同步作业),形如sync-werwfs23
|
3229
|
+
# @type JobId: String
|
3230
|
+
|
3231
|
+
attr_accessor :JobId
|
3232
|
+
|
3233
|
+
def initialize(jobid=nil)
|
3234
|
+
@JobId = jobid
|
3235
|
+
end
|
3236
|
+
|
3237
|
+
def deserialize(params)
|
3238
|
+
@JobId = params['JobId']
|
3239
|
+
end
|
3240
|
+
end
|
3241
|
+
|
3242
|
+
# RecoverSyncJob返回参数结构体
|
3243
|
+
class RecoverSyncJobResponse < TencentCloud::Common::AbstractModel
|
3244
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3245
|
+
# @type RequestId: String
|
3246
|
+
|
3247
|
+
attr_accessor :RequestId
|
3248
|
+
|
3249
|
+
def initialize(requestid=nil)
|
3250
|
+
@RequestId = requestid
|
3251
|
+
end
|
3252
|
+
|
3253
|
+
def deserialize(params)
|
3254
|
+
@RequestId = params['RequestId']
|
3255
|
+
end
|
3256
|
+
end
|
3257
|
+
|
3258
|
+
# ResizeSyncJob请求参数结构体
|
3259
|
+
class ResizeSyncJobRequest < TencentCloud::Common::AbstractModel
|
3260
|
+
# @param JobId: 同步任务id
|
3261
|
+
# @type JobId: String
|
3262
|
+
# @param NewInstanceClass: 任务规格
|
3263
|
+
# @type NewInstanceClass: String
|
3264
|
+
|
3265
|
+
attr_accessor :JobId, :NewInstanceClass
|
3266
|
+
|
3267
|
+
def initialize(jobid=nil, newinstanceclass=nil)
|
3268
|
+
@JobId = jobid
|
3269
|
+
@NewInstanceClass = newinstanceclass
|
3270
|
+
end
|
3271
|
+
|
3272
|
+
def deserialize(params)
|
3273
|
+
@JobId = params['JobId']
|
3274
|
+
@NewInstanceClass = params['NewInstanceClass']
|
3275
|
+
end
|
3276
|
+
end
|
3277
|
+
|
3278
|
+
# ResizeSyncJob返回参数结构体
|
3279
|
+
class ResizeSyncJobResponse < TencentCloud::Common::AbstractModel
|
3280
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3281
|
+
# @type RequestId: String
|
3282
|
+
|
3283
|
+
attr_accessor :RequestId
|
3284
|
+
|
3285
|
+
def initialize(requestid=nil)
|
3286
|
+
@RequestId = requestid
|
3287
|
+
end
|
3288
|
+
|
3289
|
+
def deserialize(params)
|
3290
|
+
@RequestId = params['RequestId']
|
3291
|
+
end
|
3292
|
+
end
|
3293
|
+
|
3294
|
+
# ResumeMigrateJob请求参数结构体
|
3295
|
+
class ResumeMigrateJobRequest < TencentCloud::Common::AbstractModel
|
3296
|
+
# @param JobId: 数据迁移任务ID
|
3297
|
+
# @type JobId: String
|
3298
|
+
# @param ResumeOption: 恢复任务的模式,目前的取值有:clearData 清空目标实例数据,overwrite 以覆盖写的方式执行任务,normal 跟正常流程一样,不做额外动作
|
3299
|
+
# @type ResumeOption: String
|
3300
|
+
|
3301
|
+
attr_accessor :JobId, :ResumeOption
|
3302
|
+
|
3303
|
+
def initialize(jobid=nil, resumeoption=nil)
|
3304
|
+
@JobId = jobid
|
3305
|
+
@ResumeOption = resumeoption
|
3306
|
+
end
|
3307
|
+
|
3308
|
+
def deserialize(params)
|
3309
|
+
@JobId = params['JobId']
|
3310
|
+
@ResumeOption = params['ResumeOption']
|
3311
|
+
end
|
3312
|
+
end
|
3313
|
+
|
3314
|
+
# ResumeMigrateJob返回参数结构体
|
3315
|
+
class ResumeMigrateJobResponse < TencentCloud::Common::AbstractModel
|
3316
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3317
|
+
# @type RequestId: String
|
3318
|
+
|
3319
|
+
attr_accessor :RequestId
|
3320
|
+
|
3321
|
+
def initialize(requestid=nil)
|
3322
|
+
@RequestId = requestid
|
3323
|
+
end
|
3324
|
+
|
3325
|
+
def deserialize(params)
|
3326
|
+
@RequestId = params['RequestId']
|
3327
|
+
end
|
3328
|
+
end
|
3329
|
+
|
3330
|
+
# ResumeSyncJob请求参数结构体
|
3331
|
+
class ResumeSyncJobRequest < TencentCloud::Common::AbstractModel
|
3332
|
+
# @param JobId: 同步任务id
|
3333
|
+
# @type JobId: String
|
3334
|
+
|
3335
|
+
attr_accessor :JobId
|
3336
|
+
|
3337
|
+
def initialize(jobid=nil)
|
3338
|
+
@JobId = jobid
|
3339
|
+
end
|
3340
|
+
|
3341
|
+
def deserialize(params)
|
3342
|
+
@JobId = params['JobId']
|
3343
|
+
end
|
3344
|
+
end
|
3345
|
+
|
3346
|
+
# ResumeSyncJob返回参数结构体
|
3347
|
+
class ResumeSyncJobResponse < TencentCloud::Common::AbstractModel
|
3348
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3349
|
+
# @type RequestId: String
|
3350
|
+
|
3351
|
+
attr_accessor :RequestId
|
3352
|
+
|
3353
|
+
def initialize(requestid=nil)
|
3354
|
+
@RequestId = requestid
|
3355
|
+
end
|
3356
|
+
|
3357
|
+
def deserialize(params)
|
3358
|
+
@RequestId = params['RequestId']
|
3359
|
+
end
|
3360
|
+
end
|
3361
|
+
|
3362
|
+
# 角色对象,postgresql独有参数
|
3363
|
+
class RoleItem < TencentCloud::Common::AbstractModel
|
3364
|
+
# @param RoleName: 角色名称
|
3365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3366
|
+
# @type RoleName: String
|
3367
|
+
# @param NewRoleName: 迁移后的角色名称
|
3368
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3369
|
+
# @type NewRoleName: String
|
3370
|
+
|
3371
|
+
attr_accessor :RoleName, :NewRoleName
|
3372
|
+
|
3373
|
+
def initialize(rolename=nil, newrolename=nil)
|
3374
|
+
@RoleName = rolename
|
3375
|
+
@NewRoleName = newrolename
|
3376
|
+
end
|
3377
|
+
|
3378
|
+
def deserialize(params)
|
3379
|
+
@RoleName = params['RoleName']
|
3380
|
+
@NewRoleName = params['NewRoleName']
|
3381
|
+
end
|
3382
|
+
end
|
3383
|
+
|
3384
|
+
# 跳过校验的表详情
|
3385
|
+
class SkippedDetail < TencentCloud::Common::AbstractModel
|
3386
|
+
# @param TotalCount: 跳过的表数量
|
3387
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3388
|
+
# @type TotalCount: Integer
|
3389
|
+
# @param Items: 跳过校验的表详情
|
3390
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3391
|
+
# @type Items: Array
|
3392
|
+
|
3393
|
+
attr_accessor :TotalCount, :Items
|
3394
|
+
|
3395
|
+
def initialize(totalcount=nil, items=nil)
|
3396
|
+
@TotalCount = totalcount
|
3397
|
+
@Items = items
|
3398
|
+
end
|
3399
|
+
|
3400
|
+
def deserialize(params)
|
3401
|
+
@TotalCount = params['TotalCount']
|
3402
|
+
unless params['Items'].nil?
|
3403
|
+
@Items = []
|
3404
|
+
params['Items'].each do |i|
|
3405
|
+
skippeditem_tmp = SkippedItem.new
|
3406
|
+
skippeditem_tmp.deserialize(i)
|
3407
|
+
@Items << skippeditem_tmp
|
3408
|
+
end
|
3409
|
+
end
|
3410
|
+
end
|
3411
|
+
end
|
3412
|
+
|
3413
|
+
# 跳过校验的表详情
|
3414
|
+
class SkippedItem < TencentCloud::Common::AbstractModel
|
3415
|
+
# @param Db: 数据库名
|
3416
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3417
|
+
# @type Db: String
|
3418
|
+
# @param Table: 表名
|
3419
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3420
|
+
# @type Table: String
|
3421
|
+
# @param Reason: 未发起检查的原因
|
3422
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3423
|
+
# @type Reason: String
|
3424
|
+
|
3425
|
+
attr_accessor :Db, :Table, :Reason
|
3426
|
+
|
3427
|
+
def initialize(db=nil, table=nil, reason=nil)
|
3428
|
+
@Db = db
|
3429
|
+
@Table = table
|
3430
|
+
@Reason = reason
|
3431
|
+
end
|
3432
|
+
|
3433
|
+
def deserialize(params)
|
3434
|
+
@Db = params['Db']
|
3435
|
+
@Table = params['Table']
|
3436
|
+
@Reason = params['Reason']
|
3437
|
+
end
|
3438
|
+
end
|
3439
|
+
|
3440
|
+
# StartCompare请求参数结构体
|
3441
|
+
class StartCompareRequest < TencentCloud::Common::AbstractModel
|
3442
|
+
# @param JobId: 迁移任务 Id
|
3443
|
+
# @type JobId: String
|
3444
|
+
# @param CompareTaskId: 对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
3445
|
+
# @type CompareTaskId: String
|
3446
|
+
|
3447
|
+
attr_accessor :JobId, :CompareTaskId
|
3448
|
+
|
3449
|
+
def initialize(jobid=nil, comparetaskid=nil)
|
3450
|
+
@JobId = jobid
|
3451
|
+
@CompareTaskId = comparetaskid
|
3452
|
+
end
|
3453
|
+
|
3454
|
+
def deserialize(params)
|
3455
|
+
@JobId = params['JobId']
|
3456
|
+
@CompareTaskId = params['CompareTaskId']
|
3457
|
+
end
|
3458
|
+
end
|
3459
|
+
|
3460
|
+
# StartCompare返回参数结构体
|
3461
|
+
class StartCompareResponse < TencentCloud::Common::AbstractModel
|
3462
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3463
|
+
# @type RequestId: String
|
3464
|
+
|
3465
|
+
attr_accessor :RequestId
|
3466
|
+
|
3467
|
+
def initialize(requestid=nil)
|
3468
|
+
@RequestId = requestid
|
3469
|
+
end
|
3470
|
+
|
3471
|
+
def deserialize(params)
|
3472
|
+
@RequestId = params['RequestId']
|
3473
|
+
end
|
3474
|
+
end
|
3475
|
+
|
3476
|
+
# StartMigrateJob请求参数结构体
|
3477
|
+
class StartMigrateJobRequest < TencentCloud::Common::AbstractModel
|
3478
|
+
# @param JobId: 数据迁移任务ID
|
3479
|
+
# @type JobId: String
|
3480
|
+
|
3481
|
+
attr_accessor :JobId
|
3482
|
+
|
3483
|
+
def initialize(jobid=nil)
|
3484
|
+
@JobId = jobid
|
3485
|
+
end
|
3486
|
+
|
3487
|
+
def deserialize(params)
|
3488
|
+
@JobId = params['JobId']
|
3489
|
+
end
|
3490
|
+
end
|
3491
|
+
|
3492
|
+
# StartMigrateJob返回参数结构体
|
3493
|
+
class StartMigrateJobResponse < TencentCloud::Common::AbstractModel
|
3494
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3495
|
+
# @type RequestId: String
|
3496
|
+
|
3497
|
+
attr_accessor :RequestId
|
3498
|
+
|
3499
|
+
def initialize(requestid=nil)
|
3500
|
+
@RequestId = requestid
|
3501
|
+
end
|
3502
|
+
|
3503
|
+
def deserialize(params)
|
3504
|
+
@RequestId = params['RequestId']
|
3505
|
+
end
|
3506
|
+
end
|
3507
|
+
|
3508
|
+
# StartSyncJob请求参数结构体
|
3509
|
+
class StartSyncJobRequest < TencentCloud::Common::AbstractModel
|
3510
|
+
# @param JobId: 同步任务id
|
3511
|
+
# @type JobId: String
|
3512
|
+
|
3513
|
+
attr_accessor :JobId
|
3514
|
+
|
3515
|
+
def initialize(jobid=nil)
|
3516
|
+
@JobId = jobid
|
3517
|
+
end
|
3518
|
+
|
3519
|
+
def deserialize(params)
|
3520
|
+
@JobId = params['JobId']
|
3521
|
+
end
|
3522
|
+
end
|
3523
|
+
|
3524
|
+
# StartSyncJob返回参数结构体
|
3525
|
+
class StartSyncJobResponse < TencentCloud::Common::AbstractModel
|
3526
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3527
|
+
# @type RequestId: String
|
3528
|
+
|
3529
|
+
attr_accessor :RequestId
|
3530
|
+
|
3531
|
+
def initialize(requestid=nil)
|
3532
|
+
@RequestId = requestid
|
3533
|
+
end
|
3534
|
+
|
3535
|
+
def deserialize(params)
|
3536
|
+
@RequestId = params['RequestId']
|
3537
|
+
end
|
3538
|
+
end
|
3539
|
+
|
3540
|
+
# 步骤信息
|
3541
|
+
class StepDetailInfo < TencentCloud::Common::AbstractModel
|
3542
|
+
# @param StepNo: 步骤序列
|
3543
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3544
|
+
# @type StepNo: Integer
|
3545
|
+
# @param StepName: 步骤展现名称
|
3546
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3547
|
+
# @type StepName: String
|
3548
|
+
# @param StepId: 步骤英文标识
|
3549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3550
|
+
# @type StepId: String
|
3551
|
+
# @param Status: 步骤状态:success(成功)、failed(失败)、running(执行中)、notStarted(未执行)、默认为notStarted
|
3552
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3553
|
+
# @type Status: String
|
3554
|
+
# @param StartTime: 当前步骤开始的时间,格式为"yyyy-mm-dd hh:mm:ss",该字段不存在或者为空是无意义 注意:此字段可能返回 null,表示取不到有效值。
|
3555
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3556
|
+
# @type StartTime: String
|
3557
|
+
# @param StepMessage: 步骤错误信息
|
3558
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3559
|
+
# @type StepMessage: String
|
3560
|
+
# @param Percent: 执行进度
|
3561
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3562
|
+
# @type Percent: Integer
|
3563
|
+
# @param Errors: 错误信息
|
3564
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3565
|
+
# @type Errors: Array
|
3566
|
+
# @param Warnings: 告警提示
|
3567
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3568
|
+
# @type Warnings: Array
|
3569
|
+
|
3570
|
+
attr_accessor :StepNo, :StepName, :StepId, :Status, :StartTime, :StepMessage, :Percent, :Errors, :Warnings
|
3571
|
+
|
3572
|
+
def initialize(stepno=nil, stepname=nil, stepid=nil, status=nil, starttime=nil, stepmessage=nil, percent=nil, errors=nil, warnings=nil)
|
3573
|
+
@StepNo = stepno
|
3574
|
+
@StepName = stepname
|
3575
|
+
@StepId = stepid
|
3576
|
+
@Status = status
|
3577
|
+
@StartTime = starttime
|
3578
|
+
@StepMessage = stepmessage
|
3579
|
+
@Percent = percent
|
3580
|
+
@Errors = errors
|
3581
|
+
@Warnings = warnings
|
3582
|
+
end
|
3583
|
+
|
3584
|
+
def deserialize(params)
|
3585
|
+
@StepNo = params['StepNo']
|
3586
|
+
@StepName = params['StepName']
|
3587
|
+
@StepId = params['StepId']
|
3588
|
+
@Status = params['Status']
|
3589
|
+
@StartTime = params['StartTime']
|
3590
|
+
@StepMessage = params['StepMessage']
|
3591
|
+
@Percent = params['Percent']
|
3592
|
+
unless params['Errors'].nil?
|
3593
|
+
@Errors = []
|
3594
|
+
params['Errors'].each do |i|
|
3595
|
+
processsteptip_tmp = ProcessStepTip.new
|
3596
|
+
processsteptip_tmp.deserialize(i)
|
3597
|
+
@Errors << processsteptip_tmp
|
3598
|
+
end
|
3599
|
+
end
|
3600
|
+
unless params['Warnings'].nil?
|
3601
|
+
@Warnings = []
|
3602
|
+
params['Warnings'].each do |i|
|
3603
|
+
processsteptip_tmp = ProcessStepTip.new
|
3604
|
+
processsteptip_tmp.deserialize(i)
|
3605
|
+
@Warnings << processsteptip_tmp
|
3606
|
+
end
|
3607
|
+
end
|
3608
|
+
end
|
3609
|
+
end
|
3610
|
+
|
3611
|
+
# 单个步骤的详细信息
|
3612
|
+
class StepInfo < TencentCloud::Common::AbstractModel
|
3613
|
+
# @param StepNo: 步骤编号
|
3614
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3615
|
+
# @type StepNo: Integer
|
3616
|
+
# @param StepName: 步骤名
|
3617
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3618
|
+
# @type StepName: String
|
3619
|
+
# @param StepId: 步骤标号
|
3620
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3621
|
+
# @type StepId: String
|
3622
|
+
# @param Status: 当前状态,是否完成
|
3623
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3624
|
+
# @type Status: String
|
3625
|
+
# @param StartTime: 步骤开始时间
|
3626
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3627
|
+
# @type StartTime: String
|
3628
|
+
# @param Errors: 错误信息
|
3629
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3630
|
+
# @type Errors: Array
|
3631
|
+
# @param Warnings: 警告信息
|
3632
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3633
|
+
# @type Warnings: Array
|
3634
|
+
# @param Progress: 当前步骤进度
|
3635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3636
|
+
# @type Progress: Integer
|
3637
|
+
|
3638
|
+
attr_accessor :StepNo, :StepName, :StepId, :Status, :StartTime, :Errors, :Warnings, :Progress
|
3639
|
+
|
3640
|
+
def initialize(stepno=nil, stepname=nil, stepid=nil, status=nil, starttime=nil, errors=nil, warnings=nil, progress=nil)
|
3641
|
+
@StepNo = stepno
|
3642
|
+
@StepName = stepname
|
3643
|
+
@StepId = stepid
|
3644
|
+
@Status = status
|
3645
|
+
@StartTime = starttime
|
3646
|
+
@Errors = errors
|
3647
|
+
@Warnings = warnings
|
3648
|
+
@Progress = progress
|
3649
|
+
end
|
3650
|
+
|
3651
|
+
def deserialize(params)
|
3652
|
+
@StepNo = params['StepNo']
|
3653
|
+
@StepName = params['StepName']
|
3654
|
+
@StepId = params['StepId']
|
3655
|
+
@Status = params['Status']
|
3656
|
+
@StartTime = params['StartTime']
|
3657
|
+
unless params['Errors'].nil?
|
3658
|
+
@Errors = []
|
3659
|
+
params['Errors'].each do |i|
|
3660
|
+
steptip_tmp = StepTip.new
|
3661
|
+
steptip_tmp.deserialize(i)
|
3662
|
+
@Errors << steptip_tmp
|
3663
|
+
end
|
3664
|
+
end
|
3665
|
+
unless params['Warnings'].nil?
|
3666
|
+
@Warnings = []
|
3667
|
+
params['Warnings'].each do |i|
|
3668
|
+
steptip_tmp = StepTip.new
|
3669
|
+
steptip_tmp.deserialize(i)
|
3670
|
+
@Warnings << steptip_tmp
|
3671
|
+
end
|
3672
|
+
end
|
3673
|
+
@Progress = params['Progress']
|
3674
|
+
end
|
3675
|
+
end
|
3676
|
+
|
3677
|
+
# 当前步骤错误信息或者警告信息
|
3678
|
+
class StepTip < TencentCloud::Common::AbstractModel
|
3679
|
+
# @param Code: 错误码
|
3680
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3681
|
+
# @type Code: String
|
3682
|
+
# @param Message: 错误信息
|
3683
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3684
|
+
# @type Message: String
|
3685
|
+
# @param Solution: 解决方式
|
3686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3687
|
+
# @type Solution: String
|
3688
|
+
# @param HelpDoc: 帮助文档
|
3689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3690
|
+
# @type HelpDoc: String
|
3691
|
+
|
3692
|
+
attr_accessor :Code, :Message, :Solution, :HelpDoc
|
3693
|
+
|
3694
|
+
def initialize(code=nil, message=nil, solution=nil, helpdoc=nil)
|
3695
|
+
@Code = code
|
3696
|
+
@Message = message
|
3697
|
+
@Solution = solution
|
3698
|
+
@HelpDoc = helpdoc
|
3699
|
+
end
|
3700
|
+
|
3701
|
+
def deserialize(params)
|
3702
|
+
@Code = params['Code']
|
3703
|
+
@Message = params['Message']
|
3704
|
+
@Solution = params['Solution']
|
3705
|
+
@HelpDoc = params['HelpDoc']
|
3706
|
+
end
|
3707
|
+
end
|
3708
|
+
|
3709
|
+
# StopCompare请求参数结构体
|
3710
|
+
class StopCompareRequest < TencentCloud::Common::AbstractModel
|
3711
|
+
# @param JobId: 迁移任务 Id
|
3712
|
+
# @type JobId: String
|
3713
|
+
# @param CompareTaskId: 对比任务 ID,形如:dts-8yv4w2i1-cmp-37skmii9
|
3714
|
+
# @type CompareTaskId: String
|
3715
|
+
|
3716
|
+
attr_accessor :JobId, :CompareTaskId
|
3717
|
+
|
3718
|
+
def initialize(jobid=nil, comparetaskid=nil)
|
3719
|
+
@JobId = jobid
|
3720
|
+
@CompareTaskId = comparetaskid
|
3721
|
+
end
|
3722
|
+
|
3723
|
+
def deserialize(params)
|
3724
|
+
@JobId = params['JobId']
|
3725
|
+
@CompareTaskId = params['CompareTaskId']
|
3726
|
+
end
|
3727
|
+
end
|
3728
|
+
|
3729
|
+
# StopCompare返回参数结构体
|
3730
|
+
class StopCompareResponse < TencentCloud::Common::AbstractModel
|
3731
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3732
|
+
# @type RequestId: String
|
3733
|
+
|
3734
|
+
attr_accessor :RequestId
|
3735
|
+
|
3736
|
+
def initialize(requestid=nil)
|
3737
|
+
@RequestId = requestid
|
3738
|
+
end
|
3739
|
+
|
3740
|
+
def deserialize(params)
|
3741
|
+
@RequestId = params['RequestId']
|
3742
|
+
end
|
3743
|
+
end
|
3744
|
+
|
3745
|
+
# StopMigrateJob请求参数结构体
|
3746
|
+
class StopMigrateJobRequest < TencentCloud::Common::AbstractModel
|
3747
|
+
# @param JobId: 数据迁移任务ID
|
3748
|
+
# @type JobId: String
|
3749
|
+
|
3750
|
+
attr_accessor :JobId
|
3751
|
+
|
3752
|
+
def initialize(jobid=nil)
|
3753
|
+
@JobId = jobid
|
3754
|
+
end
|
3755
|
+
|
3756
|
+
def deserialize(params)
|
3757
|
+
@JobId = params['JobId']
|
3758
|
+
end
|
3759
|
+
end
|
3760
|
+
|
3761
|
+
# StopMigrateJob返回参数结构体
|
3762
|
+
class StopMigrateJobResponse < TencentCloud::Common::AbstractModel
|
3763
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3764
|
+
# @type RequestId: String
|
3765
|
+
|
3766
|
+
attr_accessor :RequestId
|
3767
|
+
|
3768
|
+
def initialize(requestid=nil)
|
3769
|
+
@RequestId = requestid
|
3770
|
+
end
|
3771
|
+
|
3772
|
+
def deserialize(params)
|
3773
|
+
@RequestId = params['RequestId']
|
3774
|
+
end
|
3775
|
+
end
|
3776
|
+
|
3777
|
+
# StopSyncJob请求参数结构体
|
3778
|
+
class StopSyncJobRequest < TencentCloud::Common::AbstractModel
|
3779
|
+
# @param JobId: 同步任务id
|
3780
|
+
# @type JobId: String
|
3781
|
+
|
3782
|
+
attr_accessor :JobId
|
3783
|
+
|
3784
|
+
def initialize(jobid=nil)
|
3785
|
+
@JobId = jobid
|
3786
|
+
end
|
3787
|
+
|
3788
|
+
def deserialize(params)
|
3789
|
+
@JobId = params['JobId']
|
3790
|
+
end
|
3791
|
+
end
|
3792
|
+
|
3793
|
+
# StopSyncJob返回参数结构体
|
3794
|
+
class StopSyncJobResponse < TencentCloud::Common::AbstractModel
|
3795
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3796
|
+
# @type RequestId: String
|
3797
|
+
|
3798
|
+
attr_accessor :RequestId
|
3799
|
+
|
3800
|
+
def initialize(requestid=nil)
|
3801
|
+
@RequestId = requestid
|
3802
|
+
end
|
3803
|
+
|
3804
|
+
def deserialize(params)
|
3805
|
+
@RequestId = params['RequestId']
|
3806
|
+
end
|
3807
|
+
end
|
3808
|
+
|
3809
|
+
# 同步任务的步骤信息
|
3810
|
+
class SyncDetailInfo < TencentCloud::Common::AbstractModel
|
3811
|
+
# @param StepAll: 总步骤数
|
3812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3813
|
+
# @type StepAll: Integer
|
3814
|
+
# @param StepNow: 当前步骤
|
3815
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3816
|
+
# @type StepNow: Integer
|
3817
|
+
# @param Progress: 总体进度
|
3818
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3819
|
+
# @type Progress: Integer
|
3820
|
+
# @param CurrentStepProgress: 当前步骤进度
|
3821
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3822
|
+
# @type CurrentStepProgress: Integer
|
3823
|
+
# @param MasterSlaveDistance: 同步两端数据量差距
|
3824
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3825
|
+
# @type MasterSlaveDistance: Integer
|
3826
|
+
# @param SecondsBehindMaster: 同步两端时间差距
|
3827
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3828
|
+
# @type SecondsBehindMaster: Integer
|
3829
|
+
# @param Message: 总体描述信息
|
3830
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3831
|
+
# @type Message: String
|
3832
|
+
# @param StepInfos: 详细步骤信息
|
3833
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3834
|
+
# @type StepInfos: Array
|
3835
|
+
|
3836
|
+
attr_accessor :StepAll, :StepNow, :Progress, :CurrentStepProgress, :MasterSlaveDistance, :SecondsBehindMaster, :Message, :StepInfos
|
3837
|
+
|
3838
|
+
def initialize(stepall=nil, stepnow=nil, progress=nil, currentstepprogress=nil, masterslavedistance=nil, secondsbehindmaster=nil, message=nil, stepinfos=nil)
|
3839
|
+
@StepAll = stepall
|
3840
|
+
@StepNow = stepnow
|
3841
|
+
@Progress = progress
|
3842
|
+
@CurrentStepProgress = currentstepprogress
|
3843
|
+
@MasterSlaveDistance = masterslavedistance
|
3844
|
+
@SecondsBehindMaster = secondsbehindmaster
|
3845
|
+
@Message = message
|
3846
|
+
@StepInfos = stepinfos
|
3847
|
+
end
|
3848
|
+
|
3849
|
+
def deserialize(params)
|
3850
|
+
@StepAll = params['StepAll']
|
3851
|
+
@StepNow = params['StepNow']
|
3852
|
+
@Progress = params['Progress']
|
3853
|
+
@CurrentStepProgress = params['CurrentStepProgress']
|
3854
|
+
@MasterSlaveDistance = params['MasterSlaveDistance']
|
3855
|
+
@SecondsBehindMaster = params['SecondsBehindMaster']
|
3856
|
+
@Message = params['Message']
|
3857
|
+
unless params['StepInfos'].nil?
|
3858
|
+
@StepInfos = []
|
3859
|
+
params['StepInfos'].each do |i|
|
3860
|
+
stepinfo_tmp = StepInfo.new
|
3861
|
+
stepinfo_tmp.deserialize(i)
|
3862
|
+
@StepInfos << stepinfo_tmp
|
3863
|
+
end
|
3864
|
+
end
|
3865
|
+
end
|
3866
|
+
end
|
3867
|
+
|
3868
|
+
# 同步任务信息
|
3869
|
+
class SyncJobInfo < TencentCloud::Common::AbstractModel
|
3870
|
+
# @param JobId: 同步任务id
|
3871
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3872
|
+
# @type JobId: String
|
3873
|
+
# @param JobName: 同步任务名
|
3874
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3875
|
+
# @type JobName: String
|
3876
|
+
# @param PayMode: 付款方式
|
3877
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3878
|
+
# @type PayMode: String
|
3879
|
+
# @param RunMode: 运行模式
|
3880
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3881
|
+
# @type RunMode: String
|
3882
|
+
# @param ExpectRunTime: 期待运行时间
|
3883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3884
|
+
# @type ExpectRunTime: String
|
3885
|
+
# @param AllActions: 支持的所有操作
|
3886
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3887
|
+
# @type AllActions: Array
|
3888
|
+
# @param Actions: 当前状态能进行的操作
|
3889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3890
|
+
# @type Actions: Array
|
3891
|
+
# @param Options: 同步选项
|
3892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3893
|
+
# @type Options: :class:`Tencentcloud::Dts.v20211206.models.Options`
|
3894
|
+
# @param Objects: 同步库表对象
|
3895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3896
|
+
# @type Objects: :class:`Tencentcloud::Dts.v20211206.models.Objects`
|
3897
|
+
# @param Specification: 任务规格
|
3898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3899
|
+
# @type Specification: String
|
3900
|
+
# @param ExpireTime: 过期时间
|
3901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3902
|
+
# @type ExpireTime: String
|
3903
|
+
# @param SrcRegion: 源端地域
|
3904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3905
|
+
# @type SrcRegion: String
|
3906
|
+
# @param SrcDatabaseType: 源端数据库类型
|
3907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3908
|
+
# @type SrcDatabaseType: String
|
3909
|
+
# @param SrcAccessType: 源端接入类型
|
3910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3911
|
+
# @type SrcAccessType: String
|
3912
|
+
# @param SrcInfo: 源端信息
|
3913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3914
|
+
# @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
|
3915
|
+
# @param DstRegion: 目标端地域
|
3916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3917
|
+
# @type DstRegion: String
|
3918
|
+
# @param DstDatabaseType: 目标端数据库类型
|
3919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3920
|
+
# @type DstDatabaseType: String
|
3921
|
+
# @param DstAccessType: 目标端接入类型
|
3922
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3923
|
+
# @type DstAccessType: String
|
3924
|
+
# @param DstInfo: 目标端信息
|
3925
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3926
|
+
# @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
|
3927
|
+
# @param CreateTime: 创建时间
|
3928
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3929
|
+
# @type CreateTime: String
|
3930
|
+
# @param StartTime: 开始时间
|
3931
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3932
|
+
# @type StartTime: String
|
3933
|
+
# @param EndTime: 结束时间
|
3934
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3935
|
+
# @type EndTime: String
|
3936
|
+
# @param Status: 任务状态
|
3937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3938
|
+
# @type Status: String
|
3939
|
+
# @param Tags: 标签相关
|
3940
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3941
|
+
# @type Tags: Array
|
3942
|
+
# @param Detail: 同步任务运行步骤信息
|
3943
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3944
|
+
# @type Detail: :class:`Tencentcloud::Dts.v20211206.models.SyncDetailInfo`
|
3945
|
+
|
3946
|
+
attr_accessor :JobId, :JobName, :PayMode, :RunMode, :ExpectRunTime, :AllActions, :Actions, :Options, :Objects, :Specification, :ExpireTime, :SrcRegion, :SrcDatabaseType, :SrcAccessType, :SrcInfo, :DstRegion, :DstDatabaseType, :DstAccessType, :DstInfo, :CreateTime, :StartTime, :EndTime, :Status, :Tags, :Detail
|
3947
|
+
|
3948
|
+
def initialize(jobid=nil, jobname=nil, paymode=nil, runmode=nil, expectruntime=nil, allactions=nil, actions=nil, options=nil, objects=nil, specification=nil, expiretime=nil, srcregion=nil, srcdatabasetype=nil, srcaccesstype=nil, srcinfo=nil, dstregion=nil, dstdatabasetype=nil, dstaccesstype=nil, dstinfo=nil, createtime=nil, starttime=nil, endtime=nil, status=nil, tags=nil, detail=nil)
|
3949
|
+
@JobId = jobid
|
3950
|
+
@JobName = jobname
|
3951
|
+
@PayMode = paymode
|
3952
|
+
@RunMode = runmode
|
3953
|
+
@ExpectRunTime = expectruntime
|
3954
|
+
@AllActions = allactions
|
3955
|
+
@Actions = actions
|
3956
|
+
@Options = options
|
3957
|
+
@Objects = objects
|
3958
|
+
@Specification = specification
|
3959
|
+
@ExpireTime = expiretime
|
3960
|
+
@SrcRegion = srcregion
|
3961
|
+
@SrcDatabaseType = srcdatabasetype
|
3962
|
+
@SrcAccessType = srcaccesstype
|
3963
|
+
@SrcInfo = srcinfo
|
3964
|
+
@DstRegion = dstregion
|
3965
|
+
@DstDatabaseType = dstdatabasetype
|
3966
|
+
@DstAccessType = dstaccesstype
|
3967
|
+
@DstInfo = dstinfo
|
3968
|
+
@CreateTime = createtime
|
3969
|
+
@StartTime = starttime
|
3970
|
+
@EndTime = endtime
|
3971
|
+
@Status = status
|
3972
|
+
@Tags = tags
|
3973
|
+
@Detail = detail
|
3974
|
+
end
|
3975
|
+
|
3976
|
+
def deserialize(params)
|
3977
|
+
@JobId = params['JobId']
|
3978
|
+
@JobName = params['JobName']
|
3979
|
+
@PayMode = params['PayMode']
|
3980
|
+
@RunMode = params['RunMode']
|
3981
|
+
@ExpectRunTime = params['ExpectRunTime']
|
3982
|
+
@AllActions = params['AllActions']
|
3983
|
+
@Actions = params['Actions']
|
3984
|
+
unless params['Options'].nil?
|
3985
|
+
@Options = Options.new
|
3986
|
+
@Options.deserialize(params['Options'])
|
3987
|
+
end
|
3988
|
+
unless params['Objects'].nil?
|
3989
|
+
@Objects = Objects.new
|
3990
|
+
@Objects.deserialize(params['Objects'])
|
3991
|
+
end
|
3992
|
+
@Specification = params['Specification']
|
3993
|
+
@ExpireTime = params['ExpireTime']
|
3994
|
+
@SrcRegion = params['SrcRegion']
|
3995
|
+
@SrcDatabaseType = params['SrcDatabaseType']
|
3996
|
+
@SrcAccessType = params['SrcAccessType']
|
3997
|
+
unless params['SrcInfo'].nil?
|
3998
|
+
@SrcInfo = Endpoint.new
|
3999
|
+
@SrcInfo.deserialize(params['SrcInfo'])
|
4000
|
+
end
|
4001
|
+
@DstRegion = params['DstRegion']
|
4002
|
+
@DstDatabaseType = params['DstDatabaseType']
|
4003
|
+
@DstAccessType = params['DstAccessType']
|
4004
|
+
unless params['DstInfo'].nil?
|
4005
|
+
@DstInfo = Endpoint.new
|
4006
|
+
@DstInfo.deserialize(params['DstInfo'])
|
4007
|
+
end
|
4008
|
+
@CreateTime = params['CreateTime']
|
4009
|
+
@StartTime = params['StartTime']
|
4010
|
+
@EndTime = params['EndTime']
|
4011
|
+
@Status = params['Status']
|
4012
|
+
unless params['Tags'].nil?
|
4013
|
+
@Tags = []
|
4014
|
+
params['Tags'].each do |i|
|
4015
|
+
tagitem_tmp = TagItem.new
|
4016
|
+
tagitem_tmp.deserialize(i)
|
4017
|
+
@Tags << tagitem_tmp
|
4018
|
+
end
|
4019
|
+
end
|
4020
|
+
unless params['Detail'].nil?
|
4021
|
+
@Detail = SyncDetailInfo.new
|
4022
|
+
@Detail.deserialize(params['Detail'])
|
4023
|
+
end
|
4024
|
+
end
|
4025
|
+
end
|
4026
|
+
|
4027
|
+
# 数据同步库表信息描述
|
4028
|
+
class Table < TencentCloud::Common::AbstractModel
|
4029
|
+
# @param TableName: 表名
|
4030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4031
|
+
# @type TableName: String
|
4032
|
+
# @param NewTableName: 新表名
|
4033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4034
|
+
# @type NewTableName: String
|
4035
|
+
# @param FilterCondition: 过滤条件
|
4036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4037
|
+
# @type FilterCondition: String
|
4038
|
+
|
4039
|
+
attr_accessor :TableName, :NewTableName, :FilterCondition
|
4040
|
+
|
4041
|
+
def initialize(tablename=nil, newtablename=nil, filtercondition=nil)
|
4042
|
+
@TableName = tablename
|
4043
|
+
@NewTableName = newtablename
|
4044
|
+
@FilterCondition = filtercondition
|
4045
|
+
end
|
4046
|
+
|
4047
|
+
def deserialize(params)
|
4048
|
+
@TableName = params['TableName']
|
4049
|
+
@NewTableName = params['NewTableName']
|
4050
|
+
@FilterCondition = params['FilterCondition']
|
4051
|
+
end
|
4052
|
+
end
|
4053
|
+
|
4054
|
+
# 表图对象集合,当 TableMode 为 partial 时,此项需要填写
|
4055
|
+
class TableItem < TencentCloud::Common::AbstractModel
|
4056
|
+
# @param TableName: 迁移的表名
|
4057
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4058
|
+
# @type TableName: String
|
4059
|
+
# @param NewTableName: 迁移后的表名,当TableEditMode为rename时此项必填
|
4060
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4061
|
+
# @type NewTableName: String
|
4062
|
+
# @param TmpTables: 迁移临时表,针对pt-osc等工具在迁移过程中产生的临时表同步,需要提前将可能的临时表配置在这里,当TableEditMode为pt时此项必填
|
4063
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4064
|
+
# @type TmpTables: Array
|
4065
|
+
# @param TableEditMode: 编辑表类型,rename(表映射),pt(同步附加表)
|
4066
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4067
|
+
# @type TableEditMode: String
|
4068
|
+
|
4069
|
+
attr_accessor :TableName, :NewTableName, :TmpTables, :TableEditMode
|
4070
|
+
|
4071
|
+
def initialize(tablename=nil, newtablename=nil, tmptables=nil, tableeditmode=nil)
|
4072
|
+
@TableName = tablename
|
4073
|
+
@NewTableName = newtablename
|
4074
|
+
@TmpTables = tmptables
|
4075
|
+
@TableEditMode = tableeditmode
|
4076
|
+
end
|
4077
|
+
|
4078
|
+
def deserialize(params)
|
4079
|
+
@TableName = params['TableName']
|
4080
|
+
@NewTableName = params['NewTableName']
|
4081
|
+
@TmpTables = params['TmpTables']
|
4082
|
+
@TableEditMode = params['TableEditMode']
|
4083
|
+
end
|
4084
|
+
end
|
4085
|
+
|
4086
|
+
# 标签过滤
|
4087
|
+
class TagFilter < TencentCloud::Common::AbstractModel
|
4088
|
+
# @param TagKey: 标签键值
|
4089
|
+
# @type TagKey: String
|
4090
|
+
# @param TagValue: 标签值
|
4091
|
+
# @type TagValue: Array
|
4092
|
+
|
4093
|
+
attr_accessor :TagKey, :TagValue
|
4094
|
+
|
4095
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
4096
|
+
@TagKey = tagkey
|
4097
|
+
@TagValue = tagvalue
|
4098
|
+
end
|
4099
|
+
|
4100
|
+
def deserialize(params)
|
4101
|
+
@TagKey = params['TagKey']
|
4102
|
+
@TagValue = params['TagValue']
|
4103
|
+
end
|
4104
|
+
end
|
4105
|
+
|
4106
|
+
# 标签
|
4107
|
+
class TagItem < TencentCloud::Common::AbstractModel
|
4108
|
+
# @param TagKey: 标签键
|
4109
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4110
|
+
# @type TagKey: String
|
4111
|
+
# @param TagValue: 标签值
|
4112
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4113
|
+
# @type TagValue: String
|
4114
|
+
|
4115
|
+
attr_accessor :TagKey, :TagValue
|
4116
|
+
|
4117
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
4118
|
+
@TagKey = tagkey
|
4119
|
+
@TagValue = tagvalue
|
4120
|
+
end
|
4121
|
+
|
4122
|
+
def deserialize(params)
|
4123
|
+
@TagKey = params['TagKey']
|
4124
|
+
@TagValue = params['TagValue']
|
4125
|
+
end
|
4126
|
+
end
|
4127
|
+
|
4128
|
+
# 计费状态信息
|
4129
|
+
class TradeInfo < TencentCloud::Common::AbstractModel
|
4130
|
+
# @param DealName: 交易订单号
|
4131
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4132
|
+
# @type DealName: String
|
4133
|
+
# @param LastDealName: 上一次交易订单号
|
4134
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4135
|
+
# @type LastDealName: String
|
4136
|
+
# @param InstanceClass: 实例规格,包括:micro、small、medium、large、xlarge、2xlarge等
|
4137
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4138
|
+
# @type InstanceClass: String
|
4139
|
+
# @param TradeStatus: 计费任务状态, normal(计费或待计费)、resizing(变配中)、reversing(冲正中,比较短暂的状态)、isolating(隔离中,比较短暂的状态)、isolated(已隔离)、offlining(下线中)、offlined(已下线)、notBilled(未计费)
|
4140
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4141
|
+
# @type TradeStatus: String
|
4142
|
+
# @param ExpireTime: 到期时间,格式为"yyyy-mm-dd hh:mm:ss"
|
4143
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4144
|
+
# @type ExpireTime: String
|
4145
|
+
# @param OfflineTime: 下线时间,格式为"yyyy-mm-dd hh:mm:ss"
|
4146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4147
|
+
# @type OfflineTime: String
|
4148
|
+
# @param IsolateTime: 隔离时间,格式为"yyyy-mm-dd hh:mm:ss"
|
4149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4150
|
+
# @type IsolateTime: String
|
4151
|
+
# @param OfflineReason: 下线原因
|
4152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4153
|
+
# @type OfflineReason: String
|
4154
|
+
# @param IsolateReason: 隔离原因
|
4155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4156
|
+
# @type IsolateReason: String
|
4157
|
+
# @param PayType: 付费类型,包括:postpay(后付费)、prepay(预付费)
|
4158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4159
|
+
# @type PayType: String
|
4160
|
+
# @param BillingType: 任务计费类型,包括:billing(计费)、notBilling(不计费)、 promotions(促销活动中)
|
4161
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4162
|
+
# @type BillingType: String
|
4163
|
+
|
4164
|
+
attr_accessor :DealName, :LastDealName, :InstanceClass, :TradeStatus, :ExpireTime, :OfflineTime, :IsolateTime, :OfflineReason, :IsolateReason, :PayType, :BillingType
|
4165
|
+
|
4166
|
+
def initialize(dealname=nil, lastdealname=nil, instanceclass=nil, tradestatus=nil, expiretime=nil, offlinetime=nil, isolatetime=nil, offlinereason=nil, isolatereason=nil, paytype=nil, billingtype=nil)
|
4167
|
+
@DealName = dealname
|
4168
|
+
@LastDealName = lastdealname
|
4169
|
+
@InstanceClass = instanceclass
|
4170
|
+
@TradeStatus = tradestatus
|
4171
|
+
@ExpireTime = expiretime
|
4172
|
+
@OfflineTime = offlinetime
|
4173
|
+
@IsolateTime = isolatetime
|
4174
|
+
@OfflineReason = offlinereason
|
4175
|
+
@IsolateReason = isolatereason
|
4176
|
+
@PayType = paytype
|
4177
|
+
@BillingType = billingtype
|
4178
|
+
end
|
4179
|
+
|
4180
|
+
def deserialize(params)
|
4181
|
+
@DealName = params['DealName']
|
4182
|
+
@LastDealName = params['LastDealName']
|
4183
|
+
@InstanceClass = params['InstanceClass']
|
4184
|
+
@TradeStatus = params['TradeStatus']
|
4185
|
+
@ExpireTime = params['ExpireTime']
|
4186
|
+
@OfflineTime = params['OfflineTime']
|
4187
|
+
@IsolateTime = params['IsolateTime']
|
4188
|
+
@OfflineReason = params['OfflineReason']
|
4189
|
+
@IsolateReason = params['IsolateReason']
|
4190
|
+
@PayType = params['PayType']
|
4191
|
+
@BillingType = params['BillingType']
|
4192
|
+
end
|
4193
|
+
end
|
4194
|
+
|
4195
|
+
# 数据同步view的描述
|
4196
|
+
class View < TencentCloud::Common::AbstractModel
|
4197
|
+
# @param ViewName: view名
|
4198
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4199
|
+
# @type ViewName: String
|
4200
|
+
# @param NewViewName: 新view名
|
4201
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4202
|
+
# @type NewViewName: String
|
4203
|
+
|
4204
|
+
attr_accessor :ViewName, :NewViewName
|
4205
|
+
|
4206
|
+
def initialize(viewname=nil, newviewname=nil)
|
4207
|
+
@ViewName = viewname
|
4208
|
+
@NewViewName = newviewname
|
4209
|
+
end
|
4210
|
+
|
4211
|
+
def deserialize(params)
|
4212
|
+
@ViewName = params['ViewName']
|
4213
|
+
@NewViewName = params['NewViewName']
|
4214
|
+
end
|
4215
|
+
end
|
4216
|
+
|
4217
|
+
# 视图对象
|
4218
|
+
class ViewItem < TencentCloud::Common::AbstractModel
|
4219
|
+
# @param ViewName: 视图名称
|
4220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4221
|
+
# @type ViewName: String
|
4222
|
+
# @param NewViewName: 迁移后的视图名称
|
4223
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4224
|
+
# @type NewViewName: String
|
4225
|
+
|
4226
|
+
attr_accessor :ViewName, :NewViewName
|
4227
|
+
|
4228
|
+
def initialize(viewname=nil, newviewname=nil)
|
4229
|
+
@ViewName = viewname
|
4230
|
+
@NewViewName = newviewname
|
4231
|
+
end
|
4232
|
+
|
4233
|
+
def deserialize(params)
|
4234
|
+
@ViewName = params['ViewName']
|
4235
|
+
@NewViewName = params['NewViewName']
|
4236
|
+
end
|
4237
|
+
end
|
4238
|
+
|
4239
|
+
end
|
4240
|
+
end
|
4241
|
+
end
|
4242
|
+
|