tencentcloud-sdk-waf 3.0.771 → 3.0.772

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bcd193de32a8156872fe5dcb409e777f1d7a122
4
- data.tar.gz: bb36fe36412f2b0e761a2946e82602d9a38f12f1
3
+ metadata.gz: 24a918167f5741efbb9ee5d814c089ae2a3f7aab
4
+ data.tar.gz: cf2b5233db056f20e3bfbcf740ec715aab6e0151
5
5
  SHA512:
6
- metadata.gz: a4d5e2d443a717c971d03137d60059ca7faf4de0182ab9467edd450e5a14276c46188b7ebba9104986a30575dfc271f0b118328d11cdbfcd1d40db5af6c00a6b
7
- data.tar.gz: 8b66d48cce876f9ef94ee15c376282b814464837c0fbddfd2a6bac7be32408ca8140836391d060dfebe83ba7aeacb357f46cb0fb648ae4751ef45f51b9458310
6
+ metadata.gz: e0808e3a4bf5abe52627cf3ecb18451f723592db09c8af013a3c7abbb9d21248b89b71c1e5f076038611d8a27c29ce7f34b8b4f3c932427d6067d1b4be6e09ce
7
+ data.tar.gz: 32f8fb1879e716af1ebf0f39de454fd8915bd51487334691299324abe228c6850caa58ecc0737679478d020588b07f07696a6b4a7d8a0251bacfabb4cf581084
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.771
1
+ 3.0.772
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 计费资源购买、续费下单接口
225
+
226
+ # @param request: Request instance for CreateDeals.
227
+ # @type request: :class:`Tencentcloud::waf::V20180125::CreateDealsRequest`
228
+ # @rtype: :class:`Tencentcloud::waf::V20180125::CreateDealsResponse`
229
+ def CreateDeals(request)
230
+ body = send_request('CreateDeals', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateDealsResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # clb-waf中添加防护域名
225
249
 
226
250
  # @param request: Request instance for CreateHost.
@@ -56,8 +56,8 @@ module TencentCloud
56
56
 
57
57
  attr_accessor :BTime, :Count, :BeginTime
58
58
  extend Gem::Deprecate
59
- deprecate :BTime, :none, 2024, 1
60
- deprecate :BTime=, :none, 2024, 1
59
+ deprecate :BTime, :none, 2024, 3
60
+ deprecate :BTime=, :none, 2024, 3
61
61
 
62
62
  def initialize(btime=nil, count=nil, begintime=nil)
63
63
  @BTime = btime
@@ -1887,6 +1887,223 @@ module TencentCloud
1887
1887
  end
1888
1888
  end
1889
1889
 
1890
+ # 计费下单接口出入参Goods
1891
+ class CreateDealsGoods < TencentCloud::Common::AbstractModel
1892
+ # @param GoodsNum: 商品数量
1893
+ # @type GoodsNum: Integer
1894
+ # @param GoodsDetail: 商品明细
1895
+ # @type GoodsDetail: :class:`Tencentcloud::Waf.v20180125.models.CreateDealsGoodsDetail`
1896
+ # @param GoodsCategoryId: 订单类型ID,用来唯一标识一个业务的一种场景(总共三种场景:新购、配置变更、续费)
1897
+ # 高级版: 102375(新购),102376(续费),102377(变配)
1898
+ # 企业版 : 102378(新购),102379(续费),102380(变配)
1899
+ # 旗舰版 : 102369(新购),102370(续费),102371(变配)
1900
+ # 域名包 : 102372(新购),102373(续费),102374(变配)
1901
+ # 业务扩展包 : 101040(新购),101041(续费),101042(变配)
1902
+
1903
+ # 高级版-CLB: 新购 101198 续费 101199 变配 101200
1904
+ # 企业版-CLB 101204(新购),101205(续费),101206(变配)
1905
+ # 旗舰版-CLB : 101201(新购),101202(续费),101203(变配)
1906
+ # 域名包-CLB: 101207(新购),101208(续费),101209(变配)
1907
+ # 业务扩展包-CLB: 101210(新购),101211(续费),101212(变配)
1908
+
1909
+ # 注意:此字段可能返回 null,表示取不到有效值。
1910
+ # @type GoodsCategoryId: Integer
1911
+ # @param RegionId: 购买waf实例区域ID
1912
+ # 1 表示购买大陆资源;
1913
+ # 9表示购买非中国大陆资源
1914
+ # 注意:此字段可能返回 null,表示取不到有效值。
1915
+ # @type RegionId: Integer
1916
+
1917
+ attr_accessor :GoodsNum, :GoodsDetail, :GoodsCategoryId, :RegionId
1918
+
1919
+ def initialize(goodsnum=nil, goodsdetail=nil, goodscategoryid=nil, regionid=nil)
1920
+ @GoodsNum = goodsnum
1921
+ @GoodsDetail = goodsdetail
1922
+ @GoodsCategoryId = goodscategoryid
1923
+ @RegionId = regionid
1924
+ end
1925
+
1926
+ def deserialize(params)
1927
+ @GoodsNum = params['GoodsNum']
1928
+ unless params['GoodsDetail'].nil?
1929
+ @GoodsDetail = CreateDealsGoodsDetail.new
1930
+ @GoodsDetail.deserialize(params['GoodsDetail'])
1931
+ end
1932
+ @GoodsCategoryId = params['GoodsCategoryId']
1933
+ @RegionId = params['RegionId']
1934
+ end
1935
+ end
1936
+
1937
+ # 产品明细
1938
+ class CreateDealsGoodsDetail < TencentCloud::Common::AbstractModel
1939
+ # @param TimeSpan: 时间间隔
1940
+ # 注意:此字段可能返回 null,表示取不到有效值。
1941
+ # @type TimeSpan: Integer
1942
+ # @param TimeUnit: 单位,支持购买d、m、y 即(日、月、年)
1943
+ # 注意:此字段可能返回 null,表示取不到有效值。
1944
+ # @type TimeUnit: String
1945
+ # @param SubProductCode: 子产品标签,。新购,续费必传,变配时放在oldConfig newConfig里面
1946
+
1947
+ # Saas 高级版 :sp_wsm_waf_premium
1948
+ # Saas企业版 :sp_wsm_waf_enterprise
1949
+ # Saas旗舰版 :sp_wsm_waf_ultimate
1950
+ # Saas 业务扩展包:sp_wsm_waf_qpsep
1951
+ # Saas 域名扩展包:sp_wsm_waf_domain
1952
+
1953
+ # 高级版-CLB:sp_wsm_waf_premium_clb
1954
+ # 企业版-CLB : sp_wsm_waf_enterprise_clb
1955
+ # 旗舰版-CLB:sp_wsm_waf_ultimate_clb
1956
+ # 业务扩展包-CLB:sp_wsm_waf_qpsep_clb
1957
+ # 域名扩展包-CLB:sp_wsm_waf_domain_clb
1958
+
1959
+ # 注意:此字段可能返回 null,表示取不到有效值。
1960
+ # @type SubProductCode: String
1961
+ # @param Pid: 业务产品申请的pid(对应一个定价公式),通过pid计费查询到定价模型
1962
+ # 高级版 :1000827
1963
+ # 企业版 :1000830
1964
+ # 旗舰版 :1000832
1965
+ # 域名包 : 1000834
1966
+ # 业务扩展包 : 1000481
1967
+ # 高级版-CLB:1001150
1968
+ # 企业版-CLB : 1001152
1969
+ # 旗舰版-CLB:1001154
1970
+ # 域名包-CLB: 1001156
1971
+ # 业务扩展包-CLB : 1001160
1972
+
1973
+ # 注意:此字段可能返回 null,表示取不到有效值。
1974
+ # @type Pid: Integer
1975
+ # @param InstanceName: waf实例名
1976
+ # 注意:此字段可能返回 null,表示取不到有效值。
1977
+ # @type InstanceName: String
1978
+ # @param AutoRenewFlag: 1:自动续费,0:不自动续费
1979
+ # 注意:此字段可能返回 null,表示取不到有效值。
1980
+ # @type AutoRenewFlag: Integer
1981
+ # @param RealRegion: waf购买的实际地域信息
1982
+ # 注意:此字段可能返回 null,表示取不到有效值。
1983
+ # @type RealRegion: Integer
1984
+ # @param LabelTypes: 计费细项标签数组
1985
+ # Saas 高级版 sv_wsm_waf_package_premium
1986
+ # Saas 企业版 sv_wsm_waf_package_enterprise
1987
+ # Saas 旗舰版 sv_wsm_waf_package_ultimate
1988
+ # Saas 非中国大陆高级版 sv_wsm_waf_package_premium_intl
1989
+ # Saas 非中国大陆企业版 sv_wsm_waf_package_enterprise_intl
1990
+ # Saas 非中国大陆旗舰版 sv_wsm_waf_package_ultimate _intl
1991
+ # Saas 业务扩展包 sv_wsm_waf_qps_ep
1992
+ # Saas 域名扩展包 sv_wsm_waf_domain
1993
+
1994
+ # 高级版CLB sv_wsm_waf_package_premium_clb
1995
+ # 企业版CLB sv_wsm_waf_package_enterprise_clb
1996
+ # 旗舰版CLB sv_wsm_waf_package_ultimate_clb
1997
+ # 非中国大陆高级版 CLB sv_wsm_waf_package_premium_clb_intl
1998
+ # 非中国大陆企业版CLB sv_wsm_waf_package_premium_clb_intl
1999
+ # 非中国大陆旗舰版CLB sv_wsm_waf_package_ultimate_clb _intl
2000
+ # 业务扩展包CLB sv_wsm_waf_qps_ep_clb
2001
+ # 域名扩展包CLB sv_wsm_waf_domain_clb
2002
+
2003
+ # 注意:此字段可能返回 null,表示取不到有效值。
2004
+ # @type LabelTypes: Array
2005
+ # @param LabelCounts: 计费细项标签数量,一般和SvLabelType一一对应
2006
+ # 注意:此字段可能返回 null,表示取不到有效值。
2007
+ # @type LabelCounts: Array
2008
+ # @param CurDeadline: 变配使用,实例到期时间
2009
+ # 注意:此字段可能返回 null,表示取不到有效值。
2010
+ # @type CurDeadline: String
2011
+ # @param InstanceId: 对存在的实例购买bot 或api 安全
2012
+ # 注意:此字段可能返回 null,表示取不到有效值。
2013
+ # @type InstanceId: String
2014
+ # @param ResourceId: 资源id
2015
+ # 注意:此字段可能返回 null,表示取不到有效值。
2016
+ # @type ResourceId: String
2017
+
2018
+ attr_accessor :TimeSpan, :TimeUnit, :SubProductCode, :Pid, :InstanceName, :AutoRenewFlag, :RealRegion, :LabelTypes, :LabelCounts, :CurDeadline, :InstanceId, :ResourceId
2019
+
2020
+ def initialize(timespan=nil, timeunit=nil, subproductcode=nil, pid=nil, instancename=nil, autorenewflag=nil, realregion=nil, labeltypes=nil, labelcounts=nil, curdeadline=nil, instanceid=nil, resourceid=nil)
2021
+ @TimeSpan = timespan
2022
+ @TimeUnit = timeunit
2023
+ @SubProductCode = subproductcode
2024
+ @Pid = pid
2025
+ @InstanceName = instancename
2026
+ @AutoRenewFlag = autorenewflag
2027
+ @RealRegion = realregion
2028
+ @LabelTypes = labeltypes
2029
+ @LabelCounts = labelcounts
2030
+ @CurDeadline = curdeadline
2031
+ @InstanceId = instanceid
2032
+ @ResourceId = resourceid
2033
+ end
2034
+
2035
+ def deserialize(params)
2036
+ @TimeSpan = params['TimeSpan']
2037
+ @TimeUnit = params['TimeUnit']
2038
+ @SubProductCode = params['SubProductCode']
2039
+ @Pid = params['Pid']
2040
+ @InstanceName = params['InstanceName']
2041
+ @AutoRenewFlag = params['AutoRenewFlag']
2042
+ @RealRegion = params['RealRegion']
2043
+ @LabelTypes = params['LabelTypes']
2044
+ @LabelCounts = params['LabelCounts']
2045
+ @CurDeadline = params['CurDeadline']
2046
+ @InstanceId = params['InstanceId']
2047
+ @ResourceId = params['ResourceId']
2048
+ end
2049
+ end
2050
+
2051
+ # CreateDeals请求参数结构体
2052
+ class CreateDealsRequest < TencentCloud::Common::AbstractModel
2053
+ # @param Goods: 计费下单入参
2054
+ # @type Goods: Array
2055
+
2056
+ attr_accessor :Goods
2057
+
2058
+ def initialize(goods=nil)
2059
+ @Goods = goods
2060
+ end
2061
+
2062
+ def deserialize(params)
2063
+ unless params['Goods'].nil?
2064
+ @Goods = []
2065
+ params['Goods'].each do |i|
2066
+ createdealsgoods_tmp = CreateDealsGoods.new
2067
+ createdealsgoods_tmp.deserialize(i)
2068
+ @Goods << createdealsgoods_tmp
2069
+ end
2070
+ end
2071
+ end
2072
+ end
2073
+
2074
+ # CreateDeals返回参数结构体
2075
+ class CreateDealsResponse < TencentCloud::Common::AbstractModel
2076
+ # @param Data: 计费下单响应结构体
2077
+ # 注意:此字段可能返回 null,表示取不到有效值。
2078
+ # @type Data: :class:`Tencentcloud::Waf.v20180125.models.DealData`
2079
+ # @param Status: 1:成功,0:失败
2080
+ # @type Status: Integer
2081
+ # @param ReturnMessage: 返回message
2082
+ # 注意:此字段可能返回 null,表示取不到有效值。
2083
+ # @type ReturnMessage: String
2084
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2085
+ # @type RequestId: String
2086
+
2087
+ attr_accessor :Data, :Status, :ReturnMessage, :RequestId
2088
+
2089
+ def initialize(data=nil, status=nil, returnmessage=nil, requestid=nil)
2090
+ @Data = data
2091
+ @Status = status
2092
+ @ReturnMessage = returnmessage
2093
+ @RequestId = requestid
2094
+ end
2095
+
2096
+ def deserialize(params)
2097
+ unless params['Data'].nil?
2098
+ @Data = DealData.new
2099
+ @Data.deserialize(params['Data'])
2100
+ end
2101
+ @Status = params['Status']
2102
+ @ReturnMessage = params['ReturnMessage']
2103
+ @RequestId = params['RequestId']
2104
+ end
2105
+ end
2106
+
1890
2107
  # CreateHost请求参数结构体
1891
2108
  class CreateHostRequest < TencentCloud::Common::AbstractModel
1892
2109
  # @param Host: 防护域名配置信息
@@ -4802,10 +5019,10 @@ module TencentCloud
4802
5019
 
4803
5020
  attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax
4804
5021
  extend Gem::Deprecate
4805
- deprecate :VtsMin, :none, 2024, 1
4806
- deprecate :VtsMin=, :none, 2024, 1
4807
- deprecate :VtsMax, :none, 2024, 1
4808
- deprecate :VtsMax=, :none, 2024, 1
5022
+ deprecate :VtsMin, :none, 2024, 3
5023
+ deprecate :VtsMin=, :none, 2024, 3
5024
+ deprecate :VtsMax, :none, 2024, 3
5025
+ deprecate :VtsMax=, :none, 2024, 3
4809
5026
 
4810
5027
  def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil)
4811
5028
  @Domain = domain
@@ -4901,10 +5118,10 @@ module TencentCloud
4901
5118
 
4902
5119
  attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
4903
5120
  extend Gem::Deprecate
4904
- deprecate :VtsMin, :none, 2024, 1
4905
- deprecate :VtsMin=, :none, 2024, 1
4906
- deprecate :VtsMax, :none, 2024, 1
4907
- deprecate :VtsMax=, :none, 2024, 1
5121
+ deprecate :VtsMin, :none, 2024, 3
5122
+ deprecate :VtsMin=, :none, 2024, 3
5123
+ deprecate :VtsMax, :none, 2024, 3
5124
+ deprecate :VtsMax=, :none, 2024, 3
4908
5125
 
4909
5126
  def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
4910
5127
  @Domain = domain
@@ -6844,7 +7061,8 @@ module TencentCloud
6844
7061
 
6845
7062
  # 过滤数组
6846
7063
  class FiltersItemNew < TencentCloud::Common::AbstractModel
6847
- # @param Name: 字段名
7064
+ # @param Name: 字段名; 过滤
7065
+ # 子订单号过滤通过name 为:DealName; value为子订单号
6848
7066
  # @type Name: String
6849
7067
  # @param Values: 过滤值
6850
7068
  # @type Values: Array
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.771
4
+ version: 3.0.772
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common