tencentcloud-sdk-ms 3.0.406 → 3.0.407
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/v20180408/client.rb +24 -0
- data/lib/v20180408/models.rb +223 -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: 48a586b2e049050c4d89a99673a1c1761e1f0501
|
4
|
+
data.tar.gz: ac734f78ee9a373ee956054a99cd432026aab0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62adc7df85079e12905848886d4f3940ae8fb64b815297a7c0248425088e9a0d3c07c98ea199324e59196b2dfd262325864634465a5aa3a5982a82432f95d9a9
|
7
|
+
data.tar.gz: ff6f52fa4554d2588b3d9838abb0782a83bc36501d70127066b20bcfce1122d7d0ee8a4a590f436e24ffd0a1a6a3123397d483122eaaca04096e230c181a50bf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.407
|
data/lib/v20180408/client.rb
CHANGED
@@ -221,6 +221,30 @@ module TencentCloud
|
|
221
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
222
|
end
|
223
223
|
|
224
|
+
# 该接口采用同步模式请求腾讯APK云检测服务,即时返回检测数据,需要用户用轮询的方式调用本接口来进行样本送检并获取检测结果(每隔60s发送一次请求,传相同的参数,重试30次),一般情况下0.5h内会出检测结果,最长时间是3h。当Result为ok并且ResultList数组非空有值时,代表检测完毕,若长时间获取不到检测结果,请联系客服。
|
225
|
+
|
226
|
+
# @param request: Request instance for DescribeApkDetectionResult.
|
227
|
+
# @type request: :class:`Tencentcloud::ms::V20180408::DescribeApkDetectionResultRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::ms::V20180408::DescribeApkDetectionResultResponse`
|
229
|
+
def DescribeApkDetectionResult(request)
|
230
|
+
body = send_request('DescribeApkDetectionResult', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DescribeApkDetectionResultResponse.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
|
+
|
224
248
|
# 获取某个用户的所有资源信息
|
225
249
|
|
226
250
|
# @param request: Request instance for DescribeResourceInstances.
|
data/lib/v20180408/models.rb
CHANGED
@@ -742,6 +742,61 @@ module TencentCloud
|
|
742
742
|
end
|
743
743
|
end
|
744
744
|
|
745
|
+
# DescribeApkDetectionResult请求参数结构体
|
746
|
+
class DescribeApkDetectionResultRequest < TencentCloud::Common::AbstractModel
|
747
|
+
# @param ApkUrl: 软件包的下载链接
|
748
|
+
# @type ApkUrl: String
|
749
|
+
# @param ApkMd5: 软件包的md5值,具有唯一性。腾讯APK云检测服务会根据md5值来判断该包是否为库中已收集的样本,已存在,则返回检测结果,反之,需要一定时间检测该样本。
|
750
|
+
# @type ApkMd5: String
|
751
|
+
|
752
|
+
attr_accessor :ApkUrl, :ApkMd5
|
753
|
+
|
754
|
+
def initialize(apkurl=nil, apkmd5=nil)
|
755
|
+
@ApkUrl = apkurl
|
756
|
+
@ApkMd5 = apkmd5
|
757
|
+
end
|
758
|
+
|
759
|
+
def deserialize(params)
|
760
|
+
@ApkUrl = params['ApkUrl']
|
761
|
+
@ApkMd5 = params['ApkMd5']
|
762
|
+
end
|
763
|
+
end
|
764
|
+
|
765
|
+
# DescribeApkDetectionResult返回参数结构体
|
766
|
+
class DescribeApkDetectionResultResponse < TencentCloud::Common::AbstractModel
|
767
|
+
# @param Result: 响应结果,ok表示正常,error表示错误
|
768
|
+
# @type Result: String
|
769
|
+
# @param Reason: Result为error错误时的原因说明
|
770
|
+
# @type Reason: String
|
771
|
+
# @param ResultList: APK检测结果数组
|
772
|
+
# @type ResultList: Array
|
773
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
774
|
+
# @type RequestId: String
|
775
|
+
|
776
|
+
attr_accessor :Result, :Reason, :ResultList, :RequestId
|
777
|
+
|
778
|
+
def initialize(result=nil, reason=nil, resultlist=nil, requestid=nil)
|
779
|
+
@Result = result
|
780
|
+
@Reason = reason
|
781
|
+
@ResultList = resultlist
|
782
|
+
@RequestId = requestid
|
783
|
+
end
|
784
|
+
|
785
|
+
def deserialize(params)
|
786
|
+
@Result = params['Result']
|
787
|
+
@Reason = params['Reason']
|
788
|
+
unless params['ResultList'].nil?
|
789
|
+
@ResultList = []
|
790
|
+
params['ResultList'].each do |i|
|
791
|
+
resultlistitem_tmp = ResultListItem.new
|
792
|
+
resultlistitem_tmp.deserialize(i)
|
793
|
+
@ResultList << resultlistitem_tmp
|
794
|
+
end
|
795
|
+
end
|
796
|
+
@RequestId = params['RequestId']
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
745
800
|
# DescribeResourceInstances请求参数结构体
|
746
801
|
class DescribeResourceInstancesRequest < TencentCloud::Common::AbstractModel
|
747
802
|
# @param Filters: 支持CreateTime、ExpireTime、AppName、AppPkgName、BindValue、IsBind过滤
|
@@ -1273,6 +1328,30 @@ module TencentCloud
|
|
1273
1328
|
end
|
1274
1329
|
end
|
1275
1330
|
|
1331
|
+
# APK检测服务:非广告插件结果列表(SDK、风险插件等)
|
1332
|
+
class OptPluginListItem < TencentCloud::Common::AbstractModel
|
1333
|
+
# @param PluginType: 非广告类型
|
1334
|
+
# @type PluginType: String
|
1335
|
+
# @param PluginName: 非广告插件名称
|
1336
|
+
# @type PluginName: String
|
1337
|
+
# @param PluginDesc: 非广告插件描述
|
1338
|
+
# @type PluginDesc: String
|
1339
|
+
|
1340
|
+
attr_accessor :PluginType, :PluginName, :PluginDesc
|
1341
|
+
|
1342
|
+
def initialize(plugintype=nil, pluginname=nil, plugindesc=nil)
|
1343
|
+
@PluginType = plugintype
|
1344
|
+
@PluginName = pluginname
|
1345
|
+
@PluginDesc = plugindesc
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def deserialize(params)
|
1349
|
+
@PluginType = params['PluginType']
|
1350
|
+
@PluginName = params['PluginName']
|
1351
|
+
@PluginDesc = params['PluginDesc']
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
|
1276
1355
|
# 加固策略具体信息
|
1277
1356
|
class PlanDetailInfo < TencentCloud::Common::AbstractModel
|
1278
1357
|
# @param IsDefault: 默认策略,1为默认,0为非默认
|
@@ -1407,6 +1486,30 @@ module TencentCloud
|
|
1407
1486
|
end
|
1408
1487
|
end
|
1409
1488
|
|
1489
|
+
# APK检测服务:广告插件结果结构体
|
1490
|
+
class PluginListItem < TencentCloud::Common::AbstractModel
|
1491
|
+
# @param PluginType: 数字类型,分别为 1-通知栏广告,2-积分墙广告,3-banner广告,4- 悬浮窗图标广告,5-精品推荐列表广告, 6-插播广告
|
1492
|
+
# @type PluginType: String
|
1493
|
+
# @param PluginName: 广告插件名称
|
1494
|
+
# @type PluginName: String
|
1495
|
+
# @param PluginDesc: 广告插件描述
|
1496
|
+
# @type PluginDesc: String
|
1497
|
+
|
1498
|
+
attr_accessor :PluginType, :PluginName, :PluginDesc
|
1499
|
+
|
1500
|
+
def initialize(plugintype=nil, pluginname=nil, plugindesc=nil)
|
1501
|
+
@PluginType = plugintype
|
1502
|
+
@PluginName = pluginname
|
1503
|
+
@PluginDesc = plugindesc
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
def deserialize(params)
|
1507
|
+
@PluginType = params['PluginType']
|
1508
|
+
@PluginName = params['PluginName']
|
1509
|
+
@PluginDesc = params['PluginDesc']
|
1510
|
+
end
|
1511
|
+
end
|
1512
|
+
|
1410
1513
|
# 拉取某个用户的所有资源信息
|
1411
1514
|
class ResourceInfo < TencentCloud::Common::AbstractModel
|
1412
1515
|
# @param ResourceId: 用户购买的资源id,全局唯一
|
@@ -1474,6 +1577,126 @@ module TencentCloud
|
|
1474
1577
|
end
|
1475
1578
|
end
|
1476
1579
|
|
1580
|
+
# APK检测服务参数返回具体信息
|
1581
|
+
class ResultListItem < TencentCloud::Common::AbstractModel
|
1582
|
+
# @param Banner: banner广告软件标记,分别为-1-不确定,0-否,1-是
|
1583
|
+
# @type Banner: String
|
1584
|
+
# @param BoutiqueRecommand: 精品推荐列表广告标记,分别为-1-不确定,0-否,1-是
|
1585
|
+
# @type BoutiqueRecommand: String
|
1586
|
+
# @param FloatWindows: 悬浮窗图标广告标记,分别为-1-不确定,0-否,1-是
|
1587
|
+
# @type FloatWindows: String
|
1588
|
+
# @param IntegralWall: 积分墙广告软件标记,分别为 -1 -不确定,0-否,1-是
|
1589
|
+
# @type IntegralWall: String
|
1590
|
+
# @param Md5: 安装包的md5
|
1591
|
+
# @type Md5: String
|
1592
|
+
# @param NotifyBar: 通知栏广告软件标记,分别为-1-不确定,0-否,1-是
|
1593
|
+
# @type NotifyBar: String
|
1594
|
+
# @param Official: 1表示官方,0表示非官方
|
1595
|
+
# @type Official: String
|
1596
|
+
# @param PluginList: 广告插件结果列表
|
1597
|
+
# @type PluginList: Array
|
1598
|
+
# @param OptPluginList: 非广告插件结果列表(SDK、风险插件等)
|
1599
|
+
# @type OptPluginList: Array
|
1600
|
+
# @param SafeType: 数字类型,分别为0-未知, 1-安全软件,2-风险软件,3-病毒软件
|
1601
|
+
# @type SafeType: String
|
1602
|
+
# @param Sid: Session id,合作方可以用来区分回调数据,需要唯一。
|
1603
|
+
# @type Sid: String
|
1604
|
+
# @param SoftName: 安装包名称
|
1605
|
+
# @type SoftName: String
|
1606
|
+
# @param Spot: 插播广告软件标记,取值:-1 不确定,0否, 1 是
|
1607
|
+
# @type Spot: String
|
1608
|
+
# @param VirusName: 病毒名称,utf8编码
|
1609
|
+
# @type VirusName: String
|
1610
|
+
# @param VirusDesc: 病毒描述,utf8编码
|
1611
|
+
# @type VirusDesc: String
|
1612
|
+
# @param RepackageStatus: 二次打包状态:0-表示默认;1-表示二次
|
1613
|
+
# @type RepackageStatus: String
|
1614
|
+
# @param Errno: 应用错误码:0、1-表示正常;
|
1615
|
+
|
1616
|
+
# 2表示System Error(engine analysis error).
|
1617
|
+
|
1618
|
+
# 3表示App analysis error, please confirm it.
|
1619
|
+
|
1620
|
+
# 4表示App have not cert, please confirm it.
|
1621
|
+
|
1622
|
+
# 5表示App size is zero, please confirm it.
|
1623
|
+
|
1624
|
+
# 6表示App have not package name, please confirm it.
|
1625
|
+
|
1626
|
+
# 7表示App build time is empty, please confirm it.
|
1627
|
+
|
1628
|
+
# 8表示App have not valid cert, please confirm it.
|
1629
|
+
|
1630
|
+
# 99表示Other error.
|
1631
|
+
|
1632
|
+
# 1000表示App downloadlink download fail, please confirm it.
|
1633
|
+
|
1634
|
+
# 1001表示APP md5 different between real md5, please confirm it.
|
1635
|
+
|
1636
|
+
# 1002表示App md5 uncollect, please offer downloadlink.
|
1637
|
+
# @type Errno: String
|
1638
|
+
# @param ErrMsg: 对应errno的错误信息描述
|
1639
|
+
# @type ErrMsg: String
|
1640
|
+
|
1641
|
+
attr_accessor :Banner, :BoutiqueRecommand, :FloatWindows, :IntegralWall, :Md5, :NotifyBar, :Official, :PluginList, :OptPluginList, :SafeType, :Sid, :SoftName, :Spot, :VirusName, :VirusDesc, :RepackageStatus, :Errno, :ErrMsg
|
1642
|
+
|
1643
|
+
def initialize(banner=nil, boutiquerecommand=nil, floatwindows=nil, integralwall=nil, md5=nil, notifybar=nil, official=nil, pluginlist=nil, optpluginlist=nil, safetype=nil, sid=nil, softname=nil, spot=nil, virusname=nil, virusdesc=nil, repackagestatus=nil, errno=nil, errmsg=nil)
|
1644
|
+
@Banner = banner
|
1645
|
+
@BoutiqueRecommand = boutiquerecommand
|
1646
|
+
@FloatWindows = floatwindows
|
1647
|
+
@IntegralWall = integralwall
|
1648
|
+
@Md5 = md5
|
1649
|
+
@NotifyBar = notifybar
|
1650
|
+
@Official = official
|
1651
|
+
@PluginList = pluginlist
|
1652
|
+
@OptPluginList = optpluginlist
|
1653
|
+
@SafeType = safetype
|
1654
|
+
@Sid = sid
|
1655
|
+
@SoftName = softname
|
1656
|
+
@Spot = spot
|
1657
|
+
@VirusName = virusname
|
1658
|
+
@VirusDesc = virusdesc
|
1659
|
+
@RepackageStatus = repackagestatus
|
1660
|
+
@Errno = errno
|
1661
|
+
@ErrMsg = errmsg
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
def deserialize(params)
|
1665
|
+
@Banner = params['Banner']
|
1666
|
+
@BoutiqueRecommand = params['BoutiqueRecommand']
|
1667
|
+
@FloatWindows = params['FloatWindows']
|
1668
|
+
@IntegralWall = params['IntegralWall']
|
1669
|
+
@Md5 = params['Md5']
|
1670
|
+
@NotifyBar = params['NotifyBar']
|
1671
|
+
@Official = params['Official']
|
1672
|
+
unless params['PluginList'].nil?
|
1673
|
+
@PluginList = []
|
1674
|
+
params['PluginList'].each do |i|
|
1675
|
+
pluginlistitem_tmp = PluginListItem.new
|
1676
|
+
pluginlistitem_tmp.deserialize(i)
|
1677
|
+
@PluginList << pluginlistitem_tmp
|
1678
|
+
end
|
1679
|
+
end
|
1680
|
+
unless params['OptPluginList'].nil?
|
1681
|
+
@OptPluginList = []
|
1682
|
+
params['OptPluginList'].each do |i|
|
1683
|
+
optpluginlistitem_tmp = OptPluginListItem.new
|
1684
|
+
optpluginlistitem_tmp.deserialize(i)
|
1685
|
+
@OptPluginList << optpluginlistitem_tmp
|
1686
|
+
end
|
1687
|
+
end
|
1688
|
+
@SafeType = params['SafeType']
|
1689
|
+
@Sid = params['Sid']
|
1690
|
+
@SoftName = params['SoftName']
|
1691
|
+
@Spot = params['Spot']
|
1692
|
+
@VirusName = params['VirusName']
|
1693
|
+
@VirusDesc = params['VirusDesc']
|
1694
|
+
@RepackageStatus = params['RepackageStatus']
|
1695
|
+
@Errno = params['Errno']
|
1696
|
+
@ErrMsg = params['ErrMsg']
|
1697
|
+
end
|
1698
|
+
end
|
1699
|
+
|
1477
1700
|
# 需要扫描的应用的服务信息
|
1478
1701
|
class ScanInfo < TencentCloud::Common::AbstractModel
|
1479
1702
|
# @param CallbackUrl: 任务处理完成后的反向通知回调地址,批量提交app每扫描完成一个会通知一次,通知为POST请求,post信息{ItemId:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.407
|
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-09-
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|