tencentcloud-sdk-waf 1.0.301 → 1.0.302

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: 319e76cfbab05a5e7af86060f71077253c2f7c6d
4
- data.tar.gz: 3eaa4b7fc6b59c98bdae1202fbf1b3f240c623ea
3
+ metadata.gz: 217cdb712b29be1177e0de26fc38ea76cc19d823
4
+ data.tar.gz: b5b29a39b9ad1f7082926add6d2d8051470af03a
5
5
  SHA512:
6
- metadata.gz: b70072e47a8c83343e7645eed89f44be204bfe0ca1744730485e0c3b3889fcfd31301adcdad64e5cc29729d80172439e463918b4a3d318373c727959082cce9a
7
- data.tar.gz: fd70030e5decd7299b6bb57e3ab2eb563449d319df9d868d09038e1eae7284f6f1bdc8b537e941aaed55090a90ee05791b4324c38b16a6886b5cef4770b0505d
6
+ metadata.gz: 78c9734e804edb369c87ecce5ff2d22cede412aa61541569182db37c2637b5fafba6e91dbdfe3c86527fc9091236167c59d25b9e059f3806de7e37f68cee4bdd
7
+ data.tar.gz: 755d3d9662c7bc04dc9ac0c4ecb85f1c8fe6a4734ff0cdf0d040a2fe516575c9ab6c85fcdd926350ee67be19c02f1c7c685d310b7722ef90707275a43ccb0a73
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.301
1
+ 1.0.302
@@ -439,6 +439,30 @@ module TencentCloud
439
439
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
440
440
  end
441
441
 
442
+ # 查询用户所有域名的详细信息
443
+
444
+ # @param request: Request instance for DescribeDomains.
445
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainsRequest`
446
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeDomainsResponse`
447
+ def DescribeDomains(request)
448
+ body = send_request('DescribeDomains', request.serialize)
449
+ response = JSON.parse(body)
450
+ if response['Response'].key?('Error') == false
451
+ model = DescribeDomainsResponse.new
452
+ model.deserialize(response['Response'])
453
+ model
454
+ else
455
+ code = response['Response']['Error']['Code']
456
+ message = response['Response']['Error']['Message']
457
+ reqid = response['Response']['RequestId']
458
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
459
+ end
460
+ rescue TencentCloud::Common::TencentCloudSDKException => e
461
+ raise e
462
+ rescue StandardError => e
463
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
464
+ end
465
+
442
466
  # 获取waf流量访问趋势
443
467
 
444
468
  # @param request: Request instance for DescribeFlowTrend.
@@ -466,7 +466,7 @@ module TencentCloud
466
466
  # @type GrayAreas: Array
467
467
  # @param UpstreamDomain: UpstreamType=1时,填次字段表示回源域名
468
468
  # @type UpstreamDomain: String
469
- # @param SrcList: UpstreamType=0时,填次字段表示回源ip
469
+ # @param SrcList: UpstreamType=0时,填次字段表示回源IP
470
470
  # @type SrcList: Array
471
471
  # @param IsHttp2: 是否开启HTTP2,开启HTTP2需要HTTPS支持
472
472
  # @type IsHttp2: Integer
@@ -480,12 +480,14 @@ module TencentCloud
480
480
  # @type IsKeepAlive: String
481
481
  # @param InstanceID: 实例id,上线之后带上此字段
482
482
  # @type InstanceID: String
483
- # @param Anycast: anycast ip类型开关: 0 普通ip 1 Anycast ip
483
+ # @param Anycast: anycast IP类型开关: 0 普通IP 1 Anycast IP
484
484
  # @type Anycast: Integer
485
+ # @param Weights: src权重
486
+ # @type Weights: Array
485
487
 
486
- attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :IsHttp2, :HttpsRewrite, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast
488
+ attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Cert, :PrivateKey, :SSLId, :ResourceId, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :IsHttp2, :HttpsRewrite, :Ports, :Edition, :IsKeepAlive, :InstanceID, :Anycast, :Weights
487
489
 
488
- def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, httpsrewrite=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil)
490
+ def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, httpsrewrite=nil, ports=nil, edition=nil, iskeepalive=nil, instanceid=nil, anycast=nil, weights=nil)
489
491
  @Domain = domain
490
492
  @CertType = certtype
491
493
  @IsCdn = iscdn
@@ -509,6 +511,7 @@ module TencentCloud
509
511
  @IsKeepAlive = iskeepalive
510
512
  @InstanceID = instanceid
511
513
  @Anycast = anycast
514
+ @Weights = weights
512
515
  end
513
516
 
514
517
  def deserialize(params)
@@ -542,6 +545,7 @@ module TencentCloud
542
545
  @IsKeepAlive = params['IsKeepAlive']
543
546
  @InstanceID = params['InstanceID']
544
547
  @Anycast = params['Anycast']
548
+ @Weights = params['Weights']
545
549
  end
546
550
  end
547
551
 
@@ -1428,6 +1432,69 @@ module TencentCloud
1428
1432
  end
1429
1433
  end
1430
1434
 
1435
+ # DescribeDomains请求参数结构体
1436
+ class DescribeDomainsRequest < TencentCloud::Common::AbstractModel
1437
+ # @param Offset: 偏移
1438
+ # @type Offset: Integer
1439
+ # @param Limit: 容量
1440
+ # @type Limit: Integer
1441
+ # @param Filters: 过滤数组
1442
+ # @type Filters: Array
1443
+
1444
+ attr_accessor :Offset, :Limit, :Filters
1445
+
1446
+ def initialize(offset=nil, limit=nil, filters=nil)
1447
+ @Offset = offset
1448
+ @Limit = limit
1449
+ @Filters = filters
1450
+ end
1451
+
1452
+ def deserialize(params)
1453
+ @Offset = params['Offset']
1454
+ @Limit = params['Limit']
1455
+ unless params['Filters'].nil?
1456
+ @Filters = []
1457
+ params['Filters'].each do |i|
1458
+ filtersitemnew_tmp = FiltersItemNew.new
1459
+ filtersitemnew_tmp.deserialize(i)
1460
+ @Filters << filtersitemnew_tmp
1461
+ end
1462
+ end
1463
+ end
1464
+ end
1465
+
1466
+ # DescribeDomains返回参数结构体
1467
+ class DescribeDomainsResponse < TencentCloud::Common::AbstractModel
1468
+ # @param Total: 总数
1469
+ # @type Total: Integer
1470
+ # @param Domains: domain列表
1471
+ # 注意:此字段可能返回 null,表示取不到有效值。
1472
+ # @type Domains: Array
1473
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1474
+ # @type RequestId: String
1475
+
1476
+ attr_accessor :Total, :Domains, :RequestId
1477
+
1478
+ def initialize(total=nil, domains=nil, requestid=nil)
1479
+ @Total = total
1480
+ @Domains = domains
1481
+ @RequestId = requestid
1482
+ end
1483
+
1484
+ def deserialize(params)
1485
+ @Total = params['Total']
1486
+ unless params['Domains'].nil?
1487
+ @Domains = []
1488
+ params['Domains'].each do |i|
1489
+ domaininfo_tmp = DomainInfo.new
1490
+ domaininfo_tmp.deserialize(i)
1491
+ @Domains << domaininfo_tmp
1492
+ end
1493
+ end
1494
+ @RequestId = params['RequestId']
1495
+ end
1496
+ end
1497
+
1431
1498
  # DescribeFlowTrend请求参数结构体
1432
1499
  class DescribeFlowTrendRequest < TencentCloud::Common::AbstractModel
1433
1500
  # @param Domain: 需要获取流量趋势的域名, all表示所有域名
@@ -1795,6 +1862,17 @@ module TencentCloud
1795
1862
  end
1796
1863
  end
1797
1864
 
1865
+ # 域名的详细信息
1866
+ class DomainInfo < TencentCloud::Common::AbstractModel
1867
+
1868
+
1869
+ def initialize()
1870
+ end
1871
+
1872
+ def deserialize(params)
1873
+ end
1874
+ end
1875
+
1798
1876
  # DescribeAccessExports接口
1799
1877
  class ExportAccessInfo < TencentCloud::Common::AbstractModel
1800
1878
  # @param ExportId: 日志导出任务ID
@@ -1861,6 +1939,30 @@ module TencentCloud
1861
1939
  end
1862
1940
  end
1863
1941
 
1942
+ # 实例入参过滤器
1943
+ class FiltersItemNew < TencentCloud::Common::AbstractModel
1944
+ # @param Name: 字段名
1945
+ # @type Name: String
1946
+ # @param Values: 过滤值
1947
+ # @type Values: Array
1948
+ # @param ExactMatch: 是否精确查找
1949
+ # @type ExactMatch: Boolean
1950
+
1951
+ attr_accessor :Name, :Values, :ExactMatch
1952
+
1953
+ def initialize(name=nil, values=nil, exactmatch=nil)
1954
+ @Name = name
1955
+ @Values = values
1956
+ @ExactMatch = exactmatch
1957
+ end
1958
+
1959
+ def deserialize(params)
1960
+ @Name = params['Name']
1961
+ @Values = params['Values']
1962
+ @ExactMatch = params['ExactMatch']
1963
+ end
1964
+ end
1965
+
1864
1966
  # 数据封装
1865
1967
  class IpAccessControlData < TencentCloud::Common::AbstractModel
1866
1968
  # @param Res: ip黑白名单
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.301
4
+ version: 1.0.302
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud