tencentcloud-sdk-waf 3.0.659 → 3.0.660
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +24 -0
- data/lib/v20180125/models.rb +212 -3
- 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: 5971d114ed244cfa20408d135f13c70d4fec6fc2
|
4
|
+
data.tar.gz: 24216ff74632fa8b5bc89e23aece64e64998cb0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64cd3ad9d83fc6b707f05295395eaa7c037d8cbd0cd48631298d9e2ceaa1429acd07b420d958022374dade07b90b93472de0b089b3146466a2c4d46070903faa
|
7
|
+
data.tar.gz: d450e84f43d0c43605fecc892e786f7137f8f0448bfb856582fc59d0d57dd84fcf7fd9d943c82c04cd9c54dd8463b438b50d5134c1aac13aa55540b6f6e66c19
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.660
|
data/lib/v20180125/client.rb
CHANGED
@@ -1644,6 +1644,30 @@ module TencentCloud
|
|
1644
1644
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1645
1645
|
end
|
1646
1646
|
|
1647
|
+
# 计费资源购买、续费下单接口
|
1648
|
+
|
1649
|
+
# @param request: Request instance for GenerateDealsAndPayNew.
|
1650
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::GenerateDealsAndPayNewRequest`
|
1651
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::GenerateDealsAndPayNewResponse`
|
1652
|
+
def GenerateDealsAndPayNew(request)
|
1653
|
+
body = send_request('GenerateDealsAndPayNew', request.serialize)
|
1654
|
+
response = JSON.parse(body)
|
1655
|
+
if response['Response'].key?('Error') == false
|
1656
|
+
model = GenerateDealsAndPayNewResponse.new
|
1657
|
+
model.deserialize(response['Response'])
|
1658
|
+
model
|
1659
|
+
else
|
1660
|
+
code = response['Response']['Error']['Code']
|
1661
|
+
message = response['Response']['Error']['Message']
|
1662
|
+
reqid = response['Response']['RequestId']
|
1663
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1664
|
+
end
|
1665
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1666
|
+
raise e
|
1667
|
+
rescue StandardError => e
|
1668
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1669
|
+
end
|
1670
|
+
|
1647
1671
|
# 查询下载攻击日志任务记录列表
|
1648
1672
|
|
1649
1673
|
# @param request: Request instance for GetAttackDownloadRecords.
|
data/lib/v20180125/models.rb
CHANGED
@@ -1494,6 +1494,26 @@ module TencentCloud
|
|
1494
1494
|
end
|
1495
1495
|
end
|
1496
1496
|
|
1497
|
+
# 计费下单响应实体
|
1498
|
+
class DealData < TencentCloud::Common::AbstractModel
|
1499
|
+
# @param DealNames: 订单号列表,元素个数与请求包的goods数组的元素个数一致,商品详情与订单按顺序对应
|
1500
|
+
# @type DealNames: Array
|
1501
|
+
# @param BigDealId: 大订单号,一个大订单号下可以有多个子订单,说明是同一次下单[{},{}]
|
1502
|
+
# @type BigDealId: String
|
1503
|
+
|
1504
|
+
attr_accessor :DealNames, :BigDealId
|
1505
|
+
|
1506
|
+
def initialize(dealnames=nil, bigdealid=nil)
|
1507
|
+
@DealNames = dealnames
|
1508
|
+
@BigDealId = bigdealid
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
def deserialize(params)
|
1512
|
+
@DealNames = params['DealNames']
|
1513
|
+
@BigDealId = params['BigDealId']
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
|
1497
1517
|
# DeleteAccessExport请求参数结构体
|
1498
1518
|
class DeleteAccessExportRequest < TencentCloud::Common::AbstractModel
|
1499
1519
|
# @param ExportId: 日志导出ID
|
@@ -5316,6 +5336,67 @@ module TencentCloud
|
|
5316
5336
|
end
|
5317
5337
|
end
|
5318
5338
|
|
5339
|
+
# GenerateDealsAndPayNew请求参数结构体
|
5340
|
+
class GenerateDealsAndPayNewRequest < TencentCloud::Common::AbstractModel
|
5341
|
+
# @param Goods: 计费下单入参
|
5342
|
+
# @type Goods: Array
|
5343
|
+
|
5344
|
+
attr_accessor :Goods
|
5345
|
+
|
5346
|
+
def initialize(goods=nil)
|
5347
|
+
@Goods = goods
|
5348
|
+
end
|
5349
|
+
|
5350
|
+
def deserialize(params)
|
5351
|
+
unless params['Goods'].nil?
|
5352
|
+
@Goods = []
|
5353
|
+
params['Goods'].each do |i|
|
5354
|
+
goodnews_tmp = GoodNews.new
|
5355
|
+
goodnews_tmp.deserialize(i)
|
5356
|
+
@Goods << goodnews_tmp
|
5357
|
+
end
|
5358
|
+
end
|
5359
|
+
end
|
5360
|
+
end
|
5361
|
+
|
5362
|
+
# GenerateDealsAndPayNew返回参数结构体
|
5363
|
+
class GenerateDealsAndPayNewResponse < TencentCloud::Common::AbstractModel
|
5364
|
+
# @param Data: 计费下单响应结构体
|
5365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5366
|
+
# @type Data: :class:`Tencentcloud::Waf.v20180125.models.DealData`
|
5367
|
+
# @param Status: 1:成功,0:失败
|
5368
|
+
# @type Status: Integer
|
5369
|
+
# @param ReturnMessage: 返回message
|
5370
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5371
|
+
# @type ReturnMessage: String
|
5372
|
+
# @param InstanceId: 购买的实例ID
|
5373
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5374
|
+
# @type InstanceId: String
|
5375
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5376
|
+
# @type RequestId: String
|
5377
|
+
|
5378
|
+
attr_accessor :Data, :Status, :ReturnMessage, :InstanceId, :RequestId
|
5379
|
+
|
5380
|
+
def initialize(data=nil, status=nil, returnmessage=nil, instanceid=nil, requestid=nil)
|
5381
|
+
@Data = data
|
5382
|
+
@Status = status
|
5383
|
+
@ReturnMessage = returnmessage
|
5384
|
+
@InstanceId = instanceid
|
5385
|
+
@RequestId = requestid
|
5386
|
+
end
|
5387
|
+
|
5388
|
+
def deserialize(params)
|
5389
|
+
unless params['Data'].nil?
|
5390
|
+
@Data = DealData.new
|
5391
|
+
@Data.deserialize(params['Data'])
|
5392
|
+
end
|
5393
|
+
@Status = params['Status']
|
5394
|
+
@ReturnMessage = params['ReturnMessage']
|
5395
|
+
@InstanceId = params['InstanceId']
|
5396
|
+
@RequestId = params['RequestId']
|
5397
|
+
end
|
5398
|
+
end
|
5399
|
+
|
5319
5400
|
# GetAttackDownloadRecords请求参数结构体
|
5320
5401
|
class GetAttackDownloadRecordsRequest < TencentCloud::Common::AbstractModel
|
5321
5402
|
|
@@ -5508,6 +5589,129 @@ module TencentCloud
|
|
5508
5589
|
end
|
5509
5590
|
end
|
5510
5591
|
|
5592
|
+
# 计费下单接口出入参Goods
|
5593
|
+
class GoodNews < TencentCloud::Common::AbstractModel
|
5594
|
+
# @param GoodsNum: 商品数量
|
5595
|
+
# @type GoodsNum: Integer
|
5596
|
+
# @param GoodsDetail: 商品明细
|
5597
|
+
# @type GoodsDetail: :class:`Tencentcloud::Waf.v20180125.models.GoodsDetailNew`
|
5598
|
+
# @param GoodsCategoryId: 订单类型ID,用来唯一标识一个业务的一种场景(总共三种场景:新购、配置变更、续费)
|
5599
|
+
# 高级版: 102375(新购),102376(续费),102377(变配)
|
5600
|
+
# 企业版 : 102378(新购),102379(续费),102380(变配)
|
5601
|
+
# 旗舰版 : 102369(新购),102370(续费),102371(变配)
|
5602
|
+
# 高级版-CLB: 新购 101198 续费 101199 变配 101200
|
5603
|
+
# 企业版-CLB 101204(新购),101205(续费),101206(变配)
|
5604
|
+
# 旗舰版-CLB : 101201(新购),101202(续费),101203(变配)
|
5605
|
+
|
5606
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5607
|
+
# @type GoodsCategoryId: Integer
|
5608
|
+
# @param RegionId: 购买waf实例区域ID
|
5609
|
+
# 1 表示购买大陆资源
|
5610
|
+
# 2表示购买非中国大陆资源
|
5611
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5612
|
+
# @type RegionId: Integer
|
5613
|
+
|
5614
|
+
attr_accessor :GoodsNum, :GoodsDetail, :GoodsCategoryId, :RegionId
|
5615
|
+
|
5616
|
+
def initialize(goodsnum=nil, goodsdetail=nil, goodscategoryid=nil, regionid=nil)
|
5617
|
+
@GoodsNum = goodsnum
|
5618
|
+
@GoodsDetail = goodsdetail
|
5619
|
+
@GoodsCategoryId = goodscategoryid
|
5620
|
+
@RegionId = regionid
|
5621
|
+
end
|
5622
|
+
|
5623
|
+
def deserialize(params)
|
5624
|
+
@GoodsNum = params['GoodsNum']
|
5625
|
+
unless params['GoodsDetail'].nil?
|
5626
|
+
@GoodsDetail = GoodsDetailNew.new
|
5627
|
+
@GoodsDetail.deserialize(params['GoodsDetail'])
|
5628
|
+
end
|
5629
|
+
@GoodsCategoryId = params['GoodsCategoryId']
|
5630
|
+
@RegionId = params['RegionId']
|
5631
|
+
end
|
5632
|
+
end
|
5633
|
+
|
5634
|
+
# 产品明细
|
5635
|
+
class GoodsDetailNew < TencentCloud::Common::AbstractModel
|
5636
|
+
# @param TimeSpan: 时间间隔
|
5637
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5638
|
+
# @type TimeSpan: Integer
|
5639
|
+
# @param TimeUnit: 单位,支持m、y、d
|
5640
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5641
|
+
# @type TimeUnit: String
|
5642
|
+
# @param SubProductCode: 子产品标签,。新购,续费必传,变配时放在oldConfig newConfig里面
|
5643
|
+
# 高级版 :sp_wsm_waf_premium
|
5644
|
+
# 企业版 :sp_wsm_waf_enterprise
|
5645
|
+
# 旗舰版 :sp_wsm_waf_ultimate
|
5646
|
+
# 高级版-CLB:sp_wsm_waf_premium_clb
|
5647
|
+
# 企业版-CLB : sp_wsm_waf_enterprise_clb
|
5648
|
+
# 旗舰版-CLB:sp_wsm_waf_ultimate_clb
|
5649
|
+
|
5650
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5651
|
+
# @type SubProductCode: String
|
5652
|
+
# @param Pid: 业务产品申请的pid(对应一个定价公式),通过pid计费查询到定价模型
|
5653
|
+
# 高级版 :1000827
|
5654
|
+
# 企业版 :1000830
|
5655
|
+
# 旗舰版 :1000832
|
5656
|
+
# 高级版-CLB:1001150
|
5657
|
+
# 企业版-CLB : 1001152
|
5658
|
+
# 旗舰版-CLB:1001154
|
5659
|
+
|
5660
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5661
|
+
# @type Pid: Integer
|
5662
|
+
# @param InstanceName: waf实例名
|
5663
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5664
|
+
# @type InstanceName: String
|
5665
|
+
# @param AutoRenewFlag: 1:自动续费,0:不自动续费
|
5666
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5667
|
+
# @type AutoRenewFlag: Integer
|
5668
|
+
# @param RealRegion: waf购买的实际地域信息
|
5669
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5670
|
+
# @type RealRegion: Integer
|
5671
|
+
# @param LabelTypes: 计费细项标签数组
|
5672
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5673
|
+
# @type LabelTypes: Array
|
5674
|
+
# @param LabelCounts: 计费细项标签数量,一般和SvLabelType一一对应
|
5675
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5676
|
+
# @type LabelCounts: Array
|
5677
|
+
# @param CurDeadline: 变配使用,实例到期时间
|
5678
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5679
|
+
# @type CurDeadline: String
|
5680
|
+
# @param InstanceId: 对存在的实例购买bot 或api 安全
|
5681
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5682
|
+
# @type InstanceId: String
|
5683
|
+
|
5684
|
+
attr_accessor :TimeSpan, :TimeUnit, :SubProductCode, :Pid, :InstanceName, :AutoRenewFlag, :RealRegion, :LabelTypes, :LabelCounts, :CurDeadline, :InstanceId
|
5685
|
+
|
5686
|
+
def initialize(timespan=nil, timeunit=nil, subproductcode=nil, pid=nil, instancename=nil, autorenewflag=nil, realregion=nil, labeltypes=nil, labelcounts=nil, curdeadline=nil, instanceid=nil)
|
5687
|
+
@TimeSpan = timespan
|
5688
|
+
@TimeUnit = timeunit
|
5689
|
+
@SubProductCode = subproductcode
|
5690
|
+
@Pid = pid
|
5691
|
+
@InstanceName = instancename
|
5692
|
+
@AutoRenewFlag = autorenewflag
|
5693
|
+
@RealRegion = realregion
|
5694
|
+
@LabelTypes = labeltypes
|
5695
|
+
@LabelCounts = labelcounts
|
5696
|
+
@CurDeadline = curdeadline
|
5697
|
+
@InstanceId = instanceid
|
5698
|
+
end
|
5699
|
+
|
5700
|
+
def deserialize(params)
|
5701
|
+
@TimeSpan = params['TimeSpan']
|
5702
|
+
@TimeUnit = params['TimeUnit']
|
5703
|
+
@SubProductCode = params['SubProductCode']
|
5704
|
+
@Pid = params['Pid']
|
5705
|
+
@InstanceName = params['InstanceName']
|
5706
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
5707
|
+
@RealRegion = params['RealRegion']
|
5708
|
+
@LabelTypes = params['LabelTypes']
|
5709
|
+
@LabelCounts = params['LabelCounts']
|
5710
|
+
@CurDeadline = params['CurDeadline']
|
5711
|
+
@InstanceId = params['InstanceId']
|
5712
|
+
end
|
5713
|
+
end
|
5714
|
+
|
5511
5715
|
# CLB-WAF删除域名参数
|
5512
5716
|
class HostDel < TencentCloud::Common::AbstractModel
|
5513
5717
|
# @param Domain: 域名
|
@@ -8218,11 +8422,16 @@ module TencentCloud
|
|
8218
8422
|
|
8219
8423
|
# 防信息泄露的匹配条件结构体
|
8220
8424
|
class StrategyForAntiInfoLeak < TencentCloud::Common::AbstractModel
|
8221
|
-
# @param Field:
|
8425
|
+
# @param Field: 匹配条件,returncode(响应码)、keywords(关键字)、information(敏感信息)
|
8222
8426
|
# @type Field: String
|
8223
|
-
# @param CompareFunc:
|
8427
|
+
# @param CompareFunc: 逻辑符号,固定取值为contains
|
8224
8428
|
# @type CompareFunc: String
|
8225
|
-
# @param Content:
|
8429
|
+
# @param Content: 匹配内容。
|
8430
|
+
# 以下三个对应Field为information时可取的匹配内容:
|
8431
|
+
# idcard(身份证)、phone(手机号)、bankcard(银行卡)。
|
8432
|
+
# 以下为对应Field为returncode时可取的匹配内容:
|
8433
|
+
# 400(状态码400)、403(状态码403)、404(状态码404)、4xx(其它4xx状态码)、500(状态码500)、501(状态码501)、502(状态码502)、504(状态码504)、5xx(其它5xx状态码)。
|
8434
|
+
# 当对应Field为keywords时由用户自己输入匹配内容。
|
8226
8435
|
# @type Content: String
|
8227
8436
|
|
8228
8437
|
attr_accessor :Field, :CompareFunc, :Content
|
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.660
|
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-09-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|