tencentcloud-sdk-mmps 1.0.342 → 1.0.343
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200710/client.rb +24 -0
- data/lib/v20200710/models.rb +168 -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: a7250152d41156e5a8e39c6eee5055a5a86bf1c5
|
4
|
+
data.tar.gz: 513e188e17e7be91dece4ce025a1efbad7eb7638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44146645872998b3c9e13cb132a56645f95d8574a86bf7a98e9014420da1b2a9f023aec047acb1726694937cd7d817152be758e4b5680df5451bfa5dc682a8a
|
7
|
+
data.tar.gz: ada4a08a86dd0ae7019b47368a6bc7ec18510c68fcf519b249c7135f59c397bfd83ccd107e423f5c234a88d3e8456d7133a1d5f8ab915563b71769deb20fffa7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.343
|
data/lib/v20200710/client.rb
CHANGED
@@ -173,6 +173,30 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 查询指定小程序版本的翼扬诊断安全得分
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeFlySecMiniAppScanReportList.
|
179
|
+
# @type request: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanReportListRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::mmps::V20200710::DescribeFlySecMiniAppScanReportListResponse`
|
181
|
+
def DescribeFlySecMiniAppScanReportList(request)
|
182
|
+
body = send_request('DescribeFlySecMiniAppScanReportList', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeFlySecMiniAppScanReportListResponse.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
|
+
|
176
200
|
# 获取翼扬安全诊断任务列表
|
177
201
|
|
178
202
|
# @param request: Request instance for DescribeFlySecMiniAppScanTaskList.
|
data/lib/v20200710/models.rb
CHANGED
@@ -493,6 +493,75 @@ module TencentCloud
|
|
493
493
|
end
|
494
494
|
end
|
495
495
|
|
496
|
+
# DescribeFlySecMiniAppScanReportList请求参数结构体
|
497
|
+
class DescribeFlySecMiniAppScanReportListRequest < TencentCloud::Common::AbstractModel
|
498
|
+
# @param MiniAppID: 任务id
|
499
|
+
# @type MiniAppID: String
|
500
|
+
# @param Mode: 诊断方式 1:基础诊断,2:深度诊断
|
501
|
+
# @type Mode: Integer
|
502
|
+
# @param Status: 诊断状态 -1:查询全部, 0:排队中, 1:成功, 2:失败, 3:进行中
|
503
|
+
# @type Status: Integer
|
504
|
+
# @param Size: 查询数量, 0:查询所有, 其他值:最近几次的诊断数量
|
505
|
+
# @type Size: Integer
|
506
|
+
# @param MiniAppVersion: 小程序版本
|
507
|
+
# @type MiniAppVersion: String
|
508
|
+
|
509
|
+
attr_accessor :MiniAppID, :Mode, :Status, :Size, :MiniAppVersion
|
510
|
+
|
511
|
+
def initialize(miniappid=nil, mode=nil, status=nil, size=nil, miniappversion=nil)
|
512
|
+
@MiniAppID = miniappid
|
513
|
+
@Mode = mode
|
514
|
+
@Status = status
|
515
|
+
@Size = size
|
516
|
+
@MiniAppVersion = miniappversion
|
517
|
+
end
|
518
|
+
|
519
|
+
def deserialize(params)
|
520
|
+
@MiniAppID = params['MiniAppID']
|
521
|
+
@Mode = params['Mode']
|
522
|
+
@Status = params['Status']
|
523
|
+
@Size = params['Size']
|
524
|
+
@MiniAppVersion = params['MiniAppVersion']
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
# DescribeFlySecMiniAppScanReportList返回参数结构体
|
529
|
+
class DescribeFlySecMiniAppScanReportListResponse < TencentCloud::Common::AbstractModel
|
530
|
+
# @param Ret: 返回值, 0:成功, 其他值请查看“返回值”定义
|
531
|
+
# @type Ret: Integer
|
532
|
+
# @param Data: 诊断报告数据
|
533
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
534
|
+
# @type Data: Array
|
535
|
+
# @param Total: 诊断任务数
|
536
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
537
|
+
# @type Total: Integer
|
538
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
539
|
+
# @type RequestId: String
|
540
|
+
|
541
|
+
attr_accessor :Ret, :Data, :Total, :RequestId
|
542
|
+
|
543
|
+
def initialize(ret=nil, data=nil, total=nil, requestid=nil)
|
544
|
+
@Ret = ret
|
545
|
+
@Data = data
|
546
|
+
@Total = total
|
547
|
+
@RequestId = requestid
|
548
|
+
end
|
549
|
+
|
550
|
+
def deserialize(params)
|
551
|
+
@Ret = params['Ret']
|
552
|
+
unless params['Data'].nil?
|
553
|
+
@Data = []
|
554
|
+
params['Data'].each do |i|
|
555
|
+
flysecminiappreportdata_tmp = FlySecMiniAppReportData.new
|
556
|
+
flysecminiappreportdata_tmp.deserialize(i)
|
557
|
+
@Data << flysecminiappreportdata_tmp
|
558
|
+
end
|
559
|
+
end
|
560
|
+
@Total = params['Total']
|
561
|
+
@RequestId = params['RequestId']
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
496
565
|
# DescribeFlySecMiniAppScanTaskList请求参数结构体
|
497
566
|
class DescribeFlySecMiniAppScanTaskListRequest < TencentCloud::Common::AbstractModel
|
498
567
|
# @param Mode: 诊断方式 1:基础诊断,2:深度诊断
|
@@ -933,6 +1002,105 @@ module TencentCloud
|
|
933
1002
|
end
|
934
1003
|
end
|
935
1004
|
|
1005
|
+
# 翼扬诊断小程序报告数据
|
1006
|
+
class FlySecMiniAppReportData < TencentCloud::Common::AbstractModel
|
1007
|
+
# @param TaskID: 任务id
|
1008
|
+
# @type TaskID: String
|
1009
|
+
# @param MiniAppID: 小程序appid
|
1010
|
+
# @type MiniAppID: String
|
1011
|
+
# @param MiniAppName: 小程序名称
|
1012
|
+
# @type MiniAppName: String
|
1013
|
+
# @param MiniAppVersion: 小程序版本
|
1014
|
+
# @type MiniAppVersion: String
|
1015
|
+
# @param Mode: 诊断模式 1:基础诊断,2:深度诊断
|
1016
|
+
# @type Mode: Integer
|
1017
|
+
# @param Status: 诊断状态, 0:排队中, 1:成功, 2:失败, 3:进行中
|
1018
|
+
# @type Status: Integer
|
1019
|
+
# @param CreateTime: 诊断时间
|
1020
|
+
# @type CreateTime: Integer
|
1021
|
+
# @param RiskScore: 诊断得分
|
1022
|
+
# @type RiskScore: String
|
1023
|
+
# @param RiskLevel: 诊断风险等级 1:高风险 2:中风险 3:低风险
|
1024
|
+
# @type RiskLevel: Integer
|
1025
|
+
# @param RiskItems: 诊断8大维度得分情况(每项总分100分)
|
1026
|
+
# @type RiskItems: :class:`Tencentcloud::Mmps.v20200710.models.FlySecMiniAppRiskItems`
|
1027
|
+
|
1028
|
+
attr_accessor :TaskID, :MiniAppID, :MiniAppName, :MiniAppVersion, :Mode, :Status, :CreateTime, :RiskScore, :RiskLevel, :RiskItems
|
1029
|
+
|
1030
|
+
def initialize(taskid=nil, miniappid=nil, miniappname=nil, miniappversion=nil, mode=nil, status=nil, createtime=nil, riskscore=nil, risklevel=nil, riskitems=nil)
|
1031
|
+
@TaskID = taskid
|
1032
|
+
@MiniAppID = miniappid
|
1033
|
+
@MiniAppName = miniappname
|
1034
|
+
@MiniAppVersion = miniappversion
|
1035
|
+
@Mode = mode
|
1036
|
+
@Status = status
|
1037
|
+
@CreateTime = createtime
|
1038
|
+
@RiskScore = riskscore
|
1039
|
+
@RiskLevel = risklevel
|
1040
|
+
@RiskItems = riskitems
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def deserialize(params)
|
1044
|
+
@TaskID = params['TaskID']
|
1045
|
+
@MiniAppID = params['MiniAppID']
|
1046
|
+
@MiniAppName = params['MiniAppName']
|
1047
|
+
@MiniAppVersion = params['MiniAppVersion']
|
1048
|
+
@Mode = params['Mode']
|
1049
|
+
@Status = params['Status']
|
1050
|
+
@CreateTime = params['CreateTime']
|
1051
|
+
@RiskScore = params['RiskScore']
|
1052
|
+
@RiskLevel = params['RiskLevel']
|
1053
|
+
unless params['RiskItems'].nil?
|
1054
|
+
@RiskItems = FlySecMiniAppRiskItems.new
|
1055
|
+
@RiskItems.deserialize(params['RiskItems'])
|
1056
|
+
end
|
1057
|
+
end
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# 翼扬诊断小程序的诊断报告风险数据
|
1061
|
+
class FlySecMiniAppRiskItems < TencentCloud::Common::AbstractModel
|
1062
|
+
# @param RiskItem1Score: 代码防护(基础诊断)
|
1063
|
+
# @type RiskItem1Score: Integer
|
1064
|
+
# @param RiskItem2Score: 开发测试信息泄露(基础诊断)
|
1065
|
+
# @type RiskItem2Score: Integer
|
1066
|
+
# @param RiskItem3Score: 编码规范(基础诊断)
|
1067
|
+
# @type RiskItem3Score: Integer
|
1068
|
+
# @param RiskItem4Score: 配置风险(基础诊断)
|
1069
|
+
# @type RiskItem4Score: Integer
|
1070
|
+
# @param RiskItem5Score: 账号安全(基础诊断)
|
1071
|
+
# @type RiskItem5Score: Integer
|
1072
|
+
# @param RiskItem6Score: 用户信息安全(基础诊断)
|
1073
|
+
# @type RiskItem6Score: Integer
|
1074
|
+
# @param RiskItem7Score: 内部信息泄露(基础诊断)
|
1075
|
+
# @type RiskItem7Score: Integer
|
1076
|
+
# @param RiskItem8Score: 其他安全(基础诊断)
|
1077
|
+
# @type RiskItem8Score: Integer
|
1078
|
+
|
1079
|
+
attr_accessor :RiskItem1Score, :RiskItem2Score, :RiskItem3Score, :RiskItem4Score, :RiskItem5Score, :RiskItem6Score, :RiskItem7Score, :RiskItem8Score
|
1080
|
+
|
1081
|
+
def initialize(riskitem1score=nil, riskitem2score=nil, riskitem3score=nil, riskitem4score=nil, riskitem5score=nil, riskitem6score=nil, riskitem7score=nil, riskitem8score=nil)
|
1082
|
+
@RiskItem1Score = riskitem1score
|
1083
|
+
@RiskItem2Score = riskitem2score
|
1084
|
+
@RiskItem3Score = riskitem3score
|
1085
|
+
@RiskItem4Score = riskitem4score
|
1086
|
+
@RiskItem5Score = riskitem5score
|
1087
|
+
@RiskItem6Score = riskitem6score
|
1088
|
+
@RiskItem7Score = riskitem7score
|
1089
|
+
@RiskItem8Score = riskitem8score
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
def deserialize(params)
|
1093
|
+
@RiskItem1Score = params['RiskItem1Score']
|
1094
|
+
@RiskItem2Score = params['RiskItem2Score']
|
1095
|
+
@RiskItem3Score = params['RiskItem3Score']
|
1096
|
+
@RiskItem4Score = params['RiskItem4Score']
|
1097
|
+
@RiskItem5Score = params['RiskItem5Score']
|
1098
|
+
@RiskItem6Score = params['RiskItem6Score']
|
1099
|
+
@RiskItem7Score = params['RiskItem7Score']
|
1100
|
+
@RiskItem8Score = params['RiskItem8Score']
|
1101
|
+
end
|
1102
|
+
end
|
1103
|
+
|
936
1104
|
# 翼扬诊断小程序任务数据
|
937
1105
|
class FlySecMiniAppTaskData < TencentCloud::Common::AbstractModel
|
938
1106
|
# @param TaskID: 任务id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mmps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.343
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|