tencentcloud-sdk-waf 1.0.339 → 1.0.340

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: aecb98f6d680fe33cd478016769c75e98e154731
4
- data.tar.gz: cee65dee85c16d2c348b7c1b5156d051e1daf54a
3
+ metadata.gz: b595fa15e9af05639017f1f1eba6412496823373
4
+ data.tar.gz: 2df9df59dbcb5809d077ba9c414d96acc5a1a86d
5
5
  SHA512:
6
- metadata.gz: 5afc8b83608724c38ccbe4dacb25f1abed59b386a3a550c945babd10ec164508c00f09a881dc91119f43af5f8326551bdbf09d2e74e6f60618426bbe9bd85fe8
7
- data.tar.gz: ac5c9de8d75ac77086168fb9a2c39a5d4685e2f8e973ab433f4d8324b58e0068488180127df9849d318a5dbea7cf2e1fa32341d1ed69c04d3aa4f2fd81084c3d
6
+ metadata.gz: 1930727937f39105aca02b10c01ef0480c1b64126b889af84e5e7b67457c8075814c3f300100ed9b494e4b14e1fe5527e5d46d132f0b9fd20998ee4e5ee57f38
7
+ data.tar.gz: 03b6cad2fcaebc3a8335c23c832bb16700dfe3e43698dbb82dff7ae2d02ff3517223b4ecd382c9813cb84da0da105552942c922be13695e7ae9985c7913b615a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.339
1
+ 1.0.340
@@ -487,6 +487,30 @@ module TencentCloud
487
487
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
488
488
  end
489
489
 
490
+ # 查询用户所有实例的详细信息
491
+
492
+ # @param request: Request instance for DescribeInstances.
493
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeInstancesRequest`
494
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeInstancesResponse`
495
+ def DescribeInstances(request)
496
+ body = send_request('DescribeInstances', request.serialize)
497
+ response = JSON.parse(body)
498
+ if response['Response'].key?('Error') == false
499
+ model = DescribeInstancesResponse.new
500
+ model.deserialize(response['Response'])
501
+ model
502
+ else
503
+ code = response['Response']['Error']['Code']
504
+ message = response['Response']['Error']['Message']
505
+ reqid = response['Response']['RequestId']
506
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
507
+ end
508
+ rescue TencentCloud::Common::TencentCloudSDKException => e
509
+ raise e
510
+ rescue StandardError => e
511
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
512
+ end
513
+
490
514
  # Waf ip黑白名单查询
491
515
 
492
516
  # @param request: Request instance for DescribeIpAccessControl.
@@ -601,6 +601,53 @@ module TencentCloud
601
601
  end
602
602
  end
603
603
 
604
+ # Bot资源信息
605
+ class BotPkg < TencentCloud::Common::AbstractModel
606
+ # @param ResourceIds: 资源id
607
+ # 注意:此字段可能返回 null,表示取不到有效值。
608
+ # @type ResourceIds: String
609
+ # @param Status: 状态
610
+ # 注意:此字段可能返回 null,表示取不到有效值。
611
+ # @type Status: Integer
612
+ # @param Region: 地域
613
+ # 注意:此字段可能返回 null,表示取不到有效值。
614
+ # @type Region: Integer
615
+ # @param BeginTime: 开始时间
616
+ # 注意:此字段可能返回 null,表示取不到有效值。
617
+ # @type BeginTime: String
618
+ # @param EndTime: 结束时间
619
+ # 注意:此字段可能返回 null,表示取不到有效值。
620
+ # @type EndTime: String
621
+ # @param InquireNum: 申请数量
622
+ # 注意:此字段可能返回 null,表示取不到有效值。
623
+ # @type InquireNum: Integer
624
+ # @param UsedNum: 使用数量
625
+ # 注意:此字段可能返回 null,表示取不到有效值。
626
+ # @type UsedNum: Integer
627
+
628
+ attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum
629
+
630
+ def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil)
631
+ @ResourceIds = resourceids
632
+ @Status = status
633
+ @Region = region
634
+ @BeginTime = begintime
635
+ @EndTime = endtime
636
+ @InquireNum = inquirenum
637
+ @UsedNum = usednum
638
+ end
639
+
640
+ def deserialize(params)
641
+ @ResourceIds = params['ResourceIds']
642
+ @Status = params['Status']
643
+ @Region = params['Region']
644
+ @BeginTime = params['BeginTime']
645
+ @EndTime = params['EndTime']
646
+ @InquireNum = params['InquireNum']
647
+ @UsedNum = params['UsedNum']
648
+ end
649
+ end
650
+
604
651
  # bot的趋势图对象
605
652
  class BotStatPointItem < TencentCloud::Common::AbstractModel
606
653
  # @param TimeStamp: 横坐标
@@ -1546,6 +1593,68 @@ module TencentCloud
1546
1593
  end
1547
1594
  end
1548
1595
 
1596
+ # DescribeInstances请求参数结构体
1597
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
1598
+ # @param Offset: 偏移
1599
+ # @type Offset: Integer
1600
+ # @param Limit: 容量
1601
+ # @type Limit: Integer
1602
+ # @param Filters: 过滤数组
1603
+ # @type Filters: Array
1604
+
1605
+ attr_accessor :Offset, :Limit, :Filters
1606
+
1607
+ def initialize(offset=nil, limit=nil, filters=nil)
1608
+ @Offset = offset
1609
+ @Limit = limit
1610
+ @Filters = filters
1611
+ end
1612
+
1613
+ def deserialize(params)
1614
+ @Offset = params['Offset']
1615
+ @Limit = params['Limit']
1616
+ unless params['Filters'].nil?
1617
+ @Filters = []
1618
+ params['Filters'].each do |i|
1619
+ filtersitemnew_tmp = FiltersItemNew.new
1620
+ filtersitemnew_tmp.deserialize(i)
1621
+ @Filters << filtersitemnew_tmp
1622
+ end
1623
+ end
1624
+ end
1625
+ end
1626
+
1627
+ # DescribeInstances返回参数结构体
1628
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
1629
+ # @param Total: 总数
1630
+ # @type Total: Integer
1631
+ # @param Instances: instance列表
1632
+ # @type Instances: Array
1633
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1634
+ # @type RequestId: String
1635
+
1636
+ attr_accessor :Total, :Instances, :RequestId
1637
+
1638
+ def initialize(total=nil, instances=nil, requestid=nil)
1639
+ @Total = total
1640
+ @Instances = instances
1641
+ @RequestId = requestid
1642
+ end
1643
+
1644
+ def deserialize(params)
1645
+ @Total = params['Total']
1646
+ unless params['Instances'].nil?
1647
+ @Instances = []
1648
+ params['Instances'].each do |i|
1649
+ instanceinfo_tmp = InstanceInfo.new
1650
+ instanceinfo_tmp.deserialize(i)
1651
+ @Instances << instanceinfo_tmp
1652
+ end
1653
+ end
1654
+ @RequestId = params['RequestId']
1655
+ end
1656
+ end
1657
+
1549
1658
  # DescribeIpAccessControl请求参数结构体
1550
1659
  class DescribeIpAccessControlRequest < TencentCloud::Common::AbstractModel
1551
1660
  # @param Domain: 域名
@@ -1873,6 +1982,38 @@ module TencentCloud
1873
1982
  end
1874
1983
  end
1875
1984
 
1985
+ # clb-waf 域名扩展套餐
1986
+ class DomainPackageNew < TencentCloud::Common::AbstractModel
1987
+ # @param ResourceIds: 资源ID
1988
+ # @type ResourceIds: String
1989
+ # @param ValidTime: 过期时间
1990
+ # @type ValidTime: String
1991
+ # @param RenewFlag: 是否自动续费,1:自动续费,0:不自动续费
1992
+ # @type RenewFlag: Integer
1993
+ # @param Count: 套餐购买个数
1994
+ # @type Count: Integer
1995
+ # @param Region: 套餐购买地域,clb-waf暂时没有用到
1996
+ # @type Region: String
1997
+
1998
+ attr_accessor :ResourceIds, :ValidTime, :RenewFlag, :Count, :Region
1999
+
2000
+ def initialize(resourceids=nil, validtime=nil, renewflag=nil, count=nil, region=nil)
2001
+ @ResourceIds = resourceids
2002
+ @ValidTime = validtime
2003
+ @RenewFlag = renewflag
2004
+ @Count = count
2005
+ @Region = region
2006
+ end
2007
+
2008
+ def deserialize(params)
2009
+ @ResourceIds = params['ResourceIds']
2010
+ @ValidTime = params['ValidTime']
2011
+ @RenewFlag = params['RenewFlag']
2012
+ @Count = params['Count']
2013
+ @Region = params['Region']
2014
+ end
2015
+ end
2016
+
1876
2017
  # DescribeAccessExports接口
1877
2018
  class ExportAccessInfo < TencentCloud::Common::AbstractModel
1878
2019
  # @param ExportId: 日志导出任务ID
@@ -1963,6 +2104,163 @@ module TencentCloud
1963
2104
  end
1964
2105
  end
1965
2106
 
2107
+ # 业务安全资源信息
2108
+ class FraudPkg < TencentCloud::Common::AbstractModel
2109
+ # @param ResourceIds: 资源id
2110
+ # 注意:此字段可能返回 null,表示取不到有效值。
2111
+ # @type ResourceIds: String
2112
+ # @param Status: 状态
2113
+ # 注意:此字段可能返回 null,表示取不到有效值。
2114
+ # @type Status: Integer
2115
+ # @param Region: 地域
2116
+ # 注意:此字段可能返回 null,表示取不到有效值。
2117
+ # @type Region: Integer
2118
+ # @param BeginTime: 开始时间
2119
+ # 注意:此字段可能返回 null,表示取不到有效值。
2120
+ # @type BeginTime: String
2121
+ # @param EndTime: 结束时间
2122
+ # 注意:此字段可能返回 null,表示取不到有效值。
2123
+ # @type EndTime: String
2124
+ # @param InquireNum: 申请数量
2125
+ # 注意:此字段可能返回 null,表示取不到有效值。
2126
+ # @type InquireNum: Integer
2127
+ # @param UsedNum: 使用数量
2128
+ # 注意:此字段可能返回 null,表示取不到有效值。
2129
+ # @type UsedNum: Integer
2130
+
2131
+ attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum
2132
+
2133
+ def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil)
2134
+ @ResourceIds = resourceids
2135
+ @Status = status
2136
+ @Region = region
2137
+ @BeginTime = begintime
2138
+ @EndTime = endtime
2139
+ @InquireNum = inquirenum
2140
+ @UsedNum = usednum
2141
+ end
2142
+
2143
+ def deserialize(params)
2144
+ @ResourceIds = params['ResourceIds']
2145
+ @Status = params['Status']
2146
+ @Region = params['Region']
2147
+ @BeginTime = params['BeginTime']
2148
+ @EndTime = params['EndTime']
2149
+ @InquireNum = params['InquireNum']
2150
+ @UsedNum = params['UsedNum']
2151
+ end
2152
+ end
2153
+
2154
+ # 一个实例的详细信息
2155
+ class InstanceInfo < TencentCloud::Common::AbstractModel
2156
+ # @param InstanceId: id
2157
+ # @type InstanceId: String
2158
+ # @param InstanceName: name
2159
+ # @type InstanceName: String
2160
+ # @param ResourceIds: 资源id
2161
+ # @type ResourceIds: String
2162
+ # @param Region: 地域
2163
+ # @type Region: String
2164
+ # @param PayMode: 付费模式
2165
+ # @type PayMode: Integer
2166
+ # @param RenewFlag: 自动续费
2167
+ # @type RenewFlag: Integer
2168
+ # @param Mode: 弹性计费
2169
+ # @type Mode: Integer
2170
+ # @param Level: 套餐版本
2171
+ # @type Level: Integer
2172
+ # @param ValidTime: 过期时间
2173
+ # @type ValidTime: String
2174
+ # @param BeginTime: 开始时间
2175
+ # @type BeginTime: String
2176
+ # @param DomainCount: 已用
2177
+ # @type DomainCount: Integer
2178
+ # @param SubDomainLimit: 上限
2179
+ # @type SubDomainLimit: Integer
2180
+ # @param MainDomainCount: 已用
2181
+ # @type MainDomainCount: Integer
2182
+ # @param MainDomainLimit: 上限
2183
+ # @type MainDomainLimit: Integer
2184
+ # @param MaxQPS: 峰值
2185
+ # @type MaxQPS: Integer
2186
+ # @param QPS: qps套餐
2187
+ # @type QPS: :class:`Tencentcloud::Waf.v20180125.models.QPSPackageNew`
2188
+ # @param DomainPkg: 域名套餐
2189
+ # @type DomainPkg: :class:`Tencentcloud::Waf.v20180125.models.DomainPackageNew`
2190
+ # @param AppId: 用户appid
2191
+ # @type AppId: Integer
2192
+ # @param Edition: clb或saas
2193
+ # @type Edition: String
2194
+ # @param FraudPkg: 业务安全包
2195
+ # 注意:此字段可能返回 null,表示取不到有效值。
2196
+ # @type FraudPkg: :class:`Tencentcloud::Waf.v20180125.models.FraudPkg`
2197
+ # @param BotPkg: Bot资源包
2198
+ # 注意:此字段可能返回 null,表示取不到有效值。
2199
+ # @type BotPkg: :class:`Tencentcloud::Waf.v20180125.models.BotPkg`
2200
+
2201
+ attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg
2202
+
2203
+ 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)
2204
+ @InstanceId = instanceid
2205
+ @InstanceName = instancename
2206
+ @ResourceIds = resourceids
2207
+ @Region = region
2208
+ @PayMode = paymode
2209
+ @RenewFlag = renewflag
2210
+ @Mode = mode
2211
+ @Level = level
2212
+ @ValidTime = validtime
2213
+ @BeginTime = begintime
2214
+ @DomainCount = domaincount
2215
+ @SubDomainLimit = subdomainlimit
2216
+ @MainDomainCount = maindomaincount
2217
+ @MainDomainLimit = maindomainlimit
2218
+ @MaxQPS = maxqps
2219
+ @QPS = qps
2220
+ @DomainPkg = domainpkg
2221
+ @AppId = appid
2222
+ @Edition = edition
2223
+ @FraudPkg = fraudpkg
2224
+ @BotPkg = botpkg
2225
+ end
2226
+
2227
+ def deserialize(params)
2228
+ @InstanceId = params['InstanceId']
2229
+ @InstanceName = params['InstanceName']
2230
+ @ResourceIds = params['ResourceIds']
2231
+ @Region = params['Region']
2232
+ @PayMode = params['PayMode']
2233
+ @RenewFlag = params['RenewFlag']
2234
+ @Mode = params['Mode']
2235
+ @Level = params['Level']
2236
+ @ValidTime = params['ValidTime']
2237
+ @BeginTime = params['BeginTime']
2238
+ @DomainCount = params['DomainCount']
2239
+ @SubDomainLimit = params['SubDomainLimit']
2240
+ @MainDomainCount = params['MainDomainCount']
2241
+ @MainDomainLimit = params['MainDomainLimit']
2242
+ @MaxQPS = params['MaxQPS']
2243
+ unless params['QPS'].nil?
2244
+ @QPS = QPSPackageNew.new
2245
+ @QPS.deserialize(params['QPS'])
2246
+ end
2247
+ unless params['DomainPkg'].nil?
2248
+ @DomainPkg = DomainPackageNew.new
2249
+ @DomainPkg.deserialize(params['DomainPkg'])
2250
+ end
2251
+ @AppId = params['AppId']
2252
+ @Edition = params['Edition']
2253
+ unless params['FraudPkg'].nil?
2254
+ @FraudPkg = FraudPkg.new
2255
+ @FraudPkg.deserialize(params['FraudPkg'])
2256
+ end
2257
+ unless params['BotPkg'].nil?
2258
+ @BotPkg = BotPkg.new
2259
+ @BotPkg.deserialize(params['BotPkg'])
2260
+ end
2261
+ end
2262
+ end
2263
+
1966
2264
  # 数据封装
1967
2265
  class IpAccessControlData < TencentCloud::Common::AbstractModel
1968
2266
  # @param Res: ip黑白名单
@@ -2401,6 +2699,38 @@ module TencentCloud
2401
2699
  end
2402
2700
  end
2403
2701
 
2702
+ # clb-waf QPS套餐 New
2703
+ class QPSPackageNew < TencentCloud::Common::AbstractModel
2704
+ # @param ResourceIds: 资源ID
2705
+ # @type ResourceIds: String
2706
+ # @param ValidTime: 过期时间
2707
+ # @type ValidTime: String
2708
+ # @param RenewFlag: 是否自动续费,1:自动续费,0:不自动续费
2709
+ # @type RenewFlag: Integer
2710
+ # @param Count: 套餐购买个数
2711
+ # @type Count: Integer
2712
+ # @param Region: 套餐购买地域,clb-waf暂时没有用到
2713
+ # @type Region: String
2714
+
2715
+ attr_accessor :ResourceIds, :ValidTime, :RenewFlag, :Count, :Region
2716
+
2717
+ def initialize(resourceids=nil, validtime=nil, renewflag=nil, count=nil, region=nil)
2718
+ @ResourceIds = resourceids
2719
+ @ValidTime = validtime
2720
+ @RenewFlag = renewflag
2721
+ @Count = count
2722
+ @Region = region
2723
+ end
2724
+
2725
+ def deserialize(params)
2726
+ @ResourceIds = params['ResourceIds']
2727
+ @ValidTime = params['ValidTime']
2728
+ @RenewFlag = params['RenewFlag']
2729
+ @Count = params['Count']
2730
+ @Region = params['Region']
2731
+ end
2732
+ end
2733
+
2404
2734
  # 响应体的返回码
2405
2735
  class ResponseCode < TencentCloud::Common::AbstractModel
2406
2736
  # @param Code: 如果成功则返回Success,失败则返回yunapi定义的错误码
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: 1.0.339
4
+ version: 1.0.340
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common