tencentcloud-sdk-teo 3.0.758 → 3.0.759
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +24 -0
- data/lib/v20220901/models.rb +133 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b1f1d107c327abd754c2668a42cbe62d463579
|
4
|
+
data.tar.gz: ad09720463f970412f81307847dff53b57f834a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225aa40cb34aeea3ed4cf4ddd3d73342df821e67bccbfca5694d5033e402c15cd813c62208309f6d4e0208fae5c4334b4c4add5bca4a0d72d583c4effeb1bf73
|
7
|
+
data.tar.gz: e6b881c1a30c05606f43399a93c0876d1138e0aa6cb8b16a4be2c383fcf4cee37332740a3e548fedb7c8313bfa05c299c8c56e3b9ea26cd6d3755504e670a7f0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.759
|
data/lib/v20220901/client.rb
CHANGED
@@ -875,6 +875,30 @@ module TencentCloud
|
|
875
875
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
876
876
|
end
|
877
877
|
|
878
|
+
# 通过本接口查询计费数据。
|
879
|
+
|
880
|
+
# @param request: Request instance for DescribeBillingData.
|
881
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeBillingDataRequest`
|
882
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeBillingDataResponse`
|
883
|
+
def DescribeBillingData(request)
|
884
|
+
body = send_request('DescribeBillingData', request.serialize)
|
885
|
+
response = JSON.parse(body)
|
886
|
+
if response['Response'].key?('Error') == false
|
887
|
+
model = DescribeBillingDataResponse.new
|
888
|
+
model.deserialize(response['Response'])
|
889
|
+
model
|
890
|
+
else
|
891
|
+
code = response['Response']['Error']['Code']
|
892
|
+
message = response['Response']['Error']['Message']
|
893
|
+
reqid = response['Response']['RequestId']
|
894
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
895
|
+
end
|
896
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
897
|
+
raise e
|
898
|
+
rescue StandardError => e
|
899
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
900
|
+
end
|
901
|
+
|
878
902
|
# 在版本管理模式下,用于获取版本的详细信息,包括版本 ID、描述、状态、创建时间、所属配置组信息以及版本配置文件的内容。版本管理功能内测中,当前仅白名单开放。
|
879
903
|
|
880
904
|
# @param request: Request instance for DescribeConfigGroupVersionDetail.
|
data/lib/v20220901/models.rb
CHANGED
@@ -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。
|
@@ -3790,6 +3830,99 @@ module TencentCloud
|
|
3790
3830
|
end
|
3791
3831
|
end
|
3792
3832
|
|
3833
|
+
# DescribeBillingData请求参数结构体
|
3834
|
+
class DescribeBillingDataRequest < TencentCloud::Common::AbstractModel
|
3835
|
+
# @param StartTime: 起始时间。
|
3836
|
+
# @type StartTime: String
|
3837
|
+
# @param EndTime: 结束时间。
|
3838
|
+
# @type EndTime: String
|
3839
|
+
# @param ZoneIds: 站点 ID 集合,此参数必填。
|
3840
|
+
# @type ZoneIds: Array
|
3841
|
+
# @param MetricName: 指标列表,取值有:
|
3842
|
+
# <li>acc_flux: 内容加速流量,单位为 Byte;</li>
|
3843
|
+
# <li>smt_flux: 智能加速流量,单位为 Byte;</li>
|
3844
|
+
# <li>l4_flux: 四层加速流量,单位为 Byte;</li>
|
3845
|
+
# <li>sec_flux: 独立防护流量,单位为 Byte;</li>
|
3846
|
+
# <li>zxctg_flux: 中国大陆网络优化流量,单位为 Byte;</li>
|
3847
|
+
# <li>acc_bandwidth: 内容加速带宽,单位为 bps;</li>
|
3848
|
+
# <li>smt_bandwidth: 智能加速带宽,单位为 bps;</li>
|
3849
|
+
# <li>l4_bandwidth: 四层加速带宽,单位为 bps;</li>
|
3850
|
+
# <li>sec_bandwidth: 独立防护带宽,单位为 bps;</li>
|
3851
|
+
# <li>zxctg_bandwidth: 中国大陆网络优化带宽,单位为 bps;</li>
|
3852
|
+
# <li>sec_request_clean: HTTP/HTTPS 请求,单位为次;</li>
|
3853
|
+
# <li>smt_request_clean: 智能加速请求,单位为次;</li>
|
3854
|
+
# <li>quic_request: QUIC 请求,单位为次;</li>
|
3855
|
+
# <li>bot_request_clean: Bot 请求,单位为次;</li>
|
3856
|
+
# <li>cls_count: 实时日志推送条数,单位为条;</li>
|
3857
|
+
# <li>ddos_bandwidth: 弹性 DDoS 防护带宽,单位为 bps。</li>
|
3858
|
+
# @type MetricName: String
|
3859
|
+
# @param Interval: 查询时间粒度,取值有:
|
3860
|
+
# <li>5min:5 分钟粒度;</li>
|
3861
|
+
# <li>hour:1 小时粒度;</li>
|
3862
|
+
# <li>day:1 天粒度。</li>
|
3863
|
+
# @type Interval: String
|
3864
|
+
# @param Filters: 过滤条件,详细的过滤条件取值如下:
|
3865
|
+
# <li>host<br> 按照【<strong>域名</strong>】进行过滤。示例值:test.example.com。<br> 类型:String<br> 必选:否</li>
|
3866
|
+
# <li>proxy-id<br> 按照【<strong>四层代理实例 ID</strong>】进行过滤。示例值:sid-2rugn89bkla9。<br> 类型:String<br> 必选:否</li>
|
3867
|
+
# <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>
|
3868
|
+
# @type Filters: Array
|
3869
|
+
|
3870
|
+
attr_accessor :StartTime, :EndTime, :ZoneIds, :MetricName, :Interval, :Filters
|
3871
|
+
|
3872
|
+
def initialize(starttime=nil, endtime=nil, zoneids=nil, metricname=nil, interval=nil, filters=nil)
|
3873
|
+
@StartTime = starttime
|
3874
|
+
@EndTime = endtime
|
3875
|
+
@ZoneIds = zoneids
|
3876
|
+
@MetricName = metricname
|
3877
|
+
@Interval = interval
|
3878
|
+
@Filters = filters
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
def deserialize(params)
|
3882
|
+
@StartTime = params['StartTime']
|
3883
|
+
@EndTime = params['EndTime']
|
3884
|
+
@ZoneIds = params['ZoneIds']
|
3885
|
+
@MetricName = params['MetricName']
|
3886
|
+
@Interval = params['Interval']
|
3887
|
+
unless params['Filters'].nil?
|
3888
|
+
@Filters = []
|
3889
|
+
params['Filters'].each do |i|
|
3890
|
+
billingdatafilter_tmp = BillingDataFilter.new
|
3891
|
+
billingdatafilter_tmp.deserialize(i)
|
3892
|
+
@Filters << billingdatafilter_tmp
|
3893
|
+
end
|
3894
|
+
end
|
3895
|
+
end
|
3896
|
+
end
|
3897
|
+
|
3898
|
+
# DescribeBillingData返回参数结构体
|
3899
|
+
class DescribeBillingDataResponse < TencentCloud::Common::AbstractModel
|
3900
|
+
# @param Data: 数据点列表。
|
3901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3902
|
+
# @type Data: Array
|
3903
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3904
|
+
# @type RequestId: String
|
3905
|
+
|
3906
|
+
attr_accessor :Data, :RequestId
|
3907
|
+
|
3908
|
+
def initialize(data=nil, requestid=nil)
|
3909
|
+
@Data = data
|
3910
|
+
@RequestId = requestid
|
3911
|
+
end
|
3912
|
+
|
3913
|
+
def deserialize(params)
|
3914
|
+
unless params['Data'].nil?
|
3915
|
+
@Data = []
|
3916
|
+
params['Data'].each do |i|
|
3917
|
+
billingdata_tmp = BillingData.new
|
3918
|
+
billingdata_tmp.deserialize(i)
|
3919
|
+
@Data << billingdata_tmp
|
3920
|
+
end
|
3921
|
+
end
|
3922
|
+
@RequestId = params['RequestId']
|
3923
|
+
end
|
3924
|
+
end
|
3925
|
+
|
3793
3926
|
# DescribeConfigGroupVersionDetail请求参数结构体
|
3794
3927
|
class DescribeConfigGroupVersionDetailRequest < TencentCloud::Common::AbstractModel
|
3795
3928
|
# @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.
|
4
|
+
version: 3.0.759
|
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-
|
11
|
+
date: 2024-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|