tencentcloud-sdk-mmps 1.0.329

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a83f4ab7bd1b26459b9968c4da99fb978fe42325
4
+ data.tar.gz: f66d502d733fb8db5877bf0889123d6015ac61bf
5
+ SHA512:
6
+ metadata.gz: 6ed3a1c290feabe383d88ced3b6f66845bf578e3545efcfb08a1dc5f51148e4964a86122416b95747fe206171d1b960c4d214c405b6a9ccc209c0d0eb62e79c7
7
+ data.tar.gz: f2a16879bc1ca18ef4570edd77b32c650a71ebabb4ad2bd5caa0a4573800bf9e766633ff0bf6be22df3dd13b938cf2f4808391a1be39d86ae32f9b27b600e36b
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.329
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20200710/client'
6
+ require_relative 'v20200710/models'
7
+
8
+ module TencentCloud
9
+ module Mmps
10
+ end
11
+ end
@@ -0,0 +1,300 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Mmps
21
+ module V20200710
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-07-10'
26
+ api_endpoint = 'mmps.tencentcloudapi.com'
27
+ sdk_version = 'MMPS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建小程序隐私合规诊断任务
33
+
34
+ # @param request: Request instance for CreateAppScanTask.
35
+ # @type request: :class:`Tencentcloud::mmps::V20200710::CreateAppScanTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::CreateAppScanTaskResponse`
37
+ def CreateAppScanTask(request)
38
+ body = send_request('CreateAppScanTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateAppScanTaskResponse.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
+
56
+ # 小程序隐私合规诊断重试任务
57
+
58
+ # @param request: Request instance for CreateAppScanTaskRepeat.
59
+ # @type request: :class:`Tencentcloud::mmps::V20200710::CreateAppScanTaskRepeatRequest`
60
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::CreateAppScanTaskRepeatResponse`
61
+ def CreateAppScanTaskRepeat(request)
62
+ body = send_request('CreateAppScanTaskRepeat', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateAppScanTaskRepeatResponse.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
+
80
+ # 创建小程序翼扬安全的基础或深度诊断任务
81
+
82
+ # @param request: Request instance for CreateFlySecMiniAppScanTask.
83
+ # @type request: :class:`Tencentcloud::mmps::V20200710::CreateFlySecMiniAppScanTaskRequest`
84
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::CreateFlySecMiniAppScanTaskResponse`
85
+ def CreateFlySecMiniAppScanTask(request)
86
+ body = send_request('CreateFlySecMiniAppScanTask', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateFlySecMiniAppScanTaskResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 重新提交基础诊断任务
105
+
106
+ # @param request: Request instance for CreateFlySecMiniAppScanTaskRepeat.
107
+ # @type request: :class:`Tencentcloud::mmps::V20200710::CreateFlySecMiniAppScanTaskRepeatRequest`
108
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::CreateFlySecMiniAppScanTaskRepeatResponse`
109
+ def CreateFlySecMiniAppScanTaskRepeat(request)
110
+ body = send_request('CreateFlySecMiniAppScanTaskRepeat', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateFlySecMiniAppScanTaskRepeatResponse.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 DescribeFlySecMiniAppReportUrl.
131
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppReportUrlRequest`
132
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppReportUrlResponse`
133
+ def DescribeFlySecMiniAppReportUrl(request)
134
+ body = send_request('DescribeFlySecMiniAppReportUrl', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeFlySecMiniAppReportUrlResponse.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 DescribeFlySecMiniAppScanTaskList.
155
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskListRequest`
156
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskListResponse`
157
+ def DescribeFlySecMiniAppScanTaskList(request)
158
+ body = send_request('DescribeFlySecMiniAppScanTaskList', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeFlySecMiniAppScanTaskListResponse.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
+
176
+ # 获取用户提交的基础诊断任务参数信息
177
+
178
+ # @param request: Request instance for DescribeFlySecMiniAppScanTaskParam.
179
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskParamRequest`
180
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskParamResponse`
181
+ def DescribeFlySecMiniAppScanTaskParam(request)
182
+ body = send_request('DescribeFlySecMiniAppScanTaskParam', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeFlySecMiniAppScanTaskParamResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 查询翼扬安全诊断任务状态
201
+
202
+ # @param request: Request instance for DescribeFlySecMiniAppScanTaskStatus.
203
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskStatusRequest`
204
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanTaskStatusResponse`
205
+ def DescribeFlySecMiniAppScanTaskStatus(request)
206
+ body = send_request('DescribeFlySecMiniAppScanTaskStatus', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeFlySecMiniAppScanTaskStatusResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 获取小程序隐私合规诊断任务列表
225
+
226
+ # @param request: Request instance for DescribeScanTaskList.
227
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskListRequest`
228
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskListResponse`
229
+ def DescribeScanTaskList(request)
230
+ body = send_request('DescribeScanTaskList', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeScanTaskListResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+ # 获取小程序合规诊断任务报告url
249
+
250
+ # @param request: Request instance for DescribeScanTaskReportUrl.
251
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskReportUrlRequest`
252
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskReportUrlResponse`
253
+ def DescribeScanTaskReportUrl(request)
254
+ body = send_request('DescribeScanTaskReportUrl', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DescribeScanTaskReportUrlResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+ # 查询小程序隐私合规诊断任务状态
273
+
274
+ # @param request: Request instance for DescribeScanTaskStatus.
275
+ # @type request: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskStatusRequest`
276
+ # @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeScanTaskStatusResponse`
277
+ def DescribeScanTaskStatus(request)
278
+ body = send_request('DescribeScanTaskStatus', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeScanTaskStatusResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+
297
+ end
298
+ end
299
+ end
300
+ end
@@ -0,0 +1,924 @@
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 Mmps
19
+ module V20200710
20
+ # 隐私合规应用信息
21
+ class AppInfoItem < TencentCloud::Common::AbstractModel
22
+ # @param AppPackage: 小程序apiiid
23
+ # @type AppPackage: String
24
+ # @param AppName: 小程序应用名称
25
+ # 注意:此字段可能返回 null,表示取不到有效值。
26
+ # @type AppName: String
27
+ # @param AppVersion: 小程序应用版本
28
+ # 注意:此字段可能返回 null,表示取不到有效值。
29
+ # @type AppVersion: String
30
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
31
+ # @type Platform: Integer
32
+ # @param ReportUrl: 小程序隐私诊断报告下载链接
33
+ # 注意:此字段可能返回 null,表示取不到有效值。
34
+ # @type ReportUrl: String
35
+ # @param ReportTitle: 小程序隐私诊断报告名称
36
+ # 注意:此字段可能返回 null,表示取不到有效值。
37
+ # @type ReportTitle: String
38
+ # @param BehaviorUrl: 小程序隐私诊断堆栈报告下载链接
39
+ # 注意:此字段可能返回 null,表示取不到有效值。
40
+ # @type BehaviorUrl: String
41
+ # @param BehaviorTitle: 小程序隐私诊断堆栈报告名称
42
+ # 注意:此字段可能返回 null,表示取不到有效值。
43
+ # @type BehaviorTitle: String
44
+
45
+ attr_accessor :AppPackage, :AppName, :AppVersion, :Platform, :ReportUrl, :ReportTitle, :BehaviorUrl, :BehaviorTitle
46
+
47
+ def initialize(apppackage=nil, appname=nil, appversion=nil, platform=nil, reporturl=nil, reporttitle=nil, behaviorurl=nil, behaviortitle=nil)
48
+ @AppPackage = apppackage
49
+ @AppName = appname
50
+ @AppVersion = appversion
51
+ @Platform = platform
52
+ @ReportUrl = reporturl
53
+ @ReportTitle = reporttitle
54
+ @BehaviorUrl = behaviorurl
55
+ @BehaviorTitle = behaviortitle
56
+ end
57
+
58
+ def deserialize(params)
59
+ @AppPackage = params['AppPackage']
60
+ @AppName = params['AppName']
61
+ @AppVersion = params['AppVersion']
62
+ @Platform = params['Platform']
63
+ @ReportUrl = params['ReportUrl']
64
+ @ReportTitle = params['ReportTitle']
65
+ @BehaviorUrl = params['BehaviorUrl']
66
+ @BehaviorTitle = params['BehaviorTitle']
67
+ end
68
+ end
69
+
70
+ # 应用隐私合规诊断任务数据
71
+ class AppTaskData < TencentCloud::Common::AbstractModel
72
+ # @param TaskID: 任务id
73
+ # @type TaskID: String
74
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
75
+ # @type TaskType: Integer
76
+ # @param TaskStatus: 0:默认值(待检测/待咨询), 1.检测中, 2:待评估, 3:评估中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
77
+ # @type TaskStatus: Integer
78
+ # @param TaskErrMsg: 错误信息
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type TaskErrMsg: String
81
+ # @param Source: 来源,0:默认值(私域), 1:灵犀, 2:灵鲲
82
+ # @type Source: Integer
83
+ # @param AppInfo: 应用信息
84
+ # @type AppInfo: :class:`Tencentcloud::Mmps.v20200710.models.AppInfoItem`
85
+ # @param StartTime: 任务启动时间
86
+ # @type StartTime: String
87
+ # @param EndTime: 任务完成时间(更新时间)
88
+ # @type EndTime: String
89
+
90
+ attr_accessor :TaskID, :TaskType, :TaskStatus, :TaskErrMsg, :Source, :AppInfo, :StartTime, :EndTime
91
+
92
+ def initialize(taskid=nil, tasktype=nil, taskstatus=nil, taskerrmsg=nil, source=nil, appinfo=nil, starttime=nil, endtime=nil)
93
+ @TaskID = taskid
94
+ @TaskType = tasktype
95
+ @TaskStatus = taskstatus
96
+ @TaskErrMsg = taskerrmsg
97
+ @Source = source
98
+ @AppInfo = appinfo
99
+ @StartTime = starttime
100
+ @EndTime = endtime
101
+ end
102
+
103
+ def deserialize(params)
104
+ @TaskID = params['TaskID']
105
+ @TaskType = params['TaskType']
106
+ @TaskStatus = params['TaskStatus']
107
+ @TaskErrMsg = params['TaskErrMsg']
108
+ @Source = params['Source']
109
+ unless params['AppInfo'].nil?
110
+ @AppInfo = AppInfoItem.new
111
+ @AppInfo.deserialize(params['AppInfo'])
112
+ end
113
+ @StartTime = params['StartTime']
114
+ @EndTime = params['EndTime']
115
+ end
116
+ end
117
+
118
+ # CreateAppScanTaskRepeat请求参数结构体
119
+ class CreateAppScanTaskRepeatRequest < TencentCloud::Common::AbstractModel
120
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
121
+ # @type TaskType: Integer
122
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
123
+ # @type Source: Integer
124
+ # @param AppPackage: 小程序AppID
125
+ # @type AppPackage: String
126
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
127
+ # @type Platform: Integer
128
+ # @param OrgTaskID: 原诊断任务ID
129
+ # @type OrgTaskID: String
130
+
131
+ attr_accessor :TaskType, :Source, :AppPackage, :Platform, :OrgTaskID
132
+
133
+ def initialize(tasktype=nil, source=nil, apppackage=nil, platform=nil, orgtaskid=nil)
134
+ @TaskType = tasktype
135
+ @Source = source
136
+ @AppPackage = apppackage
137
+ @Platform = platform
138
+ @OrgTaskID = orgtaskid
139
+ end
140
+
141
+ def deserialize(params)
142
+ @TaskType = params['TaskType']
143
+ @Source = params['Source']
144
+ @AppPackage = params['AppPackage']
145
+ @Platform = params['Platform']
146
+ @OrgTaskID = params['OrgTaskID']
147
+ end
148
+ end
149
+
150
+ # CreateAppScanTaskRepeat返回参数结构体
151
+ class CreateAppScanTaskRepeatResponse < TencentCloud::Common::AbstractModel
152
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
153
+ # @type Result: Integer
154
+ # @param TaskID: 任务id
155
+ # @type TaskID: String
156
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
157
+ # @type RequestId: String
158
+
159
+ attr_accessor :Result, :TaskID, :RequestId
160
+
161
+ def initialize(result=nil, taskid=nil, requestid=nil)
162
+ @Result = result
163
+ @TaskID = taskid
164
+ @RequestId = requestid
165
+ end
166
+
167
+ def deserialize(params)
168
+ @Result = params['Result']
169
+ @TaskID = params['TaskID']
170
+ @RequestId = params['RequestId']
171
+ end
172
+ end
173
+
174
+ # CreateAppScanTask请求参数结构体
175
+ class CreateAppScanTaskRequest < TencentCloud::Common::AbstractModel
176
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
177
+ # @type TaskType: Integer
178
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
179
+ # @type Source: Integer
180
+ # @param AppPackage: 小程序AppID
181
+ # @type AppPackage: String
182
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
183
+ # @type Platform: Integer
184
+ # @param AppName: 小程序名称
185
+ # @type AppName: String
186
+ # @param AppVersion: 小程序版本
187
+ # @type AppVersion: String
188
+ # @param ContactName: 联系人信息
189
+ # @type ContactName: String
190
+ # @param TelNumber: 联系电话
191
+ # @type TelNumber: String
192
+ # @param CorpName: 公司名称
193
+ # @type CorpName: String
194
+ # @param SalesPerson: 商务对接人员
195
+ # @type SalesPerson: String
196
+ # @param Email: 公司邮箱
197
+ # @type Email: String
198
+
199
+ attr_accessor :TaskType, :Source, :AppPackage, :Platform, :AppName, :AppVersion, :ContactName, :TelNumber, :CorpName, :SalesPerson, :Email
200
+
201
+ def initialize(tasktype=nil, source=nil, apppackage=nil, platform=nil, appname=nil, appversion=nil, contactname=nil, telnumber=nil, corpname=nil, salesperson=nil, email=nil)
202
+ @TaskType = tasktype
203
+ @Source = source
204
+ @AppPackage = apppackage
205
+ @Platform = platform
206
+ @AppName = appname
207
+ @AppVersion = appversion
208
+ @ContactName = contactname
209
+ @TelNumber = telnumber
210
+ @CorpName = corpname
211
+ @SalesPerson = salesperson
212
+ @Email = email
213
+ end
214
+
215
+ def deserialize(params)
216
+ @TaskType = params['TaskType']
217
+ @Source = params['Source']
218
+ @AppPackage = params['AppPackage']
219
+ @Platform = params['Platform']
220
+ @AppName = params['AppName']
221
+ @AppVersion = params['AppVersion']
222
+ @ContactName = params['ContactName']
223
+ @TelNumber = params['TelNumber']
224
+ @CorpName = params['CorpName']
225
+ @SalesPerson = params['SalesPerson']
226
+ @Email = params['Email']
227
+ end
228
+ end
229
+
230
+ # CreateAppScanTask返回参数结构体
231
+ class CreateAppScanTaskResponse < TencentCloud::Common::AbstractModel
232
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
233
+ # @type Result: Integer
234
+ # @param TaskID: 任务id
235
+ # @type TaskID: String
236
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
237
+ # @type RequestId: String
238
+
239
+ attr_accessor :Result, :TaskID, :RequestId
240
+
241
+ def initialize(result=nil, taskid=nil, requestid=nil)
242
+ @Result = result
243
+ @TaskID = taskid
244
+ @RequestId = requestid
245
+ end
246
+
247
+ def deserialize(params)
248
+ @Result = params['Result']
249
+ @TaskID = params['TaskID']
250
+ @RequestId = params['RequestId']
251
+ end
252
+ end
253
+
254
+ # CreateFlySecMiniAppScanTaskRepeat请求参数结构体
255
+ class CreateFlySecMiniAppScanTaskRepeatRequest < TencentCloud::Common::AbstractModel
256
+ # @param MiniAppID: 小程序AppID
257
+ # @type MiniAppID: String
258
+ # @param Mode: 诊断模式 1:基础诊断,2:深度诊断
259
+ # @type Mode: Integer
260
+ # @param OrgTaskID: 原任务id
261
+ # @type OrgTaskID: String
262
+ # @param MiniAppTestAccount: 小程序测试账号(自有账号体系需提供,其他情况不需要)
263
+ # @type MiniAppTestAccount: String
264
+ # @param MiniAppTestPwd: 小程序测试密码(自有账号体系需提供,其他情况不需要)
265
+ # @type MiniAppTestPwd: String
266
+ # @param ScanVersion: 诊断扫描版本 0:正式版 1:体验版
267
+ # @type ScanVersion: Integer
268
+
269
+ attr_accessor :MiniAppID, :Mode, :OrgTaskID, :MiniAppTestAccount, :MiniAppTestPwd, :ScanVersion
270
+
271
+ def initialize(miniappid=nil, mode=nil, orgtaskid=nil, miniapptestaccount=nil, miniapptestpwd=nil, scanversion=nil)
272
+ @MiniAppID = miniappid
273
+ @Mode = mode
274
+ @OrgTaskID = orgtaskid
275
+ @MiniAppTestAccount = miniapptestaccount
276
+ @MiniAppTestPwd = miniapptestpwd
277
+ @ScanVersion = scanversion
278
+ end
279
+
280
+ def deserialize(params)
281
+ @MiniAppID = params['MiniAppID']
282
+ @Mode = params['Mode']
283
+ @OrgTaskID = params['OrgTaskID']
284
+ @MiniAppTestAccount = params['MiniAppTestAccount']
285
+ @MiniAppTestPwd = params['MiniAppTestPwd']
286
+ @ScanVersion = params['ScanVersion']
287
+ end
288
+ end
289
+
290
+ # CreateFlySecMiniAppScanTaskRepeat返回参数结构体
291
+ class CreateFlySecMiniAppScanTaskRepeatResponse < TencentCloud::Common::AbstractModel
292
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
293
+ # @type Ret: Integer
294
+ # @param TaskID: 任务id
295
+ # @type TaskID: String
296
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
297
+ # @type RequestId: String
298
+
299
+ attr_accessor :Ret, :TaskID, :RequestId
300
+
301
+ def initialize(ret=nil, taskid=nil, requestid=nil)
302
+ @Ret = ret
303
+ @TaskID = taskid
304
+ @RequestId = requestid
305
+ end
306
+
307
+ def deserialize(params)
308
+ @Ret = params['Ret']
309
+ @TaskID = params['TaskID']
310
+ @RequestId = params['RequestId']
311
+ end
312
+ end
313
+
314
+ # CreateFlySecMiniAppScanTask请求参数结构体
315
+ class CreateFlySecMiniAppScanTaskRequest < TencentCloud::Common::AbstractModel
316
+ # @param MiniAppID: 小程序AppID
317
+ # @type MiniAppID: String
318
+ # @param Mode: 诊断模式 1:基础诊断,2:深度诊断
319
+ # @type Mode: Integer
320
+ # @param MiniAppTestAccount: 小程序测试账号(自有账号体系需提供,其他情况不需要)
321
+ # @type MiniAppTestAccount: String
322
+ # @param MiniAppTestPwd: 小程序测试密码(自有账号体系需提供,其他情况不需要)
323
+ # @type MiniAppTestPwd: String
324
+ # @param Industry: 小程序所属行业
325
+ # @type Industry: String
326
+ # @param SurveyContent: 小程序调查问卷json字符串
327
+ # @type SurveyContent: String
328
+ # @param Mobile: 手机号码
329
+ # @type Mobile: String
330
+ # @param Email: 邮箱地址
331
+ # @type Email: String
332
+ # @param SalesPerson: 商务合作接口人
333
+ # @type SalesPerson: String
334
+ # @param ScanVersion: 诊断扫描版本 0:正式版 1:体验版
335
+ # @type ScanVersion: Integer
336
+
337
+ attr_accessor :MiniAppID, :Mode, :MiniAppTestAccount, :MiniAppTestPwd, :Industry, :SurveyContent, :Mobile, :Email, :SalesPerson, :ScanVersion
338
+
339
+ def initialize(miniappid=nil, mode=nil, miniapptestaccount=nil, miniapptestpwd=nil, industry=nil, surveycontent=nil, mobile=nil, email=nil, salesperson=nil, scanversion=nil)
340
+ @MiniAppID = miniappid
341
+ @Mode = mode
342
+ @MiniAppTestAccount = miniapptestaccount
343
+ @MiniAppTestPwd = miniapptestpwd
344
+ @Industry = industry
345
+ @SurveyContent = surveycontent
346
+ @Mobile = mobile
347
+ @Email = email
348
+ @SalesPerson = salesperson
349
+ @ScanVersion = scanversion
350
+ end
351
+
352
+ def deserialize(params)
353
+ @MiniAppID = params['MiniAppID']
354
+ @Mode = params['Mode']
355
+ @MiniAppTestAccount = params['MiniAppTestAccount']
356
+ @MiniAppTestPwd = params['MiniAppTestPwd']
357
+ @Industry = params['Industry']
358
+ @SurveyContent = params['SurveyContent']
359
+ @Mobile = params['Mobile']
360
+ @Email = params['Email']
361
+ @SalesPerson = params['SalesPerson']
362
+ @ScanVersion = params['ScanVersion']
363
+ end
364
+ end
365
+
366
+ # CreateFlySecMiniAppScanTask返回参数结构体
367
+ class CreateFlySecMiniAppScanTaskResponse < TencentCloud::Common::AbstractModel
368
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
369
+ # @type Ret: Integer
370
+ # @param TaskID: 任务id
371
+ # @type TaskID: String
372
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
373
+ # @type RequestId: String
374
+
375
+ attr_accessor :Ret, :TaskID, :RequestId
376
+
377
+ def initialize(ret=nil, taskid=nil, requestid=nil)
378
+ @Ret = ret
379
+ @TaskID = taskid
380
+ @RequestId = requestid
381
+ end
382
+
383
+ def deserialize(params)
384
+ @Ret = params['Ret']
385
+ @TaskID = params['TaskID']
386
+ @RequestId = params['RequestId']
387
+ end
388
+ end
389
+
390
+ # DescribeFlySecMiniAppReportUrl请求参数结构体
391
+ class DescribeFlySecMiniAppReportUrlRequest < TencentCloud::Common::AbstractModel
392
+ # @param TaskID: 任务id
393
+ # @type TaskID: String
394
+ # @param MiniAppID: 小程序appid
395
+ # @type MiniAppID: String
396
+ # @param Mode: 诊断方式 1:基础诊断,2:深度诊断
397
+ # @type Mode: Integer
398
+ # @param ReportType: 诊断报告类型 0:基础诊断报告, 1:总裁版诊断报告
399
+ # @type ReportType: Integer
400
+
401
+ attr_accessor :TaskID, :MiniAppID, :Mode, :ReportType
402
+
403
+ def initialize(taskid=nil, miniappid=nil, mode=nil, reporttype=nil)
404
+ @TaskID = taskid
405
+ @MiniAppID = miniappid
406
+ @Mode = mode
407
+ @ReportType = reporttype
408
+ end
409
+
410
+ def deserialize(params)
411
+ @TaskID = params['TaskID']
412
+ @MiniAppID = params['MiniAppID']
413
+ @Mode = params['Mode']
414
+ @ReportType = params['ReportType']
415
+ end
416
+ end
417
+
418
+ # DescribeFlySecMiniAppReportUrl返回参数结构体
419
+ class DescribeFlySecMiniAppReportUrlResponse < TencentCloud::Common::AbstractModel
420
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
421
+ # @type Ret: Integer
422
+ # @param Url: 诊断报告下载链接
423
+ # 注意:此字段可能返回 null,表示取不到有效值。
424
+ # @type Url: String
425
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
426
+ # @type RequestId: String
427
+
428
+ attr_accessor :Ret, :Url, :RequestId
429
+
430
+ def initialize(ret=nil, url=nil, requestid=nil)
431
+ @Ret = ret
432
+ @Url = url
433
+ @RequestId = requestid
434
+ end
435
+
436
+ def deserialize(params)
437
+ @Ret = params['Ret']
438
+ @Url = params['Url']
439
+ @RequestId = params['RequestId']
440
+ end
441
+ end
442
+
443
+ # DescribeFlySecMiniAppScanTaskList请求参数结构体
444
+ class DescribeFlySecMiniAppScanTaskListRequest < TencentCloud::Common::AbstractModel
445
+ # @param Mode: 诊断方式 1:基础诊断,2:深度诊断
446
+ # @type Mode: Integer
447
+ # @param Status: 诊断状态 -1:查询全部, 0:排队中, 1:成功, 2:失败, 3:进行中
448
+ # @type Status: Integer
449
+ # @param Size: 查询数量, 0:查询所有, 其他值:最近几次的诊断数量
450
+ # @type Size: Integer
451
+ # @param MiniAppID: 小程序appid(为空的时候,则查询当前用户诊断的所有小程序)
452
+ # @type MiniAppID: String
453
+
454
+ attr_accessor :Mode, :Status, :Size, :MiniAppID
455
+
456
+ def initialize(mode=nil, status=nil, size=nil, miniappid=nil)
457
+ @Mode = mode
458
+ @Status = status
459
+ @Size = size
460
+ @MiniAppID = miniappid
461
+ end
462
+
463
+ def deserialize(params)
464
+ @Mode = params['Mode']
465
+ @Status = params['Status']
466
+ @Size = params['Size']
467
+ @MiniAppID = params['MiniAppID']
468
+ end
469
+ end
470
+
471
+ # DescribeFlySecMiniAppScanTaskList返回参数结构体
472
+ class DescribeFlySecMiniAppScanTaskListResponse < TencentCloud::Common::AbstractModel
473
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
474
+ # @type Ret: Integer
475
+ # @param Data: 诊断任务数据列表
476
+ # 注意:此字段可能返回 null,表示取不到有效值。
477
+ # @type Data: Array
478
+ # @param Total: 诊断任务数
479
+ # 注意:此字段可能返回 null,表示取不到有效值。
480
+ # @type Total: Integer
481
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
482
+ # @type RequestId: String
483
+
484
+ attr_accessor :Ret, :Data, :Total, :RequestId
485
+
486
+ def initialize(ret=nil, data=nil, total=nil, requestid=nil)
487
+ @Ret = ret
488
+ @Data = data
489
+ @Total = total
490
+ @RequestId = requestid
491
+ end
492
+
493
+ def deserialize(params)
494
+ @Ret = params['Ret']
495
+ unless params['Data'].nil?
496
+ @Data = []
497
+ params['Data'].each do |i|
498
+ flysecminiapptaskdata_tmp = FlySecMiniAppTaskData.new
499
+ flysecminiapptaskdata_tmp.deserialize(i)
500
+ @Data << flysecminiapptaskdata_tmp
501
+ end
502
+ end
503
+ @Total = params['Total']
504
+ @RequestId = params['RequestId']
505
+ end
506
+ end
507
+
508
+ # DescribeFlySecMiniAppScanTaskParam请求参数结构体
509
+ class DescribeFlySecMiniAppScanTaskParamRequest < TencentCloud::Common::AbstractModel
510
+ # @param TaskID: 任务id
511
+ # @type TaskID: String
512
+
513
+ attr_accessor :TaskID
514
+
515
+ def initialize(taskid=nil)
516
+ @TaskID = taskid
517
+ end
518
+
519
+ def deserialize(params)
520
+ @TaskID = params['TaskID']
521
+ end
522
+ end
523
+
524
+ # DescribeFlySecMiniAppScanTaskParam返回参数结构体
525
+ class DescribeFlySecMiniAppScanTaskParamResponse < TencentCloud::Common::AbstractModel
526
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
527
+ # @type Ret: Integer
528
+ # @param MiniAppID: 小程序AppID
529
+ # @type MiniAppID: String
530
+ # @param Mode: 诊断模式 1:基础诊断,2:深度诊断
531
+ # @type Mode: Integer
532
+ # @param MiniAppTestAccount: 小程序测试账号(自有账号体系需提供,其他情况不需要)
533
+ # 注意:此字段可能返回 null,表示取不到有效值。
534
+ # @type MiniAppTestAccount: String
535
+ # @param MiniAppTestPwd: 小程序测试密码(自有账号体系需提供,其他情况不需要)
536
+ # 注意:此字段可能返回 null,表示取不到有效值。
537
+ # @type MiniAppTestPwd: String
538
+ # @param ScanVersion: 诊断扫描版本 0:正式版 1:体验版
539
+ # 注意:此字段可能返回 null,表示取不到有效值。
540
+ # @type ScanVersion: Integer
541
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
542
+ # @type RequestId: String
543
+
544
+ attr_accessor :Ret, :MiniAppID, :Mode, :MiniAppTestAccount, :MiniAppTestPwd, :ScanVersion, :RequestId
545
+
546
+ def initialize(ret=nil, miniappid=nil, mode=nil, miniapptestaccount=nil, miniapptestpwd=nil, scanversion=nil, requestid=nil)
547
+ @Ret = ret
548
+ @MiniAppID = miniappid
549
+ @Mode = mode
550
+ @MiniAppTestAccount = miniapptestaccount
551
+ @MiniAppTestPwd = miniapptestpwd
552
+ @ScanVersion = scanversion
553
+ @RequestId = requestid
554
+ end
555
+
556
+ def deserialize(params)
557
+ @Ret = params['Ret']
558
+ @MiniAppID = params['MiniAppID']
559
+ @Mode = params['Mode']
560
+ @MiniAppTestAccount = params['MiniAppTestAccount']
561
+ @MiniAppTestPwd = params['MiniAppTestPwd']
562
+ @ScanVersion = params['ScanVersion']
563
+ @RequestId = params['RequestId']
564
+ end
565
+ end
566
+
567
+ # DescribeFlySecMiniAppScanTaskStatus请求参数结构体
568
+ class DescribeFlySecMiniAppScanTaskStatusRequest < TencentCloud::Common::AbstractModel
569
+ # @param TaskID: 任务id
570
+ # @type TaskID: String
571
+
572
+ attr_accessor :TaskID
573
+
574
+ def initialize(taskid=nil)
575
+ @TaskID = taskid
576
+ end
577
+
578
+ def deserialize(params)
579
+ @TaskID = params['TaskID']
580
+ end
581
+ end
582
+
583
+ # DescribeFlySecMiniAppScanTaskStatus返回参数结构体
584
+ class DescribeFlySecMiniAppScanTaskStatusResponse < TencentCloud::Common::AbstractModel
585
+ # @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
586
+ # @type Ret: Integer
587
+ # @param Status: 诊断状态, 0:排队中, 1:成功, 2:失败, 3:进行中
588
+ # @type Status: Integer
589
+ # @param Errno: 诊断失败错误码
590
+ # 注意:此字段可能返回 null,表示取不到有效值。
591
+ # @type Errno: Integer
592
+ # @param MiniAppName: 小程序名称
593
+ # 注意:此字段可能返回 null,表示取不到有效值。
594
+ # @type MiniAppName: String
595
+ # @param MiniAppVersion: 小程序版本
596
+ # 注意:此字段可能返回 null,表示取不到有效值。
597
+ # @type MiniAppVersion: String
598
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
599
+ # @type RequestId: String
600
+
601
+ attr_accessor :Ret, :Status, :Errno, :MiniAppName, :MiniAppVersion, :RequestId
602
+
603
+ def initialize(ret=nil, status=nil, errno=nil, miniappname=nil, miniappversion=nil, requestid=nil)
604
+ @Ret = ret
605
+ @Status = status
606
+ @Errno = errno
607
+ @MiniAppName = miniappname
608
+ @MiniAppVersion = miniappversion
609
+ @RequestId = requestid
610
+ end
611
+
612
+ def deserialize(params)
613
+ @Ret = params['Ret']
614
+ @Status = params['Status']
615
+ @Errno = params['Errno']
616
+ @MiniAppName = params['MiniAppName']
617
+ @MiniAppVersion = params['MiniAppVersion']
618
+ @RequestId = params['RequestId']
619
+ end
620
+ end
621
+
622
+ # DescribeScanTaskList请求参数结构体
623
+ class DescribeScanTaskListRequest < TencentCloud::Common::AbstractModel
624
+ # @param Source: 任务来源, -1:所有, 0:默认值(私域), 1:灵犀, 2:灵鲲;
625
+ # @type Source: Integer
626
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
627
+ # @type Platform: Integer
628
+ # @param TaskStatuses: 任务状态,可多值查询,比如:"1,2,3" 0:默认值(待检测/待咨询), 1.检测中, 2:待评估, 3:评估中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
629
+ # @type TaskStatuses: String
630
+ # @param TaskTypes: 任务类型,可多值查询,采用逗号分隔,比如:"0,1" 0:基础版, 1:专家版, 2:本地化
631
+ # @type TaskTypes: String
632
+ # @param PageNo: 页码
633
+ # @type PageNo: Integer
634
+ # @param PageSize: 页码大小
635
+ # @type PageSize: Integer
636
+ # @param AppName: 应用名称或小程序名称(可选参数)
637
+ # @type AppName: String
638
+ # @param StartTime: 查询时间范围, 查询开始时间(2021-09-30 或 2021-09-30 10:57:34)
639
+ # @type StartTime: String
640
+ # @param EndTime: 查询时间范围, 查询结束时间(2021-09-30 或 2021-09-30 10:57:34)
641
+ # @type EndTime: String
642
+
643
+ attr_accessor :Source, :Platform, :TaskStatuses, :TaskTypes, :PageNo, :PageSize, :AppName, :StartTime, :EndTime
644
+
645
+ def initialize(source=nil, platform=nil, taskstatuses=nil, tasktypes=nil, pageno=nil, pagesize=nil, appname=nil, starttime=nil, endtime=nil)
646
+ @Source = source
647
+ @Platform = platform
648
+ @TaskStatuses = taskstatuses
649
+ @TaskTypes = tasktypes
650
+ @PageNo = pageno
651
+ @PageSize = pagesize
652
+ @AppName = appname
653
+ @StartTime = starttime
654
+ @EndTime = endtime
655
+ end
656
+
657
+ def deserialize(params)
658
+ @Source = params['Source']
659
+ @Platform = params['Platform']
660
+ @TaskStatuses = params['TaskStatuses']
661
+ @TaskTypes = params['TaskTypes']
662
+ @PageNo = params['PageNo']
663
+ @PageSize = params['PageSize']
664
+ @AppName = params['AppName']
665
+ @StartTime = params['StartTime']
666
+ @EndTime = params['EndTime']
667
+ end
668
+ end
669
+
670
+ # DescribeScanTaskList返回参数结构体
671
+ class DescribeScanTaskListResponse < TencentCloud::Common::AbstractModel
672
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
673
+ # @type Result: Integer
674
+ # @param Data: 诊断任务数据列表
675
+ # 注意:此字段可能返回 null,表示取不到有效值。
676
+ # @type Data: Array
677
+ # @param Total: 任务总数量
678
+ # 注意:此字段可能返回 null,表示取不到有效值。
679
+ # @type Total: Integer
680
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
681
+ # @type RequestId: String
682
+
683
+ attr_accessor :Result, :Data, :Total, :RequestId
684
+
685
+ def initialize(result=nil, data=nil, total=nil, requestid=nil)
686
+ @Result = result
687
+ @Data = data
688
+ @Total = total
689
+ @RequestId = requestid
690
+ end
691
+
692
+ def deserialize(params)
693
+ @Result = params['Result']
694
+ unless params['Data'].nil?
695
+ @Data = []
696
+ params['Data'].each do |i|
697
+ apptaskdata_tmp = AppTaskData.new
698
+ apptaskdata_tmp.deserialize(i)
699
+ @Data << apptaskdata_tmp
700
+ end
701
+ end
702
+ @Total = params['Total']
703
+ @RequestId = params['RequestId']
704
+ end
705
+ end
706
+
707
+ # DescribeScanTaskReportUrl请求参数结构体
708
+ class DescribeScanTaskReportUrlRequest < TencentCloud::Common::AbstractModel
709
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
710
+ # @type Source: Integer
711
+ # @param TaskID: 任务id
712
+ # @type TaskID: String
713
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
714
+ # @type Platform: Integer
715
+ # @param ReportType: 报告类型, 0:诊断报告, 1:堆栈报告
716
+ # @type ReportType: Integer
717
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
718
+ # @type TaskType: Integer
719
+
720
+ attr_accessor :Source, :TaskID, :Platform, :ReportType, :TaskType
721
+
722
+ def initialize(source=nil, taskid=nil, platform=nil, reporttype=nil, tasktype=nil)
723
+ @Source = source
724
+ @TaskID = taskid
725
+ @Platform = platform
726
+ @ReportType = reporttype
727
+ @TaskType = tasktype
728
+ end
729
+
730
+ def deserialize(params)
731
+ @Source = params['Source']
732
+ @TaskID = params['TaskID']
733
+ @Platform = params['Platform']
734
+ @ReportType = params['ReportType']
735
+ @TaskType = params['TaskType']
736
+ end
737
+ end
738
+
739
+ # DescribeScanTaskReportUrl返回参数结构体
740
+ class DescribeScanTaskReportUrlResponse < TencentCloud::Common::AbstractModel
741
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
742
+ # @type Result: Integer
743
+ # @param ReportUrl: 诊断报告/堆栈信息下载链接
744
+ # @type ReportUrl: String
745
+ # @param ReportTitle: 诊断报告/堆栈名称
746
+ # 注意:此字段可能返回 null,表示取不到有效值。
747
+ # @type ReportTitle: String
748
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
749
+ # @type RequestId: String
750
+
751
+ attr_accessor :Result, :ReportUrl, :ReportTitle, :RequestId
752
+
753
+ def initialize(result=nil, reporturl=nil, reporttitle=nil, requestid=nil)
754
+ @Result = result
755
+ @ReportUrl = reporturl
756
+ @ReportTitle = reporttitle
757
+ @RequestId = requestid
758
+ end
759
+
760
+ def deserialize(params)
761
+ @Result = params['Result']
762
+ @ReportUrl = params['ReportUrl']
763
+ @ReportTitle = params['ReportTitle']
764
+ @RequestId = params['RequestId']
765
+ end
766
+ end
767
+
768
+ # DescribeScanTaskStatus请求参数结构体
769
+ class DescribeScanTaskStatusRequest < TencentCloud::Common::AbstractModel
770
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
771
+ # @type TaskType: Integer
772
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
773
+ # @type Source: Integer
774
+ # @param TaskID: 任务id
775
+ # @type TaskID: String
776
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
777
+ # @type Platform: Integer
778
+
779
+ attr_accessor :TaskType, :Source, :TaskID, :Platform
780
+
781
+ def initialize(tasktype=nil, source=nil, taskid=nil, platform=nil)
782
+ @TaskType = tasktype
783
+ @Source = source
784
+ @TaskID = taskid
785
+ @Platform = platform
786
+ end
787
+
788
+ def deserialize(params)
789
+ @TaskType = params['TaskType']
790
+ @Source = params['Source']
791
+ @TaskID = params['TaskID']
792
+ @Platform = params['Platform']
793
+ end
794
+ end
795
+
796
+ # DescribeScanTaskStatus返回参数结构体
797
+ class DescribeScanTaskStatusResponse < TencentCloud::Common::AbstractModel
798
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
799
+ # @type Result: Integer
800
+ # @param Status: 0:默认值(待检测/待咨询), 1.检测中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
801
+ # @type Status: Integer
802
+ # @param ErrMsg: 诊断失败的错误信息
803
+ # 注意:此字段可能返回 null,表示取不到有效值。
804
+ # @type ErrMsg: String
805
+ # @param FlowSteps: 任务流详情
806
+ # 注意:此字段可能返回 null,表示取不到有效值。
807
+ # @type FlowSteps: Array
808
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
809
+ # @type RequestId: String
810
+
811
+ attr_accessor :Result, :Status, :ErrMsg, :FlowSteps, :RequestId
812
+
813
+ def initialize(result=nil, status=nil, errmsg=nil, flowsteps=nil, requestid=nil)
814
+ @Result = result
815
+ @Status = status
816
+ @ErrMsg = errmsg
817
+ @FlowSteps = flowsteps
818
+ @RequestId = requestid
819
+ end
820
+
821
+ def deserialize(params)
822
+ @Result = params['Result']
823
+ @Status = params['Status']
824
+ @ErrMsg = params['ErrMsg']
825
+ unless params['FlowSteps'].nil?
826
+ @FlowSteps = []
827
+ params['FlowSteps'].each do |i|
828
+ taskflowstepsinfo_tmp = TaskFlowStepsInfo.new
829
+ taskflowstepsinfo_tmp.deserialize(i)
830
+ @FlowSteps << taskflowstepsinfo_tmp
831
+ end
832
+ end
833
+ @RequestId = params['RequestId']
834
+ end
835
+ end
836
+
837
+ # 翼扬诊断小程序任务数据
838
+ class FlySecMiniAppTaskData < TencentCloud::Common::AbstractModel
839
+ # @param TaskID: 任务id
840
+ # @type TaskID: String
841
+ # @param MiniAppID: 小程序appid
842
+ # @type MiniAppID: String
843
+ # @param MiniAppName: 小程序名称
844
+ # @type MiniAppName: String
845
+ # @param MiniAppVersion: 小程序版本
846
+ # @type MiniAppVersion: String
847
+ # @param Mode: 诊断模式 1:基础诊断,2:深度诊断
848
+ # @type Mode: Integer
849
+ # @param CreateTime: 诊断时间
850
+ # @type CreateTime: Integer
851
+ # @param Status: 诊断状态, 0:排队中, 1:成功, 2:失败, 3:进行中
852
+ # @type Status: Integer
853
+ # @param Error: 诊断失败错误码
854
+ # @type Error: Integer
855
+
856
+ attr_accessor :TaskID, :MiniAppID, :MiniAppName, :MiniAppVersion, :Mode, :CreateTime, :Status, :Error
857
+
858
+ def initialize(taskid=nil, miniappid=nil, miniappname=nil, miniappversion=nil, mode=nil, createtime=nil, status=nil, error=nil)
859
+ @TaskID = taskid
860
+ @MiniAppID = miniappid
861
+ @MiniAppName = miniappname
862
+ @MiniAppVersion = miniappversion
863
+ @Mode = mode
864
+ @CreateTime = createtime
865
+ @Status = status
866
+ @Error = error
867
+ end
868
+
869
+ def deserialize(params)
870
+ @TaskID = params['TaskID']
871
+ @MiniAppID = params['MiniAppID']
872
+ @MiniAppName = params['MiniAppName']
873
+ @MiniAppVersion = params['MiniAppVersion']
874
+ @Mode = params['Mode']
875
+ @CreateTime = params['CreateTime']
876
+ @Status = params['Status']
877
+ @Error = params['Error']
878
+ end
879
+ end
880
+
881
+ # 任务流步骤详情
882
+ class TaskFlowStepsInfo < TencentCloud::Common::AbstractModel
883
+ # @param FlowNo: 流程编号
884
+ # 注意:此字段可能返回 null,表示取不到有效值。
885
+ # @type FlowNo: String
886
+ # @param FlowName: 流程名称
887
+ # @type FlowName: String
888
+ # @param FlowStatus: 流程状态, 其他值:进行中, 2:成功, 3:失败
889
+ # @type FlowStatus: Integer
890
+ # @param FlowStateDesc: 流程状态描述
891
+ # 注意:此字段可能返回 null,表示取不到有效值。
892
+ # @type FlowStateDesc: String
893
+ # @param StartTime: 流程启动时间
894
+ # 注意:此字段可能返回 null,表示取不到有效值。
895
+ # @type StartTime: String
896
+ # @param EndTime: 流程完成时间
897
+ # 注意:此字段可能返回 null,表示取不到有效值。
898
+ # @type EndTime: String
899
+
900
+ attr_accessor :FlowNo, :FlowName, :FlowStatus, :FlowStateDesc, :StartTime, :EndTime
901
+
902
+ def initialize(flowno=nil, flowname=nil, flowstatus=nil, flowstatedesc=nil, starttime=nil, endtime=nil)
903
+ @FlowNo = flowno
904
+ @FlowName = flowname
905
+ @FlowStatus = flowstatus
906
+ @FlowStateDesc = flowstatedesc
907
+ @StartTime = starttime
908
+ @EndTime = endtime
909
+ end
910
+
911
+ def deserialize(params)
912
+ @FlowNo = params['FlowNo']
913
+ @FlowName = params['FlowName']
914
+ @FlowStatus = params['FlowStatus']
915
+ @FlowStateDesc = params['FlowStateDesc']
916
+ @StartTime = params['StartTime']
917
+ @EndTime = params['EndTime']
918
+ end
919
+ end
920
+
921
+ end
922
+ end
923
+ end
924
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-mmps
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.329
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ MMPS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-mmps.rb
38
+ - lib/v20200710/client.rb
39
+ - lib/v20200710/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-mmps
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - MMPS
66
+ test_files: []