tencentcloud-sdk-cfg 1.0.289
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cfg.rb +11 -0
- data/lib/v20210820/client.rb +276 -0
- data/lib/v20210820/models.rb +1431 -0
- metadata +66 -0
@@ -0,0 +1,1431 @@
|
|
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 Cfg
|
19
|
+
module V20210820
|
20
|
+
# CreateTaskFromTemplate请求参数结构体
|
21
|
+
class CreateTaskFromTemplateRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param TemplateId: 从经验库中查询到的经验模版ID
|
23
|
+
# @type TemplateId: Integer
|
24
|
+
# @param TaskConfig: 演练的配置参数
|
25
|
+
# @type TaskConfig: :class:`Tencentcloud::Cfg.v20210820.models.TaskConfig`
|
26
|
+
|
27
|
+
attr_accessor :TemplateId, :TaskConfig
|
28
|
+
|
29
|
+
def initialize(templateid=nil, taskconfig=nil)
|
30
|
+
@TemplateId = templateid
|
31
|
+
@TaskConfig = taskconfig
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@TemplateId = params['TemplateId']
|
36
|
+
unless params['TaskConfig'].nil?
|
37
|
+
@TaskConfig = TaskConfig.new
|
38
|
+
@TaskConfig.deserialize(params['TaskConfig'])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# CreateTaskFromTemplate返回参数结构体
|
44
|
+
class CreateTaskFromTemplateResponse < TencentCloud::Common::AbstractModel
|
45
|
+
# @param TaskId: 创建成功的演练ID
|
46
|
+
# @type TaskId: Integer
|
47
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
48
|
+
# @type RequestId: String
|
49
|
+
|
50
|
+
attr_accessor :TaskId, :RequestId
|
51
|
+
|
52
|
+
def initialize(taskid=nil, requestid=nil)
|
53
|
+
@TaskId = taskid
|
54
|
+
@RequestId = requestid
|
55
|
+
end
|
56
|
+
|
57
|
+
def deserialize(params)
|
58
|
+
@TaskId = params['TaskId']
|
59
|
+
@RequestId = params['RequestId']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# DeleteTask请求参数结构体
|
64
|
+
class DeleteTaskRequest < TencentCloud::Common::AbstractModel
|
65
|
+
# @param TaskId: 任务ID
|
66
|
+
# @type TaskId: Integer
|
67
|
+
|
68
|
+
attr_accessor :TaskId
|
69
|
+
|
70
|
+
def initialize(taskid=nil)
|
71
|
+
@TaskId = taskid
|
72
|
+
end
|
73
|
+
|
74
|
+
def deserialize(params)
|
75
|
+
@TaskId = params['TaskId']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# DeleteTask返回参数结构体
|
80
|
+
class DeleteTaskResponse < TencentCloud::Common::AbstractModel
|
81
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
82
|
+
# @type RequestId: String
|
83
|
+
|
84
|
+
attr_accessor :RequestId
|
85
|
+
|
86
|
+
def initialize(requestid=nil)
|
87
|
+
@RequestId = requestid
|
88
|
+
end
|
89
|
+
|
90
|
+
def deserialize(params)
|
91
|
+
@RequestId = params['RequestId']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# 查询-保护策略
|
96
|
+
class DescribePolicy < TencentCloud::Common::AbstractModel
|
97
|
+
# @param TaskPolicyIdList: 保护策略ID列表
|
98
|
+
# @type TaskPolicyIdList: Array
|
99
|
+
# @param TaskPolicyStatus: 保护策略状态
|
100
|
+
# @type TaskPolicyStatus: String
|
101
|
+
# @param TaskPolicyRule: 策略规则
|
102
|
+
# @type TaskPolicyRule: String
|
103
|
+
# @param TaskPolicyDealType: 护栏策略生效处理策略 1:顺序执行,2:暂停
|
104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
105
|
+
# @type TaskPolicyDealType: Integer
|
106
|
+
|
107
|
+
attr_accessor :TaskPolicyIdList, :TaskPolicyStatus, :TaskPolicyRule, :TaskPolicyDealType
|
108
|
+
|
109
|
+
def initialize(taskpolicyidlist=nil, taskpolicystatus=nil, taskpolicyrule=nil, taskpolicydealtype=nil)
|
110
|
+
@TaskPolicyIdList = taskpolicyidlist
|
111
|
+
@TaskPolicyStatus = taskpolicystatus
|
112
|
+
@TaskPolicyRule = taskpolicyrule
|
113
|
+
@TaskPolicyDealType = taskpolicydealtype
|
114
|
+
end
|
115
|
+
|
116
|
+
def deserialize(params)
|
117
|
+
@TaskPolicyIdList = params['TaskPolicyIdList']
|
118
|
+
@TaskPolicyStatus = params['TaskPolicyStatus']
|
119
|
+
@TaskPolicyRule = params['TaskPolicyRule']
|
120
|
+
@TaskPolicyDealType = params['TaskPolicyDealType']
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# DescribeTaskExecuteLogs请求参数结构体
|
125
|
+
class DescribeTaskExecuteLogsRequest < TencentCloud::Common::AbstractModel
|
126
|
+
# @param TaskId: 任务ID
|
127
|
+
# @type TaskId: Integer
|
128
|
+
# @param Limit: 返回的内容行数
|
129
|
+
# @type Limit: Integer
|
130
|
+
# @param Offset: 日志起始的行数。
|
131
|
+
# @type Offset: Integer
|
132
|
+
|
133
|
+
attr_accessor :TaskId, :Limit, :Offset
|
134
|
+
|
135
|
+
def initialize(taskid=nil, limit=nil, offset=nil)
|
136
|
+
@TaskId = taskid
|
137
|
+
@Limit = limit
|
138
|
+
@Offset = offset
|
139
|
+
end
|
140
|
+
|
141
|
+
def deserialize(params)
|
142
|
+
@TaskId = params['TaskId']
|
143
|
+
@Limit = params['Limit']
|
144
|
+
@Offset = params['Offset']
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# DescribeTaskExecuteLogs返回参数结构体
|
149
|
+
class DescribeTaskExecuteLogsResponse < TencentCloud::Common::AbstractModel
|
150
|
+
# @param LogMessage: 日志数据
|
151
|
+
# @type LogMessage: Array
|
152
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
153
|
+
# @type RequestId: String
|
154
|
+
|
155
|
+
attr_accessor :LogMessage, :RequestId
|
156
|
+
|
157
|
+
def initialize(logmessage=nil, requestid=nil)
|
158
|
+
@LogMessage = logmessage
|
159
|
+
@RequestId = requestid
|
160
|
+
end
|
161
|
+
|
162
|
+
def deserialize(params)
|
163
|
+
@LogMessage = params['LogMessage']
|
164
|
+
@RequestId = params['RequestId']
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# DescribeTaskList请求参数结构体
|
169
|
+
class DescribeTaskListRequest < TencentCloud::Common::AbstractModel
|
170
|
+
# @param Limit: 分页Limit
|
171
|
+
# @type Limit: Integer
|
172
|
+
# @param Offset: 分页Offset
|
173
|
+
# @type Offset: Integer
|
174
|
+
# @param TaskTitle: 演练名称
|
175
|
+
# @type TaskTitle: String
|
176
|
+
# @param TaskTag: 标签键
|
177
|
+
# @type TaskTag: Array
|
178
|
+
# @param TaskStatus: 状态
|
179
|
+
# @type TaskStatus: Integer
|
180
|
+
# @param TaskStartTime: 开始时间,固定格式%Y-%m-%d %H:%M:%S
|
181
|
+
# @type TaskStartTime: String
|
182
|
+
# @param TaskEndTime: 结束时间,固定格式%Y-%m-%d %H:%M:%S
|
183
|
+
# @type TaskEndTime: String
|
184
|
+
# @param Tags: 标签对
|
185
|
+
# @type Tags: Array
|
186
|
+
|
187
|
+
attr_accessor :Limit, :Offset, :TaskTitle, :TaskTag, :TaskStatus, :TaskStartTime, :TaskEndTime, :Tags
|
188
|
+
|
189
|
+
def initialize(limit=nil, offset=nil, tasktitle=nil, tasktag=nil, taskstatus=nil, taskstarttime=nil, taskendtime=nil, tags=nil)
|
190
|
+
@Limit = limit
|
191
|
+
@Offset = offset
|
192
|
+
@TaskTitle = tasktitle
|
193
|
+
@TaskTag = tasktag
|
194
|
+
@TaskStatus = taskstatus
|
195
|
+
@TaskStartTime = taskstarttime
|
196
|
+
@TaskEndTime = taskendtime
|
197
|
+
@Tags = tags
|
198
|
+
end
|
199
|
+
|
200
|
+
def deserialize(params)
|
201
|
+
@Limit = params['Limit']
|
202
|
+
@Offset = params['Offset']
|
203
|
+
@TaskTitle = params['TaskTitle']
|
204
|
+
@TaskTag = params['TaskTag']
|
205
|
+
@TaskStatus = params['TaskStatus']
|
206
|
+
@TaskStartTime = params['TaskStartTime']
|
207
|
+
@TaskEndTime = params['TaskEndTime']
|
208
|
+
unless params['Tags'].nil?
|
209
|
+
@Tags = []
|
210
|
+
params['Tags'].each do |i|
|
211
|
+
tagwithdescribe_tmp = TagWithDescribe.new
|
212
|
+
tagwithdescribe_tmp.deserialize(i)
|
213
|
+
@Tags << tagwithdescribe_tmp
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# DescribeTaskList返回参数结构体
|
220
|
+
class DescribeTaskListResponse < TencentCloud::Common::AbstractModel
|
221
|
+
# @param TaskList: 无
|
222
|
+
# @type TaskList: Array
|
223
|
+
# @param Total: 列表数量
|
224
|
+
# @type Total: Integer
|
225
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
226
|
+
# @type RequestId: String
|
227
|
+
|
228
|
+
attr_accessor :TaskList, :Total, :RequestId
|
229
|
+
|
230
|
+
def initialize(tasklist=nil, total=nil, requestid=nil)
|
231
|
+
@TaskList = tasklist
|
232
|
+
@Total = total
|
233
|
+
@RequestId = requestid
|
234
|
+
end
|
235
|
+
|
236
|
+
def deserialize(params)
|
237
|
+
unless params['TaskList'].nil?
|
238
|
+
@TaskList = []
|
239
|
+
params['TaskList'].each do |i|
|
240
|
+
tasklistitem_tmp = TaskListItem.new
|
241
|
+
tasklistitem_tmp.deserialize(i)
|
242
|
+
@TaskList << tasklistitem_tmp
|
243
|
+
end
|
244
|
+
end
|
245
|
+
@Total = params['Total']
|
246
|
+
@RequestId = params['RequestId']
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# DescribeTask请求参数结构体
|
251
|
+
class DescribeTaskRequest < TencentCloud::Common::AbstractModel
|
252
|
+
# @param TaskId: 任务ID
|
253
|
+
# @type TaskId: Integer
|
254
|
+
|
255
|
+
attr_accessor :TaskId
|
256
|
+
|
257
|
+
def initialize(taskid=nil)
|
258
|
+
@TaskId = taskid
|
259
|
+
end
|
260
|
+
|
261
|
+
def deserialize(params)
|
262
|
+
@TaskId = params['TaskId']
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
# DescribeTask返回参数结构体
|
267
|
+
class DescribeTaskResponse < TencentCloud::Common::AbstractModel
|
268
|
+
# @param Task: 任务信息
|
269
|
+
# @type Task: :class:`Tencentcloud::Cfg.v20210820.models.Task`
|
270
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
271
|
+
# @type RequestId: String
|
272
|
+
|
273
|
+
attr_accessor :Task, :RequestId
|
274
|
+
|
275
|
+
def initialize(task=nil, requestid=nil)
|
276
|
+
@Task = task
|
277
|
+
@RequestId = requestid
|
278
|
+
end
|
279
|
+
|
280
|
+
def deserialize(params)
|
281
|
+
unless params['Task'].nil?
|
282
|
+
@Task = Task.new
|
283
|
+
@Task.deserialize(params['Task'])
|
284
|
+
end
|
285
|
+
@RequestId = params['RequestId']
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# DescribeTemplateList请求参数结构体
|
290
|
+
class DescribeTemplateListRequest < TencentCloud::Common::AbstractModel
|
291
|
+
# @param Limit: 分页Limit, 最大值100
|
292
|
+
# @type Limit: Integer
|
293
|
+
# @param Offset: 分页Offset
|
294
|
+
# @type Offset: Integer
|
295
|
+
# @param Title: 演练名称
|
296
|
+
# @type Title: String
|
297
|
+
# @param Tag: 标签键
|
298
|
+
# @type Tag: Array
|
299
|
+
# @param IsUsed: 状态,1---使用中, 2---停用
|
300
|
+
# @type IsUsed: Integer
|
301
|
+
# @param Tags: 标签对
|
302
|
+
# @type Tags: Array
|
303
|
+
|
304
|
+
attr_accessor :Limit, :Offset, :Title, :Tag, :IsUsed, :Tags
|
305
|
+
|
306
|
+
def initialize(limit=nil, offset=nil, title=nil, tag=nil, isused=nil, tags=nil)
|
307
|
+
@Limit = limit
|
308
|
+
@Offset = offset
|
309
|
+
@Title = title
|
310
|
+
@Tag = tag
|
311
|
+
@IsUsed = isused
|
312
|
+
@Tags = tags
|
313
|
+
end
|
314
|
+
|
315
|
+
def deserialize(params)
|
316
|
+
@Limit = params['Limit']
|
317
|
+
@Offset = params['Offset']
|
318
|
+
@Title = params['Title']
|
319
|
+
@Tag = params['Tag']
|
320
|
+
@IsUsed = params['IsUsed']
|
321
|
+
unless params['Tags'].nil?
|
322
|
+
@Tags = []
|
323
|
+
params['Tags'].each do |i|
|
324
|
+
tagwithdescribe_tmp = TagWithDescribe.new
|
325
|
+
tagwithdescribe_tmp.deserialize(i)
|
326
|
+
@Tags << tagwithdescribe_tmp
|
327
|
+
end
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# DescribeTemplateList返回参数结构体
|
333
|
+
class DescribeTemplateListResponse < TencentCloud::Common::AbstractModel
|
334
|
+
# @param TemplateList: 经验库列表
|
335
|
+
# @type TemplateList: Array
|
336
|
+
# @param Total: 列表数量
|
337
|
+
# @type Total: Integer
|
338
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
339
|
+
# @type RequestId: String
|
340
|
+
|
341
|
+
attr_accessor :TemplateList, :Total, :RequestId
|
342
|
+
|
343
|
+
def initialize(templatelist=nil, total=nil, requestid=nil)
|
344
|
+
@TemplateList = templatelist
|
345
|
+
@Total = total
|
346
|
+
@RequestId = requestid
|
347
|
+
end
|
348
|
+
|
349
|
+
def deserialize(params)
|
350
|
+
unless params['TemplateList'].nil?
|
351
|
+
@TemplateList = []
|
352
|
+
params['TemplateList'].each do |i|
|
353
|
+
templatelistitem_tmp = TemplateListItem.new
|
354
|
+
templatelistitem_tmp.deserialize(i)
|
355
|
+
@TemplateList << templatelistitem_tmp
|
356
|
+
end
|
357
|
+
end
|
358
|
+
@Total = params['Total']
|
359
|
+
@RequestId = params['RequestId']
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# DescribeTemplate请求参数结构体
|
364
|
+
class DescribeTemplateRequest < TencentCloud::Common::AbstractModel
|
365
|
+
# @param TemplateId: 经验库ID
|
366
|
+
# @type TemplateId: Integer
|
367
|
+
|
368
|
+
attr_accessor :TemplateId
|
369
|
+
|
370
|
+
def initialize(templateid=nil)
|
371
|
+
@TemplateId = templateid
|
372
|
+
end
|
373
|
+
|
374
|
+
def deserialize(params)
|
375
|
+
@TemplateId = params['TemplateId']
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# DescribeTemplate返回参数结构体
|
380
|
+
class DescribeTemplateResponse < TencentCloud::Common::AbstractModel
|
381
|
+
# @param Template: 经验库详情
|
382
|
+
# @type Template: :class:`Tencentcloud::Cfg.v20210820.models.Template`
|
383
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
384
|
+
# @type RequestId: String
|
385
|
+
|
386
|
+
attr_accessor :Template, :RequestId
|
387
|
+
|
388
|
+
def initialize(template=nil, requestid=nil)
|
389
|
+
@Template = template
|
390
|
+
@RequestId = requestid
|
391
|
+
end
|
392
|
+
|
393
|
+
def deserialize(params)
|
394
|
+
unless params['Template'].nil?
|
395
|
+
@Template = Template.new
|
396
|
+
@Template.deserialize(params['Template'])
|
397
|
+
end
|
398
|
+
@RequestId = params['RequestId']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# ExecuteTaskInstance请求参数结构体
|
403
|
+
class ExecuteTaskInstanceRequest < TencentCloud::Common::AbstractModel
|
404
|
+
# @param TaskId: 任务ID
|
405
|
+
# @type TaskId: Integer
|
406
|
+
# @param TaskActionId: 任务动作ID
|
407
|
+
# @type TaskActionId: Integer
|
408
|
+
# @param TaskInstanceIds: 任务动作实例ID
|
409
|
+
# @type TaskInstanceIds: Array
|
410
|
+
# @param IsOperateAll: 是否操作整个任务
|
411
|
+
# @type IsOperateAll: Boolean
|
412
|
+
# @param ActionType: 操作类型:(1--启动 2--执行 3--跳过 5--重试)
|
413
|
+
# @type ActionType: Integer
|
414
|
+
# @param TaskGroupId: 动作组ID
|
415
|
+
# @type TaskGroupId: Integer
|
416
|
+
|
417
|
+
attr_accessor :TaskId, :TaskActionId, :TaskInstanceIds, :IsOperateAll, :ActionType, :TaskGroupId
|
418
|
+
|
419
|
+
def initialize(taskid=nil, taskactionid=nil, taskinstanceids=nil, isoperateall=nil, actiontype=nil, taskgroupid=nil)
|
420
|
+
@TaskId = taskid
|
421
|
+
@TaskActionId = taskactionid
|
422
|
+
@TaskInstanceIds = taskinstanceids
|
423
|
+
@IsOperateAll = isoperateall
|
424
|
+
@ActionType = actiontype
|
425
|
+
@TaskGroupId = taskgroupid
|
426
|
+
end
|
427
|
+
|
428
|
+
def deserialize(params)
|
429
|
+
@TaskId = params['TaskId']
|
430
|
+
@TaskActionId = params['TaskActionId']
|
431
|
+
@TaskInstanceIds = params['TaskInstanceIds']
|
432
|
+
@IsOperateAll = params['IsOperateAll']
|
433
|
+
@ActionType = params['ActionType']
|
434
|
+
@TaskGroupId = params['TaskGroupId']
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
# ExecuteTaskInstance返回参数结构体
|
439
|
+
class ExecuteTaskInstanceResponse < TencentCloud::Common::AbstractModel
|
440
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
441
|
+
# @type RequestId: String
|
442
|
+
|
443
|
+
attr_accessor :RequestId
|
444
|
+
|
445
|
+
def initialize(requestid=nil)
|
446
|
+
@RequestId = requestid
|
447
|
+
end
|
448
|
+
|
449
|
+
def deserialize(params)
|
450
|
+
@RequestId = params['RequestId']
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
# ExecuteTask请求参数结构体
|
455
|
+
class ExecuteTaskRequest < TencentCloud::Common::AbstractModel
|
456
|
+
# @param TaskId: 需要执行的任务ID
|
457
|
+
# @type TaskId: Integer
|
458
|
+
|
459
|
+
attr_accessor :TaskId
|
460
|
+
|
461
|
+
def initialize(taskid=nil)
|
462
|
+
@TaskId = taskid
|
463
|
+
end
|
464
|
+
|
465
|
+
def deserialize(params)
|
466
|
+
@TaskId = params['TaskId']
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
# ExecuteTask返回参数结构体
|
471
|
+
class ExecuteTaskResponse < TencentCloud::Common::AbstractModel
|
472
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
473
|
+
# @type RequestId: String
|
474
|
+
|
475
|
+
attr_accessor :RequestId
|
476
|
+
|
477
|
+
def initialize(requestid=nil)
|
478
|
+
@RequestId = requestid
|
479
|
+
end
|
480
|
+
|
481
|
+
def deserialize(params)
|
482
|
+
@RequestId = params['RequestId']
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
486
|
+
# ModifyTaskRunStatus请求参数结构体
|
487
|
+
class ModifyTaskRunStatusRequest < TencentCloud::Common::AbstractModel
|
488
|
+
# @param TaskId: 任务ID
|
489
|
+
# @type TaskId: Integer
|
490
|
+
# @param Status: 任务状态, 1001--未开始 1002--进行中(执行)1003--进行中(暂停)1004--执行结束
|
491
|
+
# @type Status: Integer
|
492
|
+
# @param IsExpect: 执行结果是否符合预期(当前扭转状态为执行结束时,需要必传此字段)
|
493
|
+
# @type IsExpect: Boolean
|
494
|
+
# @param Summary: 演习结论(当演习状态转变为执行结束时,需要填写此字段)
|
495
|
+
# @type Summary: String
|
496
|
+
|
497
|
+
attr_accessor :TaskId, :Status, :IsExpect, :Summary
|
498
|
+
|
499
|
+
def initialize(taskid=nil, status=nil, isexpect=nil, summary=nil)
|
500
|
+
@TaskId = taskid
|
501
|
+
@Status = status
|
502
|
+
@IsExpect = isexpect
|
503
|
+
@Summary = summary
|
504
|
+
end
|
505
|
+
|
506
|
+
def deserialize(params)
|
507
|
+
@TaskId = params['TaskId']
|
508
|
+
@Status = params['Status']
|
509
|
+
@IsExpect = params['IsExpect']
|
510
|
+
@Summary = params['Summary']
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
514
|
+
# ModifyTaskRunStatus返回参数结构体
|
515
|
+
class ModifyTaskRunStatusResponse < TencentCloud::Common::AbstractModel
|
516
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
517
|
+
# @type RequestId: String
|
518
|
+
|
519
|
+
attr_accessor :RequestId
|
520
|
+
|
521
|
+
def initialize(requestid=nil)
|
522
|
+
@RequestId = requestid
|
523
|
+
end
|
524
|
+
|
525
|
+
def deserialize(params)
|
526
|
+
@RequestId = params['RequestId']
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
530
|
+
# 用于传入创建、编辑标签
|
531
|
+
class TagWithCreate < TencentCloud::Common::AbstractModel
|
532
|
+
# @param TagKey: 标签键
|
533
|
+
# @type TagKey: String
|
534
|
+
# @param TagValue: 标签值
|
535
|
+
# @type TagValue: String
|
536
|
+
|
537
|
+
attr_accessor :TagKey, :TagValue
|
538
|
+
|
539
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
540
|
+
@TagKey = tagkey
|
541
|
+
@TagValue = tagvalue
|
542
|
+
end
|
543
|
+
|
544
|
+
def deserialize(params)
|
545
|
+
@TagKey = params['TagKey']
|
546
|
+
@TagValue = params['TagValue']
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
550
|
+
# 展示标签列表
|
551
|
+
class TagWithDescribe < TencentCloud::Common::AbstractModel
|
552
|
+
# @param TagKey: 标签键
|
553
|
+
# @type TagKey: String
|
554
|
+
# @param TagValue: 标签值
|
555
|
+
# @type TagValue: String
|
556
|
+
|
557
|
+
attr_accessor :TagKey, :TagValue
|
558
|
+
|
559
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
560
|
+
@TagKey = tagkey
|
561
|
+
@TagValue = tagvalue
|
562
|
+
end
|
563
|
+
|
564
|
+
def deserialize(params)
|
565
|
+
@TagKey = params['TagKey']
|
566
|
+
@TagValue = params['TagValue']
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
# 任务
|
571
|
+
class Task < TencentCloud::Common::AbstractModel
|
572
|
+
# @param TaskId: 任务ID
|
573
|
+
# @type TaskId: Integer
|
574
|
+
# @param TaskTitle: 任务标题
|
575
|
+
# @type TaskTitle: String
|
576
|
+
# @param TaskDescription: 任务描述
|
577
|
+
# @type TaskDescription: String
|
578
|
+
# @param TaskTag: 自定义标签
|
579
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
580
|
+
# @type TaskTag: String
|
581
|
+
# @param TaskStatus: 任务状态,1001--未开始 1002--进行中(执行)1003--进行中(暂停)1004--执行结束
|
582
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
583
|
+
# @type TaskStatus: Integer
|
584
|
+
# @param TaskStatusType: 任务结束状态,表明任务以何种状态结束: 0 -- 尚未结束,1 -- 成功,2-- 失败,3--终止
|
585
|
+
# @type TaskStatusType: Integer
|
586
|
+
# @param TaskProtectStrategy: 保护策略
|
587
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
588
|
+
# @type TaskProtectStrategy: String
|
589
|
+
# @param TaskCreateTime: 任务创建时间
|
590
|
+
# @type TaskCreateTime: String
|
591
|
+
# @param TaskUpdateTime: 任务更新时间
|
592
|
+
# @type TaskUpdateTime: String
|
593
|
+
# @param TaskGroups: 任务动作组
|
594
|
+
# @type TaskGroups: Array
|
595
|
+
# @param TaskStartTime: 开始时间
|
596
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
597
|
+
# @type TaskStartTime: String
|
598
|
+
# @param TaskEndTime: 结束时间
|
599
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
600
|
+
# @type TaskEndTime: String
|
601
|
+
# @param TaskExpect: 是否符合预期。1:符合预期,2:不符合预期
|
602
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
603
|
+
# @type TaskExpect: Integer
|
604
|
+
# @param TaskSummary: 演习记录
|
605
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
606
|
+
# @type TaskSummary: String
|
607
|
+
# @param TaskMode: 任务模式。1:手工执行,2:自动执行
|
608
|
+
# @type TaskMode: Integer
|
609
|
+
# @param TaskPauseDuration: 自动暂停时长。单位分钟
|
610
|
+
# @type TaskPauseDuration: Integer
|
611
|
+
# @param TaskOwnerUin: 演练创建者Uin
|
612
|
+
# @type TaskOwnerUin: String
|
613
|
+
# @param TaskRegionId: 地域ID
|
614
|
+
# @type TaskRegionId: Integer
|
615
|
+
# @param TaskMonitors: 监控指标列表
|
616
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
617
|
+
# @type TaskMonitors: Array
|
618
|
+
# @param TaskPolicy: 保护策略
|
619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
620
|
+
# @type TaskPolicy: :class:`Tencentcloud::Cfg.v20210820.models.DescribePolicy`
|
621
|
+
# @param Tags: 标签列表
|
622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
623
|
+
# @type Tags: Array
|
624
|
+
|
625
|
+
attr_accessor :TaskId, :TaskTitle, :TaskDescription, :TaskTag, :TaskStatus, :TaskStatusType, :TaskProtectStrategy, :TaskCreateTime, :TaskUpdateTime, :TaskGroups, :TaskStartTime, :TaskEndTime, :TaskExpect, :TaskSummary, :TaskMode, :TaskPauseDuration, :TaskOwnerUin, :TaskRegionId, :TaskMonitors, :TaskPolicy, :Tags
|
626
|
+
|
627
|
+
def initialize(taskid=nil, tasktitle=nil, taskdescription=nil, tasktag=nil, taskstatus=nil, taskstatustype=nil, taskprotectstrategy=nil, taskcreatetime=nil, taskupdatetime=nil, taskgroups=nil, taskstarttime=nil, taskendtime=nil, taskexpect=nil, tasksummary=nil, taskmode=nil, taskpauseduration=nil, taskowneruin=nil, taskregionid=nil, taskmonitors=nil, taskpolicy=nil, tags=nil)
|
628
|
+
@TaskId = taskid
|
629
|
+
@TaskTitle = tasktitle
|
630
|
+
@TaskDescription = taskdescription
|
631
|
+
@TaskTag = tasktag
|
632
|
+
@TaskStatus = taskstatus
|
633
|
+
@TaskStatusType = taskstatustype
|
634
|
+
@TaskProtectStrategy = taskprotectstrategy
|
635
|
+
@TaskCreateTime = taskcreatetime
|
636
|
+
@TaskUpdateTime = taskupdatetime
|
637
|
+
@TaskGroups = taskgroups
|
638
|
+
@TaskStartTime = taskstarttime
|
639
|
+
@TaskEndTime = taskendtime
|
640
|
+
@TaskExpect = taskexpect
|
641
|
+
@TaskSummary = tasksummary
|
642
|
+
@TaskMode = taskmode
|
643
|
+
@TaskPauseDuration = taskpauseduration
|
644
|
+
@TaskOwnerUin = taskowneruin
|
645
|
+
@TaskRegionId = taskregionid
|
646
|
+
@TaskMonitors = taskmonitors
|
647
|
+
@TaskPolicy = taskpolicy
|
648
|
+
@Tags = tags
|
649
|
+
end
|
650
|
+
|
651
|
+
def deserialize(params)
|
652
|
+
@TaskId = params['TaskId']
|
653
|
+
@TaskTitle = params['TaskTitle']
|
654
|
+
@TaskDescription = params['TaskDescription']
|
655
|
+
@TaskTag = params['TaskTag']
|
656
|
+
@TaskStatus = params['TaskStatus']
|
657
|
+
@TaskStatusType = params['TaskStatusType']
|
658
|
+
@TaskProtectStrategy = params['TaskProtectStrategy']
|
659
|
+
@TaskCreateTime = params['TaskCreateTime']
|
660
|
+
@TaskUpdateTime = params['TaskUpdateTime']
|
661
|
+
unless params['TaskGroups'].nil?
|
662
|
+
@TaskGroups = []
|
663
|
+
params['TaskGroups'].each do |i|
|
664
|
+
taskgroup_tmp = TaskGroup.new
|
665
|
+
taskgroup_tmp.deserialize(i)
|
666
|
+
@TaskGroups << taskgroup_tmp
|
667
|
+
end
|
668
|
+
end
|
669
|
+
@TaskStartTime = params['TaskStartTime']
|
670
|
+
@TaskEndTime = params['TaskEndTime']
|
671
|
+
@TaskExpect = params['TaskExpect']
|
672
|
+
@TaskSummary = params['TaskSummary']
|
673
|
+
@TaskMode = params['TaskMode']
|
674
|
+
@TaskPauseDuration = params['TaskPauseDuration']
|
675
|
+
@TaskOwnerUin = params['TaskOwnerUin']
|
676
|
+
@TaskRegionId = params['TaskRegionId']
|
677
|
+
unless params['TaskMonitors'].nil?
|
678
|
+
@TaskMonitors = []
|
679
|
+
params['TaskMonitors'].each do |i|
|
680
|
+
taskmonitor_tmp = TaskMonitor.new
|
681
|
+
taskmonitor_tmp.deserialize(i)
|
682
|
+
@TaskMonitors << taskmonitor_tmp
|
683
|
+
end
|
684
|
+
end
|
685
|
+
unless params['TaskPolicy'].nil?
|
686
|
+
@TaskPolicy = DescribePolicy.new
|
687
|
+
@TaskPolicy.deserialize(params['TaskPolicy'])
|
688
|
+
end
|
689
|
+
unless params['Tags'].nil?
|
690
|
+
@Tags = []
|
691
|
+
params['Tags'].each do |i|
|
692
|
+
tagwithdescribe_tmp = TagWithDescribe.new
|
693
|
+
tagwithdescribe_tmp.deserialize(i)
|
694
|
+
@Tags << tagwithdescribe_tmp
|
695
|
+
end
|
696
|
+
end
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
# 从经验模版创建演练时需要配置的任务参数
|
701
|
+
class TaskConfig < TencentCloud::Common::AbstractModel
|
702
|
+
# @param TaskGroupsConfig: 动作组配置,需要保证配置个数和经验中的动作组个数一致
|
703
|
+
# @type TaskGroupsConfig: Array
|
704
|
+
# @param TaskTitle: 更改后的演练名称,不填则默认取经验名称
|
705
|
+
# @type TaskTitle: String
|
706
|
+
# @param TaskDescription: 更改后的演练描述,不填则默认取经验描述
|
707
|
+
# @type TaskDescription: String
|
708
|
+
# @param TaskMode: 演练执行模式:1----手工执行/ 2 ---自动执行,不填则默认取经验执行模式
|
709
|
+
# @type TaskMode: Integer
|
710
|
+
# @param TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认取经验自动暂停时间
|
711
|
+
# @type TaskPauseDuration: Integer
|
712
|
+
# @param Tags: 演练标签信息,不填则默认取经验标签
|
713
|
+
# @type Tags: Array
|
714
|
+
|
715
|
+
attr_accessor :TaskGroupsConfig, :TaskTitle, :TaskDescription, :TaskMode, :TaskPauseDuration, :Tags
|
716
|
+
|
717
|
+
def initialize(taskgroupsconfig=nil, tasktitle=nil, taskdescription=nil, taskmode=nil, taskpauseduration=nil, tags=nil)
|
718
|
+
@TaskGroupsConfig = taskgroupsconfig
|
719
|
+
@TaskTitle = tasktitle
|
720
|
+
@TaskDescription = taskdescription
|
721
|
+
@TaskMode = taskmode
|
722
|
+
@TaskPauseDuration = taskpauseduration
|
723
|
+
@Tags = tags
|
724
|
+
end
|
725
|
+
|
726
|
+
def deserialize(params)
|
727
|
+
unless params['TaskGroupsConfig'].nil?
|
728
|
+
@TaskGroupsConfig = []
|
729
|
+
params['TaskGroupsConfig'].each do |i|
|
730
|
+
taskgroupconfig_tmp = TaskGroupConfig.new
|
731
|
+
taskgroupconfig_tmp.deserialize(i)
|
732
|
+
@TaskGroupsConfig << taskgroupconfig_tmp
|
733
|
+
end
|
734
|
+
end
|
735
|
+
@TaskTitle = params['TaskTitle']
|
736
|
+
@TaskDescription = params['TaskDescription']
|
737
|
+
@TaskMode = params['TaskMode']
|
738
|
+
@TaskPauseDuration = params['TaskPauseDuration']
|
739
|
+
unless params['Tags'].nil?
|
740
|
+
@Tags = []
|
741
|
+
params['Tags'].each do |i|
|
742
|
+
tagwithcreate_tmp = TagWithCreate.new
|
743
|
+
tagwithcreate_tmp.deserialize(i)
|
744
|
+
@Tags << tagwithcreate_tmp
|
745
|
+
end
|
746
|
+
end
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
# 任务分组
|
751
|
+
class TaskGroup < TencentCloud::Common::AbstractModel
|
752
|
+
# @param TaskGroupId: 任务动作ID
|
753
|
+
# @type TaskGroupId: Integer
|
754
|
+
# @param TaskGroupTitle: 分组标题
|
755
|
+
# @type TaskGroupTitle: String
|
756
|
+
# @param TaskGroupDescription: 分组描述
|
757
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
758
|
+
# @type TaskGroupDescription: String
|
759
|
+
# @param TaskGroupOrder: 任务分组顺序
|
760
|
+
# @type TaskGroupOrder: Integer
|
761
|
+
# @param ObjectTypeId: 对象类型ID
|
762
|
+
# @type ObjectTypeId: Integer
|
763
|
+
# @param TaskGroupCreateTime: 任务分组创建时间
|
764
|
+
# @type TaskGroupCreateTime: String
|
765
|
+
# @param TaskGroupUpdateTime: 任务分组更新时间
|
766
|
+
# @type TaskGroupUpdateTime: String
|
767
|
+
# @param TaskGroupActions: 动作分组动作列表
|
768
|
+
# @type TaskGroupActions: Array
|
769
|
+
# @param TaskGroupInstanceList: 实例列表
|
770
|
+
# @type TaskGroupInstanceList: Array
|
771
|
+
# @param TaskGroupMode: 执行模式。1 --- 顺序执行,2 --- 阶段执行
|
772
|
+
# @type TaskGroupMode: Integer
|
773
|
+
|
774
|
+
attr_accessor :TaskGroupId, :TaskGroupTitle, :TaskGroupDescription, :TaskGroupOrder, :ObjectTypeId, :TaskGroupCreateTime, :TaskGroupUpdateTime, :TaskGroupActions, :TaskGroupInstanceList, :TaskGroupMode
|
775
|
+
|
776
|
+
def initialize(taskgroupid=nil, taskgrouptitle=nil, taskgroupdescription=nil, taskgrouporder=nil, objecttypeid=nil, taskgroupcreatetime=nil, taskgroupupdatetime=nil, taskgroupactions=nil, taskgroupinstancelist=nil, taskgroupmode=nil)
|
777
|
+
@TaskGroupId = taskgroupid
|
778
|
+
@TaskGroupTitle = taskgrouptitle
|
779
|
+
@TaskGroupDescription = taskgroupdescription
|
780
|
+
@TaskGroupOrder = taskgrouporder
|
781
|
+
@ObjectTypeId = objecttypeid
|
782
|
+
@TaskGroupCreateTime = taskgroupcreatetime
|
783
|
+
@TaskGroupUpdateTime = taskgroupupdatetime
|
784
|
+
@TaskGroupActions = taskgroupactions
|
785
|
+
@TaskGroupInstanceList = taskgroupinstancelist
|
786
|
+
@TaskGroupMode = taskgroupmode
|
787
|
+
end
|
788
|
+
|
789
|
+
def deserialize(params)
|
790
|
+
@TaskGroupId = params['TaskGroupId']
|
791
|
+
@TaskGroupTitle = params['TaskGroupTitle']
|
792
|
+
@TaskGroupDescription = params['TaskGroupDescription']
|
793
|
+
@TaskGroupOrder = params['TaskGroupOrder']
|
794
|
+
@ObjectTypeId = params['ObjectTypeId']
|
795
|
+
@TaskGroupCreateTime = params['TaskGroupCreateTime']
|
796
|
+
@TaskGroupUpdateTime = params['TaskGroupUpdateTime']
|
797
|
+
unless params['TaskGroupActions'].nil?
|
798
|
+
@TaskGroupActions = []
|
799
|
+
params['TaskGroupActions'].each do |i|
|
800
|
+
taskgroupaction_tmp = TaskGroupAction.new
|
801
|
+
taskgroupaction_tmp.deserialize(i)
|
802
|
+
@TaskGroupActions << taskgroupaction_tmp
|
803
|
+
end
|
804
|
+
end
|
805
|
+
@TaskGroupInstanceList = params['TaskGroupInstanceList']
|
806
|
+
@TaskGroupMode = params['TaskGroupMode']
|
807
|
+
end
|
808
|
+
end
|
809
|
+
|
810
|
+
# 任务分组动作
|
811
|
+
class TaskGroupAction < TencentCloud::Common::AbstractModel
|
812
|
+
# @param TaskGroupActionId: 任务分组动作ID
|
813
|
+
# @type TaskGroupActionId: Integer
|
814
|
+
# @param TaskGroupInstances: 任务分组动作实例列表
|
815
|
+
# @type TaskGroupInstances: Array
|
816
|
+
# @param ActionId: 动作ID
|
817
|
+
# @type ActionId: Integer
|
818
|
+
# @param TaskGroupActionOrder: 分组动作顺序
|
819
|
+
# @type TaskGroupActionOrder: Integer
|
820
|
+
# @param TaskGroupActionGeneralConfiguration: 分组动作通用配置
|
821
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
822
|
+
# @type TaskGroupActionGeneralConfiguration: String
|
823
|
+
# @param TaskGroupActionCustomConfiguration: 分组动作自定义配置
|
824
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
825
|
+
# @type TaskGroupActionCustomConfiguration: String
|
826
|
+
# @param TaskGroupActionStatus: 分组动作状态
|
827
|
+
# @type TaskGroupActionStatus: Integer
|
828
|
+
# @param TaskGroupActionCreateTime: 动作分组创建时间
|
829
|
+
# @type TaskGroupActionCreateTime: String
|
830
|
+
# @param TaskGroupActionUpdateTime: 动作分组更新时间
|
831
|
+
# @type TaskGroupActionUpdateTime: String
|
832
|
+
# @param ActionTitle: 动作名称
|
833
|
+
# @type ActionTitle: String
|
834
|
+
# @param TaskGroupActionStatusType: 状态类型: 0 -- 无状态,1 -- 成功,2-- 失败,3--终止,4--跳过
|
835
|
+
# @type TaskGroupActionStatusType: Integer
|
836
|
+
# @param TaskGroupActionRandomId: RandomId
|
837
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
838
|
+
# @type TaskGroupActionRandomId: Integer
|
839
|
+
# @param TaskGroupActionRecoverId: RecoverId
|
840
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
841
|
+
# @type TaskGroupActionRecoverId: Integer
|
842
|
+
# @param TaskGroupActionExecuteId: ExecuteId
|
843
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
844
|
+
# @type TaskGroupActionExecuteId: Integer
|
845
|
+
# @param ActionApiType: 调用api类型,0:tat, 1:云api
|
846
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
847
|
+
# @type ActionApiType: Integer
|
848
|
+
# @param ActionAttribute: 1:故障,2:恢复
|
849
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
850
|
+
# @type ActionAttribute: Integer
|
851
|
+
# @param ActionType: 动作类型:平台、自定义
|
852
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
853
|
+
# @type ActionType: String
|
854
|
+
|
855
|
+
attr_accessor :TaskGroupActionId, :TaskGroupInstances, :ActionId, :TaskGroupActionOrder, :TaskGroupActionGeneralConfiguration, :TaskGroupActionCustomConfiguration, :TaskGroupActionStatus, :TaskGroupActionCreateTime, :TaskGroupActionUpdateTime, :ActionTitle, :TaskGroupActionStatusType, :TaskGroupActionRandomId, :TaskGroupActionRecoverId, :TaskGroupActionExecuteId, :ActionApiType, :ActionAttribute, :ActionType
|
856
|
+
|
857
|
+
def initialize(taskgroupactionid=nil, taskgroupinstances=nil, actionid=nil, taskgroupactionorder=nil, taskgroupactiongeneralconfiguration=nil, taskgroupactioncustomconfiguration=nil, taskgroupactionstatus=nil, taskgroupactioncreatetime=nil, taskgroupactionupdatetime=nil, actiontitle=nil, taskgroupactionstatustype=nil, taskgroupactionrandomid=nil, taskgroupactionrecoverid=nil, taskgroupactionexecuteid=nil, actionapitype=nil, actionattribute=nil, actiontype=nil)
|
858
|
+
@TaskGroupActionId = taskgroupactionid
|
859
|
+
@TaskGroupInstances = taskgroupinstances
|
860
|
+
@ActionId = actionid
|
861
|
+
@TaskGroupActionOrder = taskgroupactionorder
|
862
|
+
@TaskGroupActionGeneralConfiguration = taskgroupactiongeneralconfiguration
|
863
|
+
@TaskGroupActionCustomConfiguration = taskgroupactioncustomconfiguration
|
864
|
+
@TaskGroupActionStatus = taskgroupactionstatus
|
865
|
+
@TaskGroupActionCreateTime = taskgroupactioncreatetime
|
866
|
+
@TaskGroupActionUpdateTime = taskgroupactionupdatetime
|
867
|
+
@ActionTitle = actiontitle
|
868
|
+
@TaskGroupActionStatusType = taskgroupactionstatustype
|
869
|
+
@TaskGroupActionRandomId = taskgroupactionrandomid
|
870
|
+
@TaskGroupActionRecoverId = taskgroupactionrecoverid
|
871
|
+
@TaskGroupActionExecuteId = taskgroupactionexecuteid
|
872
|
+
@ActionApiType = actionapitype
|
873
|
+
@ActionAttribute = actionattribute
|
874
|
+
@ActionType = actiontype
|
875
|
+
end
|
876
|
+
|
877
|
+
def deserialize(params)
|
878
|
+
@TaskGroupActionId = params['TaskGroupActionId']
|
879
|
+
unless params['TaskGroupInstances'].nil?
|
880
|
+
@TaskGroupInstances = []
|
881
|
+
params['TaskGroupInstances'].each do |i|
|
882
|
+
taskgroupinstance_tmp = TaskGroupInstance.new
|
883
|
+
taskgroupinstance_tmp.deserialize(i)
|
884
|
+
@TaskGroupInstances << taskgroupinstance_tmp
|
885
|
+
end
|
886
|
+
end
|
887
|
+
@ActionId = params['ActionId']
|
888
|
+
@TaskGroupActionOrder = params['TaskGroupActionOrder']
|
889
|
+
@TaskGroupActionGeneralConfiguration = params['TaskGroupActionGeneralConfiguration']
|
890
|
+
@TaskGroupActionCustomConfiguration = params['TaskGroupActionCustomConfiguration']
|
891
|
+
@TaskGroupActionStatus = params['TaskGroupActionStatus']
|
892
|
+
@TaskGroupActionCreateTime = params['TaskGroupActionCreateTime']
|
893
|
+
@TaskGroupActionUpdateTime = params['TaskGroupActionUpdateTime']
|
894
|
+
@ActionTitle = params['ActionTitle']
|
895
|
+
@TaskGroupActionStatusType = params['TaskGroupActionStatusType']
|
896
|
+
@TaskGroupActionRandomId = params['TaskGroupActionRandomId']
|
897
|
+
@TaskGroupActionRecoverId = params['TaskGroupActionRecoverId']
|
898
|
+
@TaskGroupActionExecuteId = params['TaskGroupActionExecuteId']
|
899
|
+
@ActionApiType = params['ActionApiType']
|
900
|
+
@ActionAttribute = params['ActionAttribute']
|
901
|
+
@ActionType = params['ActionType']
|
902
|
+
end
|
903
|
+
end
|
904
|
+
|
905
|
+
# 动作组中的动作参数
|
906
|
+
class TaskGroupActionConfig < TencentCloud::Common::AbstractModel
|
907
|
+
# @param TaskGroupActionOrder: 该动作在动作组中的顺序,从1开始,不填或填错将匹配不到经验中要修改参数的动作
|
908
|
+
# @type TaskGroupActionOrder: Integer
|
909
|
+
# @param TaskGroupActionGeneralConfiguration: 动作通用参数,需要json序列化传入,可以从查询经验详情接口获取,不填默认使用经验中动作参数
|
910
|
+
# @type TaskGroupActionGeneralConfiguration: String
|
911
|
+
# @param TaskGroupActionCustomConfiguration: 动作自定义参数,需要json序列化传入,可以从查询经验详情接口获取,不填默认使用经验中动作参数
|
912
|
+
# @type TaskGroupActionCustomConfiguration: String
|
913
|
+
|
914
|
+
attr_accessor :TaskGroupActionOrder, :TaskGroupActionGeneralConfiguration, :TaskGroupActionCustomConfiguration
|
915
|
+
|
916
|
+
def initialize(taskgroupactionorder=nil, taskgroupactiongeneralconfiguration=nil, taskgroupactioncustomconfiguration=nil)
|
917
|
+
@TaskGroupActionOrder = taskgroupactionorder
|
918
|
+
@TaskGroupActionGeneralConfiguration = taskgroupactiongeneralconfiguration
|
919
|
+
@TaskGroupActionCustomConfiguration = taskgroupactioncustomconfiguration
|
920
|
+
end
|
921
|
+
|
922
|
+
def deserialize(params)
|
923
|
+
@TaskGroupActionOrder = params['TaskGroupActionOrder']
|
924
|
+
@TaskGroupActionGeneralConfiguration = params['TaskGroupActionGeneralConfiguration']
|
925
|
+
@TaskGroupActionCustomConfiguration = params['TaskGroupActionCustomConfiguration']
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
929
|
+
# 动作组的配置项
|
930
|
+
class TaskGroupConfig < TencentCloud::Common::AbstractModel
|
931
|
+
# @param TaskGroupInstances: 动作组所关联的实例对象
|
932
|
+
# @type TaskGroupInstances: Array
|
933
|
+
# @param TaskGroupTitle: 动作组标题,不填默认取经验中的动作组名称
|
934
|
+
# @type TaskGroupTitle: String
|
935
|
+
# @param TaskGroupDescription: 动作组描述,不填默认取经验中的动作组描述
|
936
|
+
# @type TaskGroupDescription: String
|
937
|
+
# @param TaskGroupMode: 动作执行模式。1 --- 顺序执行,2 --- 阶段执行, 不填默认取经验中的动作组执行模式
|
938
|
+
# @type TaskGroupMode: Integer
|
939
|
+
# @param TaskGroupActionsConfig: 动作组中的动作参数,不填默认使用经验中的动作参数,配置时可以只指定想要修改参数的动作
|
940
|
+
# @type TaskGroupActionsConfig: Array
|
941
|
+
|
942
|
+
attr_accessor :TaskGroupInstances, :TaskGroupTitle, :TaskGroupDescription, :TaskGroupMode, :TaskGroupActionsConfig
|
943
|
+
|
944
|
+
def initialize(taskgroupinstances=nil, taskgrouptitle=nil, taskgroupdescription=nil, taskgroupmode=nil, taskgroupactionsconfig=nil)
|
945
|
+
@TaskGroupInstances = taskgroupinstances
|
946
|
+
@TaskGroupTitle = taskgrouptitle
|
947
|
+
@TaskGroupDescription = taskgroupdescription
|
948
|
+
@TaskGroupMode = taskgroupmode
|
949
|
+
@TaskGroupActionsConfig = taskgroupactionsconfig
|
950
|
+
end
|
951
|
+
|
952
|
+
def deserialize(params)
|
953
|
+
@TaskGroupInstances = params['TaskGroupInstances']
|
954
|
+
@TaskGroupTitle = params['TaskGroupTitle']
|
955
|
+
@TaskGroupDescription = params['TaskGroupDescription']
|
956
|
+
@TaskGroupMode = params['TaskGroupMode']
|
957
|
+
unless params['TaskGroupActionsConfig'].nil?
|
958
|
+
@TaskGroupActionsConfig = []
|
959
|
+
params['TaskGroupActionsConfig'].each do |i|
|
960
|
+
taskgroupactionconfig_tmp = TaskGroupActionConfig.new
|
961
|
+
taskgroupactionconfig_tmp.deserialize(i)
|
962
|
+
@TaskGroupActionsConfig << taskgroupactionconfig_tmp
|
963
|
+
end
|
964
|
+
end
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
# 任务分组动作实例
|
969
|
+
class TaskGroupInstance < TencentCloud::Common::AbstractModel
|
970
|
+
# @param TaskGroupInstanceId: 实例ID
|
971
|
+
# @type TaskGroupInstanceId: Integer
|
972
|
+
# @param TaskGroupInstanceObjectId: 实例ID
|
973
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
974
|
+
# @type TaskGroupInstanceObjectId: String
|
975
|
+
# @param TaskGroupInstanceStatus: 实例动作执行状态
|
976
|
+
# @type TaskGroupInstanceStatus: Integer
|
977
|
+
# @param TaskGroupInstanceExecuteLog: 实例动作执行日志
|
978
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
979
|
+
# @type TaskGroupInstanceExecuteLog: String
|
980
|
+
# @param TaskGroupInstanceCreateTime: 实例创建时间
|
981
|
+
# @type TaskGroupInstanceCreateTime: String
|
982
|
+
# @param TaskGroupInstanceUpdateTime: 实例更新时间
|
983
|
+
# @type TaskGroupInstanceUpdateTime: String
|
984
|
+
# @param TaskGroupInstanceStatusType: 状态类型: 0 -- 无状态,1 -- 成功,2-- 失败,3--终止,4--跳过
|
985
|
+
# @type TaskGroupInstanceStatusType: Integer
|
986
|
+
# @param TaskGroupInstanceStartTime: 执行开始时间
|
987
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
988
|
+
# @type TaskGroupInstanceStartTime: String
|
989
|
+
# @param TaskGroupInstanceEndTime: 执行结束时间
|
990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
991
|
+
# @type TaskGroupInstanceEndTime: String
|
992
|
+
|
993
|
+
attr_accessor :TaskGroupInstanceId, :TaskGroupInstanceObjectId, :TaskGroupInstanceStatus, :TaskGroupInstanceExecuteLog, :TaskGroupInstanceCreateTime, :TaskGroupInstanceUpdateTime, :TaskGroupInstanceStatusType, :TaskGroupInstanceStartTime, :TaskGroupInstanceEndTime
|
994
|
+
|
995
|
+
def initialize(taskgroupinstanceid=nil, taskgroupinstanceobjectid=nil, taskgroupinstancestatus=nil, taskgroupinstanceexecutelog=nil, taskgroupinstancecreatetime=nil, taskgroupinstanceupdatetime=nil, taskgroupinstancestatustype=nil, taskgroupinstancestarttime=nil, taskgroupinstanceendtime=nil)
|
996
|
+
@TaskGroupInstanceId = taskgroupinstanceid
|
997
|
+
@TaskGroupInstanceObjectId = taskgroupinstanceobjectid
|
998
|
+
@TaskGroupInstanceStatus = taskgroupinstancestatus
|
999
|
+
@TaskGroupInstanceExecuteLog = taskgroupinstanceexecutelog
|
1000
|
+
@TaskGroupInstanceCreateTime = taskgroupinstancecreatetime
|
1001
|
+
@TaskGroupInstanceUpdateTime = taskgroupinstanceupdatetime
|
1002
|
+
@TaskGroupInstanceStatusType = taskgroupinstancestatustype
|
1003
|
+
@TaskGroupInstanceStartTime = taskgroupinstancestarttime
|
1004
|
+
@TaskGroupInstanceEndTime = taskgroupinstanceendtime
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def deserialize(params)
|
1008
|
+
@TaskGroupInstanceId = params['TaskGroupInstanceId']
|
1009
|
+
@TaskGroupInstanceObjectId = params['TaskGroupInstanceObjectId']
|
1010
|
+
@TaskGroupInstanceStatus = params['TaskGroupInstanceStatus']
|
1011
|
+
@TaskGroupInstanceExecuteLog = params['TaskGroupInstanceExecuteLog']
|
1012
|
+
@TaskGroupInstanceCreateTime = params['TaskGroupInstanceCreateTime']
|
1013
|
+
@TaskGroupInstanceUpdateTime = params['TaskGroupInstanceUpdateTime']
|
1014
|
+
@TaskGroupInstanceStatusType = params['TaskGroupInstanceStatusType']
|
1015
|
+
@TaskGroupInstanceStartTime = params['TaskGroupInstanceStartTime']
|
1016
|
+
@TaskGroupInstanceEndTime = params['TaskGroupInstanceEndTime']
|
1017
|
+
end
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
# 任务列表信息
|
1021
|
+
class TaskListItem < TencentCloud::Common::AbstractModel
|
1022
|
+
# @param TaskId: 任务ID
|
1023
|
+
# @type TaskId: Integer
|
1024
|
+
# @param TaskTitle: 任务标题
|
1025
|
+
# @type TaskTitle: String
|
1026
|
+
# @param TaskDescription: 任务描述
|
1027
|
+
# @type TaskDescription: String
|
1028
|
+
# @param TaskTag: 任务标签
|
1029
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1030
|
+
# @type TaskTag: String
|
1031
|
+
# @param TaskStatus: 任务状态
|
1032
|
+
# @type TaskStatus: Integer
|
1033
|
+
# @param TaskCreateTime: 任务创建时间
|
1034
|
+
# @type TaskCreateTime: String
|
1035
|
+
# @param TaskUpdateTime: 任务更新时间
|
1036
|
+
# @type TaskUpdateTime: String
|
1037
|
+
|
1038
|
+
attr_accessor :TaskId, :TaskTitle, :TaskDescription, :TaskTag, :TaskStatus, :TaskCreateTime, :TaskUpdateTime
|
1039
|
+
|
1040
|
+
def initialize(taskid=nil, tasktitle=nil, taskdescription=nil, tasktag=nil, taskstatus=nil, taskcreatetime=nil, taskupdatetime=nil)
|
1041
|
+
@TaskId = taskid
|
1042
|
+
@TaskTitle = tasktitle
|
1043
|
+
@TaskDescription = taskdescription
|
1044
|
+
@TaskTag = tasktag
|
1045
|
+
@TaskStatus = taskstatus
|
1046
|
+
@TaskCreateTime = taskcreatetime
|
1047
|
+
@TaskUpdateTime = taskupdatetime
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
def deserialize(params)
|
1051
|
+
@TaskId = params['TaskId']
|
1052
|
+
@TaskTitle = params['TaskTitle']
|
1053
|
+
@TaskDescription = params['TaskDescription']
|
1054
|
+
@TaskTag = params['TaskTag']
|
1055
|
+
@TaskStatus = params['TaskStatus']
|
1056
|
+
@TaskCreateTime = params['TaskCreateTime']
|
1057
|
+
@TaskUpdateTime = params['TaskUpdateTime']
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
# 监控指标
|
1062
|
+
class TaskMonitor < TencentCloud::Common::AbstractModel
|
1063
|
+
# @param TaskMonitorId: 监控指标ID
|
1064
|
+
# @type TaskMonitorId: Integer
|
1065
|
+
# @param TaskMonitorObjectTypeId: 监控指标对象类型ID
|
1066
|
+
# @type TaskMonitorObjectTypeId: Integer
|
1067
|
+
# @param MetricName: 指标名称
|
1068
|
+
# @type MetricName: String
|
1069
|
+
# @param InstancesIds: 实例ID列表
|
1070
|
+
# @type InstancesIds: Array
|
1071
|
+
# @param MetricChineseName: 中文指标
|
1072
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1073
|
+
# @type MetricChineseName: String
|
1074
|
+
# @param Unit: 单位
|
1075
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1076
|
+
# @type Unit: String
|
1077
|
+
|
1078
|
+
attr_accessor :TaskMonitorId, :TaskMonitorObjectTypeId, :MetricName, :InstancesIds, :MetricChineseName, :Unit
|
1079
|
+
|
1080
|
+
def initialize(taskmonitorid=nil, taskmonitorobjecttypeid=nil, metricname=nil, instancesids=nil, metricchinesename=nil, unit=nil)
|
1081
|
+
@TaskMonitorId = taskmonitorid
|
1082
|
+
@TaskMonitorObjectTypeId = taskmonitorobjecttypeid
|
1083
|
+
@MetricName = metricname
|
1084
|
+
@InstancesIds = instancesids
|
1085
|
+
@MetricChineseName = metricchinesename
|
1086
|
+
@Unit = unit
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
def deserialize(params)
|
1090
|
+
@TaskMonitorId = params['TaskMonitorId']
|
1091
|
+
@TaskMonitorObjectTypeId = params['TaskMonitorObjectTypeId']
|
1092
|
+
@MetricName = params['MetricName']
|
1093
|
+
@InstancesIds = params['InstancesIds']
|
1094
|
+
@MetricChineseName = params['MetricChineseName']
|
1095
|
+
@Unit = params['Unit']
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
# 经验库
|
1100
|
+
class Template < TencentCloud::Common::AbstractModel
|
1101
|
+
# @param TemplateId: 经验库ID
|
1102
|
+
# @type TemplateId: Integer
|
1103
|
+
# @param TemplateTitle: 经验库标题
|
1104
|
+
# @type TemplateTitle: String
|
1105
|
+
# @param TemplateDescription: 经验库描述
|
1106
|
+
# @type TemplateDescription: String
|
1107
|
+
# @param TemplateTag: 自定义标签
|
1108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1109
|
+
# @type TemplateTag: String
|
1110
|
+
# @param TemplateIsUsed: 使用状态。1 ---- 使用中,2 --- 停用
|
1111
|
+
# @type TemplateIsUsed: Integer
|
1112
|
+
# @param TemplateCreateTime: 经验库创建时间
|
1113
|
+
# @type TemplateCreateTime: String
|
1114
|
+
# @param TemplateUpdateTime: 经验库更新时间
|
1115
|
+
# @type TemplateUpdateTime: String
|
1116
|
+
# @param TemplateMode: 经验库模式。1:手工执行,2:自动执行
|
1117
|
+
# @type TemplateMode: Integer
|
1118
|
+
# @param TemplatePauseDuration: 自动暂停时长。单位分钟
|
1119
|
+
# @type TemplatePauseDuration: Integer
|
1120
|
+
# @param TemplateOwnerUin: 演练创建者Uin
|
1121
|
+
# @type TemplateOwnerUin: String
|
1122
|
+
# @param TemplateRegionId: 地域ID
|
1123
|
+
# @type TemplateRegionId: Integer
|
1124
|
+
# @param TemplateGroups: 动作组
|
1125
|
+
# @type TemplateGroups: Array
|
1126
|
+
# @param TemplateMonitors: 监控指标
|
1127
|
+
# @type TemplateMonitors: Array
|
1128
|
+
# @param TemplatePolicy: 护栏监控
|
1129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1130
|
+
# @type TemplatePolicy: :class:`Tencentcloud::Cfg.v20210820.models.TemplatePolicy`
|
1131
|
+
# @param Tags: 标签列表
|
1132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1133
|
+
# @type Tags: Array
|
1134
|
+
|
1135
|
+
attr_accessor :TemplateId, :TemplateTitle, :TemplateDescription, :TemplateTag, :TemplateIsUsed, :TemplateCreateTime, :TemplateUpdateTime, :TemplateMode, :TemplatePauseDuration, :TemplateOwnerUin, :TemplateRegionId, :TemplateGroups, :TemplateMonitors, :TemplatePolicy, :Tags
|
1136
|
+
|
1137
|
+
def initialize(templateid=nil, templatetitle=nil, templatedescription=nil, templatetag=nil, templateisused=nil, templatecreatetime=nil, templateupdatetime=nil, templatemode=nil, templatepauseduration=nil, templateowneruin=nil, templateregionid=nil, templategroups=nil, templatemonitors=nil, templatepolicy=nil, tags=nil)
|
1138
|
+
@TemplateId = templateid
|
1139
|
+
@TemplateTitle = templatetitle
|
1140
|
+
@TemplateDescription = templatedescription
|
1141
|
+
@TemplateTag = templatetag
|
1142
|
+
@TemplateIsUsed = templateisused
|
1143
|
+
@TemplateCreateTime = templatecreatetime
|
1144
|
+
@TemplateUpdateTime = templateupdatetime
|
1145
|
+
@TemplateMode = templatemode
|
1146
|
+
@TemplatePauseDuration = templatepauseduration
|
1147
|
+
@TemplateOwnerUin = templateowneruin
|
1148
|
+
@TemplateRegionId = templateregionid
|
1149
|
+
@TemplateGroups = templategroups
|
1150
|
+
@TemplateMonitors = templatemonitors
|
1151
|
+
@TemplatePolicy = templatepolicy
|
1152
|
+
@Tags = tags
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
def deserialize(params)
|
1156
|
+
@TemplateId = params['TemplateId']
|
1157
|
+
@TemplateTitle = params['TemplateTitle']
|
1158
|
+
@TemplateDescription = params['TemplateDescription']
|
1159
|
+
@TemplateTag = params['TemplateTag']
|
1160
|
+
@TemplateIsUsed = params['TemplateIsUsed']
|
1161
|
+
@TemplateCreateTime = params['TemplateCreateTime']
|
1162
|
+
@TemplateUpdateTime = params['TemplateUpdateTime']
|
1163
|
+
@TemplateMode = params['TemplateMode']
|
1164
|
+
@TemplatePauseDuration = params['TemplatePauseDuration']
|
1165
|
+
@TemplateOwnerUin = params['TemplateOwnerUin']
|
1166
|
+
@TemplateRegionId = params['TemplateRegionId']
|
1167
|
+
unless params['TemplateGroups'].nil?
|
1168
|
+
@TemplateGroups = []
|
1169
|
+
params['TemplateGroups'].each do |i|
|
1170
|
+
templategroup_tmp = TemplateGroup.new
|
1171
|
+
templategroup_tmp.deserialize(i)
|
1172
|
+
@TemplateGroups << templategroup_tmp
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
unless params['TemplateMonitors'].nil?
|
1176
|
+
@TemplateMonitors = []
|
1177
|
+
params['TemplateMonitors'].each do |i|
|
1178
|
+
templatemonitor_tmp = TemplateMonitor.new
|
1179
|
+
templatemonitor_tmp.deserialize(i)
|
1180
|
+
@TemplateMonitors << templatemonitor_tmp
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
unless params['TemplatePolicy'].nil?
|
1184
|
+
@TemplatePolicy = TemplatePolicy.new
|
1185
|
+
@TemplatePolicy.deserialize(params['TemplatePolicy'])
|
1186
|
+
end
|
1187
|
+
unless params['Tags'].nil?
|
1188
|
+
@Tags = []
|
1189
|
+
params['Tags'].each do |i|
|
1190
|
+
tagwithdescribe_tmp = TagWithDescribe.new
|
1191
|
+
tagwithdescribe_tmp.deserialize(i)
|
1192
|
+
@Tags << tagwithdescribe_tmp
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
# 任务分组
|
1199
|
+
class TemplateGroup < TencentCloud::Common::AbstractModel
|
1200
|
+
# @param TemplateGroupId: 经验库动作ID
|
1201
|
+
# @type TemplateGroupId: Integer
|
1202
|
+
# @param TemplateGroupActions: 经验库动作分组动作列表
|
1203
|
+
# @type TemplateGroupActions: Array
|
1204
|
+
# @param Title: 分组标题
|
1205
|
+
# @type Title: String
|
1206
|
+
# @param Description: 分组描述
|
1207
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1208
|
+
# @type Description: String
|
1209
|
+
# @param Order: 分组顺序
|
1210
|
+
# @type Order: Integer
|
1211
|
+
# @param Mode: 执行模式。1 --- 顺序执行,2 --- 阶段执行
|
1212
|
+
# @type Mode: Integer
|
1213
|
+
# @param ObjectTypeId: 对象类型ID
|
1214
|
+
# @type ObjectTypeId: Integer
|
1215
|
+
# @param CreateTime: 分组创建时间
|
1216
|
+
# @type CreateTime: String
|
1217
|
+
# @param UpdateTime: 分组更新时间
|
1218
|
+
# @type UpdateTime: String
|
1219
|
+
|
1220
|
+
attr_accessor :TemplateGroupId, :TemplateGroupActions, :Title, :Description, :Order, :Mode, :ObjectTypeId, :CreateTime, :UpdateTime
|
1221
|
+
|
1222
|
+
def initialize(templategroupid=nil, templategroupactions=nil, title=nil, description=nil, order=nil, mode=nil, objecttypeid=nil, createtime=nil, updatetime=nil)
|
1223
|
+
@TemplateGroupId = templategroupid
|
1224
|
+
@TemplateGroupActions = templategroupactions
|
1225
|
+
@Title = title
|
1226
|
+
@Description = description
|
1227
|
+
@Order = order
|
1228
|
+
@Mode = mode
|
1229
|
+
@ObjectTypeId = objecttypeid
|
1230
|
+
@CreateTime = createtime
|
1231
|
+
@UpdateTime = updatetime
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
def deserialize(params)
|
1235
|
+
@TemplateGroupId = params['TemplateGroupId']
|
1236
|
+
unless params['TemplateGroupActions'].nil?
|
1237
|
+
@TemplateGroupActions = []
|
1238
|
+
params['TemplateGroupActions'].each do |i|
|
1239
|
+
templategroupaction_tmp = TemplateGroupAction.new
|
1240
|
+
templategroupaction_tmp.deserialize(i)
|
1241
|
+
@TemplateGroupActions << templategroupaction_tmp
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
@Title = params['Title']
|
1245
|
+
@Description = params['Description']
|
1246
|
+
@Order = params['Order']
|
1247
|
+
@Mode = params['Mode']
|
1248
|
+
@ObjectTypeId = params['ObjectTypeId']
|
1249
|
+
@CreateTime = params['CreateTime']
|
1250
|
+
@UpdateTime = params['UpdateTime']
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
# 任务分组动作
|
1255
|
+
class TemplateGroupAction < TencentCloud::Common::AbstractModel
|
1256
|
+
# @param TemplateGroupActionId: 经验库分组动作ID
|
1257
|
+
# @type TemplateGroupActionId: Integer
|
1258
|
+
# @param ActionId: 动作ID
|
1259
|
+
# @type ActionId: Integer
|
1260
|
+
# @param Order: 分组动作顺序
|
1261
|
+
# @type Order: Integer
|
1262
|
+
# @param GeneralConfiguration: 分组动作通用配置
|
1263
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1264
|
+
# @type GeneralConfiguration: String
|
1265
|
+
# @param CustomConfiguration: 分组动作自定义配置
|
1266
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1267
|
+
# @type CustomConfiguration: String
|
1268
|
+
# @param CreateTime: 动作分组创建时间
|
1269
|
+
# @type CreateTime: String
|
1270
|
+
# @param UpdateTime: 动作分组更新时间
|
1271
|
+
# @type UpdateTime: String
|
1272
|
+
# @param ActionTitle: 动作名称
|
1273
|
+
# @type ActionTitle: String
|
1274
|
+
# @param RandomId: 自身随机id
|
1275
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1276
|
+
# @type RandomId: Integer
|
1277
|
+
# @param RecoverId: 恢复动作id
|
1278
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1279
|
+
# @type RecoverId: Integer
|
1280
|
+
# @param ExecuteId: 执行动作id
|
1281
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1282
|
+
# @type ExecuteId: Integer
|
1283
|
+
# @param ActionApiType: 调用api类型,0:tat, 1:云api
|
1284
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1285
|
+
# @type ActionApiType: Integer
|
1286
|
+
# @param ActionAttribute: 1:故障,2:恢复
|
1287
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1288
|
+
# @type ActionAttribute: Integer
|
1289
|
+
# @param ActionType: 动作类型:平台和自定义
|
1290
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1291
|
+
# @type ActionType: String
|
1292
|
+
|
1293
|
+
attr_accessor :TemplateGroupActionId, :ActionId, :Order, :GeneralConfiguration, :CustomConfiguration, :CreateTime, :UpdateTime, :ActionTitle, :RandomId, :RecoverId, :ExecuteId, :ActionApiType, :ActionAttribute, :ActionType
|
1294
|
+
|
1295
|
+
def initialize(templategroupactionid=nil, actionid=nil, order=nil, generalconfiguration=nil, customconfiguration=nil, createtime=nil, updatetime=nil, actiontitle=nil, randomid=nil, recoverid=nil, executeid=nil, actionapitype=nil, actionattribute=nil, actiontype=nil)
|
1296
|
+
@TemplateGroupActionId = templategroupactionid
|
1297
|
+
@ActionId = actionid
|
1298
|
+
@Order = order
|
1299
|
+
@GeneralConfiguration = generalconfiguration
|
1300
|
+
@CustomConfiguration = customconfiguration
|
1301
|
+
@CreateTime = createtime
|
1302
|
+
@UpdateTime = updatetime
|
1303
|
+
@ActionTitle = actiontitle
|
1304
|
+
@RandomId = randomid
|
1305
|
+
@RecoverId = recoverid
|
1306
|
+
@ExecuteId = executeid
|
1307
|
+
@ActionApiType = actionapitype
|
1308
|
+
@ActionAttribute = actionattribute
|
1309
|
+
@ActionType = actiontype
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
def deserialize(params)
|
1313
|
+
@TemplateGroupActionId = params['TemplateGroupActionId']
|
1314
|
+
@ActionId = params['ActionId']
|
1315
|
+
@Order = params['Order']
|
1316
|
+
@GeneralConfiguration = params['GeneralConfiguration']
|
1317
|
+
@CustomConfiguration = params['CustomConfiguration']
|
1318
|
+
@CreateTime = params['CreateTime']
|
1319
|
+
@UpdateTime = params['UpdateTime']
|
1320
|
+
@ActionTitle = params['ActionTitle']
|
1321
|
+
@RandomId = params['RandomId']
|
1322
|
+
@RecoverId = params['RecoverId']
|
1323
|
+
@ExecuteId = params['ExecuteId']
|
1324
|
+
@ActionApiType = params['ActionApiType']
|
1325
|
+
@ActionAttribute = params['ActionAttribute']
|
1326
|
+
@ActionType = params['ActionType']
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# 经验库列表信息
|
1331
|
+
class TemplateListItem < TencentCloud::Common::AbstractModel
|
1332
|
+
# @param TemplateId: 经验库ID
|
1333
|
+
# @type TemplateId: Integer
|
1334
|
+
# @param TemplateTitle: 经验库标题
|
1335
|
+
# @type TemplateTitle: String
|
1336
|
+
# @param TemplateDescription: 经验库描述
|
1337
|
+
# @type TemplateDescription: String
|
1338
|
+
# @param TemplateTag: 经验库标签
|
1339
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1340
|
+
# @type TemplateTag: String
|
1341
|
+
# @param TemplateIsUsed: 经验库状态。1 -- 使用中,2 -- 停用
|
1342
|
+
# @type TemplateIsUsed: Integer
|
1343
|
+
# @param TemplateCreateTime: 经验库创建时间
|
1344
|
+
# @type TemplateCreateTime: String
|
1345
|
+
# @param TemplateUpdateTime: 经验库更新时间
|
1346
|
+
# @type TemplateUpdateTime: String
|
1347
|
+
# @param TemplateUsedNum: 经验库关联的任务数量
|
1348
|
+
# @type TemplateUsedNum: Integer
|
1349
|
+
|
1350
|
+
attr_accessor :TemplateId, :TemplateTitle, :TemplateDescription, :TemplateTag, :TemplateIsUsed, :TemplateCreateTime, :TemplateUpdateTime, :TemplateUsedNum
|
1351
|
+
|
1352
|
+
def initialize(templateid=nil, templatetitle=nil, templatedescription=nil, templatetag=nil, templateisused=nil, templatecreatetime=nil, templateupdatetime=nil, templateusednum=nil)
|
1353
|
+
@TemplateId = templateid
|
1354
|
+
@TemplateTitle = templatetitle
|
1355
|
+
@TemplateDescription = templatedescription
|
1356
|
+
@TemplateTag = templatetag
|
1357
|
+
@TemplateIsUsed = templateisused
|
1358
|
+
@TemplateCreateTime = templatecreatetime
|
1359
|
+
@TemplateUpdateTime = templateupdatetime
|
1360
|
+
@TemplateUsedNum = templateusednum
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
def deserialize(params)
|
1364
|
+
@TemplateId = params['TemplateId']
|
1365
|
+
@TemplateTitle = params['TemplateTitle']
|
1366
|
+
@TemplateDescription = params['TemplateDescription']
|
1367
|
+
@TemplateTag = params['TemplateTag']
|
1368
|
+
@TemplateIsUsed = params['TemplateIsUsed']
|
1369
|
+
@TemplateCreateTime = params['TemplateCreateTime']
|
1370
|
+
@TemplateUpdateTime = params['TemplateUpdateTime']
|
1371
|
+
@TemplateUsedNum = params['TemplateUsedNum']
|
1372
|
+
end
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
# 监控指标
|
1376
|
+
class TemplateMonitor < TencentCloud::Common::AbstractModel
|
1377
|
+
# @param MonitorId: 监控指标ID
|
1378
|
+
# @type MonitorId: Integer
|
1379
|
+
# @param ObjectTypeId: 监控指标对象类型ID
|
1380
|
+
# @type ObjectTypeId: Integer
|
1381
|
+
# @param MetricName: 指标名称
|
1382
|
+
# @type MetricName: String
|
1383
|
+
# @param MetricChineseName: 中文指标
|
1384
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1385
|
+
# @type MetricChineseName: String
|
1386
|
+
|
1387
|
+
attr_accessor :MonitorId, :ObjectTypeId, :MetricName, :MetricChineseName
|
1388
|
+
|
1389
|
+
def initialize(monitorid=nil, objecttypeid=nil, metricname=nil, metricchinesename=nil)
|
1390
|
+
@MonitorId = monitorid
|
1391
|
+
@ObjectTypeId = objecttypeid
|
1392
|
+
@MetricName = metricname
|
1393
|
+
@MetricChineseName = metricchinesename
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
def deserialize(params)
|
1397
|
+
@MonitorId = params['MonitorId']
|
1398
|
+
@ObjectTypeId = params['ObjectTypeId']
|
1399
|
+
@MetricName = params['MetricName']
|
1400
|
+
@MetricChineseName = params['MetricChineseName']
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
# 保护策略
|
1405
|
+
class TemplatePolicy < TencentCloud::Common::AbstractModel
|
1406
|
+
# @param TemplatePolicyIdList: 保护策略ID列表
|
1407
|
+
# @type TemplatePolicyIdList: Array
|
1408
|
+
# @param TemplatePolicyRule: 策略规则
|
1409
|
+
# @type TemplatePolicyRule: String
|
1410
|
+
# @param TemplatePolicyDealType: 护栏策略生效处理策略 1:顺序执行,2:暂停
|
1411
|
+
# @type TemplatePolicyDealType: Integer
|
1412
|
+
|
1413
|
+
attr_accessor :TemplatePolicyIdList, :TemplatePolicyRule, :TemplatePolicyDealType
|
1414
|
+
|
1415
|
+
def initialize(templatepolicyidlist=nil, templatepolicyrule=nil, templatepolicydealtype=nil)
|
1416
|
+
@TemplatePolicyIdList = templatepolicyidlist
|
1417
|
+
@TemplatePolicyRule = templatepolicyrule
|
1418
|
+
@TemplatePolicyDealType = templatepolicydealtype
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
def deserialize(params)
|
1422
|
+
@TemplatePolicyIdList = params['TemplatePolicyIdList']
|
1423
|
+
@TemplatePolicyRule = params['TemplatePolicyRule']
|
1424
|
+
@TemplatePolicyDealType = params['TemplatePolicyDealType']
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
end
|
1431
|
+
|