tencentcloud-sdk-teo 3.0.758 → 3.0.760

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: 4d20cbe017a49b9f33c9bb8c2f378bdb71d6caf1
4
- data.tar.gz: 7509a89a7c7ec164de2e9c650d845d9cf976f07b
3
+ metadata.gz: 3316ef9d7b449ee01590e7f3f0f249c44e0cc0bc
4
+ data.tar.gz: e078414f62b3fe405d05cf674be8d5a17ccfbe48
5
5
  SHA512:
6
- metadata.gz: c6818eda1a32f7604a9ae18bcd4aa65f5cf04b77b3fd52d116c61bae6e22b18219b84c33c5a9467777ee6c676066e66a177a164847fa689005facf4d8be7b090
7
- data.tar.gz: 9436cf196cd6841b554503645c3e4bbcaa47929071851ed39ae7389c2c1fa4477d846eb65042c62adf98c9c107d9b71c5754cd882183e237202ebf49b551dbf5
6
+ metadata.gz: 296aab7a22f9e4d567e96d2cede0f0e902a448b0745ed76730e508159d2661b550c93773d08c2d4ecb7565cf6221b29ee3ad12d17773cc840deb48b6c7773d81
7
+ data.tar.gz: a6b16ee658a9d0deee5c5dfc8c361a893bd16f7aa222336572f7854d94c107daf9695df1ffccaba2002dbc7ff5e109023468c3fd00725787a68b76bbef52c082
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.758
1
+ 3.0.760
@@ -175,7 +175,7 @@ module TencentCloud
175
175
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
176
176
  end
177
177
 
178
- # 创建应用代理
178
+ # 本接口为旧版,如需调用请尽快迁移至新版 [创建四层代理实例](https://cloud.tencent.com/document/product/1552/103417) 。
179
179
 
180
180
  # @param request: Request instance for CreateApplicationProxy.
181
181
  # @type request: :class:`Tencentcloud::teo::V20220901::CreateApplicationProxyRequest`
@@ -199,7 +199,8 @@ module TencentCloud
199
199
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
200
200
  end
201
201
 
202
- # 创建应用代理规则
202
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [创建四层代理转发规则
203
+ # ](https://cloud.tencent.com/document/product/1552/103416) 。
203
204
 
204
205
  # @param request: Request instance for CreateApplicationProxyRule.
205
206
  # @type request: :class:`Tencentcloud::teo::V20220901::CreateApplicationProxyRuleRequest`
@@ -539,7 +540,8 @@ module TencentCloud
539
540
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
540
541
  end
541
542
 
542
- # 删除应用代理
543
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [删除四层代理实例
544
+ # ](https://cloud.tencent.com/document/product/1552/103415) 。
543
545
 
544
546
  # @param request: Request instance for DeleteApplicationProxy.
545
547
  # @type request: :class:`Tencentcloud::teo::V20220901::DeleteApplicationProxyRequest`
@@ -563,7 +565,7 @@ module TencentCloud
563
565
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
564
566
  end
565
567
 
566
- # 删除应用代理规则
568
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [删除四层代理转发规则](https://cloud.tencent.com/document/product/1552/103414) 。
567
569
 
568
570
  # @param request: Request instance for DeleteApplicationProxyRule.
569
571
  # @type request: :class:`Tencentcloud::teo::V20220901::DeleteApplicationProxyRuleRequest`
@@ -827,7 +829,7 @@ module TencentCloud
827
829
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
828
830
  end
829
831
 
830
- # 查询应用代理列表。
832
+ # 本接口为旧版,如需调用请尽快迁移至新版,新版接口中将四层代理实例列表的查询和四层转发规则的查询拆分成两个接口,详情请参考 [查询四层代理实例列表](https://cloud.tencent.com/document/product/1552/103413) 和 [查询四层代理转发规则列表](https://cloud.tencent.com/document/product/1552/103412)。
831
833
 
832
834
  # @param request: Request instance for DescribeApplicationProxies.
833
835
  # @type request: :class:`Tencentcloud::teo::V20220901::DescribeApplicationProxiesRequest`
@@ -875,6 +877,30 @@ module TencentCloud
875
877
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
876
878
  end
877
879
 
880
+ # 通过本接口查询计费数据。
881
+
882
+ # @param request: Request instance for DescribeBillingData.
883
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeBillingDataRequest`
884
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeBillingDataResponse`
885
+ def DescribeBillingData(request)
886
+ body = send_request('DescribeBillingData', request.serialize)
887
+ response = JSON.parse(body)
888
+ if response['Response'].key?('Error') == false
889
+ model = DescribeBillingDataResponse.new
890
+ model.deserialize(response['Response'])
891
+ model
892
+ else
893
+ code = response['Response']['Error']['Code']
894
+ message = response['Response']['Error']['Message']
895
+ reqid = response['Response']['RequestId']
896
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
897
+ end
898
+ rescue TencentCloud::Common::TencentCloudSDKException => e
899
+ raise e
900
+ rescue StandardError => e
901
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
902
+ end
903
+
878
904
  # 在版本管理模式下,用于获取版本的详细信息,包括版本 ID、描述、状态、创建时间、所属配置组信息以及版本配置文件的内容。版本管理功能内测中,当前仅白名单开放。
879
905
 
880
906
  # @param request: Request instance for DescribeConfigGroupVersionDetail.
@@ -1187,7 +1213,7 @@ module TencentCloud
1187
1213
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1188
1214
  end
1189
1215
 
1190
- # 查询四层代理实例下的规则列表。
1216
+ # 查询四层代理实例下的转发规则列表。
1191
1217
 
1192
1218
  # @param request: Request instance for DescribeL4ProxyRules.
1193
1219
  # @type request: :class:`Tencentcloud::teo::V20220901::DescribeL4ProxyRulesRequest`
@@ -1739,7 +1765,8 @@ module TencentCloud
1739
1765
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1740
1766
  end
1741
1767
 
1742
- # 修改应用代理
1768
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [修改四层代理实例
1769
+ # ](https://cloud.tencent.com/document/product/1552/103411) 。
1743
1770
 
1744
1771
  # @param request: Request instance for ModifyApplicationProxy.
1745
1772
  # @type request: :class:`Tencentcloud::teo::V20220901::ModifyApplicationProxyRequest`
@@ -1763,7 +1790,8 @@ module TencentCloud
1763
1790
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1764
1791
  end
1765
1792
 
1766
- # 修改应用代理规则
1793
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [修改四层代理转发规则
1794
+ # ](https://cloud.tencent.com/document/product/1552/103410) 。
1767
1795
 
1768
1796
  # @param request: Request instance for ModifyApplicationProxyRule.
1769
1797
  # @type request: :class:`Tencentcloud::teo::V20220901::ModifyApplicationProxyRuleRequest`
@@ -1787,7 +1815,8 @@ module TencentCloud
1787
1815
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1788
1816
  end
1789
1817
 
1790
- # 修改应用代理规则的状态
1818
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [修改四层代理转发规则状态
1819
+ # ](https://cloud.tencent.com/document/product/1552/103409) 。
1791
1820
 
1792
1821
  # @param request: Request instance for ModifyApplicationProxyRuleStatus.
1793
1822
  # @type request: :class:`Tencentcloud::teo::V20220901::ModifyApplicationProxyRuleStatusRequest`
@@ -1811,7 +1840,7 @@ module TencentCloud
1811
1840
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1812
1841
  end
1813
1842
 
1814
- # 修改应用代理的状态
1843
+ # 本接口为旧版,如需调用请尽快迁移至新版,详情请参考 [修改四层代理实例状态](https://cloud.tencent.com/document/product/1552/103408) 。
1815
1844
 
1816
1845
  # @param request: Request instance for ModifyApplicationProxyStatus.
1817
1846
  # @type request: :class:`Tencentcloud::teo::V20220901::ModifyApplicationProxyStatusRequest`
@@ -945,6 +945,46 @@ module TencentCloud
945
945
  end
946
946
  end
947
947
 
948
+ # 计费数据项
949
+ class BillingData < TencentCloud::Common::AbstractModel
950
+ # @param Time: 时间。
951
+ # @type Time: String
952
+ # @param Value: 数值。
953
+ # @type Value: Integer
954
+
955
+ attr_accessor :Time, :Value
956
+
957
+ def initialize(time=nil, value=nil)
958
+ @Time = time
959
+ @Value = value
960
+ end
961
+
962
+ def deserialize(params)
963
+ @Time = params['Time']
964
+ @Value = params['Value']
965
+ end
966
+ end
967
+
968
+ # 计费数据过滤条件。
969
+ class BillingDataFilter < TencentCloud::Common::AbstractModel
970
+ # @param Type: 参数名称。
971
+ # @type Type: String
972
+ # @param Value: 参数值。
973
+ # @type Value: String
974
+
975
+ attr_accessor :Type, :Value
976
+
977
+ def initialize(type=nil, value=nil)
978
+ @Type = type
979
+ @Value = value
980
+ end
981
+
982
+ def deserialize(params)
983
+ @Type = params['Type']
984
+ @Value = params['Value']
985
+ end
986
+ end
987
+
948
988
  # BindSecurityTemplateToEntity请求参数结构体
949
989
  class BindSecurityTemplateToEntityRequest < TencentCloud::Common::AbstractModel
950
990
  # @param ZoneId: 需要绑定或解绑的策略模板所属站点 ID。
@@ -3691,24 +3731,26 @@ module TencentCloud
3691
3731
 
3692
3732
  # DescribeApplicationProxies请求参数结构体
3693
3733
  class DescribeApplicationProxiesRequest < TencentCloud::Common::AbstractModel
3734
+ # @param ZoneId: 站点ID。该参数必填。
3735
+ # @type ZoneId: String
3736
+ # @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:<li>proxy-id<br>   按照【<strong>代理ID</strong>】进行过滤。代理ID形如:proxy-ev2sawbwfd。<br>   类型:String<br>   必选:否</li><li>zone-id<br>   按照【<strong>站点ID</strong>】进行过滤。站点ID形如:zone-vawer2vadg。<br>   类型:String<br>   必选:否</li><li>rule-tag<br>   按照【<strong>规则标签</strong>】对应用代理下的规则进行过滤。规则标签形如:rule-service-1。<br>   类型:String<br>   必选:否</li>
3737
+ # @type Filters: Array
3694
3738
  # @param Offset: 分页查询偏移量。默认为0。
3695
3739
  # @type Offset: Integer
3696
3740
  # @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
3697
3741
  # @type Limit: Integer
3698
- # @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:<li>proxy-id<br>   按照【<strong>代理ID</strong>】进行过滤。代理ID形如:proxy-ev2sawbwfd。<br>   类型:String<br>   必选:否</li><li>zone-id<br>   按照【<strong>站点ID</strong>】进行过滤。站点ID形如:zone-vawer2vadg。<br>   类型:String<br>   必选:否</li><li>rule-tag<br>   按照【<strong>规则标签</strong>】对应用代理下的规则进行过滤。规则标签形如:rule-service-1。<br>   类型:String<br>   必选:否</li>
3699
- # @type Filters: Array
3700
3742
 
3701
- attr_accessor :Offset, :Limit, :Filters
3743
+ attr_accessor :ZoneId, :Filters, :Offset, :Limit
3702
3744
 
3703
- def initialize(offset=nil, limit=nil, filters=nil)
3745
+ def initialize(zoneid=nil, filters=nil, offset=nil, limit=nil)
3746
+ @ZoneId = zoneid
3747
+ @Filters = filters
3704
3748
  @Offset = offset
3705
3749
  @Limit = limit
3706
- @Filters = filters
3707
3750
  end
3708
3751
 
3709
3752
  def deserialize(params)
3710
- @Offset = params['Offset']
3711
- @Limit = params['Limit']
3753
+ @ZoneId = params['ZoneId']
3712
3754
  unless params['Filters'].nil?
3713
3755
  @Filters = []
3714
3756
  params['Filters'].each do |i|
@@ -3717,6 +3759,8 @@ module TencentCloud
3717
3759
  @Filters << filter_tmp
3718
3760
  end
3719
3761
  end
3762
+ @Offset = params['Offset']
3763
+ @Limit = params['Limit']
3720
3764
  end
3721
3765
  end
3722
3766
 
@@ -3790,6 +3834,99 @@ module TencentCloud
3790
3834
  end
3791
3835
  end
3792
3836
 
3837
+ # DescribeBillingData请求参数结构体
3838
+ class DescribeBillingDataRequest < TencentCloud::Common::AbstractModel
3839
+ # @param StartTime: 起始时间。
3840
+ # @type StartTime: String
3841
+ # @param EndTime: 结束时间。
3842
+ # @type EndTime: String
3843
+ # @param ZoneIds: 站点 ID 集合,此参数必填。
3844
+ # @type ZoneIds: Array
3845
+ # @param MetricName: 指标列表,取值有:
3846
+ # <li>acc_flux: 内容加速流量,单位为 Byte;</li>
3847
+ # <li>smt_flux: 智能加速流量,单位为 Byte;</li>
3848
+ # <li>l4_flux: 四层加速流量,单位为 Byte;</li>
3849
+ # <li>sec_flux: 独立防护流量,单位为 Byte;</li>
3850
+ # <li>zxctg_flux: 中国大陆网络优化流量,单位为 Byte;</li>
3851
+ # <li>acc_bandwidth: 内容加速带宽,单位为 bps;</li>
3852
+ # <li>smt_bandwidth: 智能加速带宽,单位为 bps;</li>
3853
+ # <li>l4_bandwidth: 四层加速带宽,单位为 bps;</li>
3854
+ # <li>sec_bandwidth: 独立防护带宽,单位为 bps;</li>
3855
+ # <li>zxctg_bandwidth: 中国大陆网络优化带宽,单位为 bps;</li>
3856
+ # <li>sec_request_clean: HTTP/HTTPS 请求,单位为次;</li>
3857
+ # <li>smt_request_clean: 智能加速请求,单位为次;</li>
3858
+ # <li>quic_request: QUIC 请求,单位为次;</li>
3859
+ # <li>bot_request_clean: Bot 请求,单位为次;</li>
3860
+ # <li>cls_count: 实时日志推送条数,单位为条;</li>
3861
+ # <li>ddos_bandwidth: 弹性 DDoS 防护带宽,单位为 bps。</li>
3862
+ # @type MetricName: String
3863
+ # @param Interval: 查询时间粒度,取值有:
3864
+ # <li>5min:5 分钟粒度;</li>
3865
+ # <li>hour:1 小时粒度;</li>
3866
+ # <li>day:1 天粒度。</li>
3867
+ # @type Interval: String
3868
+ # @param Filters: 过滤条件,详细的过滤条件取值如下:
3869
+ # <li>host<br>   按照【<strong>域名</strong>】进行过滤。示例值:test.example.com。<br>   类型:String<br>   必选:否</li>
3870
+ # <li>proxy-id<br>   按照【<strong>四层代理实例 ID</strong>】进行过滤。示例值:sid-2rugn89bkla9。<br>   类型:String<br>   必选:否</li>
3871
+ # <li>region-id<br>   按照【<strong>计费大区</strong>】进行过滤。<br>   类型:String<br>   必选:否<br>   可选项如下:<br>   CH:中国大陆境内<br>   AF:非洲<br>   AS1:亚太一区<br>   AS2:亚太二区<br>   AS3:亚太三区<br>   EU:欧洲<br>   MidEast:中东<br>   NA:北美<br>   SA:南美</li>
3872
+ # @type Filters: Array
3873
+
3874
+ attr_accessor :StartTime, :EndTime, :ZoneIds, :MetricName, :Interval, :Filters
3875
+
3876
+ def initialize(starttime=nil, endtime=nil, zoneids=nil, metricname=nil, interval=nil, filters=nil)
3877
+ @StartTime = starttime
3878
+ @EndTime = endtime
3879
+ @ZoneIds = zoneids
3880
+ @MetricName = metricname
3881
+ @Interval = interval
3882
+ @Filters = filters
3883
+ end
3884
+
3885
+ def deserialize(params)
3886
+ @StartTime = params['StartTime']
3887
+ @EndTime = params['EndTime']
3888
+ @ZoneIds = params['ZoneIds']
3889
+ @MetricName = params['MetricName']
3890
+ @Interval = params['Interval']
3891
+ unless params['Filters'].nil?
3892
+ @Filters = []
3893
+ params['Filters'].each do |i|
3894
+ billingdatafilter_tmp = BillingDataFilter.new
3895
+ billingdatafilter_tmp.deserialize(i)
3896
+ @Filters << billingdatafilter_tmp
3897
+ end
3898
+ end
3899
+ end
3900
+ end
3901
+
3902
+ # DescribeBillingData返回参数结构体
3903
+ class DescribeBillingDataResponse < TencentCloud::Common::AbstractModel
3904
+ # @param Data: 数据点列表。
3905
+ # 注意:此字段可能返回 null,表示取不到有效值。
3906
+ # @type Data: Array
3907
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3908
+ # @type RequestId: String
3909
+
3910
+ attr_accessor :Data, :RequestId
3911
+
3912
+ def initialize(data=nil, requestid=nil)
3913
+ @Data = data
3914
+ @RequestId = requestid
3915
+ end
3916
+
3917
+ def deserialize(params)
3918
+ unless params['Data'].nil?
3919
+ @Data = []
3920
+ params['Data'].each do |i|
3921
+ billingdata_tmp = BillingData.new
3922
+ billingdata_tmp.deserialize(i)
3923
+ @Data << billingdata_tmp
3924
+ end
3925
+ end
3926
+ @RequestId = params['RequestId']
3927
+ end
3928
+ end
3929
+
3793
3930
  # DescribeConfigGroupVersionDetail请求参数结构体
3794
3931
  class DescribeConfigGroupVersionDetailRequest < TencentCloud::Common::AbstractModel
3795
3932
  # @param ZoneId: 站点 ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.758
4
+ version: 3.0.760
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-01-26 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common