tencentcloud-sdk-waf 3.0.693 → 3.0.695

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee8e4d71b9ae37cbd2a6da66e60b4ef278924a21
4
- data.tar.gz: 306ae7eeb351cb280d737f116c96d2ac72c2bc70
3
+ metadata.gz: 0f086a7bd30a0efe787054933ffa43bc955b9a10
4
+ data.tar.gz: 5c3bdcb83ba79683f60e68712ac46a6194040400
5
5
  SHA512:
6
- metadata.gz: e87e080ea7129a8d281d3aa8956fd17787f724e5ee16aecec537572eb1c98a367730ceb415b4d19b6f88a1e7cf20c674a508ec8a07277d06cdf6524b4330b41c
7
- data.tar.gz: d1ba20299ad770d4ed5e70c8e41443110f878113834aec90203407808e3fa4a12e74900aa3f8bf8f2b2983ebe5fc23429254dcc19739696ec41f5789f8d834bd
6
+ metadata.gz: 14b27be08c6f6db5530db5e73b3d936125afc85bb15c0130b881591a7925de557ea2363687918457cc6b581ae88a5ecb4fc114f3cb13e16eed4a9e2204db0c61
7
+ data.tar.gz: 9890997f19c9fa1066acf79160717d0743f09976ca68f832bdaca0c3efc3c6fe37decdb05b589f4f812b45a9f122feffa7f6ef32b8f53fd89b61694264cbb27d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.693
1
+ 3.0.695
@@ -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.
@@ -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
 
@@ -3298,12 +3376,44 @@ module TencentCloud
3298
3376
 
3299
3377
  # DescribeCCRuleList请求参数结构体
3300
3378
  class DescribeCCRuleListRequest < TencentCloud::Common::AbstractModel
3379
+ # @param Domain: 需要查询的API所属的域名
3380
+ # @type Domain: String
3381
+ # @param Offset: 偏移
3382
+ # @type Offset: Integer
3383
+ # @param Limit: 容量
3384
+ # @type Limit: Integer
3385
+ # @param By: 目前支持根据ts_version排序
3386
+ # @type By: String
3387
+ # @param Filters: 过滤数组,name可以是如下的值: RuleID,ParamName,Url,Action,Method,Source,Status
3388
+ # @type Filters: Array
3389
+ # @param Order: asc或者desc
3390
+ # @type Order: String
3301
3391
 
3392
+ attr_accessor :Domain, :Offset, :Limit, :By, :Filters, :Order
3302
3393
 
3303
- def initialize()
3394
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, filters=nil, order=nil)
3395
+ @Domain = domain
3396
+ @Offset = offset
3397
+ @Limit = limit
3398
+ @By = by
3399
+ @Filters = filters
3400
+ @Order = order
3304
3401
  end
3305
3402
 
3306
3403
  def deserialize(params)
3404
+ @Domain = params['Domain']
3405
+ @Offset = params['Offset']
3406
+ @Limit = params['Limit']
3407
+ @By = params['By']
3408
+ unless params['Filters'].nil?
3409
+ @Filters = []
3410
+ params['Filters'].each do |i|
3411
+ filtersitemnew_tmp = FiltersItemNew.new
3412
+ filtersitemnew_tmp.deserialize(i)
3413
+ @Filters << filtersitemnew_tmp
3414
+ end
3415
+ end
3416
+ @Order = params['Order']
3307
3417
  end
3308
3418
  end
3309
3419
 
@@ -4635,6 +4745,33 @@ module TencentCloud
4635
4745
  end
4636
4746
  end
4637
4747
 
4748
+ # DescribeModuleStatus请求参数结构体
4749
+ class DescribeModuleStatusRequest < TencentCloud::Common::AbstractModel
4750
+
4751
+
4752
+ def initialize()
4753
+ end
4754
+
4755
+ def deserialize(params)
4756
+ end
4757
+ end
4758
+
4759
+ # DescribeModuleStatus返回参数结构体
4760
+ class DescribeModuleStatusResponse < TencentCloud::Common::AbstractModel
4761
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4762
+ # @type RequestId: String
4763
+
4764
+ attr_accessor :RequestId
4765
+
4766
+ def initialize(requestid=nil)
4767
+ @RequestId = requestid
4768
+ end
4769
+
4770
+ def deserialize(params)
4771
+ @RequestId = params['RequestId']
4772
+ end
4773
+ end
4774
+
4638
4775
  # DescribeObjects请求参数结构体
4639
4776
  class DescribeObjectsRequest < TencentCloud::Common::AbstractModel
4640
4777
  # @param Filters: 支持的过滤器:
@@ -7289,10 +7426,13 @@ module TencentCloud
7289
7426
  # @param HybridPkg: 混合云子节点包
7290
7427
  # 注意:此字段可能返回 null,表示取不到有效值。
7291
7428
  # @type HybridPkg: :class:`Tencentcloud::Waf.v20180125.models.HybridPkg`
7429
+ # @param ApiPkg: API安全资源包
7430
+ # 注意:此字段可能返回 null,表示取不到有效值。
7431
+ # @type ApiPkg: :class:`Tencentcloud::Waf.v20180125.models.ApiPkg`
7292
7432
 
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
7433
+ 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
7434
 
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)
7435
+ 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
7436
  @InstanceId = instanceid
7297
7437
  @InstanceName = instancename
7298
7438
  @ResourceIds = resourceids
@@ -7326,6 +7466,7 @@ module TencentCloud
7326
7466
  @IsAPISecurityTrial = isapisecuritytrial
7327
7467
  @MajorEventsPkg = majoreventspkg
7328
7468
  @HybridPkg = hybridpkg
7469
+ @ApiPkg = apipkg
7329
7470
  end
7330
7471
 
7331
7472
  def deserialize(params)
@@ -7383,6 +7524,10 @@ module TencentCloud
7383
7524
  @HybridPkg = HybridPkg.new
7384
7525
  @HybridPkg.deserialize(params['HybridPkg'])
7385
7526
  end
7527
+ unless params['ApiPkg'].nil?
7528
+ @ApiPkg = ApiPkg.new
7529
+ @ApiPkg.deserialize(params['ApiPkg'])
7530
+ end
7386
7531
  end
7387
7532
  end
7388
7533
 
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.693
4
+ version: 3.0.695
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-05 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common