tencentcloud-sdk-cfg 3.0.708 → 3.0.709
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/v20210820/client.rb +48 -0
- data/lib/v20210820/models.rb +141 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 413716ed93a22239131cbf51a9fc709add70b62b
|
4
|
+
data.tar.gz: ebcf9a890e2409675810db2f9a761ad235595d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cf6ffafb5d98da1a459a25ce35b17dbf311fd6604ed0d45ad3f3883252f4ddeab8e962021d1dc410782e4ed31f06b70d59befaad7a5b5891cb9b702a30166fe
|
7
|
+
data.tar.gz: 50b2674ca25394f81d2a706e3e60f5835f2d947699f23366fcf6ce2ed7f72b409a173f3c272e0b76d4b955bccd3ce200c241ecdd06676a8ecb065d662b18da85
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.709
|
data/lib/v20210820/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 获取护栏触发日志
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeTaskPolicyTriggerLog.
|
155
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::DescribeTaskPolicyTriggerLogRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::DescribeTaskPolicyTriggerLogResponse`
|
157
|
+
def DescribeTaskPolicyTriggerLog(request)
|
158
|
+
body = send_request('DescribeTaskPolicyTriggerLog', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeTaskPolicyTriggerLogResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 查询经验库
|
153
177
|
|
154
178
|
# @param request: Request instance for DescribeTemplate.
|
@@ -269,6 +293,30 @@ module TencentCloud
|
|
269
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
294
|
end
|
271
295
|
|
296
|
+
# 用于触发混沌演练护栏(类型为触发和恢复2种)
|
297
|
+
|
298
|
+
# @param request: Request instance for TriggerPolicy.
|
299
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::TriggerPolicyRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::TriggerPolicyResponse`
|
301
|
+
def TriggerPolicy(request)
|
302
|
+
body = send_request('TriggerPolicy', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = TriggerPolicyResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
272
320
|
|
273
321
|
end
|
274
322
|
end
|
data/lib/v20210820/models.rb
CHANGED
@@ -325,6 +325,58 @@ module TencentCloud
|
|
325
325
|
end
|
326
326
|
end
|
327
327
|
|
328
|
+
# DescribeTaskPolicyTriggerLog请求参数结构体
|
329
|
+
class DescribeTaskPolicyTriggerLogRequest < TencentCloud::Common::AbstractModel
|
330
|
+
# @param TaskId: 演练ID
|
331
|
+
# @type TaskId: Integer
|
332
|
+
# @param Page: 页码
|
333
|
+
# @type Page: Integer
|
334
|
+
# @param PageSize: 页数量
|
335
|
+
# @type PageSize: Integer
|
336
|
+
|
337
|
+
attr_accessor :TaskId, :Page, :PageSize
|
338
|
+
|
339
|
+
def initialize(taskid=nil, page=nil, pagesize=nil)
|
340
|
+
@TaskId = taskid
|
341
|
+
@Page = page
|
342
|
+
@PageSize = pagesize
|
343
|
+
end
|
344
|
+
|
345
|
+
def deserialize(params)
|
346
|
+
@TaskId = params['TaskId']
|
347
|
+
@Page = params['Page']
|
348
|
+
@PageSize = params['PageSize']
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# DescribeTaskPolicyTriggerLog返回参数结构体
|
353
|
+
class DescribeTaskPolicyTriggerLogResponse < TencentCloud::Common::AbstractModel
|
354
|
+
# @param TriggerLogs: 触发日志
|
355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
356
|
+
# @type TriggerLogs: Array
|
357
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
358
|
+
# @type RequestId: String
|
359
|
+
|
360
|
+
attr_accessor :TriggerLogs, :RequestId
|
361
|
+
|
362
|
+
def initialize(triggerlogs=nil, requestid=nil)
|
363
|
+
@TriggerLogs = triggerlogs
|
364
|
+
@RequestId = requestid
|
365
|
+
end
|
366
|
+
|
367
|
+
def deserialize(params)
|
368
|
+
unless params['TriggerLogs'].nil?
|
369
|
+
@TriggerLogs = []
|
370
|
+
params['TriggerLogs'].each do |i|
|
371
|
+
policytriggerlog_tmp = PolicyTriggerLog.new
|
372
|
+
policytriggerlog_tmp.deserialize(i)
|
373
|
+
@TriggerLogs << policytriggerlog_tmp
|
374
|
+
end
|
375
|
+
end
|
376
|
+
@RequestId = params['RequestId']
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
328
380
|
# DescribeTask请求参数结构体
|
329
381
|
class DescribeTaskRequest < TencentCloud::Common::AbstractModel
|
330
382
|
# @param TaskId: 任务ID
|
@@ -632,6 +684,43 @@ module TencentCloud
|
|
632
684
|
end
|
633
685
|
end
|
634
686
|
|
687
|
+
# 护栏策略触发日志
|
688
|
+
class PolicyTriggerLog < TencentCloud::Common::AbstractModel
|
689
|
+
# @param TaskId: 演练ID
|
690
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
691
|
+
# @type TaskId: Integer
|
692
|
+
# @param Name: 名称
|
693
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
694
|
+
# @type Name: String
|
695
|
+
# @param TriggerType: 类型,0--触发,1--恢复
|
696
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
697
|
+
# @type TriggerType: Integer
|
698
|
+
# @param Content: 内容
|
699
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
700
|
+
# @type Content: String
|
701
|
+
# @param CreatTime: 触发时间
|
702
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
703
|
+
# @type CreatTime: String
|
704
|
+
|
705
|
+
attr_accessor :TaskId, :Name, :TriggerType, :Content, :CreatTime
|
706
|
+
|
707
|
+
def initialize(taskid=nil, name=nil, triggertype=nil, content=nil, creattime=nil)
|
708
|
+
@TaskId = taskid
|
709
|
+
@Name = name
|
710
|
+
@TriggerType = triggertype
|
711
|
+
@Content = content
|
712
|
+
@CreatTime = creattime
|
713
|
+
end
|
714
|
+
|
715
|
+
def deserialize(params)
|
716
|
+
@TaskId = params['TaskId']
|
717
|
+
@Name = params['Name']
|
718
|
+
@TriggerType = params['TriggerType']
|
719
|
+
@Content = params['Content']
|
720
|
+
@CreatTime = params['CreatTime']
|
721
|
+
end
|
722
|
+
end
|
723
|
+
|
635
724
|
# 用于传入创建、编辑标签
|
636
725
|
class TagWithCreate < TencentCloud::Common::AbstractModel
|
637
726
|
# @param TagKey: 标签键
|
@@ -1755,6 +1844,58 @@ module TencentCloud
|
|
1755
1844
|
end
|
1756
1845
|
end
|
1757
1846
|
|
1847
|
+
# TriggerPolicy请求参数结构体
|
1848
|
+
class TriggerPolicyRequest < TencentCloud::Common::AbstractModel
|
1849
|
+
# @param TaskId: 混沌演练ID
|
1850
|
+
# @type TaskId: Integer
|
1851
|
+
# @param Name: 名称
|
1852
|
+
# @type Name: String
|
1853
|
+
# @param Content: 触发内容
|
1854
|
+
# @type Content: String
|
1855
|
+
# @param TriggerType: 触发类型,0--触发;1--恢复
|
1856
|
+
# @type TriggerType: Integer
|
1857
|
+
|
1858
|
+
attr_accessor :TaskId, :Name, :Content, :TriggerType
|
1859
|
+
|
1860
|
+
def initialize(taskid=nil, name=nil, content=nil, triggertype=nil)
|
1861
|
+
@TaskId = taskid
|
1862
|
+
@Name = name
|
1863
|
+
@Content = content
|
1864
|
+
@TriggerType = triggertype
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
def deserialize(params)
|
1868
|
+
@TaskId = params['TaskId']
|
1869
|
+
@Name = params['Name']
|
1870
|
+
@Content = params['Content']
|
1871
|
+
@TriggerType = params['TriggerType']
|
1872
|
+
end
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
# TriggerPolicy返回参数结构体
|
1876
|
+
class TriggerPolicyResponse < TencentCloud::Common::AbstractModel
|
1877
|
+
# @param TaskId: 演练ID
|
1878
|
+
# @type TaskId: Integer
|
1879
|
+
# @param Success: 是否触发成功
|
1880
|
+
# @type Success: Boolean
|
1881
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1882
|
+
# @type RequestId: String
|
1883
|
+
|
1884
|
+
attr_accessor :TaskId, :Success, :RequestId
|
1885
|
+
|
1886
|
+
def initialize(taskid=nil, success=nil, requestid=nil)
|
1887
|
+
@TaskId = taskid
|
1888
|
+
@Success = success
|
1889
|
+
@RequestId = requestid
|
1890
|
+
end
|
1891
|
+
|
1892
|
+
def deserialize(params)
|
1893
|
+
@TaskId = params['TaskId']
|
1894
|
+
@Success = params['Success']
|
1895
|
+
@RequestId = params['RequestId']
|
1896
|
+
end
|
1897
|
+
end
|
1898
|
+
|
1758
1899
|
end
|
1759
1900
|
end
|
1760
1901
|
end
|
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.
|
4
|
+
version: 3.0.709
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|