tencentcloud-sdk-dnspod 1.0.335 → 1.0.336

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: 70e3318944741b44f56f4b50376b835ca245997d
4
- data.tar.gz: a7f332a95cafff9c466ac9526dd9cd3d58a1cc42
3
+ metadata.gz: b04ac4a057cf406f9c90f5bc5ae362c68fb832e2
4
+ data.tar.gz: 15402f3222dcfd1d5ec3583e58be858ac220f3af
5
5
  SHA512:
6
- metadata.gz: c40ae92bc2fe8a9b8872d3d00be87b7ade1dda4053c3d58eb6243e8a95ad7d0e8d3df0567abf930c419f2deb8154435b1197a9ed8f873b2fe9a717b2aa654e0b
7
- data.tar.gz: 91a9c8c4cec780903a7087d3658434295be06c279418cc0a41f824d58836727bf449600b59b0083bd3aac6e656dbc2075bc844f4e895e8be587378a164e28ed0
6
+ metadata.gz: eaacbdf9f7365ac6d03229003bd492c83ab007e81273da33b6264e3012023bc72c6bb9d740682dde9df5bf7236c19f5f14b6c039d6f30703b4f143febb645593
7
+ data.tar.gz: ad36fc8802c10c3d05c12c1396adbde677e2fb158840c1000e3a4f915267c9933af1f6ac746a2975aca2747a0fdea21af8a135bccebf246833a62d21800c4d2e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.335
1
+ 1.0.336
@@ -341,6 +341,30 @@ module TencentCloud
341
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
342
  end
343
343
 
344
+ # 统计各个域名的解析量,帮助您了解流量情况、时间段分布。支持查看近 3 个月内的统计情况
345
+
346
+ # @param request: Request instance for DescribeDomainAnalytics.
347
+ # @type request: :class:`Tencentcloud::dnspod::V20210323::DescribeDomainAnalyticsRequest`
348
+ # @rtype: :class:`Tencentcloud::dnspod::V20210323::DescribeDomainAnalyticsResponse`
349
+ def DescribeDomainAnalytics(request)
350
+ body = send_request('DescribeDomainAnalytics', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeDomainAnalyticsResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
344
368
  # 获取域名列表
345
369
 
346
370
  # @param request: Request instance for DescribeDomainList.
@@ -533,6 +557,30 @@ module TencentCloud
533
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
558
  end
535
559
 
560
+ # 统计子域名的解析量,帮助您了解流量情况、时间段分布。支持查看近 3 个月内的统计情况。仅付费套餐域名可用。
561
+
562
+ # @param request: Request instance for DescribeSubdomainAnalytics.
563
+ # @type request: :class:`Tencentcloud::dnspod::V20210323::DescribeSubdomainAnalyticsRequest`
564
+ # @rtype: :class:`Tencentcloud::dnspod::V20210323::DescribeSubdomainAnalyticsResponse`
565
+ def DescribeSubdomainAnalytics(request)
566
+ body = send_request('DescribeSubdomainAnalytics', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeSubdomainAnalyticsResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
536
584
  # 获取帐户信息
537
585
 
538
586
  # @param request: Request instance for DescribeUserDetail.
@@ -1005,6 +1005,83 @@ module TencentCloud
1005
1005
  end
1006
1006
  end
1007
1007
 
1008
+ # DescribeDomainAnalytics请求参数结构体
1009
+ class DescribeDomainAnalyticsRequest < TencentCloud::Common::AbstractModel
1010
+ # @param Domain: 要查询解析量的域名
1011
+ # @type Domain: String
1012
+ # @param StartDate: 查询的开始时间,格式:YYYY-MM-DD
1013
+ # @type StartDate: String
1014
+ # @param EndDate: 查询的结束时间,格式:YYYY-MM-DD
1015
+ # @type EndDate: String
1016
+ # @param DnsFormat: DATE:按天维度统计 HOUR:按小时维度统计
1017
+ # @type DnsFormat: String
1018
+ # @param DomainId: 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
1019
+ # @type DomainId: Integer
1020
+
1021
+ attr_accessor :Domain, :StartDate, :EndDate, :DnsFormat, :DomainId
1022
+
1023
+ def initialize(domain=nil, startdate=nil, enddate=nil, dnsformat=nil, domainid=nil)
1024
+ @Domain = domain
1025
+ @StartDate = startdate
1026
+ @EndDate = enddate
1027
+ @DnsFormat = dnsformat
1028
+ @DomainId = domainid
1029
+ end
1030
+
1031
+ def deserialize(params)
1032
+ @Domain = params['Domain']
1033
+ @StartDate = params['StartDate']
1034
+ @EndDate = params['EndDate']
1035
+ @DnsFormat = params['DnsFormat']
1036
+ @DomainId = params['DomainId']
1037
+ end
1038
+ end
1039
+
1040
+ # DescribeDomainAnalytics返回参数结构体
1041
+ class DescribeDomainAnalyticsResponse < TencentCloud::Common::AbstractModel
1042
+ # @param Data: 当前统计维度解析量小计
1043
+ # @type Data: Array
1044
+ # @param Info: 域名解析量统计查询信息
1045
+ # @type Info: :class:`Tencentcloud::Dnspod.v20210323.models.DomainAnalyticsInfo`
1046
+ # @param AliasData: 域名别名解析量统计信息
1047
+ # @type AliasData: Array
1048
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1049
+ # @type RequestId: String
1050
+
1051
+ attr_accessor :Data, :Info, :AliasData, :RequestId
1052
+
1053
+ def initialize(data=nil, info=nil, aliasdata=nil, requestid=nil)
1054
+ @Data = data
1055
+ @Info = info
1056
+ @AliasData = aliasdata
1057
+ @RequestId = requestid
1058
+ end
1059
+
1060
+ def deserialize(params)
1061
+ unless params['Data'].nil?
1062
+ @Data = []
1063
+ params['Data'].each do |i|
1064
+ domainanalyticsdetail_tmp = DomainAnalyticsDetail.new
1065
+ domainanalyticsdetail_tmp.deserialize(i)
1066
+ @Data << domainanalyticsdetail_tmp
1067
+ end
1068
+ end
1069
+ unless params['Info'].nil?
1070
+ @Info = DomainAnalyticsInfo.new
1071
+ @Info.deserialize(params['Info'])
1072
+ end
1073
+ unless params['AliasData'].nil?
1074
+ @AliasData = []
1075
+ params['AliasData'].each do |i|
1076
+ domainaliasanalyticsitem_tmp = DomainAliasAnalyticsItem.new
1077
+ domainaliasanalyticsitem_tmp.deserialize(i)
1078
+ @AliasData << domainaliasanalyticsitem_tmp
1079
+ end
1080
+ end
1081
+ @RequestId = params['RequestId']
1082
+ end
1083
+ end
1084
+
1008
1085
  # DescribeDomainList请求参数结构体
1009
1086
  class DescribeDomainListRequest < TencentCloud::Common::AbstractModel
1010
1087
  # @param Type: 域名分组类型,默认为ALL。可取值为ALL,MINE,SHARE,ISMARK,PAUSE,VIP,RECENT,SHARE_OUT。
@@ -1512,6 +1589,87 @@ module TencentCloud
1512
1589
  end
1513
1590
  end
1514
1591
 
1592
+ # DescribeSubdomainAnalytics请求参数结构体
1593
+ class DescribeSubdomainAnalyticsRequest < TencentCloud::Common::AbstractModel
1594
+ # @param Domain: 要查询解析量的域名
1595
+ # @type Domain: String
1596
+ # @param StartDate: 查询的开始时间,格式:YYYY-MM-DD
1597
+ # @type StartDate: String
1598
+ # @param EndDate: 查询的结束时间,格式:YYYY-MM-DD
1599
+ # @type EndDate: String
1600
+ # @param Subdomain: 要查询解析量的子域名
1601
+ # @type Subdomain: String
1602
+ # @param DnsFormat: DATE:按天维度统计 HOUR:按小时维度统计
1603
+ # @type DnsFormat: String
1604
+ # @param DomainId: 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
1605
+ # @type DomainId: Integer
1606
+
1607
+ attr_accessor :Domain, :StartDate, :EndDate, :Subdomain, :DnsFormat, :DomainId
1608
+
1609
+ def initialize(domain=nil, startdate=nil, enddate=nil, subdomain=nil, dnsformat=nil, domainid=nil)
1610
+ @Domain = domain
1611
+ @StartDate = startdate
1612
+ @EndDate = enddate
1613
+ @Subdomain = subdomain
1614
+ @DnsFormat = dnsformat
1615
+ @DomainId = domainid
1616
+ end
1617
+
1618
+ def deserialize(params)
1619
+ @Domain = params['Domain']
1620
+ @StartDate = params['StartDate']
1621
+ @EndDate = params['EndDate']
1622
+ @Subdomain = params['Subdomain']
1623
+ @DnsFormat = params['DnsFormat']
1624
+ @DomainId = params['DomainId']
1625
+ end
1626
+ end
1627
+
1628
+ # DescribeSubdomainAnalytics返回参数结构体
1629
+ class DescribeSubdomainAnalyticsResponse < TencentCloud::Common::AbstractModel
1630
+ # @param Data: 当前统计维度解析量小计
1631
+ # @type Data: Array
1632
+ # @param Info: 子域名解析量统计查询信息
1633
+ # @type Info: :class:`Tencentcloud::Dnspod.v20210323.models.SubdomainAnalyticsInfo`
1634
+ # @param AliasData: 子域名别名解析量统计信息
1635
+ # @type AliasData: Array
1636
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1637
+ # @type RequestId: String
1638
+
1639
+ attr_accessor :Data, :Info, :AliasData, :RequestId
1640
+
1641
+ def initialize(data=nil, info=nil, aliasdata=nil, requestid=nil)
1642
+ @Data = data
1643
+ @Info = info
1644
+ @AliasData = aliasdata
1645
+ @RequestId = requestid
1646
+ end
1647
+
1648
+ def deserialize(params)
1649
+ unless params['Data'].nil?
1650
+ @Data = []
1651
+ params['Data'].each do |i|
1652
+ domainanalyticsdetail_tmp = DomainAnalyticsDetail.new
1653
+ domainanalyticsdetail_tmp.deserialize(i)
1654
+ @Data << domainanalyticsdetail_tmp
1655
+ end
1656
+ end
1657
+ unless params['Info'].nil?
1658
+ @Info = SubdomainAnalyticsInfo.new
1659
+ @Info.deserialize(params['Info'])
1660
+ end
1661
+ unless params['AliasData'].nil?
1662
+ @AliasData = []
1663
+ params['AliasData'].each do |i|
1664
+ subdomainaliasanalyticsitem_tmp = SubdomainAliasAnalyticsItem.new
1665
+ subdomainaliasanalyticsitem_tmp.deserialize(i)
1666
+ @AliasData << subdomainaliasanalyticsitem_tmp
1667
+ end
1668
+ end
1669
+ @RequestId = params['RequestId']
1670
+ end
1671
+ end
1672
+
1515
1673
  # DescribeUserDetail请求参数结构体
1516
1674
  class DescribeUserDetailRequest < TencentCloud::Common::AbstractModel
1517
1675
 
@@ -1546,6 +1704,36 @@ module TencentCloud
1546
1704
  end
1547
1705
  end
1548
1706
 
1707
+ # 域名别名解析量统计信息
1708
+ class DomainAliasAnalyticsItem < TencentCloud::Common::AbstractModel
1709
+ # @param Info: 域名解析量统计查询信息
1710
+ # @type Info: :class:`Tencentcloud::Dnspod.v20210323.models.DomainAnalyticsInfo`
1711
+ # @param Data: 当前统计维度解析量小计
1712
+ # @type Data: Array
1713
+
1714
+ attr_accessor :Info, :Data
1715
+
1716
+ def initialize(info=nil, data=nil)
1717
+ @Info = info
1718
+ @Data = data
1719
+ end
1720
+
1721
+ def deserialize(params)
1722
+ unless params['Info'].nil?
1723
+ @Info = DomainAnalyticsInfo.new
1724
+ @Info.deserialize(params['Info'])
1725
+ end
1726
+ unless params['Data'].nil?
1727
+ @Data = []
1728
+ params['Data'].each do |i|
1729
+ domainanalyticsdetail_tmp = DomainAnalyticsDetail.new
1730
+ domainanalyticsdetail_tmp.deserialize(i)
1731
+ @Data << domainanalyticsdetail_tmp
1732
+ end
1733
+ end
1734
+ end
1735
+ end
1736
+
1549
1737
  # 域名别名信息
1550
1738
  class DomainAliasInfo < TencentCloud::Common::AbstractModel
1551
1739
  # @param Id: 域名别名ID
@@ -1566,6 +1754,63 @@ module TencentCloud
1566
1754
  end
1567
1755
  end
1568
1756
 
1757
+ # 当前统计维度解析量小计
1758
+ class DomainAnalyticsDetail < TencentCloud::Common::AbstractModel
1759
+ # @param Num: 当前统计维度解析量小计
1760
+ # @type Num: Integer
1761
+ # @param DateKey: 按天统计时,为统计日期
1762
+ # @type DateKey: String
1763
+ # @param HourKey: 按小时统计时,为统计的当前时间的小时数(0-23),例:HourKey为23时,统计周期为22点-23点的解析量
1764
+ # 注意:此字段可能返回 null,表示取不到有效值。
1765
+ # @type HourKey: Integer
1766
+
1767
+ attr_accessor :Num, :DateKey, :HourKey
1768
+
1769
+ def initialize(num=nil, datekey=nil, hourkey=nil)
1770
+ @Num = num
1771
+ @DateKey = datekey
1772
+ @HourKey = hourkey
1773
+ end
1774
+
1775
+ def deserialize(params)
1776
+ @Num = params['Num']
1777
+ @DateKey = params['DateKey']
1778
+ @HourKey = params['HourKey']
1779
+ end
1780
+ end
1781
+
1782
+ # 域名解析量统计查询信息
1783
+ class DomainAnalyticsInfo < TencentCloud::Common::AbstractModel
1784
+ # @param DnsFormat: DATE:按天维度统计 HOUR:按小时维度统计
1785
+ # @type DnsFormat: String
1786
+ # @param DnsTotal: 当前统计周期解析量总计
1787
+ # @type DnsTotal: Integer
1788
+ # @param Domain: 当前查询的域名
1789
+ # @type Domain: String
1790
+ # @param StartDate: 当前统计周期开始时间
1791
+ # @type StartDate: String
1792
+ # @param EndDate: 当前统计周期结束时间
1793
+ # @type EndDate: String
1794
+
1795
+ attr_accessor :DnsFormat, :DnsTotal, :Domain, :StartDate, :EndDate
1796
+
1797
+ def initialize(dnsformat=nil, dnstotal=nil, domain=nil, startdate=nil, enddate=nil)
1798
+ @DnsFormat = dnsformat
1799
+ @DnsTotal = dnstotal
1800
+ @Domain = domain
1801
+ @StartDate = startdate
1802
+ @EndDate = enddate
1803
+ end
1804
+
1805
+ def deserialize(params)
1806
+ @DnsFormat = params['DnsFormat']
1807
+ @DnsTotal = params['DnsTotal']
1808
+ @Domain = params['Domain']
1809
+ @StartDate = params['StartDate']
1810
+ @EndDate = params['EndDate']
1811
+ end
1812
+ end
1813
+
1569
1814
  # 列表页分页统计信息
1570
1815
  class DomainCountInfo < TencentCloud::Common::AbstractModel
1571
1816
  # @param DomainTotal: 符合条件的域名数量
@@ -2753,6 +2998,72 @@ module TencentCloud
2753
2998
  end
2754
2999
  end
2755
3000
 
3001
+ # 子域名别名解析量统计信息
3002
+ class SubdomainAliasAnalyticsItem < TencentCloud::Common::AbstractModel
3003
+ # @param Info: 子域名解析量统计查询信息
3004
+ # @type Info: :class:`Tencentcloud::Dnspod.v20210323.models.SubdomainAnalyticsInfo`
3005
+ # @param Data: 当前统计维度解析量小计
3006
+ # @type Data: Array
3007
+
3008
+ attr_accessor :Info, :Data
3009
+
3010
+ def initialize(info=nil, data=nil)
3011
+ @Info = info
3012
+ @Data = data
3013
+ end
3014
+
3015
+ def deserialize(params)
3016
+ unless params['Info'].nil?
3017
+ @Info = SubdomainAnalyticsInfo.new
3018
+ @Info.deserialize(params['Info'])
3019
+ end
3020
+ unless params['Data'].nil?
3021
+ @Data = []
3022
+ params['Data'].each do |i|
3023
+ domainanalyticsdetail_tmp = DomainAnalyticsDetail.new
3024
+ domainanalyticsdetail_tmp.deserialize(i)
3025
+ @Data << domainanalyticsdetail_tmp
3026
+ end
3027
+ end
3028
+ end
3029
+ end
3030
+
3031
+ # 子域名解析量统计查询信息
3032
+ class SubdomainAnalyticsInfo < TencentCloud::Common::AbstractModel
3033
+ # @param DnsFormat: DATE:按天维度统计 HOUR:按小时维度统计
3034
+ # @type DnsFormat: String
3035
+ # @param DnsTotal: 当前统计周期解析量总计
3036
+ # @type DnsTotal: Integer
3037
+ # @param Domain: 当前查询的域名
3038
+ # @type Domain: String
3039
+ # @param StartDate: 当前统计周期开始时间
3040
+ # @type StartDate: String
3041
+ # @param EndDate: 当前统计周期结束时间
3042
+ # @type EndDate: String
3043
+ # @param Subdomain: 当前统计的子域名
3044
+ # @type Subdomain: String
3045
+
3046
+ attr_accessor :DnsFormat, :DnsTotal, :Domain, :StartDate, :EndDate, :Subdomain
3047
+
3048
+ def initialize(dnsformat=nil, dnstotal=nil, domain=nil, startdate=nil, enddate=nil, subdomain=nil)
3049
+ @DnsFormat = dnsformat
3050
+ @DnsTotal = dnstotal
3051
+ @Domain = domain
3052
+ @StartDate = startdate
3053
+ @EndDate = enddate
3054
+ @Subdomain = subdomain
3055
+ end
3056
+
3057
+ def deserialize(params)
3058
+ @DnsFormat = params['DnsFormat']
3059
+ @DnsTotal = params['DnsTotal']
3060
+ @Domain = params['Domain']
3061
+ @StartDate = params['StartDate']
3062
+ @EndDate = params['EndDate']
3063
+ @Subdomain = params['Subdomain']
3064
+ end
3065
+ end
3066
+
2756
3067
  # 用户信息
2757
3068
  class UserInfo < TencentCloud::Common::AbstractModel
2758
3069
  # @param Nick: 用户昵称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dnspod
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.335
4
+ version: 1.0.336
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-16 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common