tencentcloud-sdk-waf 3.0.684 → 3.0.685
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 +219 -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: d328edf06c57cd59a81e54f152288b7d5e0f0f9c
|
4
|
+
data.tar.gz: fef81cfaf9af9745f79129c322d4d7a57af68d6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40b1027b4c8e3de361d4e09ac2c43452d4a2407ea1e6267a799e55fd806e5874da0a42b4f31f1af9a13df09438e04412b7831ede05764444b04dfdfe906388b1
|
7
|
+
data.tar.gz: cfaad57eeae8a9c2cf318b4f11b00c2edc6b7f2787abcb12f85b28f09e96b165771e88552efa7be287f1c4ceee00030392c15cc879b0a782d34e1cb9dcae763f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.685
|
data/lib/v20180125/client.rb
CHANGED
@@ -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.
|
data/lib/v20180125/models.rb
CHANGED
@@ -6724,6 +6724,147 @@ module TencentCloud
|
|
6724
6724
|
end
|
6725
6725
|
end
|
6726
6726
|
|
6727
|
+
# 计费下单接口出入参Goods
|
6728
|
+
class Goods < TencentCloud::Common::AbstractModel
|
6729
|
+
# @param PayMode: 付费类型,1:预付费,0:后付费
|
6730
|
+
# @type PayMode: Integer
|
6731
|
+
# @param GoodsNum: 商品数量
|
6732
|
+
# @type GoodsNum: Integer
|
6733
|
+
# @param GoodsDetail: 商品明细
|
6734
|
+
# @type GoodsDetail: :class:`Tencentcloud::Waf.v20180125.models.GoodsDetail`
|
6735
|
+
# @param ProjectId: 默认为0
|
6736
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6737
|
+
# @type ProjectId: Integer
|
6738
|
+
# @param GoodsCategoryId: 计费类目ID,对应cid
|
6739
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6740
|
+
# @type GoodsCategoryId: Integer
|
6741
|
+
# @param Platform: 平台类型,默认1
|
6742
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6743
|
+
# @type Platform: Integer
|
6744
|
+
# @param RegionId: 购买waf实例区域ID
|
6745
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6746
|
+
# @type RegionId: Integer
|
6747
|
+
|
6748
|
+
attr_accessor :PayMode, :GoodsNum, :GoodsDetail, :ProjectId, :GoodsCategoryId, :Platform, :RegionId
|
6749
|
+
|
6750
|
+
def initialize(paymode=nil, goodsnum=nil, goodsdetail=nil, projectid=nil, goodscategoryid=nil, platform=nil, regionid=nil)
|
6751
|
+
@PayMode = paymode
|
6752
|
+
@GoodsNum = goodsnum
|
6753
|
+
@GoodsDetail = goodsdetail
|
6754
|
+
@ProjectId = projectid
|
6755
|
+
@GoodsCategoryId = goodscategoryid
|
6756
|
+
@Platform = platform
|
6757
|
+
@RegionId = regionid
|
6758
|
+
end
|
6759
|
+
|
6760
|
+
def deserialize(params)
|
6761
|
+
@PayMode = params['PayMode']
|
6762
|
+
@GoodsNum = params['GoodsNum']
|
6763
|
+
unless params['GoodsDetail'].nil?
|
6764
|
+
@GoodsDetail = GoodsDetail.new
|
6765
|
+
@GoodsDetail.deserialize(params['GoodsDetail'])
|
6766
|
+
end
|
6767
|
+
@ProjectId = params['ProjectId']
|
6768
|
+
@GoodsCategoryId = params['GoodsCategoryId']
|
6769
|
+
@Platform = params['Platform']
|
6770
|
+
@RegionId = params['RegionId']
|
6771
|
+
end
|
6772
|
+
end
|
6773
|
+
|
6774
|
+
# 产品明细
|
6775
|
+
class GoodsDetail < TencentCloud::Common::AbstractModel
|
6776
|
+
# @param TimeSpan: 时间间隔
|
6777
|
+
# @type TimeSpan: Integer
|
6778
|
+
# @param TimeUnit: 单位,支持m、y、d
|
6779
|
+
# @type TimeUnit: String
|
6780
|
+
# @param ProductCode: 产品码
|
6781
|
+
# @type ProductCode: String
|
6782
|
+
# @param SubProductCode: 二级产品码
|
6783
|
+
# @type SubProductCode: String
|
6784
|
+
# @param Pid: 计费策略id
|
6785
|
+
# @type Pid: Integer
|
6786
|
+
# @param ProductInfo: waf产品码
|
6787
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6788
|
+
# @type ProductInfo: Array
|
6789
|
+
# @param InstanceName: waf实例名
|
6790
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6791
|
+
# @type InstanceName: String
|
6792
|
+
# @param ElasticQps: QPS数量
|
6793
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6794
|
+
# @type ElasticQps: Integer
|
6795
|
+
# @param FlexBill: 弹性账单
|
6796
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6797
|
+
# @type FlexBill: Integer
|
6798
|
+
# @param AutoRenewFlag: 1:自动续费,0:不自动续费
|
6799
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6800
|
+
# @type AutoRenewFlag: Integer
|
6801
|
+
# @param RealRegion: waf购买的实际地域信息
|
6802
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6803
|
+
# @type RealRegion: Integer
|
6804
|
+
# @param Type: Waf实例对应的二级产品码
|
6805
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6806
|
+
# @type Type: String
|
6807
|
+
# @param LabelTypes: 计费细项标签数组
|
6808
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6809
|
+
# @type LabelTypes: Array
|
6810
|
+
# @param LabelCounts: 计费细项标签数量,一般和SvLabelType一一对应
|
6811
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6812
|
+
# @type LabelCounts: Array
|
6813
|
+
# @param CurDeadline: 变配使用,实例到期时间
|
6814
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6815
|
+
# @type CurDeadline: String
|
6816
|
+
# @param InstanceId: 对存在的实例购买bot 或api 安全
|
6817
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6818
|
+
# @type InstanceId: String
|
6819
|
+
|
6820
|
+
attr_accessor :TimeSpan, :TimeUnit, :ProductCode, :SubProductCode, :Pid, :ProductInfo, :InstanceName, :ElasticQps, :FlexBill, :AutoRenewFlag, :RealRegion, :Type, :LabelTypes, :LabelCounts, :CurDeadline, :InstanceId
|
6821
|
+
|
6822
|
+
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)
|
6823
|
+
@TimeSpan = timespan
|
6824
|
+
@TimeUnit = timeunit
|
6825
|
+
@ProductCode = productcode
|
6826
|
+
@SubProductCode = subproductcode
|
6827
|
+
@Pid = pid
|
6828
|
+
@ProductInfo = productinfo
|
6829
|
+
@InstanceName = instancename
|
6830
|
+
@ElasticQps = elasticqps
|
6831
|
+
@FlexBill = flexbill
|
6832
|
+
@AutoRenewFlag = autorenewflag
|
6833
|
+
@RealRegion = realregion
|
6834
|
+
@Type = type
|
6835
|
+
@LabelTypes = labeltypes
|
6836
|
+
@LabelCounts = labelcounts
|
6837
|
+
@CurDeadline = curdeadline
|
6838
|
+
@InstanceId = instanceid
|
6839
|
+
end
|
6840
|
+
|
6841
|
+
def deserialize(params)
|
6842
|
+
@TimeSpan = params['TimeSpan']
|
6843
|
+
@TimeUnit = params['TimeUnit']
|
6844
|
+
@ProductCode = params['ProductCode']
|
6845
|
+
@SubProductCode = params['SubProductCode']
|
6846
|
+
@Pid = params['Pid']
|
6847
|
+
unless params['ProductInfo'].nil?
|
6848
|
+
@ProductInfo = []
|
6849
|
+
params['ProductInfo'].each do |i|
|
6850
|
+
productinfo_tmp = ProductInfo.new
|
6851
|
+
productinfo_tmp.deserialize(i)
|
6852
|
+
@ProductInfo << productinfo_tmp
|
6853
|
+
end
|
6854
|
+
end
|
6855
|
+
@InstanceName = params['InstanceName']
|
6856
|
+
@ElasticQps = params['ElasticQps']
|
6857
|
+
@FlexBill = params['FlexBill']
|
6858
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
6859
|
+
@RealRegion = params['RealRegion']
|
6860
|
+
@Type = params['Type']
|
6861
|
+
@LabelTypes = params['LabelTypes']
|
6862
|
+
@LabelCounts = params['LabelCounts']
|
6863
|
+
@CurDeadline = params['CurDeadline']
|
6864
|
+
@InstanceId = params['InstanceId']
|
6865
|
+
end
|
6866
|
+
end
|
6867
|
+
|
6727
6868
|
# 产品明细
|
6728
6869
|
class GoodsDetailNew < TencentCloud::Common::AbstractModel
|
6729
6870
|
# @param TimeSpan: 时间间隔
|
@@ -8422,6 +8563,62 @@ module TencentCloud
|
|
8422
8563
|
end
|
8423
8564
|
end
|
8424
8565
|
|
8566
|
+
# ModifyGenerateDeals请求参数结构体
|
8567
|
+
class ModifyGenerateDealsRequest < TencentCloud::Common::AbstractModel
|
8568
|
+
# @param Goods: 计费下单入参
|
8569
|
+
# @type Goods: Array
|
8570
|
+
|
8571
|
+
attr_accessor :Goods
|
8572
|
+
|
8573
|
+
def initialize(goods=nil)
|
8574
|
+
@Goods = goods
|
8575
|
+
end
|
8576
|
+
|
8577
|
+
def deserialize(params)
|
8578
|
+
unless params['Goods'].nil?
|
8579
|
+
@Goods = []
|
8580
|
+
params['Goods'].each do |i|
|
8581
|
+
goods_tmp = Goods.new
|
8582
|
+
goods_tmp.deserialize(i)
|
8583
|
+
@Goods << goods_tmp
|
8584
|
+
end
|
8585
|
+
end
|
8586
|
+
end
|
8587
|
+
end
|
8588
|
+
|
8589
|
+
# ModifyGenerateDeals返回参数结构体
|
8590
|
+
class ModifyGenerateDealsResponse < TencentCloud::Common::AbstractModel
|
8591
|
+
# @param Data: 计费下单响应结构体
|
8592
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8593
|
+
# @type Data: :class:`Tencentcloud::Waf.v20180125.models.DealData`
|
8594
|
+
# @param Status: 1:成功,0:失败
|
8595
|
+
# @type Status: Integer
|
8596
|
+
# @param ReturnMessage: 返回message
|
8597
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8598
|
+
# @type ReturnMessage: String
|
8599
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8600
|
+
# @type RequestId: String
|
8601
|
+
|
8602
|
+
attr_accessor :Data, :Status, :ReturnMessage, :RequestId
|
8603
|
+
|
8604
|
+
def initialize(data=nil, status=nil, returnmessage=nil, requestid=nil)
|
8605
|
+
@Data = data
|
8606
|
+
@Status = status
|
8607
|
+
@ReturnMessage = returnmessage
|
8608
|
+
@RequestId = requestid
|
8609
|
+
end
|
8610
|
+
|
8611
|
+
def deserialize(params)
|
8612
|
+
unless params['Data'].nil?
|
8613
|
+
@Data = DealData.new
|
8614
|
+
@Data.deserialize(params['Data'])
|
8615
|
+
end
|
8616
|
+
@Status = params['Status']
|
8617
|
+
@ReturnMessage = params['ReturnMessage']
|
8618
|
+
@RequestId = params['RequestId']
|
8619
|
+
end
|
8620
|
+
end
|
8621
|
+
|
8425
8622
|
# ModifyHostFlowMode请求参数结构体
|
8426
8623
|
class ModifyHostFlowModeRequest < TencentCloud::Common::AbstractModel
|
8427
8624
|
# @param Domain: 域名
|
@@ -9627,6 +9824,28 @@ module TencentCloud
|
|
9627
9824
|
end
|
9628
9825
|
end
|
9629
9826
|
|
9827
|
+
# waf产品
|
9828
|
+
class ProductInfo < TencentCloud::Common::AbstractModel
|
9829
|
+
# @param Name: 产品名称
|
9830
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9831
|
+
# @type Name: String
|
9832
|
+
# @param Value: 版本
|
9833
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9834
|
+
# @type Value: String
|
9835
|
+
|
9836
|
+
attr_accessor :Name, :Value
|
9837
|
+
|
9838
|
+
def initialize(name=nil, value=nil)
|
9839
|
+
@Name = name
|
9840
|
+
@Value = value
|
9841
|
+
end
|
9842
|
+
|
9843
|
+
def deserialize(params)
|
9844
|
+
@Name = params['Name']
|
9845
|
+
@Value = params['Value']
|
9846
|
+
end
|
9847
|
+
end
|
9848
|
+
|
9630
9849
|
# clb-waf QPS套餐 New
|
9631
9850
|
class QPSPackageNew < TencentCloud::Common::AbstractModel
|
9632
9851
|
# @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.
|
4
|
+
version: 3.0.685
|
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-
|
11
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|