tencentcloud-sdk-billing 3.0.686 → 3.0.687
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/v20180709/client.rb +96 -0
- data/lib/v20180709/models.rb +440 -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: 05cff75cef6c2015b2c0db33b57e5240c12c4f15
|
4
|
+
data.tar.gz: c9638f839ccb7e759c15a95a6c7cb4885f71afb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e44a6313b4ad852a301fd91c741d38ef00f31c2d99851bfc480ebc52111362a5eba95c7e57727d8a6313b3f1d7ccef8b649aab76536b32d04efbbe933deab0
|
7
|
+
data.tar.gz: 6b24356750193089e7467271df99190915d29ecb5d1c99cbca97304bdac48bedb02eb8c3ea544eb2a726555cf8ce17323116b431f4c32e8e123c67021127e4da
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.687
|
data/lib/v20180709/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 创建节省计划订单,创建订单完成需调用PayDeals接口完成订单支付
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateSavingPlanOrder.
|
59
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::CreateSavingPlanOrderRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::CreateSavingPlanOrderResponse`
|
61
|
+
def CreateSavingPlanOrder(request)
|
62
|
+
body = send_request('CreateSavingPlanOrder', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateSavingPlanOrderResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 批量取消设置分账标签
|
57
81
|
|
58
82
|
# @param request: Request instance for DeleteAllocationTag.
|
@@ -609,6 +633,78 @@ module TencentCloud
|
|
609
633
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
610
634
|
end
|
611
635
|
|
636
|
+
# 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
|
637
|
+
|
638
|
+
# @param request: Request instance for DescribeSavingPlanCoverage.
|
639
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanCoverageRequest`
|
640
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanCoverageResponse`
|
641
|
+
def DescribeSavingPlanCoverage(request)
|
642
|
+
body = send_request('DescribeSavingPlanCoverage', request.serialize)
|
643
|
+
response = JSON.parse(body)
|
644
|
+
if response['Response'].key?('Error') == false
|
645
|
+
model = DescribeSavingPlanCoverageResponse.new
|
646
|
+
model.deserialize(response['Response'])
|
647
|
+
model
|
648
|
+
else
|
649
|
+
code = response['Response']['Error']['Code']
|
650
|
+
message = response['Response']['Error']['Message']
|
651
|
+
reqid = response['Response']['RequestId']
|
652
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
653
|
+
end
|
654
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
655
|
+
raise e
|
656
|
+
rescue StandardError => e
|
657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
658
|
+
end
|
659
|
+
|
660
|
+
# 查用当前用户明细节省计划总览查询时段内的使用情况
|
661
|
+
|
662
|
+
# @param request: Request instance for DescribeSavingPlanOverview.
|
663
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanOverviewRequest`
|
664
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanOverviewResponse`
|
665
|
+
def DescribeSavingPlanOverview(request)
|
666
|
+
body = send_request('DescribeSavingPlanOverview', request.serialize)
|
667
|
+
response = JSON.parse(body)
|
668
|
+
if response['Response'].key?('Error') == false
|
669
|
+
model = DescribeSavingPlanOverviewResponse.new
|
670
|
+
model.deserialize(response['Response'])
|
671
|
+
model
|
672
|
+
else
|
673
|
+
code = response['Response']['Error']['Code']
|
674
|
+
message = response['Response']['Error']['Message']
|
675
|
+
reqid = response['Response']['RequestId']
|
676
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
677
|
+
end
|
678
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
679
|
+
raise e
|
680
|
+
rescue StandardError => e
|
681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
682
|
+
end
|
683
|
+
|
684
|
+
# 查用当前用户明细节省计划查询时段内的使用情况
|
685
|
+
|
686
|
+
# @param request: Request instance for DescribeSavingPlanUsage.
|
687
|
+
# @type request: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanUsageRequest`
|
688
|
+
# @rtype: :class:`Tencentcloud::billing::V20180709::DescribeSavingPlanUsageResponse`
|
689
|
+
def DescribeSavingPlanUsage(request)
|
690
|
+
body = send_request('DescribeSavingPlanUsage', request.serialize)
|
691
|
+
response = JSON.parse(body)
|
692
|
+
if response['Response'].key?('Error') == false
|
693
|
+
model = DescribeSavingPlanUsageResponse.new
|
694
|
+
model.deserialize(response['Response'])
|
695
|
+
model
|
696
|
+
else
|
697
|
+
code = response['Response']['Error']['Code']
|
698
|
+
message = response['Response']['Error']['Message']
|
699
|
+
reqid = response['Response']['RequestId']
|
700
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
701
|
+
end
|
702
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
703
|
+
raise e
|
704
|
+
rescue StandardError => e
|
705
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
706
|
+
end
|
707
|
+
|
612
708
|
# 获取分账标签
|
613
709
|
|
614
710
|
# @param request: Request instance for DescribeTagList.
|
data/lib/v20180709/models.rb
CHANGED
@@ -1762,6 +1762,70 @@ module TencentCloud
|
|
1762
1762
|
end
|
1763
1763
|
end
|
1764
1764
|
|
1765
|
+
# CreateSavingPlanOrder请求参数结构体
|
1766
|
+
class CreateSavingPlanOrderRequest < TencentCloud::Common::AbstractModel
|
1767
|
+
# @param RegionId: 地域编码
|
1768
|
+
# @type RegionId: Integer
|
1769
|
+
# @param ZoneId: 区域编码
|
1770
|
+
# @type ZoneId: Integer
|
1771
|
+
# @param PrePayType: 预付费类型
|
1772
|
+
# @type PrePayType: String
|
1773
|
+
# @param TimeSpan: 时长
|
1774
|
+
# @type TimeSpan: Integer
|
1775
|
+
# @param TimeUnit: 时长单位
|
1776
|
+
# @type TimeUnit: String
|
1777
|
+
# @param CommodityCode: 商品唯一标识
|
1778
|
+
# @type CommodityCode: String
|
1779
|
+
# @param PromiseUseAmount: 承诺时长内的小额金额(单位:分)
|
1780
|
+
# @type PromiseUseAmount: Integer
|
1781
|
+
# @param SpecifyEffectTime: 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
|
1782
|
+
# @type SpecifyEffectTime: String
|
1783
|
+
|
1784
|
+
attr_accessor :RegionId, :ZoneId, :PrePayType, :TimeSpan, :TimeUnit, :CommodityCode, :PromiseUseAmount, :SpecifyEffectTime
|
1785
|
+
|
1786
|
+
def initialize(regionid=nil, zoneid=nil, prepaytype=nil, timespan=nil, timeunit=nil, commoditycode=nil, promiseuseamount=nil, specifyeffecttime=nil)
|
1787
|
+
@RegionId = regionid
|
1788
|
+
@ZoneId = zoneid
|
1789
|
+
@PrePayType = prepaytype
|
1790
|
+
@TimeSpan = timespan
|
1791
|
+
@TimeUnit = timeunit
|
1792
|
+
@CommodityCode = commoditycode
|
1793
|
+
@PromiseUseAmount = promiseuseamount
|
1794
|
+
@SpecifyEffectTime = specifyeffecttime
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
def deserialize(params)
|
1798
|
+
@RegionId = params['RegionId']
|
1799
|
+
@ZoneId = params['ZoneId']
|
1800
|
+
@PrePayType = params['PrePayType']
|
1801
|
+
@TimeSpan = params['TimeSpan']
|
1802
|
+
@TimeUnit = params['TimeUnit']
|
1803
|
+
@CommodityCode = params['CommodityCode']
|
1804
|
+
@PromiseUseAmount = params['PromiseUseAmount']
|
1805
|
+
@SpecifyEffectTime = params['SpecifyEffectTime']
|
1806
|
+
end
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
# CreateSavingPlanOrder返回参数结构体
|
1810
|
+
class CreateSavingPlanOrderResponse < TencentCloud::Common::AbstractModel
|
1811
|
+
# @param BigDealId: 订单号
|
1812
|
+
# @type BigDealId: String
|
1813
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1814
|
+
# @type RequestId: String
|
1815
|
+
|
1816
|
+
attr_accessor :BigDealId, :RequestId
|
1817
|
+
|
1818
|
+
def initialize(bigdealid=nil, requestid=nil)
|
1819
|
+
@BigDealId = bigdealid
|
1820
|
+
@RequestId = requestid
|
1821
|
+
end
|
1822
|
+
|
1823
|
+
def deserialize(params)
|
1824
|
+
@BigDealId = params['BigDealId']
|
1825
|
+
@RequestId = params['RequestId']
|
1826
|
+
end
|
1827
|
+
end
|
1828
|
+
|
1765
1829
|
# 订单数据对象
|
1766
1830
|
class Deal < TencentCloud::Common::AbstractModel
|
1767
1831
|
# @param OrderId: 订单号
|
@@ -3791,6 +3855,202 @@ module TencentCloud
|
|
3791
3855
|
end
|
3792
3856
|
end
|
3793
3857
|
|
3858
|
+
# DescribeSavingPlanCoverage请求参数结构体
|
3859
|
+
class DescribeSavingPlanCoverageRequest < TencentCloud::Common::AbstractModel
|
3860
|
+
# @param StartDate: 费用起始日期,格式yyyy-MM-dd
|
3861
|
+
# @type StartDate: String
|
3862
|
+
# @param EndDate: 费用结束日期,格式yyyy-MM-dd
|
3863
|
+
# @type EndDate: String
|
3864
|
+
# @param Offset: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推
|
3865
|
+
# @type Offset: Integer
|
3866
|
+
# @param Limit: 数量,最大值为200
|
3867
|
+
# @type Limit: Integer
|
3868
|
+
# @param PeriodType: 取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet
|
3869
|
+
# @type PeriodType: Integer
|
3870
|
+
|
3871
|
+
attr_accessor :StartDate, :EndDate, :Offset, :Limit, :PeriodType
|
3872
|
+
|
3873
|
+
def initialize(startdate=nil, enddate=nil, offset=nil, limit=nil, periodtype=nil)
|
3874
|
+
@StartDate = startdate
|
3875
|
+
@EndDate = enddate
|
3876
|
+
@Offset = offset
|
3877
|
+
@Limit = limit
|
3878
|
+
@PeriodType = periodtype
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
def deserialize(params)
|
3882
|
+
@StartDate = params['StartDate']
|
3883
|
+
@EndDate = params['EndDate']
|
3884
|
+
@Offset = params['Offset']
|
3885
|
+
@Limit = params['Limit']
|
3886
|
+
@PeriodType = params['PeriodType']
|
3887
|
+
end
|
3888
|
+
end
|
3889
|
+
|
3890
|
+
# DescribeSavingPlanCoverage返回参数结构体
|
3891
|
+
class DescribeSavingPlanCoverageResponse < TencentCloud::Common::AbstractModel
|
3892
|
+
# @param DetailSet: 节省计划覆盖率明细数据
|
3893
|
+
# @type DetailSet: Array
|
3894
|
+
# @param RateSet: 节省计划覆盖率聚合数据
|
3895
|
+
# @type RateSet: Array
|
3896
|
+
# @param TotalCount: 查询命中的节省计划覆盖率明细数据总条数
|
3897
|
+
# @type TotalCount: Integer
|
3898
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3899
|
+
# @type RequestId: String
|
3900
|
+
|
3901
|
+
attr_accessor :DetailSet, :RateSet, :TotalCount, :RequestId
|
3902
|
+
|
3903
|
+
def initialize(detailset=nil, rateset=nil, totalcount=nil, requestid=nil)
|
3904
|
+
@DetailSet = detailset
|
3905
|
+
@RateSet = rateset
|
3906
|
+
@TotalCount = totalcount
|
3907
|
+
@RequestId = requestid
|
3908
|
+
end
|
3909
|
+
|
3910
|
+
def deserialize(params)
|
3911
|
+
unless params['DetailSet'].nil?
|
3912
|
+
@DetailSet = []
|
3913
|
+
params['DetailSet'].each do |i|
|
3914
|
+
savingplancoveragedetail_tmp = SavingPlanCoverageDetail.new
|
3915
|
+
savingplancoveragedetail_tmp.deserialize(i)
|
3916
|
+
@DetailSet << savingplancoveragedetail_tmp
|
3917
|
+
end
|
3918
|
+
end
|
3919
|
+
unless params['RateSet'].nil?
|
3920
|
+
@RateSet = []
|
3921
|
+
params['RateSet'].each do |i|
|
3922
|
+
savingplancoveragerate_tmp = SavingPlanCoverageRate.new
|
3923
|
+
savingplancoveragerate_tmp.deserialize(i)
|
3924
|
+
@RateSet << savingplancoveragerate_tmp
|
3925
|
+
end
|
3926
|
+
end
|
3927
|
+
@TotalCount = params['TotalCount']
|
3928
|
+
@RequestId = params['RequestId']
|
3929
|
+
end
|
3930
|
+
end
|
3931
|
+
|
3932
|
+
# DescribeSavingPlanOverview请求参数结构体
|
3933
|
+
class DescribeSavingPlanOverviewRequest < TencentCloud::Common::AbstractModel
|
3934
|
+
# @param StartDate: 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
3935
|
+
# @type StartDate: String
|
3936
|
+
# @param EndDate: 结束时间,格式yyyy-MM-dd
|
3937
|
+
# @type EndDate: String
|
3938
|
+
# @param Offset: 分页偏移量
|
3939
|
+
# @type Offset: Integer
|
3940
|
+
# @param Limit: 每页数量,最大值为200
|
3941
|
+
# @type Limit: Integer
|
3942
|
+
|
3943
|
+
attr_accessor :StartDate, :EndDate, :Offset, :Limit
|
3944
|
+
|
3945
|
+
def initialize(startdate=nil, enddate=nil, offset=nil, limit=nil)
|
3946
|
+
@StartDate = startdate
|
3947
|
+
@EndDate = enddate
|
3948
|
+
@Offset = offset
|
3949
|
+
@Limit = limit
|
3950
|
+
end
|
3951
|
+
|
3952
|
+
def deserialize(params)
|
3953
|
+
@StartDate = params['StartDate']
|
3954
|
+
@EndDate = params['EndDate']
|
3955
|
+
@Offset = params['Offset']
|
3956
|
+
@Limit = params['Limit']
|
3957
|
+
end
|
3958
|
+
end
|
3959
|
+
|
3960
|
+
# DescribeSavingPlanOverview返回参数结构体
|
3961
|
+
class DescribeSavingPlanOverviewResponse < TencentCloud::Common::AbstractModel
|
3962
|
+
# @param Overviews: 节省计划总览明细数据
|
3963
|
+
# @type Overviews: Array
|
3964
|
+
# @param Total: 查询命中的节省计划总览明细数据总条数
|
3965
|
+
# @type Total: Integer
|
3966
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3967
|
+
# @type RequestId: String
|
3968
|
+
|
3969
|
+
attr_accessor :Overviews, :Total, :RequestId
|
3970
|
+
|
3971
|
+
def initialize(overviews=nil, total=nil, requestid=nil)
|
3972
|
+
@Overviews = overviews
|
3973
|
+
@Total = total
|
3974
|
+
@RequestId = requestid
|
3975
|
+
end
|
3976
|
+
|
3977
|
+
def deserialize(params)
|
3978
|
+
unless params['Overviews'].nil?
|
3979
|
+
@Overviews = []
|
3980
|
+
params['Overviews'].each do |i|
|
3981
|
+
savingplanoverviewdetail_tmp = SavingPlanOverviewDetail.new
|
3982
|
+
savingplanoverviewdetail_tmp.deserialize(i)
|
3983
|
+
@Overviews << savingplanoverviewdetail_tmp
|
3984
|
+
end
|
3985
|
+
end
|
3986
|
+
@Total = params['Total']
|
3987
|
+
@RequestId = params['RequestId']
|
3988
|
+
end
|
3989
|
+
end
|
3990
|
+
|
3991
|
+
# DescribeSavingPlanUsage请求参数结构体
|
3992
|
+
class DescribeSavingPlanUsageRequest < TencentCloud::Common::AbstractModel
|
3993
|
+
# @param StartDate: 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
3994
|
+
# @type StartDate: String
|
3995
|
+
# @param EndDate: 结束时间,格式yyyy-MM-dd
|
3996
|
+
# @type EndDate: String
|
3997
|
+
# @param Offset: 分页偏移量
|
3998
|
+
# @type Offset: Integer
|
3999
|
+
# @param Limit: 每页数量,最大值为200
|
4000
|
+
# @type Limit: Integer
|
4001
|
+
# @param TimeInterval: 查询结果数据的时间间隔
|
4002
|
+
# @type TimeInterval: String
|
4003
|
+
|
4004
|
+
attr_accessor :StartDate, :EndDate, :Offset, :Limit, :TimeInterval
|
4005
|
+
|
4006
|
+
def initialize(startdate=nil, enddate=nil, offset=nil, limit=nil, timeinterval=nil)
|
4007
|
+
@StartDate = startdate
|
4008
|
+
@EndDate = enddate
|
4009
|
+
@Offset = offset
|
4010
|
+
@Limit = limit
|
4011
|
+
@TimeInterval = timeinterval
|
4012
|
+
end
|
4013
|
+
|
4014
|
+
def deserialize(params)
|
4015
|
+
@StartDate = params['StartDate']
|
4016
|
+
@EndDate = params['EndDate']
|
4017
|
+
@Offset = params['Offset']
|
4018
|
+
@Limit = params['Limit']
|
4019
|
+
@TimeInterval = params['TimeInterval']
|
4020
|
+
end
|
4021
|
+
end
|
4022
|
+
|
4023
|
+
# DescribeSavingPlanUsage返回参数结构体
|
4024
|
+
class DescribeSavingPlanUsageResponse < TencentCloud::Common::AbstractModel
|
4025
|
+
# @param Usages: 节省计划使用率数据
|
4026
|
+
# @type Usages: Array
|
4027
|
+
# @param Total: 查询命中的节省计划总览明细数据总条数
|
4028
|
+
# @type Total: Integer
|
4029
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4030
|
+
# @type RequestId: String
|
4031
|
+
|
4032
|
+
attr_accessor :Usages, :Total, :RequestId
|
4033
|
+
|
4034
|
+
def initialize(usages=nil, total=nil, requestid=nil)
|
4035
|
+
@Usages = usages
|
4036
|
+
@Total = total
|
4037
|
+
@RequestId = requestid
|
4038
|
+
end
|
4039
|
+
|
4040
|
+
def deserialize(params)
|
4041
|
+
unless params['Usages'].nil?
|
4042
|
+
@Usages = []
|
4043
|
+
params['Usages'].each do |i|
|
4044
|
+
savingplanusagedetail_tmp = SavingPlanUsageDetail.new
|
4045
|
+
savingplanusagedetail_tmp.deserialize(i)
|
4046
|
+
@Usages << savingplanusagedetail_tmp
|
4047
|
+
end
|
4048
|
+
end
|
4049
|
+
@Total = params['Total']
|
4050
|
+
@RequestId = params['RequestId']
|
4051
|
+
end
|
4052
|
+
end
|
4053
|
+
|
3794
4054
|
# DescribeTagList请求参数结构体
|
3795
4055
|
class DescribeTagListRequest < TencentCloud::Common::AbstractModel
|
3796
4056
|
# @param Limit: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
|
@@ -4492,6 +4752,186 @@ module TencentCloud
|
|
4492
4752
|
end
|
4493
4753
|
end
|
4494
4754
|
|
4755
|
+
# 节省计划覆盖率数据
|
4756
|
+
class SavingPlanCoverageDetail < TencentCloud::Common::AbstractModel
|
4757
|
+
# @param ResourceId: 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
|
4758
|
+
# @type ResourceId: String
|
4759
|
+
# @param RegionId: 地域ID
|
4760
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4761
|
+
# @type RegionId: Integer
|
4762
|
+
# @param ProductCode: 产品编码
|
4763
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4764
|
+
# @type ProductCode: String
|
4765
|
+
# @param SubProductCode: 子产品编码
|
4766
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4767
|
+
# @type SubProductCode: String
|
4768
|
+
# @param StartDate: 费用起始日期,格式yyyy-MM-dd
|
4769
|
+
# @type StartDate: String
|
4770
|
+
# @param EndDate: 费用结束日期,格式yyyy-MM-dd,目前与StartDate相等
|
4771
|
+
# @type EndDate: String
|
4772
|
+
# @param SpCoveredAmount: 节省计划覆盖金额(即节省计划支付金额)
|
4773
|
+
# @type SpCoveredAmount: Float
|
4774
|
+
# @param SpUncoveredAmount: 节省计划未覆盖金额(即优惠后总价)
|
4775
|
+
# @type SpUncoveredAmount: Float
|
4776
|
+
# @param TotalRealAmount: 总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)
|
4777
|
+
# @type TotalRealAmount: Float
|
4778
|
+
# @param ExpectedAmount: 按量计费预期金额(即折前价 * 折扣)
|
4779
|
+
# @type ExpectedAmount: Float
|
4780
|
+
# @param SpCoverage: 覆盖率结果,取值[0, 100]
|
4781
|
+
# @type SpCoverage: Float
|
4782
|
+
|
4783
|
+
attr_accessor :ResourceId, :RegionId, :ProductCode, :SubProductCode, :StartDate, :EndDate, :SpCoveredAmount, :SpUncoveredAmount, :TotalRealAmount, :ExpectedAmount, :SpCoverage
|
4784
|
+
|
4785
|
+
def initialize(resourceid=nil, regionid=nil, productcode=nil, subproductcode=nil, startdate=nil, enddate=nil, spcoveredamount=nil, spuncoveredamount=nil, totalrealamount=nil, expectedamount=nil, spcoverage=nil)
|
4786
|
+
@ResourceId = resourceid
|
4787
|
+
@RegionId = regionid
|
4788
|
+
@ProductCode = productcode
|
4789
|
+
@SubProductCode = subproductcode
|
4790
|
+
@StartDate = startdate
|
4791
|
+
@EndDate = enddate
|
4792
|
+
@SpCoveredAmount = spcoveredamount
|
4793
|
+
@SpUncoveredAmount = spuncoveredamount
|
4794
|
+
@TotalRealAmount = totalrealamount
|
4795
|
+
@ExpectedAmount = expectedamount
|
4796
|
+
@SpCoverage = spcoverage
|
4797
|
+
end
|
4798
|
+
|
4799
|
+
def deserialize(params)
|
4800
|
+
@ResourceId = params['ResourceId']
|
4801
|
+
@RegionId = params['RegionId']
|
4802
|
+
@ProductCode = params['ProductCode']
|
4803
|
+
@SubProductCode = params['SubProductCode']
|
4804
|
+
@StartDate = params['StartDate']
|
4805
|
+
@EndDate = params['EndDate']
|
4806
|
+
@SpCoveredAmount = params['SpCoveredAmount']
|
4807
|
+
@SpUncoveredAmount = params['SpUncoveredAmount']
|
4808
|
+
@TotalRealAmount = params['TotalRealAmount']
|
4809
|
+
@ExpectedAmount = params['ExpectedAmount']
|
4810
|
+
@SpCoverage = params['SpCoverage']
|
4811
|
+
end
|
4812
|
+
end
|
4813
|
+
|
4814
|
+
# 节省计划覆盖率聚合数据
|
4815
|
+
class SavingPlanCoverageRate < TencentCloud::Common::AbstractModel
|
4816
|
+
# @param DatePoint: 聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM
|
4817
|
+
# @type DatePoint: String
|
4818
|
+
# @param Rate: 覆盖率结果,取值[0, 100]
|
4819
|
+
# @type Rate: Float
|
4820
|
+
|
4821
|
+
attr_accessor :DatePoint, :Rate
|
4822
|
+
|
4823
|
+
def initialize(datepoint=nil, rate=nil)
|
4824
|
+
@DatePoint = datepoint
|
4825
|
+
@Rate = rate
|
4826
|
+
end
|
4827
|
+
|
4828
|
+
def deserialize(params)
|
4829
|
+
@DatePoint = params['DatePoint']
|
4830
|
+
@Rate = params['Rate']
|
4831
|
+
end
|
4832
|
+
end
|
4833
|
+
|
4834
|
+
# 节省计划总览明细数据
|
4835
|
+
class SavingPlanOverviewDetail < TencentCloud::Common::AbstractModel
|
4836
|
+
# @param SpType: 节省计划类型
|
4837
|
+
# @type SpType: String
|
4838
|
+
# @param PayType: 支付类型
|
4839
|
+
# @type PayType: Integer
|
4840
|
+
# @param PayAmount: 支付金额(单位:元)
|
4841
|
+
# @type PayAmount: String
|
4842
|
+
# @param StartTime: 开始时间 yyyy-mm-dd HH:mm:ss格式
|
4843
|
+
# @type StartTime: String
|
4844
|
+
# @param EndTime: 结束时间 yyyy-mm-dd HH:mm:ss格式
|
4845
|
+
# @type EndTime: String
|
4846
|
+
# @param BuyTime: 购买时间 yyyy-mm-dd HH:mm:ss格式
|
4847
|
+
# @type BuyTime: String
|
4848
|
+
# @param Status: 状态
|
4849
|
+
# @type Status: Integer
|
4850
|
+
# @param SavingAmount: 累计节省金额(单位:元)
|
4851
|
+
# @type SavingAmount: String
|
4852
|
+
# @param Region: 地域
|
4853
|
+
# @type Region: Array
|
4854
|
+
|
4855
|
+
attr_accessor :SpType, :PayType, :PayAmount, :StartTime, :EndTime, :BuyTime, :Status, :SavingAmount, :Region
|
4856
|
+
|
4857
|
+
def initialize(sptype=nil, paytype=nil, payamount=nil, starttime=nil, endtime=nil, buytime=nil, status=nil, savingamount=nil, region=nil)
|
4858
|
+
@SpType = sptype
|
4859
|
+
@PayType = paytype
|
4860
|
+
@PayAmount = payamount
|
4861
|
+
@StartTime = starttime
|
4862
|
+
@EndTime = endtime
|
4863
|
+
@BuyTime = buytime
|
4864
|
+
@Status = status
|
4865
|
+
@SavingAmount = savingamount
|
4866
|
+
@Region = region
|
4867
|
+
end
|
4868
|
+
|
4869
|
+
def deserialize(params)
|
4870
|
+
@SpType = params['SpType']
|
4871
|
+
@PayType = params['PayType']
|
4872
|
+
@PayAmount = params['PayAmount']
|
4873
|
+
@StartTime = params['StartTime']
|
4874
|
+
@EndTime = params['EndTime']
|
4875
|
+
@BuyTime = params['BuyTime']
|
4876
|
+
@Status = params['Status']
|
4877
|
+
@SavingAmount = params['SavingAmount']
|
4878
|
+
@Region = params['Region']
|
4879
|
+
end
|
4880
|
+
end
|
4881
|
+
|
4882
|
+
# 节省计划使用率数据
|
4883
|
+
class SavingPlanUsageDetail < TencentCloud::Common::AbstractModel
|
4884
|
+
# @param SpType: 节省计划类型
|
4885
|
+
# @type SpType: String
|
4886
|
+
# @param Status: 节省计划状态
|
4887
|
+
# @type Status: Integer
|
4888
|
+
# @param DeductAmount: 累计抵扣的金额(单位:元)
|
4889
|
+
# @type DeductAmount: String
|
4890
|
+
# @param PromiseAmount: 累计承诺消费金额(单位:元)
|
4891
|
+
# @type PromiseAmount: String
|
4892
|
+
# @param NetSavings: 累计净节省金额(单位:元)
|
4893
|
+
# @type NetSavings: String
|
4894
|
+
# @param UtilizationRate: 使用率
|
4895
|
+
# @type UtilizationRate: Float
|
4896
|
+
# @param LossAmount: 累计流失金额(单位:元)
|
4897
|
+
# @type LossAmount: String
|
4898
|
+
# @param DosageAmount: 累计按量计费预期金额(单位:元)
|
4899
|
+
# @type DosageAmount: String
|
4900
|
+
# @param CostAmount: 累计成本金额(单位:元)
|
4901
|
+
# @type CostAmount: String
|
4902
|
+
# @param Region: 地域
|
4903
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4904
|
+
# @type Region: Array
|
4905
|
+
|
4906
|
+
attr_accessor :SpType, :Status, :DeductAmount, :PromiseAmount, :NetSavings, :UtilizationRate, :LossAmount, :DosageAmount, :CostAmount, :Region
|
4907
|
+
|
4908
|
+
def initialize(sptype=nil, status=nil, deductamount=nil, promiseamount=nil, netsavings=nil, utilizationrate=nil, lossamount=nil, dosageamount=nil, costamount=nil, region=nil)
|
4909
|
+
@SpType = sptype
|
4910
|
+
@Status = status
|
4911
|
+
@DeductAmount = deductamount
|
4912
|
+
@PromiseAmount = promiseamount
|
4913
|
+
@NetSavings = netsavings
|
4914
|
+
@UtilizationRate = utilizationrate
|
4915
|
+
@LossAmount = lossamount
|
4916
|
+
@DosageAmount = dosageamount
|
4917
|
+
@CostAmount = costamount
|
4918
|
+
@Region = region
|
4919
|
+
end
|
4920
|
+
|
4921
|
+
def deserialize(params)
|
4922
|
+
@SpType = params['SpType']
|
4923
|
+
@Status = params['Status']
|
4924
|
+
@DeductAmount = params['DeductAmount']
|
4925
|
+
@PromiseAmount = params['PromiseAmount']
|
4926
|
+
@NetSavings = params['NetSavings']
|
4927
|
+
@UtilizationRate = params['UtilizationRate']
|
4928
|
+
@LossAmount = params['LossAmount']
|
4929
|
+
@DosageAmount = params['DosageAmount']
|
4930
|
+
@CostAmount = params['CostAmount']
|
4931
|
+
@Region = params['Region']
|
4932
|
+
end
|
4933
|
+
end
|
4934
|
+
|
4495
4935
|
# 账单多维度汇总消费详情
|
4496
4936
|
class SummaryDetail < TencentCloud::Common::AbstractModel
|
4497
4937
|
# @param GroupKey: 账单维度编码
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-billing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.687
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|