tencentcloud-sdk-cfg 3.0.947 → 3.0.949

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df4f56e1b862fc11dae880c8e76abe78bd2d24df
4
- data.tar.gz: ced6d90504d2282582b545ca96960cfe107a362f
3
+ metadata.gz: 46017219e35b9a1d484474b4a716e076fe994bcb
4
+ data.tar.gz: cb610c5a0ae53623d33e804695387cff50ee5421
5
5
  SHA512:
6
- metadata.gz: 5296012bf25726941fa4d9205e742ebdb178020579dadb218c4b1c64d5fbd5113d8d74f19b9a32a65ea90248723d8fa659ef450a044e4899d058255678c88021
7
- data.tar.gz: a2dc30cb18bdc726881d2e43a05ffbfb0251c6e41f035c319827ddb2308b7367ee3052e512b4a9c72398c5fd108dfb29c527db705fec774d1d357700184c3c22
6
+ metadata.gz: df23171aa837eb4e94213aacc579b561a57dfd2575994adadbd68588e249e77ef0df456dec005d03a255cd7affd1e10815ff5bec6e32f640f648db3ce03afd2b
7
+ data.tar.gz: 6d560ecb80d4c64cc8682838c65673c5c96c4da287e53f287f0b0f5c4b2e9f690d4ac25b89b910f9734700ee9cbd7466a00fe3c03a261faf9b20925924c29378
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.947
1
+ 3.0.949
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 以多个动作创建演练
57
+
58
+ # @param request: Request instance for CreateTaskFromMultiAction.
59
+ # @type request: :class:`Tencentcloud::cfg::V20210820::CreateTaskFromMultiActionRequest`
60
+ # @rtype: :class:`Tencentcloud::cfg::V20210820::CreateTaskFromMultiActionResponse`
61
+ def CreateTaskFromMultiAction(request)
62
+ body = send_request('CreateTaskFromMultiAction', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateTaskFromMultiActionResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 从经验库创建演练
57
81
 
58
82
  # @param request: Request instance for CreateTaskFromTemplate.
@@ -344,6 +344,65 @@ module TencentCloud
344
344
  end
345
345
  end
346
346
 
347
+ # CreateTaskFromMultiAction请求参数结构体
348
+ class CreateTaskFromMultiActionRequest < TencentCloud::Common::AbstractModel
349
+ # @param TaskInstances: 参与演练的实例ID
350
+ # @type TaskInstances: Array
351
+ # @param TaskTitle: 演练名称,不填则默认取动作名称
352
+ # @type TaskTitle: String
353
+ # @param TaskDescription: 演练描述,不填则默认取动作描述
354
+ # @type TaskDescription: String
355
+ # @param TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认为60
356
+ # @type TaskPauseDuration: Integer
357
+ # @param TaskAction: 演练动作组配置
358
+ # @type TaskAction: Array
359
+
360
+ attr_accessor :TaskInstances, :TaskTitle, :TaskDescription, :TaskPauseDuration, :TaskAction
361
+
362
+ def initialize(taskinstances=nil, tasktitle=nil, taskdescription=nil, taskpauseduration=nil, taskaction=nil)
363
+ @TaskInstances = taskinstances
364
+ @TaskTitle = tasktitle
365
+ @TaskDescription = taskdescription
366
+ @TaskPauseDuration = taskpauseduration
367
+ @TaskAction = taskaction
368
+ end
369
+
370
+ def deserialize(params)
371
+ @TaskInstances = params['TaskInstances']
372
+ @TaskTitle = params['TaskTitle']
373
+ @TaskDescription = params['TaskDescription']
374
+ @TaskPauseDuration = params['TaskPauseDuration']
375
+ unless params['TaskAction'].nil?
376
+ @TaskAction = []
377
+ params['TaskAction'].each do |i|
378
+ taskgroupforaction_tmp = TaskGroupForAction.new
379
+ taskgroupforaction_tmp.deserialize(i)
380
+ @TaskAction << taskgroupforaction_tmp
381
+ end
382
+ end
383
+ end
384
+ end
385
+
386
+ # CreateTaskFromMultiAction返回参数结构体
387
+ class CreateTaskFromMultiActionResponse < TencentCloud::Common::AbstractModel
388
+ # @param TaskId: 创建成功的演练ID
389
+ # @type TaskId: Integer
390
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
391
+ # @type RequestId: String
392
+
393
+ attr_accessor :TaskId, :RequestId
394
+
395
+ def initialize(taskid=nil, requestid=nil)
396
+ @TaskId = taskid
397
+ @RequestId = requestid
398
+ end
399
+
400
+ def deserialize(params)
401
+ @TaskId = params['TaskId']
402
+ @RequestId = params['RequestId']
403
+ end
404
+ end
405
+
347
406
  # CreateTaskFromTemplate请求参数结构体
348
407
  class CreateTaskFromTemplateRequest < TencentCloud::Common::AbstractModel
349
408
  # @param TemplateId: 从经验库中查询到的经验模板ID
@@ -1932,6 +1991,30 @@ module TencentCloud
1932
1991
  end
1933
1992
  end
1934
1993
 
1994
+ # 演练动作组简易配置
1995
+ class TaskGroupForAction < TencentCloud::Common::AbstractModel
1996
+ # @param TaskActionId: 动作ID
1997
+ # @type TaskActionId: Integer
1998
+ # @param TaskActionGeneralConfiguration: {"ActionTimeout":1800}
1999
+ # @type TaskActionGeneralConfiguration: String
2000
+ # @param TaskActionCustomConfiguration: {"ip": "0.0.0.0"}
2001
+ # @type TaskActionCustomConfiguration: String
2002
+
2003
+ attr_accessor :TaskActionId, :TaskActionGeneralConfiguration, :TaskActionCustomConfiguration
2004
+
2005
+ def initialize(taskactionid=nil, taskactiongeneralconfiguration=nil, taskactioncustomconfiguration=nil)
2006
+ @TaskActionId = taskactionid
2007
+ @TaskActionGeneralConfiguration = taskactiongeneralconfiguration
2008
+ @TaskActionCustomConfiguration = taskactioncustomconfiguration
2009
+ end
2010
+
2011
+ def deserialize(params)
2012
+ @TaskActionId = params['TaskActionId']
2013
+ @TaskActionGeneralConfiguration = params['TaskActionGeneralConfiguration']
2014
+ @TaskActionCustomConfiguration = params['TaskActionCustomConfiguration']
2015
+ end
2016
+ end
2017
+
1935
2018
  # 任务分组动作实例
1936
2019
  class TaskGroupInstance < TencentCloud::Common::AbstractModel
1937
2020
  # @param TaskGroupInstanceId: 实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfg
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.947
4
+ version: 3.0.949
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-24 00:00:00.000000000 Z
11
+ date: 2024-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common