tencentcloud-sdk-cfg 3.0.873 → 3.0.875
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210820/client.rb +96 -0
- data/lib/v20210820/models.rb +625 -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: 08d369a2f2948ddd92ed662244831bc9970311f4
|
4
|
+
data.tar.gz: 68ce26fe142a230f98dcbddcf1e11e6e54b2406d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0926566a1ea0ade3194d03de93f986d176c5974de5479a081268038ea3d0203968b28f00657f6fa45ab757b712be0e58c655cc506dcebe0c2cc9cd65ccb99a41
|
7
|
+
data.tar.gz: d394d8828c1f2c69542567e35a9dbb116a34dc27c7f51f23ba802cd22510979c6443af313def734d331b41646358d9ce7f016c67c7c5dbf41c99b443e1edeff7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.875
|
data/lib/v20210820/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 从动作创建演练
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateTaskFromAction.
|
35
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::CreateTaskFromActionRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::CreateTaskFromActionResponse`
|
37
|
+
def CreateTaskFromAction(request)
|
38
|
+
body = send_request('CreateTaskFromAction', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateTaskFromActionResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 从经验库创建演练
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateTaskFromTemplate.
|
@@ -77,6 +101,78 @@ module TencentCloud
|
|
77
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
102
|
end
|
79
103
|
|
104
|
+
# 根据动作ID获取动作栏位动态配置参数信息,里面包含动作自有和通用两部分参数。
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeActionFieldConfigList.
|
107
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::DescribeActionFieldConfigListRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::DescribeActionFieldConfigListResponse`
|
109
|
+
def DescribeActionFieldConfigList(request)
|
110
|
+
body = send_request('DescribeActionFieldConfigList', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeActionFieldConfigListResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 获取混沌演练平台的动作库列表
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeActionLibraryList.
|
131
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::DescribeActionLibraryListRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::DescribeActionLibraryListResponse`
|
133
|
+
def DescribeActionLibraryList(request)
|
134
|
+
body = send_request('DescribeActionLibraryList', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeActionLibraryListResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 查询对象类型列表
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeObjectTypeList.
|
155
|
+
# @type request: :class:`Tencentcloud::cfg::V20210820::DescribeObjectTypeListRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cfg::V20210820::DescribeObjectTypeListResponse`
|
157
|
+
def DescribeObjectTypeList(request)
|
158
|
+
body = send_request('DescribeObjectTypeList', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeObjectTypeListResponse.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
|
+
|
80
176
|
# 查询任务
|
81
177
|
|
82
178
|
# @param request: Request instance for DescribeTask.
|
data/lib/v20210820/models.rb
CHANGED
@@ -17,6 +17,122 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Cfg
|
19
19
|
module V20210820
|
20
|
+
# 动作动态参数返回格式
|
21
|
+
class ActionFieldConfigDetail < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Type: 组件类型
|
23
|
+
# 可选项如下:
|
24
|
+
# input 文本框
|
25
|
+
# textarea 多行文本框
|
26
|
+
# number 数值输入框
|
27
|
+
# select 选择器
|
28
|
+
# cascader 级联选择器
|
29
|
+
# radio 单选
|
30
|
+
# time 时间选择
|
31
|
+
# @type Type: String
|
32
|
+
# @param Lable: 组件label
|
33
|
+
# @type Lable: String
|
34
|
+
# @param Field: 组件唯一标识, 传回后端时的key
|
35
|
+
# @type Field: String
|
36
|
+
# @param DefaultValue: 默认值
|
37
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
38
|
+
# @type DefaultValue: String
|
39
|
+
# @param Config: 支持配置项如下,可根据需要选择配置项,不需要配置是设置空{}:
|
40
|
+
|
41
|
+
# {
|
42
|
+
|
43
|
+
# placeholder: string (占位符)
|
44
|
+
|
45
|
+
# tooltip: string (提示信息)
|
46
|
+
|
47
|
+
# reg: RegExp (对输入内容格式进行正则校验的规则)
|
48
|
+
|
49
|
+
# max: number (对于输入框,限制最大输入字符数,对于数值输入框,设置上限)
|
50
|
+
|
51
|
+
# min: number (对于数值输入框,设置下限)
|
52
|
+
|
53
|
+
# step: number (设置数值输入框的步长,默认为1)
|
54
|
+
|
55
|
+
# format: string (时间选择的格式,如YYYY-MM-DD表示年月日, YYYY-MM-DD HH:mm:ss 表示时分秒)
|
56
|
+
|
57
|
+
# separator: string[] (多行输入框的分隔符,不传或者为空时表示不分隔,直接返回用户输入的文本字符串)
|
58
|
+
|
59
|
+
# multiple: boolean (是否多选,对选择器和级联选择器有效)
|
60
|
+
|
61
|
+
# options: 选择器的选项【支持以下两种形式】
|
62
|
+
|
63
|
+
# 直接给定选项数组 { value: string; label: string }[]
|
64
|
+
# 通过调接口获取选项 { api: string(接口地址), params: string[] (接口参数,对应于参数配置的field,前端根据field对应的所有组件的输入值作为参数查询数据, 为空时在组件加载时直接请求数据) }
|
65
|
+
# }
|
66
|
+
# @type Config: String
|
67
|
+
# @param Required: 是否必填 (0 -- 否 1-- 是)
|
68
|
+
# @type Required: Integer
|
69
|
+
# @param Validate: compute配置依赖的其他field满足的条件时通过校验(如:三个表单项中必须至少有一个填写了)
|
70
|
+
|
71
|
+
# [fieldName,
|
72
|
+
|
73
|
+
# { config: 此项保留,等待后面具体场景细化 }
|
74
|
+
|
75
|
+
# ]
|
76
|
+
# @type Validate: String
|
77
|
+
# @param Visible: 是否可见
|
78
|
+
# @type Visible: String
|
79
|
+
|
80
|
+
attr_accessor :Type, :Lable, :Field, :DefaultValue, :Config, :Required, :Validate, :Visible
|
81
|
+
|
82
|
+
def initialize(type=nil, lable=nil, field=nil, defaultvalue=nil, config=nil, required=nil, validate=nil, visible=nil)
|
83
|
+
@Type = type
|
84
|
+
@Lable = lable
|
85
|
+
@Field = field
|
86
|
+
@DefaultValue = defaultvalue
|
87
|
+
@Config = config
|
88
|
+
@Required = required
|
89
|
+
@Validate = validate
|
90
|
+
@Visible = visible
|
91
|
+
end
|
92
|
+
|
93
|
+
def deserialize(params)
|
94
|
+
@Type = params['Type']
|
95
|
+
@Lable = params['Lable']
|
96
|
+
@Field = params['Field']
|
97
|
+
@DefaultValue = params['DefaultValue']
|
98
|
+
@Config = params['Config']
|
99
|
+
@Required = params['Required']
|
100
|
+
@Validate = params['Validate']
|
101
|
+
@Visible = params['Visible']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# 动作栏位配置结果
|
106
|
+
class ActionFieldConfigResult < TencentCloud::Common::AbstractModel
|
107
|
+
# @param ActionId: 动作ID
|
108
|
+
# @type ActionId: Integer
|
109
|
+
# @param ActionName: 动作名称
|
110
|
+
# @type ActionName: String
|
111
|
+
# @param ConfigDetail: 动作对应的栏位配置详情
|
112
|
+
# @type ConfigDetail: Array
|
113
|
+
|
114
|
+
attr_accessor :ActionId, :ActionName, :ConfigDetail
|
115
|
+
|
116
|
+
def initialize(actionid=nil, actionname=nil, configdetail=nil)
|
117
|
+
@ActionId = actionid
|
118
|
+
@ActionName = actionname
|
119
|
+
@ConfigDetail = configdetail
|
120
|
+
end
|
121
|
+
|
122
|
+
def deserialize(params)
|
123
|
+
@ActionId = params['ActionId']
|
124
|
+
@ActionName = params['ActionName']
|
125
|
+
unless params['ConfigDetail'].nil?
|
126
|
+
@ConfigDetail = []
|
127
|
+
params['ConfigDetail'].each do |i|
|
128
|
+
actionfieldconfigdetail_tmp = ActionFieldConfigDetail.new
|
129
|
+
actionfieldconfigdetail_tmp.deserialize(i)
|
130
|
+
@ConfigDetail << actionfieldconfigdetail_tmp
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
20
136
|
# 动作库筛选栏位
|
21
137
|
class ActionFilter < TencentCloud::Common::AbstractModel
|
22
138
|
# @param Keyword: 关键字
|
@@ -37,6 +153,105 @@ module TencentCloud
|
|
37
153
|
end
|
38
154
|
end
|
39
155
|
|
156
|
+
# 动作库数据列表
|
157
|
+
class ActionLibraryListResult < TencentCloud::Common::AbstractModel
|
158
|
+
# @param ActionName: 动作名称
|
159
|
+
# @type ActionName: String
|
160
|
+
# @param Desc: 动作描述
|
161
|
+
# @type Desc: String
|
162
|
+
# @param ActionType: 动作类型。范围:["平台","自定义"]
|
163
|
+
# @type ActionType: String
|
164
|
+
# @param CreateTime: 创建时间
|
165
|
+
# @type CreateTime: String
|
166
|
+
# @param Creator: 创建人
|
167
|
+
# @type Creator: String
|
168
|
+
# @param UpdateTime: 更新时间
|
169
|
+
# @type UpdateTime: String
|
170
|
+
# @param RiskDesc: 动作风险描述
|
171
|
+
# @type RiskDesc: String
|
172
|
+
# @param ActionId: 动作ID
|
173
|
+
# @type ActionId: Integer
|
174
|
+
# @param AttributeId: 动作属性( 1:故障 2:恢复)
|
175
|
+
# @type AttributeId: Integer
|
176
|
+
# @param RelationActionId: 关联的动作ID
|
177
|
+
# @type RelationActionId: Integer
|
178
|
+
# @param ActionCommand: 操作命令
|
179
|
+
# @type ActionCommand: String
|
180
|
+
# @param ActionCommandType: 动作类型( 0 -- tat 1 -- 云API)
|
181
|
+
# @type ActionCommandType: Integer
|
182
|
+
# @param ActionContent: 自定义动作的参数,json string
|
183
|
+
# @type ActionContent: String
|
184
|
+
# @param ResourceType: 二级分类
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type ResourceType: String
|
187
|
+
# @param ActionDetail: 动作描述
|
188
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
189
|
+
# @type ActionDetail: String
|
190
|
+
# @param IsAllowed: 是否允许当前账号使用
|
191
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
192
|
+
# @type IsAllowed: Boolean
|
193
|
+
# @param ActionBestCase: 最佳实践案例的链接地址
|
194
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
195
|
+
# @type ActionBestCase: String
|
196
|
+
# @param ObjectType: 对象类型
|
197
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
198
|
+
# @type ObjectType: String
|
199
|
+
# @param MetricIdList: 监控指标ID列表
|
200
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
201
|
+
# @type MetricIdList: Array
|
202
|
+
# @param IsNewAction: 是否是新动作
|
203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
204
|
+
# @type IsNewAction: Boolean
|
205
|
+
|
206
|
+
attr_accessor :ActionName, :Desc, :ActionType, :CreateTime, :Creator, :UpdateTime, :RiskDesc, :ActionId, :AttributeId, :RelationActionId, :ActionCommand, :ActionCommandType, :ActionContent, :ResourceType, :ActionDetail, :IsAllowed, :ActionBestCase, :ObjectType, :MetricIdList, :IsNewAction
|
207
|
+
|
208
|
+
def initialize(actionname=nil, desc=nil, actiontype=nil, createtime=nil, creator=nil, updatetime=nil, riskdesc=nil, actionid=nil, attributeid=nil, relationactionid=nil, actioncommand=nil, actioncommandtype=nil, actioncontent=nil, resourcetype=nil, actiondetail=nil, isallowed=nil, actionbestcase=nil, objecttype=nil, metricidlist=nil, isnewaction=nil)
|
209
|
+
@ActionName = actionname
|
210
|
+
@Desc = desc
|
211
|
+
@ActionType = actiontype
|
212
|
+
@CreateTime = createtime
|
213
|
+
@Creator = creator
|
214
|
+
@UpdateTime = updatetime
|
215
|
+
@RiskDesc = riskdesc
|
216
|
+
@ActionId = actionid
|
217
|
+
@AttributeId = attributeid
|
218
|
+
@RelationActionId = relationactionid
|
219
|
+
@ActionCommand = actioncommand
|
220
|
+
@ActionCommandType = actioncommandtype
|
221
|
+
@ActionContent = actioncontent
|
222
|
+
@ResourceType = resourcetype
|
223
|
+
@ActionDetail = actiondetail
|
224
|
+
@IsAllowed = isallowed
|
225
|
+
@ActionBestCase = actionbestcase
|
226
|
+
@ObjectType = objecttype
|
227
|
+
@MetricIdList = metricidlist
|
228
|
+
@IsNewAction = isnewaction
|
229
|
+
end
|
230
|
+
|
231
|
+
def deserialize(params)
|
232
|
+
@ActionName = params['ActionName']
|
233
|
+
@Desc = params['Desc']
|
234
|
+
@ActionType = params['ActionType']
|
235
|
+
@CreateTime = params['CreateTime']
|
236
|
+
@Creator = params['Creator']
|
237
|
+
@UpdateTime = params['UpdateTime']
|
238
|
+
@RiskDesc = params['RiskDesc']
|
239
|
+
@ActionId = params['ActionId']
|
240
|
+
@AttributeId = params['AttributeId']
|
241
|
+
@RelationActionId = params['RelationActionId']
|
242
|
+
@ActionCommand = params['ActionCommand']
|
243
|
+
@ActionCommandType = params['ActionCommandType']
|
244
|
+
@ActionContent = params['ActionContent']
|
245
|
+
@ResourceType = params['ResourceType']
|
246
|
+
@ActionDetail = params['ActionDetail']
|
247
|
+
@IsAllowed = params['IsAllowed']
|
248
|
+
@ActionBestCase = params['ActionBestCase']
|
249
|
+
@ObjectType = params['ObjectType']
|
250
|
+
@MetricIdList = params['MetricIdList']
|
251
|
+
@IsNewAction = params['IsNewAction']
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
40
255
|
# 应用性能监控产品中应用信息
|
41
256
|
class ApmServiceInfo < TencentCloud::Common::AbstractModel
|
42
257
|
# @param InstanceId: 业务ID
|
@@ -64,6 +279,66 @@ module TencentCloud
|
|
64
279
|
end
|
65
280
|
end
|
66
281
|
|
282
|
+
# CreateTaskFromAction请求参数结构体
|
283
|
+
class CreateTaskFromActionRequest < TencentCloud::Common::AbstractModel
|
284
|
+
# @param TaskActionId: 动作ID,可从动作列表接口DescribeActionLibraryList获取
|
285
|
+
# @type TaskActionId: Integer
|
286
|
+
# @param TaskInstances: 参与演练的实例ID
|
287
|
+
# @type TaskInstances: Array
|
288
|
+
# @param TaskTitle: 演练名称,不填则默认取动作名称
|
289
|
+
# @type TaskTitle: String
|
290
|
+
# @param TaskDescription: 演练描述,不填则默认取动作描述
|
291
|
+
# @type TaskDescription: String
|
292
|
+
# @param TaskActionGeneralConfiguration: 动作通用参数,需要json序列化传入,可以从动作详情接口DescribeActionFieldConfigList获取,不填默认使用动作默认参数
|
293
|
+
# @type TaskActionGeneralConfiguration: String
|
294
|
+
# @param TaskActionCustomConfiguration: 动作自定义参数,需要json序列化传入,可以从动作详情接口DescribeActionFieldConfigList获取,不填默认使用动作默认参数,注意:必填参数,是没有默认值的 ,务必保证传入有效值
|
295
|
+
# @type TaskActionCustomConfiguration: String
|
296
|
+
# @param TaskPauseDuration: 演练自动暂停时间,单位分钟, 不填则默认为60
|
297
|
+
# @type TaskPauseDuration: Integer
|
298
|
+
|
299
|
+
attr_accessor :TaskActionId, :TaskInstances, :TaskTitle, :TaskDescription, :TaskActionGeneralConfiguration, :TaskActionCustomConfiguration, :TaskPauseDuration
|
300
|
+
|
301
|
+
def initialize(taskactionid=nil, taskinstances=nil, tasktitle=nil, taskdescription=nil, taskactiongeneralconfiguration=nil, taskactioncustomconfiguration=nil, taskpauseduration=nil)
|
302
|
+
@TaskActionId = taskactionid
|
303
|
+
@TaskInstances = taskinstances
|
304
|
+
@TaskTitle = tasktitle
|
305
|
+
@TaskDescription = taskdescription
|
306
|
+
@TaskActionGeneralConfiguration = taskactiongeneralconfiguration
|
307
|
+
@TaskActionCustomConfiguration = taskactioncustomconfiguration
|
308
|
+
@TaskPauseDuration = taskpauseduration
|
309
|
+
end
|
310
|
+
|
311
|
+
def deserialize(params)
|
312
|
+
@TaskActionId = params['TaskActionId']
|
313
|
+
@TaskInstances = params['TaskInstances']
|
314
|
+
@TaskTitle = params['TaskTitle']
|
315
|
+
@TaskDescription = params['TaskDescription']
|
316
|
+
@TaskActionGeneralConfiguration = params['TaskActionGeneralConfiguration']
|
317
|
+
@TaskActionCustomConfiguration = params['TaskActionCustomConfiguration']
|
318
|
+
@TaskPauseDuration = params['TaskPauseDuration']
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
# CreateTaskFromAction返回参数结构体
|
323
|
+
class CreateTaskFromActionResponse < TencentCloud::Common::AbstractModel
|
324
|
+
# @param TaskId: 创建成功的演练ID
|
325
|
+
# @type TaskId: Integer
|
326
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
327
|
+
# @type RequestId: String
|
328
|
+
|
329
|
+
attr_accessor :TaskId, :RequestId
|
330
|
+
|
331
|
+
def initialize(taskid=nil, requestid=nil)
|
332
|
+
@TaskId = taskid
|
333
|
+
@RequestId = requestid
|
334
|
+
end
|
335
|
+
|
336
|
+
def deserialize(params)
|
337
|
+
@TaskId = params['TaskId']
|
338
|
+
@RequestId = params['RequestId']
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
67
342
|
# CreateTaskFromTemplate请求参数结构体
|
68
343
|
class CreateTaskFromTemplateRequest < TencentCloud::Common::AbstractModel
|
69
344
|
# @param TemplateId: 从经验库中查询到的经验模板ID
|
@@ -139,6 +414,196 @@ module TencentCloud
|
|
139
414
|
end
|
140
415
|
end
|
141
416
|
|
417
|
+
# DescribeActionFieldConfigList请求参数结构体
|
418
|
+
class DescribeActionFieldConfigListRequest < TencentCloud::Common::AbstractModel
|
419
|
+
# @param ActionIds: 动作ID列表
|
420
|
+
# @type ActionIds: Array
|
421
|
+
# @param ObjectTypeId: 对象类型ID
|
422
|
+
# @type ObjectTypeId: Integer
|
423
|
+
|
424
|
+
attr_accessor :ActionIds, :ObjectTypeId
|
425
|
+
|
426
|
+
def initialize(actionids=nil, objecttypeid=nil)
|
427
|
+
@ActionIds = actionids
|
428
|
+
@ObjectTypeId = objecttypeid
|
429
|
+
end
|
430
|
+
|
431
|
+
def deserialize(params)
|
432
|
+
@ActionIds = params['ActionIds']
|
433
|
+
@ObjectTypeId = params['ObjectTypeId']
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
# DescribeActionFieldConfigList返回参数结构体
|
438
|
+
class DescribeActionFieldConfigListResponse < TencentCloud::Common::AbstractModel
|
439
|
+
# @param Common: 通用栏位配置列表
|
440
|
+
# @type Common: Array
|
441
|
+
# @param Results: 动作栏位配置列表
|
442
|
+
# @type Results: Array
|
443
|
+
# @param ResourceOffline: 资源下线信息
|
444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
445
|
+
# @type ResourceOffline: Array
|
446
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
447
|
+
# @type RequestId: String
|
448
|
+
|
449
|
+
attr_accessor :Common, :Results, :ResourceOffline, :RequestId
|
450
|
+
|
451
|
+
def initialize(common=nil, results=nil, resourceoffline=nil, requestid=nil)
|
452
|
+
@Common = common
|
453
|
+
@Results = results
|
454
|
+
@ResourceOffline = resourceoffline
|
455
|
+
@RequestId = requestid
|
456
|
+
end
|
457
|
+
|
458
|
+
def deserialize(params)
|
459
|
+
unless params['Common'].nil?
|
460
|
+
@Common = []
|
461
|
+
params['Common'].each do |i|
|
462
|
+
actionfieldconfigresult_tmp = ActionFieldConfigResult.new
|
463
|
+
actionfieldconfigresult_tmp.deserialize(i)
|
464
|
+
@Common << actionfieldconfigresult_tmp
|
465
|
+
end
|
466
|
+
end
|
467
|
+
unless params['Results'].nil?
|
468
|
+
@Results = []
|
469
|
+
params['Results'].each do |i|
|
470
|
+
actionfieldconfigresult_tmp = ActionFieldConfigResult.new
|
471
|
+
actionfieldconfigresult_tmp.deserialize(i)
|
472
|
+
@Results << actionfieldconfigresult_tmp
|
473
|
+
end
|
474
|
+
end
|
475
|
+
unless params['ResourceOffline'].nil?
|
476
|
+
@ResourceOffline = []
|
477
|
+
params['ResourceOffline'].each do |i|
|
478
|
+
resourceoffline_tmp = ResourceOffline.new
|
479
|
+
resourceoffline_tmp.deserialize(i)
|
480
|
+
@ResourceOffline << resourceoffline_tmp
|
481
|
+
end
|
482
|
+
end
|
483
|
+
@RequestId = params['RequestId']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# DescribeActionLibraryList请求参数结构体
|
488
|
+
class DescribeActionLibraryListRequest < TencentCloud::Common::AbstractModel
|
489
|
+
# @param Limit: 0-100
|
490
|
+
# @type Limit: Integer
|
491
|
+
# @param Offset: 默认值0
|
492
|
+
# @type Offset: Integer
|
493
|
+
# @param ObjectType: 对象类型ID
|
494
|
+
# @type ObjectType: Integer
|
495
|
+
# @param Filters: Keyword取值{"动作名称": "a_title", "描述": "a_desc", "动作类型": "a_type", "创建时间": "a_create_time", "二级分类": "a_resource_type"}
|
496
|
+
# @type Filters: Array
|
497
|
+
# @param Attribute: 动作分类,1表示故障动作,2表示恢复动作
|
498
|
+
# @type Attribute: Array
|
499
|
+
# @param ActionIds: 筛选项 -动作ID
|
500
|
+
# @type ActionIds: Array
|
501
|
+
|
502
|
+
attr_accessor :Limit, :Offset, :ObjectType, :Filters, :Attribute, :ActionIds
|
503
|
+
|
504
|
+
def initialize(limit=nil, offset=nil, objecttype=nil, filters=nil, attribute=nil, actionids=nil)
|
505
|
+
@Limit = limit
|
506
|
+
@Offset = offset
|
507
|
+
@ObjectType = objecttype
|
508
|
+
@Filters = filters
|
509
|
+
@Attribute = attribute
|
510
|
+
@ActionIds = actionids
|
511
|
+
end
|
512
|
+
|
513
|
+
def deserialize(params)
|
514
|
+
@Limit = params['Limit']
|
515
|
+
@Offset = params['Offset']
|
516
|
+
@ObjectType = params['ObjectType']
|
517
|
+
unless params['Filters'].nil?
|
518
|
+
@Filters = []
|
519
|
+
params['Filters'].each do |i|
|
520
|
+
actionfilter_tmp = ActionFilter.new
|
521
|
+
actionfilter_tmp.deserialize(i)
|
522
|
+
@Filters << actionfilter_tmp
|
523
|
+
end
|
524
|
+
end
|
525
|
+
@Attribute = params['Attribute']
|
526
|
+
@ActionIds = params['ActionIds']
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
530
|
+
# DescribeActionLibraryList返回参数结构体
|
531
|
+
class DescribeActionLibraryListResponse < TencentCloud::Common::AbstractModel
|
532
|
+
# @param Results: 查询结果列表
|
533
|
+
# @type Results: Array
|
534
|
+
# @param Total: 符合记录条数
|
535
|
+
# @type Total: Integer
|
536
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
537
|
+
# @type RequestId: String
|
538
|
+
|
539
|
+
attr_accessor :Results, :Total, :RequestId
|
540
|
+
|
541
|
+
def initialize(results=nil, total=nil, requestid=nil)
|
542
|
+
@Results = results
|
543
|
+
@Total = total
|
544
|
+
@RequestId = requestid
|
545
|
+
end
|
546
|
+
|
547
|
+
def deserialize(params)
|
548
|
+
unless params['Results'].nil?
|
549
|
+
@Results = []
|
550
|
+
params['Results'].each do |i|
|
551
|
+
actionlibrarylistresult_tmp = ActionLibraryListResult.new
|
552
|
+
actionlibrarylistresult_tmp.deserialize(i)
|
553
|
+
@Results << actionlibrarylistresult_tmp
|
554
|
+
end
|
555
|
+
end
|
556
|
+
@Total = params['Total']
|
557
|
+
@RequestId = params['RequestId']
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
561
|
+
# DescribeObjectTypeList请求参数结构体
|
562
|
+
class DescribeObjectTypeListRequest < TencentCloud::Common::AbstractModel
|
563
|
+
# @param SupportType: 所支持的对象
|
564
|
+
# 0:全平台产品
|
565
|
+
# 1:平台接入的对象
|
566
|
+
# 2:应用所支持的部分对象
|
567
|
+
# @type SupportType: Integer
|
568
|
+
|
569
|
+
attr_accessor :SupportType
|
570
|
+
|
571
|
+
def initialize(supporttype=nil)
|
572
|
+
@SupportType = supporttype
|
573
|
+
end
|
574
|
+
|
575
|
+
def deserialize(params)
|
576
|
+
@SupportType = params['SupportType']
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
580
|
+
# DescribeObjectTypeList返回参数结构体
|
581
|
+
class DescribeObjectTypeListResponse < TencentCloud::Common::AbstractModel
|
582
|
+
# @param ObjectTypeList: 对象类型列表
|
583
|
+
# @type ObjectTypeList: Array
|
584
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
585
|
+
# @type RequestId: String
|
586
|
+
|
587
|
+
attr_accessor :ObjectTypeList, :RequestId
|
588
|
+
|
589
|
+
def initialize(objecttypelist=nil, requestid=nil)
|
590
|
+
@ObjectTypeList = objecttypelist
|
591
|
+
@RequestId = requestid
|
592
|
+
end
|
593
|
+
|
594
|
+
def deserialize(params)
|
595
|
+
unless params['ObjectTypeList'].nil?
|
596
|
+
@ObjectTypeList = []
|
597
|
+
params['ObjectTypeList'].each do |i|
|
598
|
+
objecttype_tmp = ObjectType.new
|
599
|
+
objecttype_tmp.deserialize(i)
|
600
|
+
@ObjectTypeList << objecttype_tmp
|
601
|
+
end
|
602
|
+
end
|
603
|
+
@RequestId = params['RequestId']
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
142
607
|
# 查询-保护策略
|
143
608
|
class DescribePolicy < TencentCloud::Common::AbstractModel
|
144
609
|
# @param TaskPolicyIdList: 保护策略ID列表
|
@@ -684,6 +1149,139 @@ module TencentCloud
|
|
684
1149
|
end
|
685
1150
|
end
|
686
1151
|
|
1152
|
+
# 对象类型
|
1153
|
+
class ObjectType < TencentCloud::Common::AbstractModel
|
1154
|
+
# @param ObjectTypeId: 对象类型ID
|
1155
|
+
# @type ObjectTypeId: Integer
|
1156
|
+
# @param ObjectTypeTitle: 对象类型名称
|
1157
|
+
# @type ObjectTypeTitle: String
|
1158
|
+
# @param ObjectTypeLevelOne: 对象类型第一级
|
1159
|
+
# @type ObjectTypeLevelOne: String
|
1160
|
+
# @param ObjectTypeParams: 对象类型参数
|
1161
|
+
# @type ObjectTypeParams: :class:`Tencentcloud::Cfg.v20210820.models.ObjectTypeConfig`
|
1162
|
+
# @param ObjectTypeJsonParse: tke接口json解析规则,null不需要解析
|
1163
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1164
|
+
# @type ObjectTypeJsonParse: :class:`Tencentcloud::Cfg.v20210820.models.ObjectTypeJsonParse`
|
1165
|
+
# @param ObjectHasNewAction: 是否包含新动作
|
1166
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1167
|
+
# @type ObjectHasNewAction: Boolean
|
1168
|
+
|
1169
|
+
attr_accessor :ObjectTypeId, :ObjectTypeTitle, :ObjectTypeLevelOne, :ObjectTypeParams, :ObjectTypeJsonParse, :ObjectHasNewAction
|
1170
|
+
|
1171
|
+
def initialize(objecttypeid=nil, objecttypetitle=nil, objecttypelevelone=nil, objecttypeparams=nil, objecttypejsonparse=nil, objecthasnewaction=nil)
|
1172
|
+
@ObjectTypeId = objecttypeid
|
1173
|
+
@ObjectTypeTitle = objecttypetitle
|
1174
|
+
@ObjectTypeLevelOne = objecttypelevelone
|
1175
|
+
@ObjectTypeParams = objecttypeparams
|
1176
|
+
@ObjectTypeJsonParse = objecttypejsonparse
|
1177
|
+
@ObjectHasNewAction = objecthasnewaction
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
def deserialize(params)
|
1181
|
+
@ObjectTypeId = params['ObjectTypeId']
|
1182
|
+
@ObjectTypeTitle = params['ObjectTypeTitle']
|
1183
|
+
@ObjectTypeLevelOne = params['ObjectTypeLevelOne']
|
1184
|
+
unless params['ObjectTypeParams'].nil?
|
1185
|
+
@ObjectTypeParams = ObjectTypeConfig.new
|
1186
|
+
@ObjectTypeParams.deserialize(params['ObjectTypeParams'])
|
1187
|
+
end
|
1188
|
+
unless params['ObjectTypeJsonParse'].nil?
|
1189
|
+
@ObjectTypeJsonParse = ObjectTypeJsonParse.new
|
1190
|
+
@ObjectTypeJsonParse.deserialize(params['ObjectTypeJsonParse'])
|
1191
|
+
end
|
1192
|
+
@ObjectHasNewAction = params['ObjectHasNewAction']
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
# 对象类型配置
|
1197
|
+
class ObjectTypeConfig < TencentCloud::Common::AbstractModel
|
1198
|
+
# @param Key: 主键
|
1199
|
+
# @type Key: String
|
1200
|
+
# @param Fields: 对象类型配置字段列表
|
1201
|
+
# @type Fields: Array
|
1202
|
+
|
1203
|
+
attr_accessor :Key, :Fields
|
1204
|
+
|
1205
|
+
def initialize(key=nil, fields=nil)
|
1206
|
+
@Key = key
|
1207
|
+
@Fields = fields
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
def deserialize(params)
|
1211
|
+
@Key = params['Key']
|
1212
|
+
unless params['Fields'].nil?
|
1213
|
+
@Fields = []
|
1214
|
+
params['Fields'].each do |i|
|
1215
|
+
objecttypeconfigfields_tmp = ObjectTypeConfigFields.new
|
1216
|
+
objecttypeconfigfields_tmp.deserialize(i)
|
1217
|
+
@Fields << objecttypeconfigfields_tmp
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
# 对象类型字段类型
|
1224
|
+
class ObjectTypeConfigFields < TencentCloud::Common::AbstractModel
|
1225
|
+
# @param Key: instanceId
|
1226
|
+
# @type Key: String
|
1227
|
+
# @param Header: 实例id
|
1228
|
+
# @type Header: String
|
1229
|
+
# @param Transfer: 字段值是否需要转译,当不需要转译时,此字段返回null
|
1230
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1231
|
+
# @type Transfer: String
|
1232
|
+
# @param JsonParse: tke的pod字段信息解析
|
1233
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1234
|
+
# @type JsonParse: String
|
1235
|
+
|
1236
|
+
attr_accessor :Key, :Header, :Transfer, :JsonParse
|
1237
|
+
|
1238
|
+
def initialize(key=nil, header=nil, transfer=nil, jsonparse=nil)
|
1239
|
+
@Key = key
|
1240
|
+
@Header = header
|
1241
|
+
@Transfer = transfer
|
1242
|
+
@JsonParse = jsonparse
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
def deserialize(params)
|
1246
|
+
@Key = params['Key']
|
1247
|
+
@Header = params['Header']
|
1248
|
+
@Transfer = params['Transfer']
|
1249
|
+
@JsonParse = params['JsonParse']
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
# 标准pod对象类型下拉数据的解析
|
1254
|
+
class ObjectTypeJsonParse < TencentCloud::Common::AbstractModel
|
1255
|
+
# @param NameSpace: 命名空间
|
1256
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1257
|
+
# @type NameSpace: String
|
1258
|
+
# @param WorkloadName: 工作负载名称
|
1259
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1260
|
+
# @type WorkloadName: String
|
1261
|
+
# @param LanIP: 节点IP
|
1262
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1263
|
+
# @type LanIP: String
|
1264
|
+
# @param InstanceId: 节点ID
|
1265
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1266
|
+
# @type InstanceId: String
|
1267
|
+
|
1268
|
+
attr_accessor :NameSpace, :WorkloadName, :LanIP, :InstanceId
|
1269
|
+
|
1270
|
+
def initialize(namespace=nil, workloadname=nil, lanip=nil, instanceid=nil)
|
1271
|
+
@NameSpace = namespace
|
1272
|
+
@WorkloadName = workloadname
|
1273
|
+
@LanIP = lanip
|
1274
|
+
@InstanceId = instanceid
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
def deserialize(params)
|
1278
|
+
@NameSpace = params['NameSpace']
|
1279
|
+
@WorkloadName = params['WorkloadName']
|
1280
|
+
@LanIP = params['LanIP']
|
1281
|
+
@InstanceId = params['InstanceId']
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
687
1285
|
# 护栏策略触发日志
|
688
1286
|
class PolicyTriggerLog < TencentCloud::Common::AbstractModel
|
689
1287
|
# @param TaskId: 演练ID
|
@@ -721,6 +1319,33 @@ module TencentCloud
|
|
721
1319
|
end
|
722
1320
|
end
|
723
1321
|
|
1322
|
+
# 资源下线
|
1323
|
+
class ResourceOffline < TencentCloud::Common::AbstractModel
|
1324
|
+
# @param ResourceId: 资源ID
|
1325
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1326
|
+
# @type ResourceId: Integer
|
1327
|
+
# @param ResourceDeleteTime: 资源下线时间
|
1328
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1329
|
+
# @type ResourceDeleteTime: String
|
1330
|
+
# @param ResourceDeleteMessage: 资源下线提示
|
1331
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1332
|
+
# @type ResourceDeleteMessage: String
|
1333
|
+
|
1334
|
+
attr_accessor :ResourceId, :ResourceDeleteTime, :ResourceDeleteMessage
|
1335
|
+
|
1336
|
+
def initialize(resourceid=nil, resourcedeletetime=nil, resourcedeletemessage=nil)
|
1337
|
+
@ResourceId = resourceid
|
1338
|
+
@ResourceDeleteTime = resourcedeletetime
|
1339
|
+
@ResourceDeleteMessage = resourcedeletemessage
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
def deserialize(params)
|
1343
|
+
@ResourceId = params['ResourceId']
|
1344
|
+
@ResourceDeleteTime = params['ResourceDeleteTime']
|
1345
|
+
@ResourceDeleteMessage = params['ResourceDeleteMessage']
|
1346
|
+
end
|
1347
|
+
end
|
1348
|
+
|
724
1349
|
# 用于传入创建、编辑标签
|
725
1350
|
class TagWithCreate < TencentCloud::Common::AbstractModel
|
726
1351
|
# @param TagKey: 标签键
|
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.875
|
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-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|