tencentcloud-sdk-acp 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: 761023f0bf2914bfb89aa48a75aaea6167dcf020
4
+ data.tar.gz: 2e2a0819bcf76f733ae3aef4eaf743bb8c92dbb8
5
+ SHA512:
6
+ metadata.gz: 74b902abccb9eabf5627ba9f7ff30bea2ae0a4baa7d4d938022b06674aa6778e8116fab059b03e0ad5ec876e5e7899d27e19f052979cd07e9aef44b79531a07b
7
+ data.tar.gz: c632c3f0f8b8ea1ed4f3fe769735feb8045bf9728daa65f084dedaa5c359190ef7e56f472e478910894a374a1c3f427630feeea3e9bf28d79cd6ab1746d1af4e
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 'v20220105/client'
6
+ require_relative 'v20220105/models'
7
+
8
+ module TencentCloud
9
+ module Acp
10
+ end
11
+ end
@@ -0,0 +1,180 @@
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 Acp
21
+ module V20220105
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-01-05'
26
+ api_endpoint = 'acp.tencentcloudapi.com'
27
+ sdk_version = 'ACP_' + 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::acp::V20220105::CreateAppScanTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::acp::V20220105::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
+ # App应用合规隐私诊断重试任务
57
+
58
+ # @param request: Request instance for CreateAppScanTaskRepeat.
59
+ # @type request: :class:`Tencentcloud::acp::V20220105::CreateAppScanTaskRepeatRequest`
60
+ # @rtype: :class:`Tencentcloud::acp::V20220105::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 DescribeFileTicket.
83
+ # @type request: :class:`Tencentcloud::acp::V20220105::DescribeFileTicketRequest`
84
+ # @rtype: :class:`Tencentcloud::acp::V20220105::DescribeFileTicketResponse`
85
+ def DescribeFileTicket(request)
86
+ body = send_request('DescribeFileTicket', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeFileTicketResponse.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
+ # 获取App隐私合规诊断任务列表
105
+
106
+ # @param request: Request instance for DescribeScanTaskList.
107
+ # @type request: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskListRequest`
108
+ # @rtype: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskListResponse`
109
+ def DescribeScanTaskList(request)
110
+ body = send_request('DescribeScanTaskList', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeScanTaskListResponse.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
+ # 获取App合规诊断任务报告url
129
+
130
+ # @param request: Request instance for DescribeScanTaskReportUrl.
131
+ # @type request: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskReportUrlRequest`
132
+ # @rtype: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskReportUrlResponse`
133
+ def DescribeScanTaskReportUrl(request)
134
+ body = send_request('DescribeScanTaskReportUrl', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeScanTaskReportUrlResponse.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
+ # 查询App隐私合规诊断任务状态
153
+
154
+ # @param request: Request instance for DescribeScanTaskStatus.
155
+ # @type request: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskStatusRequest`
156
+ # @rtype: :class:`Tencentcloud::acp::V20220105::DescribeScanTaskStatusResponse`
157
+ def DescribeScanTaskStatus(request)
158
+ body = send_request('DescribeScanTaskStatus', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeScanTaskStatusResponse.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
+ end
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,636 @@
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 Acp
19
+ module V20220105
20
+ # 应用合规隐私诊断任务应用数据信息
21
+ class AppInfoItem < TencentCloud::Common::AbstractModel
22
+ # @param AppPackage: App包名
23
+ # @type AppPackage: String
24
+ # @param AppName: App名称
25
+ # 注意:此字段可能返回 null,表示取不到有效值。
26
+ # @type AppName: String
27
+ # @param AppVersion: App版本
28
+ # 注意:此字段可能返回 null,表示取不到有效值。
29
+ # @type AppVersion: String
30
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
31
+ # @type Platform: Integer
32
+ # @param ReportUrl: App隐私诊断报告下载链接
33
+ # 注意:此字段可能返回 null,表示取不到有效值。
34
+ # @type ReportUrl: String
35
+ # @param ReportTitle: App隐私诊断报告名称
36
+ # 注意:此字段可能返回 null,表示取不到有效值。
37
+ # @type ReportTitle: String
38
+ # @param BehaviorUrl: App诊断堆栈报告下载链接
39
+ # 注意:此字段可能返回 null,表示取不到有效值。
40
+ # @type BehaviorUrl: String
41
+ # @param BehaviorTitle: App诊断堆栈报告名称
42
+ # 注意:此字段可能返回 null,表示取不到有效值。
43
+ # @type BehaviorTitle: String
44
+ # @param HighRiskCount: 诊断高风险项数量
45
+ # 注意:此字段可能返回 null,表示取不到有效值。
46
+ # @type HighRiskCount: Integer
47
+ # @param PrivacyTextName: 隐私申明文件名称
48
+ # 注意:此字段可能返回 null,表示取不到有效值。
49
+ # @type PrivacyTextName: String
50
+ # @param SoftwareMD5: 软件MD5
51
+ # 注意:此字段可能返回 null,表示取不到有效值。
52
+ # @type SoftwareMD5: String
53
+ # @param PrivacyTextMD5: 隐私文本MD5
54
+ # 注意:此字段可能返回 null,表示取不到有效值。
55
+ # @type PrivacyTextMD5: String
56
+
57
+ attr_accessor :AppPackage, :AppName, :AppVersion, :Platform, :ReportUrl, :ReportTitle, :BehaviorUrl, :BehaviorTitle, :HighRiskCount, :PrivacyTextName, :SoftwareMD5, :PrivacyTextMD5
58
+
59
+ def initialize(apppackage=nil, appname=nil, appversion=nil, platform=nil, reporturl=nil, reporttitle=nil, behaviorurl=nil, behaviortitle=nil, highriskcount=nil, privacytextname=nil, softwaremd5=nil, privacytextmd5=nil)
60
+ @AppPackage = apppackage
61
+ @AppName = appname
62
+ @AppVersion = appversion
63
+ @Platform = platform
64
+ @ReportUrl = reporturl
65
+ @ReportTitle = reporttitle
66
+ @BehaviorUrl = behaviorurl
67
+ @BehaviorTitle = behaviortitle
68
+ @HighRiskCount = highriskcount
69
+ @PrivacyTextName = privacytextname
70
+ @SoftwareMD5 = softwaremd5
71
+ @PrivacyTextMD5 = privacytextmd5
72
+ end
73
+
74
+ def deserialize(params)
75
+ @AppPackage = params['AppPackage']
76
+ @AppName = params['AppName']
77
+ @AppVersion = params['AppVersion']
78
+ @Platform = params['Platform']
79
+ @ReportUrl = params['ReportUrl']
80
+ @ReportTitle = params['ReportTitle']
81
+ @BehaviorUrl = params['BehaviorUrl']
82
+ @BehaviorTitle = params['BehaviorTitle']
83
+ @HighRiskCount = params['HighRiskCount']
84
+ @PrivacyTextName = params['PrivacyTextName']
85
+ @SoftwareMD5 = params['SoftwareMD5']
86
+ @PrivacyTextMD5 = params['PrivacyTextMD5']
87
+ end
88
+ end
89
+
90
+ # 应用合规隐私诊断任务数据
91
+ class AppTaskData < TencentCloud::Common::AbstractModel
92
+ # @param TaskID: 任务ID
93
+ # @type TaskID: String
94
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
95
+ # @type TaskType: Integer
96
+ # @param TaskStatus: 0:默认值(待检测/待咨询), 1.检测中, 2:待评估, 3:评估中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
97
+ # @type TaskStatus: Integer
98
+ # @param TaskErrMsg: 错误信息
99
+ # 注意:此字段可能返回 null,表示取不到有效值。
100
+ # @type TaskErrMsg: String
101
+ # @param Source: 任务来源,0:默认值(私域), 1:灵犀, 2:灵鲲
102
+ # @type Source: Integer
103
+ # @param AppInfo: 应用信息
104
+ # @type AppInfo: :class:`Tencentcloud::Acp.v20220105.models.AppInfoItem`
105
+ # @param StartTime: 任务启动时间
106
+ # @type StartTime: String
107
+ # @param EndTime: 任务完成时间(更新时间)
108
+ # @type EndTime: String
109
+ # @param ContactName: 联系人信息
110
+ # 注意:此字段可能返回 null,表示取不到有效值。
111
+ # @type ContactName: String
112
+
113
+ attr_accessor :TaskID, :TaskType, :TaskStatus, :TaskErrMsg, :Source, :AppInfo, :StartTime, :EndTime, :ContactName
114
+
115
+ def initialize(taskid=nil, tasktype=nil, taskstatus=nil, taskerrmsg=nil, source=nil, appinfo=nil, starttime=nil, endtime=nil, contactname=nil)
116
+ @TaskID = taskid
117
+ @TaskType = tasktype
118
+ @TaskStatus = taskstatus
119
+ @TaskErrMsg = taskerrmsg
120
+ @Source = source
121
+ @AppInfo = appinfo
122
+ @StartTime = starttime
123
+ @EndTime = endtime
124
+ @ContactName = contactname
125
+ end
126
+
127
+ def deserialize(params)
128
+ @TaskID = params['TaskID']
129
+ @TaskType = params['TaskType']
130
+ @TaskStatus = params['TaskStatus']
131
+ @TaskErrMsg = params['TaskErrMsg']
132
+ @Source = params['Source']
133
+ unless params['AppInfo'].nil?
134
+ @AppInfo = AppInfoItem.new
135
+ @AppInfo.deserialize(params['AppInfo'])
136
+ end
137
+ @StartTime = params['StartTime']
138
+ @EndTime = params['EndTime']
139
+ @ContactName = params['ContactName']
140
+ end
141
+ end
142
+
143
+ # CreateAppScanTaskRepeat请求参数结构体
144
+ class CreateAppScanTaskRepeatRequest < TencentCloud::Common::AbstractModel
145
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
146
+ # @type Source: Integer
147
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
148
+ # @type Platform: Integer
149
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
150
+ # @type TaskType: Integer
151
+ # @param OrgTaskID: 原诊断任务ID
152
+ # @type OrgTaskID: String
153
+ # @param AppPackage: App包名
154
+ # @type AppPackage: String
155
+ # @param FileID: 上传的文件ID(灵犀诊断必填)
156
+ # @type FileID: String
157
+ # @param AppDownloadUrl: 软件下载链接地址(灵鲲诊断必填)
158
+ # @type AppDownloadUrl: String
159
+ # @param PrivacyTextUrl: 隐私文本下载地址(灵鲲诊断必填)
160
+ # @type PrivacyTextUrl: String
161
+ # @param AppName: 应用名称
162
+ # @type AppName: String
163
+ # @param PrivacyTextName: 隐私申明文件名称
164
+ # @type PrivacyTextName: String
165
+
166
+ attr_accessor :Source, :Platform, :TaskType, :OrgTaskID, :AppPackage, :FileID, :AppDownloadUrl, :PrivacyTextUrl, :AppName, :PrivacyTextName
167
+
168
+ def initialize(source=nil, platform=nil, tasktype=nil, orgtaskid=nil, apppackage=nil, fileid=nil, appdownloadurl=nil, privacytexturl=nil, appname=nil, privacytextname=nil)
169
+ @Source = source
170
+ @Platform = platform
171
+ @TaskType = tasktype
172
+ @OrgTaskID = orgtaskid
173
+ @AppPackage = apppackage
174
+ @FileID = fileid
175
+ @AppDownloadUrl = appdownloadurl
176
+ @PrivacyTextUrl = privacytexturl
177
+ @AppName = appname
178
+ @PrivacyTextName = privacytextname
179
+ end
180
+
181
+ def deserialize(params)
182
+ @Source = params['Source']
183
+ @Platform = params['Platform']
184
+ @TaskType = params['TaskType']
185
+ @OrgTaskID = params['OrgTaskID']
186
+ @AppPackage = params['AppPackage']
187
+ @FileID = params['FileID']
188
+ @AppDownloadUrl = params['AppDownloadUrl']
189
+ @PrivacyTextUrl = params['PrivacyTextUrl']
190
+ @AppName = params['AppName']
191
+ @PrivacyTextName = params['PrivacyTextName']
192
+ end
193
+ end
194
+
195
+ # CreateAppScanTaskRepeat返回参数结构体
196
+ class CreateAppScanTaskRepeatResponse < TencentCloud::Common::AbstractModel
197
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
198
+ # @type Result: Integer
199
+ # @param TaskID: 任务id
200
+ # @type TaskID: String
201
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
202
+ # @type RequestId: String
203
+
204
+ attr_accessor :Result, :TaskID, :RequestId
205
+
206
+ def initialize(result=nil, taskid=nil, requestid=nil)
207
+ @Result = result
208
+ @TaskID = taskid
209
+ @RequestId = requestid
210
+ end
211
+
212
+ def deserialize(params)
213
+ @Result = params['Result']
214
+ @TaskID = params['TaskID']
215
+ @RequestId = params['RequestId']
216
+ end
217
+ end
218
+
219
+ # CreateAppScanTask请求参数结构体
220
+ class CreateAppScanTaskRequest < TencentCloud::Common::AbstractModel
221
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
222
+ # @type TaskType: Integer
223
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
224
+ # @type Source: Integer
225
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
226
+ # @type Platform: Integer
227
+ # @param AppPackage: App包名
228
+ # @type AppPackage: String
229
+ # @param AppName: App名称
230
+ # @type AppName: String
231
+ # @param AppVersion: App版本
232
+ # @type AppVersion: String
233
+ # @param FileID: 上传的软件文件ID(灵犀诊断必填)
234
+ # @type FileID: String
235
+ # @param AppDownloadUrl: 软件下载链接地址(灵鲲诊断必填)
236
+ # @type AppDownloadUrl: String
237
+ # @param PrivacyTextUrl: 隐私文本下载地址(灵鲲诊断必填)
238
+ # @type PrivacyTextUrl: String
239
+ # @param ContactName: 联系人信息
240
+ # @type ContactName: String
241
+ # @param TelNumber: 联系电话
242
+ # @type TelNumber: String
243
+ # @param Email: 公司邮箱
244
+ # @type Email: String
245
+ # @param CorpName: 公司名称
246
+ # @type CorpName: String
247
+ # @param SalesPerson: 商务对接人员
248
+ # @type SalesPerson: String
249
+ # @param Remark: 备注信息
250
+ # @type Remark: String
251
+ # @param IsAgreePrivacy: 是否同意隐私条款,0:不同意(默认), 1:同意
252
+ # @type IsAgreePrivacy: Integer
253
+ # @param PrivacyTextName: 隐私申明文件名称
254
+ # @type PrivacyTextName: String
255
+
256
+ attr_accessor :TaskType, :Source, :Platform, :AppPackage, :AppName, :AppVersion, :FileID, :AppDownloadUrl, :PrivacyTextUrl, :ContactName, :TelNumber, :Email, :CorpName, :SalesPerson, :Remark, :IsAgreePrivacy, :PrivacyTextName
257
+
258
+ def initialize(tasktype=nil, source=nil, platform=nil, apppackage=nil, appname=nil, appversion=nil, fileid=nil, appdownloadurl=nil, privacytexturl=nil, contactname=nil, telnumber=nil, email=nil, corpname=nil, salesperson=nil, remark=nil, isagreeprivacy=nil, privacytextname=nil)
259
+ @TaskType = tasktype
260
+ @Source = source
261
+ @Platform = platform
262
+ @AppPackage = apppackage
263
+ @AppName = appname
264
+ @AppVersion = appversion
265
+ @FileID = fileid
266
+ @AppDownloadUrl = appdownloadurl
267
+ @PrivacyTextUrl = privacytexturl
268
+ @ContactName = contactname
269
+ @TelNumber = telnumber
270
+ @Email = email
271
+ @CorpName = corpname
272
+ @SalesPerson = salesperson
273
+ @Remark = remark
274
+ @IsAgreePrivacy = isagreeprivacy
275
+ @PrivacyTextName = privacytextname
276
+ end
277
+
278
+ def deserialize(params)
279
+ @TaskType = params['TaskType']
280
+ @Source = params['Source']
281
+ @Platform = params['Platform']
282
+ @AppPackage = params['AppPackage']
283
+ @AppName = params['AppName']
284
+ @AppVersion = params['AppVersion']
285
+ @FileID = params['FileID']
286
+ @AppDownloadUrl = params['AppDownloadUrl']
287
+ @PrivacyTextUrl = params['PrivacyTextUrl']
288
+ @ContactName = params['ContactName']
289
+ @TelNumber = params['TelNumber']
290
+ @Email = params['Email']
291
+ @CorpName = params['CorpName']
292
+ @SalesPerson = params['SalesPerson']
293
+ @Remark = params['Remark']
294
+ @IsAgreePrivacy = params['IsAgreePrivacy']
295
+ @PrivacyTextName = params['PrivacyTextName']
296
+ end
297
+ end
298
+
299
+ # CreateAppScanTask返回参数结构体
300
+ class CreateAppScanTaskResponse < TencentCloud::Common::AbstractModel
301
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
302
+ # @type Result: Integer
303
+ # @param TaskID: 任务ID
304
+ # 注意:此字段可能返回 null,表示取不到有效值。
305
+ # @type TaskID: String
306
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
307
+ # @type RequestId: String
308
+
309
+ attr_accessor :Result, :TaskID, :RequestId
310
+
311
+ def initialize(result=nil, taskid=nil, requestid=nil)
312
+ @Result = result
313
+ @TaskID = taskid
314
+ @RequestId = requestid
315
+ end
316
+
317
+ def deserialize(params)
318
+ @Result = params['Result']
319
+ @TaskID = params['TaskID']
320
+ @RequestId = params['RequestId']
321
+ end
322
+ end
323
+
324
+ # DescribeFileTicket请求参数结构体
325
+ class DescribeFileTicketRequest < TencentCloud::Common::AbstractModel
326
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
327
+ # @type Source: Integer
328
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
329
+ # @type Platform: Integer
330
+
331
+ attr_accessor :Source, :Platform
332
+
333
+ def initialize(source=nil, platform=nil)
334
+ @Source = source
335
+ @Platform = platform
336
+ end
337
+
338
+ def deserialize(params)
339
+ @Source = params['Source']
340
+ @Platform = params['Platform']
341
+ end
342
+ end
343
+
344
+ # DescribeFileTicket返回参数结构体
345
+ class DescribeFileTicketResponse < TencentCloud::Common::AbstractModel
346
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
347
+ # @type Result: Integer
348
+ # @param UploadUrl: 上传url(灵鲲:Post方法(100:apk,101:txt), 灵犀:put方法)
349
+ # @type UploadUrl: String
350
+ # @param UploadSign: 上传url鉴权信息(灵犀上传需要, Authorization参数值)
351
+ # 注意:此字段可能返回 null,表示取不到有效值。
352
+ # @type UploadSign: String
353
+ # @param FildID: 上传文件ID(灵犀提交诊断任务需要)
354
+ # 注意:此字段可能返回 null,表示取不到有效值。
355
+ # @type FildID: String
356
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
357
+ # @type RequestId: String
358
+
359
+ attr_accessor :Result, :UploadUrl, :UploadSign, :FildID, :RequestId
360
+
361
+ def initialize(result=nil, uploadurl=nil, uploadsign=nil, fildid=nil, requestid=nil)
362
+ @Result = result
363
+ @UploadUrl = uploadurl
364
+ @UploadSign = uploadsign
365
+ @FildID = fildid
366
+ @RequestId = requestid
367
+ end
368
+
369
+ def deserialize(params)
370
+ @Result = params['Result']
371
+ @UploadUrl = params['UploadUrl']
372
+ @UploadSign = params['UploadSign']
373
+ @FildID = params['FildID']
374
+ @RequestId = params['RequestId']
375
+ end
376
+ end
377
+
378
+ # DescribeScanTaskList请求参数结构体
379
+ class DescribeScanTaskListRequest < TencentCloud::Common::AbstractModel
380
+ # @param Source: 任务来源, -1:所有, 0:默认值(私域), 1:灵犀, 2:灵鲲;
381
+ # @type Source: Integer
382
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
383
+ # @type Platform: Integer
384
+ # @param TaskStatuses: 任务状态,可多值查询,比如:"1,2,3" 0:默认值(待检测/待咨询), 1.检测中, 2:待评估, 3:评估中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
385
+ # @type TaskStatuses: String
386
+ # @param TaskTypes: 任务类型,可多值查询,采用逗号分隔,比如:"0,1" 0:基础版, 1:专家版, 2:本地化
387
+ # @type TaskTypes: String
388
+ # @param PageNo: 页码
389
+ # @type PageNo: Integer
390
+ # @param PageSize: 页码大小
391
+ # @type PageSize: Integer
392
+ # @param AppName: 应用名称或小程序名称(可选参数)
393
+ # @type AppName: String
394
+ # @param StartTime: 查询时间范围, 查询开始时间(2021-09-30 或 2021-09-30 10:57:34)
395
+ # @type StartTime: String
396
+ # @param EndTime: 查询时间范围, 查询结束时间(2021-09-30 或 2021-09-30 10:57:34)
397
+ # @type EndTime: String
398
+
399
+ attr_accessor :Source, :Platform, :TaskStatuses, :TaskTypes, :PageNo, :PageSize, :AppName, :StartTime, :EndTime
400
+
401
+ def initialize(source=nil, platform=nil, taskstatuses=nil, tasktypes=nil, pageno=nil, pagesize=nil, appname=nil, starttime=nil, endtime=nil)
402
+ @Source = source
403
+ @Platform = platform
404
+ @TaskStatuses = taskstatuses
405
+ @TaskTypes = tasktypes
406
+ @PageNo = pageno
407
+ @PageSize = pagesize
408
+ @AppName = appname
409
+ @StartTime = starttime
410
+ @EndTime = endtime
411
+ end
412
+
413
+ def deserialize(params)
414
+ @Source = params['Source']
415
+ @Platform = params['Platform']
416
+ @TaskStatuses = params['TaskStatuses']
417
+ @TaskTypes = params['TaskTypes']
418
+ @PageNo = params['PageNo']
419
+ @PageSize = params['PageSize']
420
+ @AppName = params['AppName']
421
+ @StartTime = params['StartTime']
422
+ @EndTime = params['EndTime']
423
+ end
424
+ end
425
+
426
+ # DescribeScanTaskList返回参数结构体
427
+ class DescribeScanTaskListResponse < TencentCloud::Common::AbstractModel
428
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
429
+ # @type Result: Integer
430
+ # @param Total: 任务总数量
431
+ # @type Total: Integer
432
+ # @param Data: 诊断任务数据列表
433
+ # 注意:此字段可能返回 null,表示取不到有效值。
434
+ # @type Data: Array
435
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
436
+ # @type RequestId: String
437
+
438
+ attr_accessor :Result, :Total, :Data, :RequestId
439
+
440
+ def initialize(result=nil, total=nil, data=nil, requestid=nil)
441
+ @Result = result
442
+ @Total = total
443
+ @Data = data
444
+ @RequestId = requestid
445
+ end
446
+
447
+ def deserialize(params)
448
+ @Result = params['Result']
449
+ @Total = params['Total']
450
+ unless params['Data'].nil?
451
+ @Data = []
452
+ params['Data'].each do |i|
453
+ apptaskdata_tmp = AppTaskData.new
454
+ apptaskdata_tmp.deserialize(i)
455
+ @Data << apptaskdata_tmp
456
+ end
457
+ end
458
+ @RequestId = params['RequestId']
459
+ end
460
+ end
461
+
462
+ # DescribeScanTaskReportUrl请求参数结构体
463
+ class DescribeScanTaskReportUrlRequest < TencentCloud::Common::AbstractModel
464
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
465
+ # @type Source: Integer
466
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
467
+ # @type Platform: Integer
468
+ # @param TaskID: 任务id
469
+ # @type TaskID: String
470
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
471
+ # @type TaskType: Integer
472
+ # @param ReportType: 报告类型, 0:诊断报告, 1:堆栈报告
473
+ # @type ReportType: Integer
474
+
475
+ attr_accessor :Source, :Platform, :TaskID, :TaskType, :ReportType
476
+
477
+ def initialize(source=nil, platform=nil, taskid=nil, tasktype=nil, reporttype=nil)
478
+ @Source = source
479
+ @Platform = platform
480
+ @TaskID = taskid
481
+ @TaskType = tasktype
482
+ @ReportType = reporttype
483
+ end
484
+
485
+ def deserialize(params)
486
+ @Source = params['Source']
487
+ @Platform = params['Platform']
488
+ @TaskID = params['TaskID']
489
+ @TaskType = params['TaskType']
490
+ @ReportType = params['ReportType']
491
+ end
492
+ end
493
+
494
+ # DescribeScanTaskReportUrl返回参数结构体
495
+ class DescribeScanTaskReportUrlResponse < TencentCloud::Common::AbstractModel
496
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
497
+ # @type Result: Integer
498
+ # @param ReportUrl: 诊断报告/堆栈信息下载链接
499
+ # 注意:此字段可能返回 null,表示取不到有效值。
500
+ # @type ReportUrl: String
501
+ # @param ReportTitle: 诊断报告/堆栈名称
502
+ # 注意:此字段可能返回 null,表示取不到有效值。
503
+ # @type ReportTitle: String
504
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
505
+ # @type RequestId: String
506
+
507
+ attr_accessor :Result, :ReportUrl, :ReportTitle, :RequestId
508
+
509
+ def initialize(result=nil, reporturl=nil, reporttitle=nil, requestid=nil)
510
+ @Result = result
511
+ @ReportUrl = reporturl
512
+ @ReportTitle = reporttitle
513
+ @RequestId = requestid
514
+ end
515
+
516
+ def deserialize(params)
517
+ @Result = params['Result']
518
+ @ReportUrl = params['ReportUrl']
519
+ @ReportTitle = params['ReportTitle']
520
+ @RequestId = params['RequestId']
521
+ end
522
+ end
523
+
524
+ # DescribeScanTaskStatus请求参数结构体
525
+ class DescribeScanTaskStatusRequest < TencentCloud::Common::AbstractModel
526
+ # @param Source: 任务来源, 0:默认值(私域), 1:灵犀, 2:灵鲲;
527
+ # @type Source: Integer
528
+ # @param Platform: 应用平台, 0:android, 1:ios, 2:小程序
529
+ # @type Platform: Integer
530
+ # @param TaskID: 任务id
531
+ # @type TaskID: String
532
+ # @param TaskType: 任务类型, 0:基础版, 1:专家版, 2:本地化
533
+ # @type TaskType: Integer
534
+
535
+ attr_accessor :Source, :Platform, :TaskID, :TaskType
536
+
537
+ def initialize(source=nil, platform=nil, taskid=nil, tasktype=nil)
538
+ @Source = source
539
+ @Platform = platform
540
+ @TaskID = taskid
541
+ @TaskType = tasktype
542
+ end
543
+
544
+ def deserialize(params)
545
+ @Source = params['Source']
546
+ @Platform = params['Platform']
547
+ @TaskID = params['TaskID']
548
+ @TaskType = params['TaskType']
549
+ end
550
+ end
551
+
552
+ # DescribeScanTaskStatus返回参数结构体
553
+ class DescribeScanTaskStatusResponse < TencentCloud::Common::AbstractModel
554
+ # @param Result: 返回值, 0:成功, 其他值请查看“返回值”定义
555
+ # @type Result: Integer
556
+ # @param Status: 0:默认值(待检测/待咨询), 1.检测中, 4:任务完成/咨询完成, 5:任务失败, 6:咨询中;
557
+ # @type Status: Integer
558
+ # @param ErrMsg: 诊断失败的错误信息
559
+ # 注意:此字段可能返回 null,表示取不到有效值。
560
+ # @type ErrMsg: String
561
+ # @param FlowSteps: 任务流详情
562
+ # 注意:此字段可能返回 null,表示取不到有效值。
563
+ # @type FlowSteps: Array
564
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
565
+ # @type RequestId: String
566
+
567
+ attr_accessor :Result, :Status, :ErrMsg, :FlowSteps, :RequestId
568
+
569
+ def initialize(result=nil, status=nil, errmsg=nil, flowsteps=nil, requestid=nil)
570
+ @Result = result
571
+ @Status = status
572
+ @ErrMsg = errmsg
573
+ @FlowSteps = flowsteps
574
+ @RequestId = requestid
575
+ end
576
+
577
+ def deserialize(params)
578
+ @Result = params['Result']
579
+ @Status = params['Status']
580
+ @ErrMsg = params['ErrMsg']
581
+ unless params['FlowSteps'].nil?
582
+ @FlowSteps = []
583
+ params['FlowSteps'].each do |i|
584
+ taskflowstepsinfo_tmp = TaskFlowStepsInfo.new
585
+ taskflowstepsinfo_tmp.deserialize(i)
586
+ @FlowSteps << taskflowstepsinfo_tmp
587
+ end
588
+ end
589
+ @RequestId = params['RequestId']
590
+ end
591
+ end
592
+
593
+ # 任务流步骤详情
594
+ class TaskFlowStepsInfo < TencentCloud::Common::AbstractModel
595
+ # @param FlowNo: 流程编号
596
+ # 注意:此字段可能返回 null,表示取不到有效值。
597
+ # @type FlowNo: String
598
+ # @param FlowName: 流程名称
599
+ # @type FlowName: String
600
+ # @param FlowStatus: 流程状态, 其他值:进行中, 2:成功, 3:失败
601
+ # @type FlowStatus: Integer
602
+ # @param FlowStateDesc: 流程状态描述
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type FlowStateDesc: String
605
+ # @param StartTime: 流程启动时间
606
+ # 注意:此字段可能返回 null,表示取不到有效值。
607
+ # @type StartTime: String
608
+ # @param EndTime: 流程完成时间
609
+ # 注意:此字段可能返回 null,表示取不到有效值。
610
+ # @type EndTime: String
611
+
612
+ attr_accessor :FlowNo, :FlowName, :FlowStatus, :FlowStateDesc, :StartTime, :EndTime
613
+
614
+ def initialize(flowno=nil, flowname=nil, flowstatus=nil, flowstatedesc=nil, starttime=nil, endtime=nil)
615
+ @FlowNo = flowno
616
+ @FlowName = flowname
617
+ @FlowStatus = flowstatus
618
+ @FlowStateDesc = flowstatedesc
619
+ @StartTime = starttime
620
+ @EndTime = endtime
621
+ end
622
+
623
+ def deserialize(params)
624
+ @FlowNo = params['FlowNo']
625
+ @FlowName = params['FlowName']
626
+ @FlowStatus = params['FlowStatus']
627
+ @FlowStateDesc = params['FlowStateDesc']
628
+ @StartTime = params['StartTime']
629
+ @EndTime = params['EndTime']
630
+ end
631
+ end
632
+
633
+ end
634
+ end
635
+ end
636
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-acp
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
+ ACP.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-acp.rb
38
+ - lib/v20220105/client.rb
39
+ - lib/v20220105/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-acp
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 - ACP
66
+ test_files: []