tencentcloud-sdk-waf 3.0.684 → 3.0.686

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: 30d669803259035c5868a8af9cde9b8fd7c869ef
4
- data.tar.gz: 5713704d2f1fdf2c476de13fa72593857fbee994
3
+ metadata.gz: 2dc5d79b04cf23e462759e54b063166aa22a34f1
4
+ data.tar.gz: acdfe698fe8923bbeabcf4d4049c219ac5c63678
5
5
  SHA512:
6
- metadata.gz: 8066540b3946358466d2ecb37553bbecb6c335323e1daf3e327c9dcf7cc080ad13a783cd169cd8b708e5903cf6548ddc9dfa2a4ddb7a68cab2329b69827ab2ff
7
- data.tar.gz: 5036f080a24a49ec705ca769ab2d07ad3e51d443342acc695bd7f0cf7d1601cd7407b13e91510b88764961b5ccb0117065c10f7103f92a4f303a90d2cef333ea
6
+ metadata.gz: abf3c85eca6950452dfbdfbb3d65cbd22ed4b749008eafba46037c9387e32f6935193ea1102ae77113970fcfc88e1da21d1295892450b31045e58bc248ffb65b
7
+ data.tar.gz: 6ea13edb9f3a05c5440948449f5222207e974fd9a940fabce9dfabae30cff435e765397ac218159277e7cd5e4894de2aa04a50b5ca4e2f78435796198b3c814a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.684
1
+ 3.0.686
@@ -2460,6 +2460,30 @@ module TencentCloud
2460
2460
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2461
2461
  end
2462
2462
 
2463
+ # 提供给clb等使用的waf实例下单接口,目前只支持clb旗舰版实例的下单,该接口会进行入参校验,然后调用是否为收购用户,然后调用计费接口下单。目前只支持预付费下单,计费侧接口:https://tcb.woa.com/magical-brush/docs/754661947
2464
+
2465
+ # @param request: Request instance for ModifyGenerateDeals.
2466
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyGenerateDealsRequest`
2467
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyGenerateDealsResponse`
2468
+ def ModifyGenerateDeals(request)
2469
+ body = send_request('ModifyGenerateDeals', request.serialize)
2470
+ response = JSON.parse(body)
2471
+ if response['Response'].key?('Error') == false
2472
+ model = ModifyGenerateDealsResponse.new
2473
+ model.deserialize(response['Response'])
2474
+ model
2475
+ else
2476
+ code = response['Response']['Error']['Code']
2477
+ message = response['Response']['Error']['Message']
2478
+ reqid = response['Response']['RequestId']
2479
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2480
+ end
2481
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2482
+ raise e
2483
+ rescue StandardError => e
2484
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2485
+ end
2486
+
2463
2487
  # clb-waf编辑防护域名配置
2464
2488
 
2465
2489
  # @param request: Request instance for ModifyHost.
@@ -2804,15 +2804,39 @@ module TencentCloud
2804
2804
  class DescribeAntiInfoLeakageRulesRequest < TencentCloud::Common::AbstractModel
2805
2805
  # @param Domain: 域名
2806
2806
  # @type Domain: String
2807
+ # @param Offset: 翻页支持,读取偏移
2808
+ # @type Offset: Integer
2809
+ # @param Limit: 翻页支持,读取长度限制
2810
+ # @type Limit: Integer
2811
+ # @param Order: 排序方式,asc或者desc
2812
+ # @type Order: String
2813
+ # @param Filters: 过滤器,可以允许如下的值:
2814
+ # RuleId,Match_field,Name,Action,Status
2815
+ # @type Filters: Array
2807
2816
 
2808
- attr_accessor :Domain
2817
+ attr_accessor :Domain, :Offset, :Limit, :Order, :Filters
2809
2818
 
2810
- def initialize(domain=nil)
2819
+ def initialize(domain=nil, offset=nil, limit=nil, order=nil, filters=nil)
2811
2820
  @Domain = domain
2821
+ @Offset = offset
2822
+ @Limit = limit
2823
+ @Order = order
2824
+ @Filters = filters
2812
2825
  end
2813
2826
 
2814
2827
  def deserialize(params)
2815
2828
  @Domain = params['Domain']
2829
+ @Offset = params['Offset']
2830
+ @Limit = params['Limit']
2831
+ @Order = params['Order']
2832
+ unless params['Filters'].nil?
2833
+ @Filters = []
2834
+ params['Filters'].each do |i|
2835
+ filtersitemnew_tmp = FiltersItemNew.new
2836
+ filtersitemnew_tmp.deserialize(i)
2837
+ @Filters << filtersitemnew_tmp
2838
+ end
2839
+ end
2816
2840
  end
2817
2841
  end
2818
2842
 
@@ -6724,6 +6748,147 @@ module TencentCloud
6724
6748
  end
6725
6749
  end
6726
6750
 
6751
+ # 计费下单接口出入参Goods
6752
+ class Goods < TencentCloud::Common::AbstractModel
6753
+ # @param PayMode: 付费类型,1:预付费,0:后付费
6754
+ # @type PayMode: Integer
6755
+ # @param GoodsNum: 商品数量
6756
+ # @type GoodsNum: Integer
6757
+ # @param GoodsDetail: 商品明细
6758
+ # @type GoodsDetail: :class:`Tencentcloud::Waf.v20180125.models.GoodsDetail`
6759
+ # @param ProjectId: 默认为0
6760
+ # 注意:此字段可能返回 null,表示取不到有效值。
6761
+ # @type ProjectId: Integer
6762
+ # @param GoodsCategoryId: 计费类目ID,对应cid
6763
+ # 注意:此字段可能返回 null,表示取不到有效值。
6764
+ # @type GoodsCategoryId: Integer
6765
+ # @param Platform: 平台类型,默认1
6766
+ # 注意:此字段可能返回 null,表示取不到有效值。
6767
+ # @type Platform: Integer
6768
+ # @param RegionId: 购买waf实例区域ID
6769
+ # 注意:此字段可能返回 null,表示取不到有效值。
6770
+ # @type RegionId: Integer
6771
+
6772
+ attr_accessor :PayMode, :GoodsNum, :GoodsDetail, :ProjectId, :GoodsCategoryId, :Platform, :RegionId
6773
+
6774
+ def initialize(paymode=nil, goodsnum=nil, goodsdetail=nil, projectid=nil, goodscategoryid=nil, platform=nil, regionid=nil)
6775
+ @PayMode = paymode
6776
+ @GoodsNum = goodsnum
6777
+ @GoodsDetail = goodsdetail
6778
+ @ProjectId = projectid
6779
+ @GoodsCategoryId = goodscategoryid
6780
+ @Platform = platform
6781
+ @RegionId = regionid
6782
+ end
6783
+
6784
+ def deserialize(params)
6785
+ @PayMode = params['PayMode']
6786
+ @GoodsNum = params['GoodsNum']
6787
+ unless params['GoodsDetail'].nil?
6788
+ @GoodsDetail = GoodsDetail.new
6789
+ @GoodsDetail.deserialize(params['GoodsDetail'])
6790
+ end
6791
+ @ProjectId = params['ProjectId']
6792
+ @GoodsCategoryId = params['GoodsCategoryId']
6793
+ @Platform = params['Platform']
6794
+ @RegionId = params['RegionId']
6795
+ end
6796
+ end
6797
+
6798
+ # 产品明细
6799
+ class GoodsDetail < TencentCloud::Common::AbstractModel
6800
+ # @param TimeSpan: 时间间隔
6801
+ # @type TimeSpan: Integer
6802
+ # @param TimeUnit: 单位,支持m、y、d
6803
+ # @type TimeUnit: String
6804
+ # @param ProductCode: 产品码
6805
+ # @type ProductCode: String
6806
+ # @param SubProductCode: 二级产品码
6807
+ # @type SubProductCode: String
6808
+ # @param Pid: 计费策略id
6809
+ # @type Pid: Integer
6810
+ # @param ProductInfo: waf产品码
6811
+ # 注意:此字段可能返回 null,表示取不到有效值。
6812
+ # @type ProductInfo: Array
6813
+ # @param InstanceName: waf实例名
6814
+ # 注意:此字段可能返回 null,表示取不到有效值。
6815
+ # @type InstanceName: String
6816
+ # @param ElasticQps: QPS数量
6817
+ # 注意:此字段可能返回 null,表示取不到有效值。
6818
+ # @type ElasticQps: Integer
6819
+ # @param FlexBill: 弹性账单
6820
+ # 注意:此字段可能返回 null,表示取不到有效值。
6821
+ # @type FlexBill: Integer
6822
+ # @param AutoRenewFlag: 1:自动续费,0:不自动续费
6823
+ # 注意:此字段可能返回 null,表示取不到有效值。
6824
+ # @type AutoRenewFlag: Integer
6825
+ # @param RealRegion: waf购买的实际地域信息
6826
+ # 注意:此字段可能返回 null,表示取不到有效值。
6827
+ # @type RealRegion: Integer
6828
+ # @param Type: Waf实例对应的二级产品码
6829
+ # 注意:此字段可能返回 null,表示取不到有效值。
6830
+ # @type Type: String
6831
+ # @param LabelTypes: 计费细项标签数组
6832
+ # 注意:此字段可能返回 null,表示取不到有效值。
6833
+ # @type LabelTypes: Array
6834
+ # @param LabelCounts: 计费细项标签数量,一般和SvLabelType一一对应
6835
+ # 注意:此字段可能返回 null,表示取不到有效值。
6836
+ # @type LabelCounts: Array
6837
+ # @param CurDeadline: 变配使用,实例到期时间
6838
+ # 注意:此字段可能返回 null,表示取不到有效值。
6839
+ # @type CurDeadline: String
6840
+ # @param InstanceId: 对存在的实例购买bot 或api 安全
6841
+ # 注意:此字段可能返回 null,表示取不到有效值。
6842
+ # @type InstanceId: String
6843
+
6844
+ attr_accessor :TimeSpan, :TimeUnit, :ProductCode, :SubProductCode, :Pid, :ProductInfo, :InstanceName, :ElasticQps, :FlexBill, :AutoRenewFlag, :RealRegion, :Type, :LabelTypes, :LabelCounts, :CurDeadline, :InstanceId
6845
+
6846
+ def initialize(timespan=nil, timeunit=nil, productcode=nil, subproductcode=nil, pid=nil, productinfo=nil, instancename=nil, elasticqps=nil, flexbill=nil, autorenewflag=nil, realregion=nil, type=nil, labeltypes=nil, labelcounts=nil, curdeadline=nil, instanceid=nil)
6847
+ @TimeSpan = timespan
6848
+ @TimeUnit = timeunit
6849
+ @ProductCode = productcode
6850
+ @SubProductCode = subproductcode
6851
+ @Pid = pid
6852
+ @ProductInfo = productinfo
6853
+ @InstanceName = instancename
6854
+ @ElasticQps = elasticqps
6855
+ @FlexBill = flexbill
6856
+ @AutoRenewFlag = autorenewflag
6857
+ @RealRegion = realregion
6858
+ @Type = type
6859
+ @LabelTypes = labeltypes
6860
+ @LabelCounts = labelcounts
6861
+ @CurDeadline = curdeadline
6862
+ @InstanceId = instanceid
6863
+ end
6864
+
6865
+ def deserialize(params)
6866
+ @TimeSpan = params['TimeSpan']
6867
+ @TimeUnit = params['TimeUnit']
6868
+ @ProductCode = params['ProductCode']
6869
+ @SubProductCode = params['SubProductCode']
6870
+ @Pid = params['Pid']
6871
+ unless params['ProductInfo'].nil?
6872
+ @ProductInfo = []
6873
+ params['ProductInfo'].each do |i|
6874
+ productinfo_tmp = ProductInfo.new
6875
+ productinfo_tmp.deserialize(i)
6876
+ @ProductInfo << productinfo_tmp
6877
+ end
6878
+ end
6879
+ @InstanceName = params['InstanceName']
6880
+ @ElasticQps = params['ElasticQps']
6881
+ @FlexBill = params['FlexBill']
6882
+ @AutoRenewFlag = params['AutoRenewFlag']
6883
+ @RealRegion = params['RealRegion']
6884
+ @Type = params['Type']
6885
+ @LabelTypes = params['LabelTypes']
6886
+ @LabelCounts = params['LabelCounts']
6887
+ @CurDeadline = params['CurDeadline']
6888
+ @InstanceId = params['InstanceId']
6889
+ end
6890
+ end
6891
+
6727
6892
  # 产品明细
6728
6893
  class GoodsDetailNew < TencentCloud::Common::AbstractModel
6729
6894
  # @param TimeSpan: 时间间隔
@@ -8422,6 +8587,62 @@ module TencentCloud
8422
8587
  end
8423
8588
  end
8424
8589
 
8590
+ # ModifyGenerateDeals请求参数结构体
8591
+ class ModifyGenerateDealsRequest < TencentCloud::Common::AbstractModel
8592
+ # @param Goods: 计费下单入参
8593
+ # @type Goods: Array
8594
+
8595
+ attr_accessor :Goods
8596
+
8597
+ def initialize(goods=nil)
8598
+ @Goods = goods
8599
+ end
8600
+
8601
+ def deserialize(params)
8602
+ unless params['Goods'].nil?
8603
+ @Goods = []
8604
+ params['Goods'].each do |i|
8605
+ goods_tmp = Goods.new
8606
+ goods_tmp.deserialize(i)
8607
+ @Goods << goods_tmp
8608
+ end
8609
+ end
8610
+ end
8611
+ end
8612
+
8613
+ # ModifyGenerateDeals返回参数结构体
8614
+ class ModifyGenerateDealsResponse < TencentCloud::Common::AbstractModel
8615
+ # @param Data: 计费下单响应结构体
8616
+ # 注意:此字段可能返回 null,表示取不到有效值。
8617
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.DealData`
8618
+ # @param Status: 1:成功,0:失败
8619
+ # @type Status: Integer
8620
+ # @param ReturnMessage: 返回message
8621
+ # 注意:此字段可能返回 null,表示取不到有效值。
8622
+ # @type ReturnMessage: String
8623
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8624
+ # @type RequestId: String
8625
+
8626
+ attr_accessor :Data, :Status, :ReturnMessage, :RequestId
8627
+
8628
+ def initialize(data=nil, status=nil, returnmessage=nil, requestid=nil)
8629
+ @Data = data
8630
+ @Status = status
8631
+ @ReturnMessage = returnmessage
8632
+ @RequestId = requestid
8633
+ end
8634
+
8635
+ def deserialize(params)
8636
+ unless params['Data'].nil?
8637
+ @Data = DealData.new
8638
+ @Data.deserialize(params['Data'])
8639
+ end
8640
+ @Status = params['Status']
8641
+ @ReturnMessage = params['ReturnMessage']
8642
+ @RequestId = params['RequestId']
8643
+ end
8644
+ end
8645
+
8425
8646
  # ModifyHostFlowMode请求参数结构体
8426
8647
  class ModifyHostFlowModeRequest < TencentCloud::Common::AbstractModel
8427
8648
  # @param Domain: 域名
@@ -9627,6 +9848,28 @@ module TencentCloud
9627
9848
  end
9628
9849
  end
9629
9850
 
9851
+ # waf产品
9852
+ class ProductInfo < TencentCloud::Common::AbstractModel
9853
+ # @param Name: 产品名称
9854
+ # 注意:此字段可能返回 null,表示取不到有效值。
9855
+ # @type Name: String
9856
+ # @param Value: 版本
9857
+ # 注意:此字段可能返回 null,表示取不到有效值。
9858
+ # @type Value: String
9859
+
9860
+ attr_accessor :Name, :Value
9861
+
9862
+ def initialize(name=nil, value=nil)
9863
+ @Name = name
9864
+ @Value = value
9865
+ end
9866
+
9867
+ def deserialize(params)
9868
+ @Name = params['Name']
9869
+ @Value = params['Value']
9870
+ end
9871
+ end
9872
+
9630
9873
  # clb-waf QPS套餐 New
9631
9874
  class QPSPackageNew < TencentCloud::Common::AbstractModel
9632
9875
  # @param ResourceIds: 资源ID
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.684
4
+ version: 3.0.686
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-10-25 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common