tencentcloud-sdk-cynosdb 1.0.361 → 1.0.362

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 672dc0cabc56bf555325b6f93666680ea3350ce3
4
- data.tar.gz: e448b2f63818b90b3eb85f33f333aeb8a5631326
3
+ metadata.gz: 63936c1fea990834b184631b4d0895e8599d475b
4
+ data.tar.gz: 8c45da00af164cdfec9bad1058454f43372c9cd5
5
5
  SHA512:
6
- metadata.gz: c57f2b812f5e6bafb03826a75416918180f997bbcd1bc60fcca562b4ab677ad347692af43585c96c464faec1691271a33de76422b262210fa732687a3a1de542
7
- data.tar.gz: d793e29067dab1a937ef05eae937f0c205d55ff187724bead187699a049540b8766f0cadfd50f85ab87f5bb149a65542d2a799599033a9ae51de118a32403692
6
+ metadata.gz: 1ddfce9c13ce3da0f15a4c79bb718b2c6b3e28948cf812c6eff817dbb0d6580c41a51c48fe91bc9caae1cd03082ddd4e386fd6bb3e794ffdf16400a529b8d0de
7
+ data.tar.gz: 6d70485c0abf31ad159085a28a8f83def0f883be23845116455b7bd7c46f2945dfa4cfaaa29164e602487123d8a5b1d28c673c50a34e716583c2853c80bb1fc1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.361
1
+ 1.0.362
@@ -749,6 +749,30 @@ module TencentCloud
749
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
750
  end
751
751
 
752
+ # 查询新购集群价格
753
+
754
+ # @param request: Request instance for InquirePriceCreate.
755
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceCreateRequest`
756
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceCreateResponse`
757
+ def InquirePriceCreate(request)
758
+ body = send_request('InquirePriceCreate', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = InquirePriceCreateResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
752
776
  # 隔离集群
753
777
 
754
778
  # @param request: Request instance for IsolateCluster.
@@ -2863,6 +2863,88 @@ module TencentCloud
2863
2863
  end
2864
2864
  end
2865
2865
 
2866
+ # InquirePriceCreate请求参数结构体
2867
+ class InquirePriceCreateRequest < TencentCloud::Common::AbstractModel
2868
+ # @param Zone: 可用区,每个地域提供最佳实践
2869
+ # @type Zone: String
2870
+ # @param GoodsNum: 购买商品数量
2871
+ # @type GoodsNum: Integer
2872
+ # @param InstancePayMode: 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
2873
+ # @type InstancePayMode: String
2874
+ # @param StoragePayMode: 存储购买类型,可选值为:PREPAID, POSTPAID
2875
+ # @type StoragePayMode: String
2876
+ # @param Cpu: CPU核数,PREPAID与POSTPAID实例类型必传
2877
+ # @type Cpu: Integer
2878
+ # @param Memory: 内存大小,单位G,PREPAID与POSTPAID实例类型必传
2879
+ # @type Memory: Integer
2880
+ # @param Ccu: Ccu大小,serverless类型必传
2881
+ # @type Ccu: Float
2882
+ # @param StorageLimit: 存储大小,PREPAID存储类型必传
2883
+ # @type StorageLimit: Integer
2884
+ # @param TimeSpan: 购买时长,PREPAID购买类型必传
2885
+ # @type TimeSpan: Integer
2886
+ # @param TimeUnit: 时长单位,可选值为:m,d。PREPAID购买类型必传
2887
+ # @type TimeUnit: String
2888
+
2889
+ attr_accessor :Zone, :GoodsNum, :InstancePayMode, :StoragePayMode, :Cpu, :Memory, :Ccu, :StorageLimit, :TimeSpan, :TimeUnit
2890
+
2891
+ def initialize(zone=nil, goodsnum=nil, instancepaymode=nil, storagepaymode=nil, cpu=nil, memory=nil, ccu=nil, storagelimit=nil, timespan=nil, timeunit=nil)
2892
+ @Zone = zone
2893
+ @GoodsNum = goodsnum
2894
+ @InstancePayMode = instancepaymode
2895
+ @StoragePayMode = storagepaymode
2896
+ @Cpu = cpu
2897
+ @Memory = memory
2898
+ @Ccu = ccu
2899
+ @StorageLimit = storagelimit
2900
+ @TimeSpan = timespan
2901
+ @TimeUnit = timeunit
2902
+ end
2903
+
2904
+ def deserialize(params)
2905
+ @Zone = params['Zone']
2906
+ @GoodsNum = params['GoodsNum']
2907
+ @InstancePayMode = params['InstancePayMode']
2908
+ @StoragePayMode = params['StoragePayMode']
2909
+ @Cpu = params['Cpu']
2910
+ @Memory = params['Memory']
2911
+ @Ccu = params['Ccu']
2912
+ @StorageLimit = params['StorageLimit']
2913
+ @TimeSpan = params['TimeSpan']
2914
+ @TimeUnit = params['TimeUnit']
2915
+ end
2916
+ end
2917
+
2918
+ # InquirePriceCreate返回参数结构体
2919
+ class InquirePriceCreateResponse < TencentCloud::Common::AbstractModel
2920
+ # @param InstancePrice: 实例价格
2921
+ # @type InstancePrice: :class:`Tencentcloud::Cynosdb.v20190107.models.TradePrice`
2922
+ # @param StoragePrice: 存储价格
2923
+ # @type StoragePrice: :class:`Tencentcloud::Cynosdb.v20190107.models.TradePrice`
2924
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2925
+ # @type RequestId: String
2926
+
2927
+ attr_accessor :InstancePrice, :StoragePrice, :RequestId
2928
+
2929
+ def initialize(instanceprice=nil, storageprice=nil, requestid=nil)
2930
+ @InstancePrice = instanceprice
2931
+ @StoragePrice = storageprice
2932
+ @RequestId = requestid
2933
+ end
2934
+
2935
+ def deserialize(params)
2936
+ unless params['InstancePrice'].nil?
2937
+ @InstancePrice = TradePrice.new
2938
+ @InstancePrice.deserialize(params['InstancePrice'])
2939
+ end
2940
+ unless params['StoragePrice'].nil?
2941
+ @StoragePrice = TradePrice.new
2942
+ @StoragePrice.deserialize(params['StoragePrice'])
2943
+ end
2944
+ @RequestId = params['RequestId']
2945
+ end
2946
+ end
2947
+
2866
2948
  # 实例可售卖规格详细信息,创建实例时Cpu/Memory确定实例规格,存储可选大小为[MinStorageSize,MaxStorageSize]
2867
2949
  class InstanceSpec < TencentCloud::Common::AbstractModel
2868
2950
  # @param Cpu: 实例CPU,单位:核
@@ -4074,6 +4156,46 @@ module TencentCloud
4074
4156
  end
4075
4157
  end
4076
4158
 
4159
+ # 计费询价结果
4160
+ class TradePrice < TencentCloud::Common::AbstractModel
4161
+ # @param TotalPrice: 预付费模式下资源总价,不包含优惠,单位:分
4162
+ # 注意:此字段可能返回 null,表示取不到有效值。
4163
+ # @type TotalPrice: Integer
4164
+ # @param Discount: 总的折扣,100表示100%不打折
4165
+ # @type Discount: Float
4166
+ # @param TotalPriceDiscount: 预付费模式下的优惠后总价, 单位: 分,例如用户享有折扣 =TotalPrice × Discount
4167
+ # 注意:此字段可能返回 null,表示取不到有效值。
4168
+ # @type TotalPriceDiscount: Integer
4169
+ # @param UnitPrice: 后付费模式下的单位资源价格,不包含优惠,单位:分
4170
+ # 注意:此字段可能返回 null,表示取不到有效值。
4171
+ # @type UnitPrice: Integer
4172
+ # @param UnitPriceDiscount: 优惠后后付费模式下的单位资源价格, 单位: 分,例如用户享有折扣=UnitPricet × Discount
4173
+ # 注意:此字段可能返回 null,表示取不到有效值。
4174
+ # @type UnitPriceDiscount: Integer
4175
+ # @param ChargeUnit: 计费价格单位
4176
+ # @type ChargeUnit: String
4177
+
4178
+ attr_accessor :TotalPrice, :Discount, :TotalPriceDiscount, :UnitPrice, :UnitPriceDiscount, :ChargeUnit
4179
+
4180
+ def initialize(totalprice=nil, discount=nil, totalpricediscount=nil, unitprice=nil, unitpricediscount=nil, chargeunit=nil)
4181
+ @TotalPrice = totalprice
4182
+ @Discount = discount
4183
+ @TotalPriceDiscount = totalpricediscount
4184
+ @UnitPrice = unitprice
4185
+ @UnitPriceDiscount = unitpricediscount
4186
+ @ChargeUnit = chargeunit
4187
+ end
4188
+
4189
+ def deserialize(params)
4190
+ @TotalPrice = params['TotalPrice']
4191
+ @Discount = params['Discount']
4192
+ @TotalPriceDiscount = params['TotalPriceDiscount']
4193
+ @UnitPrice = params['UnitPrice']
4194
+ @UnitPriceDiscount = params['UnitPriceDiscount']
4195
+ @ChargeUnit = params['ChargeUnit']
4196
+ end
4197
+ end
4198
+
4077
4199
  # UpgradeInstance请求参数结构体
4078
4200
  class UpgradeInstanceRequest < TencentCloud::Common::AbstractModel
4079
4201
  # @param InstanceId: 实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.361
4
+ version: 1.0.362
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-07-21 00:00:00.000000000 Z
11
+ date: 2022-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common