tencentcloud-sdk-waf 3.0.693 → 3.0.694
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/v20180125/client.rb +24 -0
- data/lib/v20180125/models.rb +117 -4
- 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: bc15e20e2277af12f2dff912e0a36c639f9d9ba1
|
4
|
+
data.tar.gz: b1f66131ed1cf735827f04d55ae4b0c008f1accf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 600a3e3102f14380be83e267578ec7f499cf044eeff0a4abe47f53906ce236c134df83643dbc3f8a2610bc89f0f98f1c5e9b9a80c5f299e4a260a263fee9d544
|
7
|
+
data.tar.gz: 87a01278b95d95fce4926882039d1259612238254a214e77bfa3f38f8b37d4b9a79f7de7a98e4e1471195f29bd75171ec92046946dd5ad602e20787d43e7c890
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.694
|
data/lib/v20180125/client.rb
CHANGED
@@ -1432,6 +1432,30 @@ module TencentCloud
|
|
1432
1432
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1433
1433
|
end
|
1434
1434
|
|
1435
|
+
# 查询各个waf基础安全模块的开关状态,看每个模块是否开启
|
1436
|
+
|
1437
|
+
# @param request: Request instance for DescribeModuleStatus.
|
1438
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeModuleStatusRequest`
|
1439
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeModuleStatusResponse`
|
1440
|
+
def DescribeModuleStatus(request)
|
1441
|
+
body = send_request('DescribeModuleStatus', request.serialize)
|
1442
|
+
response = JSON.parse(body)
|
1443
|
+
if response['Response'].key?('Error') == false
|
1444
|
+
model = DescribeModuleStatusResponse.new
|
1445
|
+
model.deserialize(response['Response'])
|
1446
|
+
model
|
1447
|
+
else
|
1448
|
+
code = response['Response']['Error']['Code']
|
1449
|
+
message = response['Response']['Error']['Message']
|
1450
|
+
reqid = response['Response']['RequestId']
|
1451
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1452
|
+
end
|
1453
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1454
|
+
raise e
|
1455
|
+
rescue StandardError => e
|
1456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1457
|
+
end
|
1458
|
+
|
1435
1459
|
# 查看防护对象列表
|
1436
1460
|
|
1437
1461
|
# @param request: Request instance for DescribeObjects.
|
data/lib/v20180125/models.rb
CHANGED
@@ -908,6 +908,79 @@ module TencentCloud
|
|
908
908
|
end
|
909
909
|
end
|
910
910
|
|
911
|
+
# API安全资源信息
|
912
|
+
class ApiPkg < TencentCloud::Common::AbstractModel
|
913
|
+
# @param ResourceIds: 资源id
|
914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
915
|
+
# @type ResourceIds: String
|
916
|
+
# @param Status: 状态
|
917
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
918
|
+
# @type Status: Integer
|
919
|
+
# @param Region: 地域
|
920
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
921
|
+
# @type Region: Integer
|
922
|
+
# @param BeginTime: 开始时间
|
923
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
924
|
+
# @type BeginTime: String
|
925
|
+
# @param EndTime: 结束时间
|
926
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
927
|
+
# @type EndTime: String
|
928
|
+
# @param InquireNum: 申请数量
|
929
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
930
|
+
# @type InquireNum: Integer
|
931
|
+
# @param UsedNum: 使用数量
|
932
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
933
|
+
# @type UsedNum: Integer
|
934
|
+
# @param RenewFlag: 续费标志
|
935
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
936
|
+
# @type RenewFlag: Integer
|
937
|
+
# @param BillingItem: 计费项
|
938
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
939
|
+
# @type BillingItem: String
|
940
|
+
# @param APICPWaf: 1 API安全6折
|
941
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
942
|
+
# @type APICPWaf: Integer
|
943
|
+
# @param APINPWaf: 1 表示5折折扣
|
944
|
+
# 2 表示4折折扣
|
945
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
946
|
+
# @type APINPWaf: Integer
|
947
|
+
# @param IsAPISecurityTrial: api安全7天试用标识。1试用。0没试用
|
948
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
949
|
+
# @type IsAPISecurityTrial: Integer
|
950
|
+
|
951
|
+
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag, :BillingItem, :APICPWaf, :APINPWaf, :IsAPISecurityTrial
|
952
|
+
|
953
|
+
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil, billingitem=nil, apicpwaf=nil, apinpwaf=nil, isapisecuritytrial=nil)
|
954
|
+
@ResourceIds = resourceids
|
955
|
+
@Status = status
|
956
|
+
@Region = region
|
957
|
+
@BeginTime = begintime
|
958
|
+
@EndTime = endtime
|
959
|
+
@InquireNum = inquirenum
|
960
|
+
@UsedNum = usednum
|
961
|
+
@RenewFlag = renewflag
|
962
|
+
@BillingItem = billingitem
|
963
|
+
@APICPWaf = apicpwaf
|
964
|
+
@APINPWaf = apinpwaf
|
965
|
+
@IsAPISecurityTrial = isapisecuritytrial
|
966
|
+
end
|
967
|
+
|
968
|
+
def deserialize(params)
|
969
|
+
@ResourceIds = params['ResourceIds']
|
970
|
+
@Status = params['Status']
|
971
|
+
@Region = params['Region']
|
972
|
+
@BeginTime = params['BeginTime']
|
973
|
+
@EndTime = params['EndTime']
|
974
|
+
@InquireNum = params['InquireNum']
|
975
|
+
@UsedNum = params['UsedNum']
|
976
|
+
@RenewFlag = params['RenewFlag']
|
977
|
+
@BillingItem = params['BillingItem']
|
978
|
+
@APICPWaf = params['APICPWaf']
|
979
|
+
@APINPWaf = params['APINPWaf']
|
980
|
+
@IsAPISecurityTrial = params['IsAPISecurityTrial']
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
911
984
|
# 攻击日志详情
|
912
985
|
class AttackLogInfo < TencentCloud::Common::AbstractModel
|
913
986
|
# @param Content: 攻击日志的详情内容
|
@@ -1079,10 +1152,13 @@ module TencentCloud
|
|
1079
1152
|
# @param BotNPWaf: 控制台买bot5折
|
1080
1153
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1081
1154
|
# @type BotNPWaf: Integer
|
1155
|
+
# @param IsBotTrial: 7天bot试用标识 1 试用 0 没有试用
|
1156
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1157
|
+
# @type IsBotTrial: Integer
|
1082
1158
|
|
1083
|
-
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :Type, :RenewFlag, :BotCPWaf, :BotNPWaf
|
1159
|
+
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :Type, :RenewFlag, :BotCPWaf, :BotNPWaf, :IsBotTrial
|
1084
1160
|
|
1085
|
-
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, type=nil, renewflag=nil, botcpwaf=nil, botnpwaf=nil)
|
1161
|
+
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, type=nil, renewflag=nil, botcpwaf=nil, botnpwaf=nil, isbottrial=nil)
|
1086
1162
|
@ResourceIds = resourceids
|
1087
1163
|
@Status = status
|
1088
1164
|
@Region = region
|
@@ -1094,6 +1170,7 @@ module TencentCloud
|
|
1094
1170
|
@RenewFlag = renewflag
|
1095
1171
|
@BotCPWaf = botcpwaf
|
1096
1172
|
@BotNPWaf = botnpwaf
|
1173
|
+
@IsBotTrial = isbottrial
|
1097
1174
|
end
|
1098
1175
|
|
1099
1176
|
def deserialize(params)
|
@@ -1108,6 +1185,7 @@ module TencentCloud
|
|
1108
1185
|
@RenewFlag = params['RenewFlag']
|
1109
1186
|
@BotCPWaf = params['BotCPWaf']
|
1110
1187
|
@BotNPWaf = params['BotNPWaf']
|
1188
|
+
@IsBotTrial = params['IsBotTrial']
|
1111
1189
|
end
|
1112
1190
|
end
|
1113
1191
|
|
@@ -4635,6 +4713,33 @@ module TencentCloud
|
|
4635
4713
|
end
|
4636
4714
|
end
|
4637
4715
|
|
4716
|
+
# DescribeModuleStatus请求参数结构体
|
4717
|
+
class DescribeModuleStatusRequest < TencentCloud::Common::AbstractModel
|
4718
|
+
|
4719
|
+
|
4720
|
+
def initialize()
|
4721
|
+
end
|
4722
|
+
|
4723
|
+
def deserialize(params)
|
4724
|
+
end
|
4725
|
+
end
|
4726
|
+
|
4727
|
+
# DescribeModuleStatus返回参数结构体
|
4728
|
+
class DescribeModuleStatusResponse < TencentCloud::Common::AbstractModel
|
4729
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4730
|
+
# @type RequestId: String
|
4731
|
+
|
4732
|
+
attr_accessor :RequestId
|
4733
|
+
|
4734
|
+
def initialize(requestid=nil)
|
4735
|
+
@RequestId = requestid
|
4736
|
+
end
|
4737
|
+
|
4738
|
+
def deserialize(params)
|
4739
|
+
@RequestId = params['RequestId']
|
4740
|
+
end
|
4741
|
+
end
|
4742
|
+
|
4638
4743
|
# DescribeObjects请求参数结构体
|
4639
4744
|
class DescribeObjectsRequest < TencentCloud::Common::AbstractModel
|
4640
4745
|
# @param Filters: 支持的过滤器:
|
@@ -7289,10 +7394,13 @@ module TencentCloud
|
|
7289
7394
|
# @param HybridPkg: 混合云子节点包
|
7290
7395
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7291
7396
|
# @type HybridPkg: :class:`Tencentcloud::Waf.v20180125.models.HybridPkg`
|
7397
|
+
# @param ApiPkg: API安全资源包
|
7398
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7399
|
+
# @type ApiPkg: :class:`Tencentcloud::Waf.v20180125.models.ApiPkg`
|
7292
7400
|
|
7293
|
-
attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg, :BotQPS, :ElasticBilling, :AttackLogPost, :MaxBandwidth, :APISecurity, :QpsStandard, :BandwidthStandard, :Status, :SandboxQps, :IsAPISecurityTrial, :MajorEventsPkg, :HybridPkg
|
7401
|
+
attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg, :BotQPS, :ElasticBilling, :AttackLogPost, :MaxBandwidth, :APISecurity, :QpsStandard, :BandwidthStandard, :Status, :SandboxQps, :IsAPISecurityTrial, :MajorEventsPkg, :HybridPkg, :ApiPkg
|
7294
7402
|
|
7295
|
-
def initialize(instanceid=nil, instancename=nil, resourceids=nil, region=nil, paymode=nil, renewflag=nil, mode=nil, level=nil, validtime=nil, begintime=nil, domaincount=nil, subdomainlimit=nil, maindomaincount=nil, maindomainlimit=nil, maxqps=nil, qps=nil, domainpkg=nil, appid=nil, edition=nil, fraudpkg=nil, botpkg=nil, botqps=nil, elasticbilling=nil, attacklogpost=nil, maxbandwidth=nil, apisecurity=nil, qpsstandard=nil, bandwidthstandard=nil, status=nil, sandboxqps=nil, isapisecuritytrial=nil, majoreventspkg=nil, hybridpkg=nil)
|
7403
|
+
def initialize(instanceid=nil, instancename=nil, resourceids=nil, region=nil, paymode=nil, renewflag=nil, mode=nil, level=nil, validtime=nil, begintime=nil, domaincount=nil, subdomainlimit=nil, maindomaincount=nil, maindomainlimit=nil, maxqps=nil, qps=nil, domainpkg=nil, appid=nil, edition=nil, fraudpkg=nil, botpkg=nil, botqps=nil, elasticbilling=nil, attacklogpost=nil, maxbandwidth=nil, apisecurity=nil, qpsstandard=nil, bandwidthstandard=nil, status=nil, sandboxqps=nil, isapisecuritytrial=nil, majoreventspkg=nil, hybridpkg=nil, apipkg=nil)
|
7296
7404
|
@InstanceId = instanceid
|
7297
7405
|
@InstanceName = instancename
|
7298
7406
|
@ResourceIds = resourceids
|
@@ -7326,6 +7434,7 @@ module TencentCloud
|
|
7326
7434
|
@IsAPISecurityTrial = isapisecuritytrial
|
7327
7435
|
@MajorEventsPkg = majoreventspkg
|
7328
7436
|
@HybridPkg = hybridpkg
|
7437
|
+
@ApiPkg = apipkg
|
7329
7438
|
end
|
7330
7439
|
|
7331
7440
|
def deserialize(params)
|
@@ -7383,6 +7492,10 @@ module TencentCloud
|
|
7383
7492
|
@HybridPkg = HybridPkg.new
|
7384
7493
|
@HybridPkg.deserialize(params['HybridPkg'])
|
7385
7494
|
end
|
7495
|
+
unless params['ApiPkg'].nil?
|
7496
|
+
@ApiPkg = ApiPkg.new
|
7497
|
+
@ApiPkg.deserialize(params['ApiPkg'])
|
7498
|
+
end
|
7386
7499
|
end
|
7387
7500
|
end
|
7388
7501
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.694
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|