tencentcloud-sdk-ecm 1.0.205 → 1.0.206

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: e692522a11d63af29690cf8ff720e8537153dbb6
4
- data.tar.gz: 7ece8edbce39218f3ee0d8f3fbf1be3585bf5b1b
3
+ metadata.gz: 5677b8a1989a47d7899af1d115723b8ca345314a
4
+ data.tar.gz: e93734299f9d760f1368418025bb168a3eff88e2
5
5
  SHA512:
6
- metadata.gz: dbf19846400c0fd2365e1a05b8b22dc2017aa968a7d3dfbeda4c465602a6a33a50fb34b8f6ad4cc4a2aa3673804e9705984191f27d2379a6b1e2663cce5a5cd4
7
- data.tar.gz: 5705012d101294cd1ab440c05d5bd44a6e53548dbad46b9e02e7024e3e7fc08e6a3d054ff8d682564c403b460b2296b1cf8b344fcc9ce268fa7b35fbc8e62219
6
+ metadata.gz: 3e8a8ac424fb4ba36fab433cf7b6edaf8dfe981df63b38d4ff305469418861650a6ad303673013e2cf930504a4c13f5e7d573d957a06b7850596e40ca60fd6aa
7
+ data.tar.gz: 784b690b7bcb78fffbd5f5be599dda7bd352433a9097969c0a1ebe971238dba640a8f6f59d3a9b832b56befff0ace3274e7ee270c2a183655992cb66053df1a1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.205
1
+ 1.0.206
@@ -1572,6 +1572,30 @@ module TencentCloud
1572
1572
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1573
1573
  end
1574
1574
 
1575
+ # 查询实例价格
1576
+
1577
+ # @param request: Request instance for DescribePriceRunInstance.
1578
+ # @type request: :class:`Tencentcloud::ecm::V20190719::DescribePriceRunInstanceRequest`
1579
+ # @rtype: :class:`Tencentcloud::ecm::V20190719::DescribePriceRunInstanceResponse`
1580
+ def DescribePriceRunInstance(request)
1581
+ body = send_request('DescribePriceRunInstance', request.serialize)
1582
+ response = JSON.parse(body)
1583
+ if response['Response'].key?('Error') == false
1584
+ model = DescribePriceRunInstanceResponse.new
1585
+ model.deserialize(response['Response'])
1586
+ model
1587
+ else
1588
+ code = response['Response']['Error']['Code']
1589
+ message = response['Response']['Error']['Message']
1590
+ reqid = response['Response']['RequestId']
1591
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1592
+ end
1593
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1594
+ raise e
1595
+ rescue StandardError => e
1596
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1597
+ end
1598
+
1575
1599
  # 查询自定义路由策略与云联网路由策略冲突列表
1576
1600
 
1577
1601
  # @param request: Request instance for DescribeRouteConflicts.
@@ -3811,6 +3811,67 @@ module TencentCloud
3811
3811
  end
3812
3812
  end
3813
3813
 
3814
+ # DescribePriceRunInstance请求参数结构体
3815
+ class DescribePriceRunInstanceRequest < TencentCloud::Common::AbstractModel
3816
+ # @param InstanceType: 实例的机型信息
3817
+ # @type InstanceType: String
3818
+ # @param SystemDisk: 系统盘信息
3819
+ # @type SystemDisk: :class:`Tencentcloud::Ecm.v20190719.models.SystemDisk`
3820
+ # @param InstanceCount: 实例个数
3821
+ # @type InstanceCount: Integer
3822
+ # @param DataDisk: 数据盘信息
3823
+ # @type DataDisk: Array
3824
+
3825
+ attr_accessor :InstanceType, :SystemDisk, :InstanceCount, :DataDisk
3826
+
3827
+ def initialize(instancetype=nil, systemdisk=nil, instancecount=nil, datadisk=nil)
3828
+ @InstanceType = instancetype
3829
+ @SystemDisk = systemdisk
3830
+ @InstanceCount = instancecount
3831
+ @DataDisk = datadisk
3832
+ end
3833
+
3834
+ def deserialize(params)
3835
+ @InstanceType = params['InstanceType']
3836
+ unless params['SystemDisk'].nil?
3837
+ @SystemDisk = SystemDisk.new
3838
+ @SystemDisk.deserialize(params['SystemDisk'])
3839
+ end
3840
+ @InstanceCount = params['InstanceCount']
3841
+ unless params['DataDisk'].nil?
3842
+ @DataDisk = []
3843
+ params['DataDisk'].each do |i|
3844
+ datadisk_tmp = DataDisk.new
3845
+ datadisk_tmp.deserialize(i)
3846
+ @DataDisk << datadisk_tmp
3847
+ end
3848
+ end
3849
+ end
3850
+ end
3851
+
3852
+ # DescribePriceRunInstance返回参数结构体
3853
+ class DescribePriceRunInstanceResponse < TencentCloud::Common::AbstractModel
3854
+ # @param InstancePrice: 实例价格信息
3855
+ # @type InstancePrice: :class:`Tencentcloud::Ecm.v20190719.models.InstancesPrice`
3856
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3857
+ # @type RequestId: String
3858
+
3859
+ attr_accessor :InstancePrice, :RequestId
3860
+
3861
+ def initialize(instanceprice=nil, requestid=nil)
3862
+ @InstancePrice = instanceprice
3863
+ @RequestId = requestid
3864
+ end
3865
+
3866
+ def deserialize(params)
3867
+ unless params['InstancePrice'].nil?
3868
+ @InstancePrice = InstancesPrice.new
3869
+ @InstancePrice.deserialize(params['InstancePrice'])
3870
+ end
3871
+ @RequestId = params['RequestId']
3872
+ end
3873
+ end
3874
+
3814
3875
  # DescribeRouteConflicts请求参数结构体
3815
3876
  class DescribeRouteConflictsRequest < TencentCloud::Common::AbstractModel
3816
3877
  # @param RouteTableId: 路由表实例ID,例如:rtb-azd4dt1c。
@@ -5935,6 +5996,39 @@ module TencentCloud
5935
5996
  end
5936
5997
  end
5937
5998
 
5999
+ # 描述实例的价格相关
6000
+ class InstancePricesPartDetail < TencentCloud::Common::AbstractModel
6001
+ # @param CpuPrice: cpu的价格信息
6002
+ # @type CpuPrice: :class:`Tencentcloud::Ecm.v20190719.models.PriceDetail`
6003
+ # @param MemPrice: 内存价格信息
6004
+ # @type MemPrice: :class:`Tencentcloud::Ecm.v20190719.models.PriceDetail`
6005
+ # @param DisksPrice: 磁盘价格信息
6006
+ # @type DisksPrice: :class:`Tencentcloud::Ecm.v20190719.models.PriceDetail`
6007
+
6008
+ attr_accessor :CpuPrice, :MemPrice, :DisksPrice
6009
+
6010
+ def initialize(cpuprice=nil, memprice=nil, disksprice=nil)
6011
+ @CpuPrice = cpuprice
6012
+ @MemPrice = memprice
6013
+ @DisksPrice = disksprice
6014
+ end
6015
+
6016
+ def deserialize(params)
6017
+ unless params['CpuPrice'].nil?
6018
+ @CpuPrice = PriceDetail.new
6019
+ @CpuPrice.deserialize(params['CpuPrice'])
6020
+ end
6021
+ unless params['MemPrice'].nil?
6022
+ @MemPrice = PriceDetail.new
6023
+ @MemPrice.deserialize(params['MemPrice'])
6024
+ end
6025
+ unless params['DisksPrice'].nil?
6026
+ @DisksPrice = PriceDetail.new
6027
+ @DisksPrice.deserialize(params['DisksPrice'])
6028
+ end
6029
+ end
6030
+ end
6031
+
5938
6032
  # 用于描述实例的统计信息
5939
6033
  class InstanceStatistic < TencentCloud::Common::AbstractModel
5940
6034
  # @param InstanceType: 实例的类型
@@ -6016,6 +6110,37 @@ module TencentCloud
6016
6110
  end
6017
6111
  end
6018
6112
 
6113
+ # 实例价格信息
6114
+ class InstancesPrice < TencentCloud::Common::AbstractModel
6115
+ # @param InstancePricesPartDetail: 分部描述实例子维度的价格
6116
+ # @type InstancePricesPartDetail: :class:`Tencentcloud::Ecm.v20190719.models.InstancePricesPartDetail`
6117
+ # @param Discount: 实例总价折扣
6118
+ # @type Discount: Integer
6119
+ # @param DiscountPrice: 折扣后价格
6120
+ # @type DiscountPrice: Integer
6121
+ # @param OriginalPrice: 折扣前价格,原始总价
6122
+ # @type OriginalPrice: Integer
6123
+
6124
+ attr_accessor :InstancePricesPartDetail, :Discount, :DiscountPrice, :OriginalPrice
6125
+
6126
+ def initialize(instancepricespartdetail=nil, discount=nil, discountprice=nil, originalprice=nil)
6127
+ @InstancePricesPartDetail = instancepricespartdetail
6128
+ @Discount = discount
6129
+ @DiscountPrice = discountprice
6130
+ @OriginalPrice = originalprice
6131
+ end
6132
+
6133
+ def deserialize(params)
6134
+ unless params['InstancePricesPartDetail'].nil?
6135
+ @InstancePricesPartDetail = InstancePricesPartDetail.new
6136
+ @InstancePricesPartDetail.deserialize(params['InstancePricesPartDetail'])
6137
+ end
6138
+ @Discount = params['Discount']
6139
+ @DiscountPrice = params['DiscountPrice']
6140
+ @OriginalPrice = params['OriginalPrice']
6141
+ end
6142
+ end
6143
+
6019
6144
  # 实例的网络相关信息。
6020
6145
  class Internet < TencentCloud::Common::AbstractModel
6021
6146
  # @param PrivateIPAddressSet: 实例的内网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。
@@ -8482,6 +8607,30 @@ module TencentCloud
8482
8607
  end
8483
8608
  end
8484
8609
 
8610
+ # 描述cpu,内存等维度的价格
8611
+ class PriceDetail < TencentCloud::Common::AbstractModel
8612
+ # @param Discount: 表示折扣,20 表示20%,打2折
8613
+ # @type Discount: Integer
8614
+ # @param DiscountPrice: 打折后价格,单位分
8615
+ # @type DiscountPrice: Integer
8616
+ # @param OriginalPrice: 折扣前价格,单位分
8617
+ # @type OriginalPrice: Integer
8618
+
8619
+ attr_accessor :Discount, :DiscountPrice, :OriginalPrice
8620
+
8621
+ def initialize(discount=nil, discountprice=nil, originalprice=nil)
8622
+ @Discount = discount
8623
+ @DiscountPrice = discountprice
8624
+ @OriginalPrice = originalprice
8625
+ end
8626
+
8627
+ def deserialize(params)
8628
+ @Discount = params['Discount']
8629
+ @DiscountPrice = params['DiscountPrice']
8630
+ @OriginalPrice = params['OriginalPrice']
8631
+ end
8632
+ end
8633
+
8485
8634
  # 实例的内网ip相关信息。
8486
8635
  class PrivateIPAddressInfo < TencentCloud::Common::AbstractModel
8487
8636
  # @param PrivateIPAddress: 实例的内网ip。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ecm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.205
4
+ version: 1.0.206
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common