tencentcloud-sdk-cynosdb 1.0.361 → 1.0.364
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190107/client.rb +72 -0
- data/lib/v20190107/models.rb +259 -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: 902e83b94587bce32a5e17588ef0fd4cf9ace1c8
|
4
|
+
data.tar.gz: 678e991ddd3ed3fa82996c9928854d65bbd0ad5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a44a01bc1bd75bc3c84638707cb237bd9a9a3484fa1ae2c85854489574217704353f78a09e13b7e3815f5acc59061a0e4f3ca2bddc89eeea13f50e86a5aacda3
|
7
|
+
data.tar.gz: 10b25deffc801fbdc1e1158a0b88c63851faf041b55300cd118344752cb946388c14086069ce4041dac0db64b8d2e6a7cde5ce1af742e4b657e7bf9877e6e9fb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.364
|
data/lib/v20190107/client.rb
CHANGED
@@ -581,6 +581,30 @@ module TencentCloud
|
|
581
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
582
|
end
|
583
583
|
|
584
|
+
# 查询用户指定产品下的所有参数模板信息
|
585
|
+
|
586
|
+
# @param request: Request instance for DescribeParamTemplates.
|
587
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeParamTemplatesRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeParamTemplatesResponse`
|
589
|
+
def DescribeParamTemplates(request)
|
590
|
+
body = send_request('DescribeParamTemplates', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DescribeParamTemplatesResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
584
608
|
# 查询项目安全组信息
|
585
609
|
|
586
610
|
# @param request: Request instance for DescribeProjectSecurityGroups.
|
@@ -749,6 +773,54 @@ module TencentCloud
|
|
749
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
774
|
end
|
751
775
|
|
776
|
+
# 查询新购集群价格
|
777
|
+
|
778
|
+
# @param request: Request instance for InquirePriceCreate.
|
779
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceCreateRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceCreateResponse`
|
781
|
+
def InquirePriceCreate(request)
|
782
|
+
body = send_request('InquirePriceCreate', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = InquirePriceCreateResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
800
|
+
# 查询续费集群价格
|
801
|
+
|
802
|
+
# @param request: Request instance for InquirePriceRenew.
|
803
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceRenewRequest`
|
804
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::InquirePriceRenewResponse`
|
805
|
+
def InquirePriceRenew(request)
|
806
|
+
body = send_request('InquirePriceRenew', request.serialize)
|
807
|
+
response = JSON.parse(body)
|
808
|
+
if response['Response'].key?('Error') == false
|
809
|
+
model = InquirePriceRenewResponse.new
|
810
|
+
model.deserialize(response['Response'])
|
811
|
+
model
|
812
|
+
else
|
813
|
+
code = response['Response']['Error']['Code']
|
814
|
+
message = response['Response']['Error']['Message']
|
815
|
+
reqid = response['Response']['RequestId']
|
816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
+
end
|
818
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
+
raise e
|
820
|
+
rescue StandardError => e
|
821
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
+
end
|
823
|
+
|
752
824
|
# 隔离集群
|
753
825
|
|
754
826
|
# @param request: Request instance for IsolateCluster.
|
data/lib/v20190107/models.rb
CHANGED
@@ -2495,6 +2495,48 @@ module TencentCloud
|
|
2495
2495
|
end
|
2496
2496
|
end
|
2497
2497
|
|
2498
|
+
# DescribeParamTemplates请求参数结构体
|
2499
|
+
class DescribeParamTemplatesRequest < TencentCloud::Common::AbstractModel
|
2500
|
+
|
2501
|
+
|
2502
|
+
def initialize()
|
2503
|
+
end
|
2504
|
+
|
2505
|
+
def deserialize(params)
|
2506
|
+
end
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
# DescribeParamTemplates返回参数结构体
|
2510
|
+
class DescribeParamTemplatesResponse < TencentCloud::Common::AbstractModel
|
2511
|
+
# @param TotalCount: 参数模板数量
|
2512
|
+
# @type TotalCount: Integer
|
2513
|
+
# @param Items: 参数模板信息
|
2514
|
+
# @type Items: Array
|
2515
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2516
|
+
# @type RequestId: String
|
2517
|
+
|
2518
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
2519
|
+
|
2520
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
2521
|
+
@TotalCount = totalcount
|
2522
|
+
@Items = items
|
2523
|
+
@RequestId = requestid
|
2524
|
+
end
|
2525
|
+
|
2526
|
+
def deserialize(params)
|
2527
|
+
@TotalCount = params['TotalCount']
|
2528
|
+
unless params['Items'].nil?
|
2529
|
+
@Items = []
|
2530
|
+
params['Items'].each do |i|
|
2531
|
+
paramtemplatelistinfo_tmp = ParamTemplateListInfo.new
|
2532
|
+
paramtemplatelistinfo_tmp.deserialize(i)
|
2533
|
+
@Items << paramtemplatelistinfo_tmp
|
2534
|
+
end
|
2535
|
+
end
|
2536
|
+
@RequestId = params['RequestId']
|
2537
|
+
end
|
2538
|
+
end
|
2539
|
+
|
2498
2540
|
# DescribeProjectSecurityGroups请求参数结构体
|
2499
2541
|
class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
2500
2542
|
# @param ProjectId: 项目ID
|
@@ -2863,6 +2905,155 @@ module TencentCloud
|
|
2863
2905
|
end
|
2864
2906
|
end
|
2865
2907
|
|
2908
|
+
# InquirePriceCreate请求参数结构体
|
2909
|
+
class InquirePriceCreateRequest < TencentCloud::Common::AbstractModel
|
2910
|
+
# @param Zone: 可用区,每个地域提供最佳实践
|
2911
|
+
# @type Zone: String
|
2912
|
+
# @param GoodsNum: 购买商品数量
|
2913
|
+
# @type GoodsNum: Integer
|
2914
|
+
# @param InstancePayMode: 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
|
2915
|
+
# @type InstancePayMode: String
|
2916
|
+
# @param StoragePayMode: 存储购买类型,可选值为:PREPAID, POSTPAID
|
2917
|
+
# @type StoragePayMode: String
|
2918
|
+
# @param Cpu: CPU核数,PREPAID与POSTPAID实例类型必传
|
2919
|
+
# @type Cpu: Integer
|
2920
|
+
# @param Memory: 内存大小,单位G,PREPAID与POSTPAID实例类型必传
|
2921
|
+
# @type Memory: Integer
|
2922
|
+
# @param Ccu: Ccu大小,serverless类型必传
|
2923
|
+
# @type Ccu: Float
|
2924
|
+
# @param StorageLimit: 存储大小,PREPAID存储类型必传
|
2925
|
+
# @type StorageLimit: Integer
|
2926
|
+
# @param TimeSpan: 购买时长,PREPAID购买类型必传
|
2927
|
+
# @type TimeSpan: Integer
|
2928
|
+
# @param TimeUnit: 时长单位,可选值为:m,d。PREPAID购买类型必传
|
2929
|
+
# @type TimeUnit: String
|
2930
|
+
|
2931
|
+
attr_accessor :Zone, :GoodsNum, :InstancePayMode, :StoragePayMode, :Cpu, :Memory, :Ccu, :StorageLimit, :TimeSpan, :TimeUnit
|
2932
|
+
|
2933
|
+
def initialize(zone=nil, goodsnum=nil, instancepaymode=nil, storagepaymode=nil, cpu=nil, memory=nil, ccu=nil, storagelimit=nil, timespan=nil, timeunit=nil)
|
2934
|
+
@Zone = zone
|
2935
|
+
@GoodsNum = goodsnum
|
2936
|
+
@InstancePayMode = instancepaymode
|
2937
|
+
@StoragePayMode = storagepaymode
|
2938
|
+
@Cpu = cpu
|
2939
|
+
@Memory = memory
|
2940
|
+
@Ccu = ccu
|
2941
|
+
@StorageLimit = storagelimit
|
2942
|
+
@TimeSpan = timespan
|
2943
|
+
@TimeUnit = timeunit
|
2944
|
+
end
|
2945
|
+
|
2946
|
+
def deserialize(params)
|
2947
|
+
@Zone = params['Zone']
|
2948
|
+
@GoodsNum = params['GoodsNum']
|
2949
|
+
@InstancePayMode = params['InstancePayMode']
|
2950
|
+
@StoragePayMode = params['StoragePayMode']
|
2951
|
+
@Cpu = params['Cpu']
|
2952
|
+
@Memory = params['Memory']
|
2953
|
+
@Ccu = params['Ccu']
|
2954
|
+
@StorageLimit = params['StorageLimit']
|
2955
|
+
@TimeSpan = params['TimeSpan']
|
2956
|
+
@TimeUnit = params['TimeUnit']
|
2957
|
+
end
|
2958
|
+
end
|
2959
|
+
|
2960
|
+
# InquirePriceCreate返回参数结构体
|
2961
|
+
class InquirePriceCreateResponse < TencentCloud::Common::AbstractModel
|
2962
|
+
# @param InstancePrice: 实例价格
|
2963
|
+
# @type InstancePrice: :class:`Tencentcloud::Cynosdb.v20190107.models.TradePrice`
|
2964
|
+
# @param StoragePrice: 存储价格
|
2965
|
+
# @type StoragePrice: :class:`Tencentcloud::Cynosdb.v20190107.models.TradePrice`
|
2966
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2967
|
+
# @type RequestId: String
|
2968
|
+
|
2969
|
+
attr_accessor :InstancePrice, :StoragePrice, :RequestId
|
2970
|
+
|
2971
|
+
def initialize(instanceprice=nil, storageprice=nil, requestid=nil)
|
2972
|
+
@InstancePrice = instanceprice
|
2973
|
+
@StoragePrice = storageprice
|
2974
|
+
@RequestId = requestid
|
2975
|
+
end
|
2976
|
+
|
2977
|
+
def deserialize(params)
|
2978
|
+
unless params['InstancePrice'].nil?
|
2979
|
+
@InstancePrice = TradePrice.new
|
2980
|
+
@InstancePrice.deserialize(params['InstancePrice'])
|
2981
|
+
end
|
2982
|
+
unless params['StoragePrice'].nil?
|
2983
|
+
@StoragePrice = TradePrice.new
|
2984
|
+
@StoragePrice.deserialize(params['StoragePrice'])
|
2985
|
+
end
|
2986
|
+
@RequestId = params['RequestId']
|
2987
|
+
end
|
2988
|
+
end
|
2989
|
+
|
2990
|
+
# InquirePriceRenew请求参数结构体
|
2991
|
+
class InquirePriceRenewRequest < TencentCloud::Common::AbstractModel
|
2992
|
+
# @param ClusterId: 集群ID
|
2993
|
+
# @type ClusterId: String
|
2994
|
+
# @param TimeSpan: 购买时长,与TimeUnit组合才能生效
|
2995
|
+
# @type TimeSpan: Integer
|
2996
|
+
# @param TimeUnit: 购买时长单位, 与TimeSpan组合生效,可选:日:d,月:m
|
2997
|
+
# @type TimeUnit: String
|
2998
|
+
|
2999
|
+
attr_accessor :ClusterId, :TimeSpan, :TimeUnit
|
3000
|
+
|
3001
|
+
def initialize(clusterid=nil, timespan=nil, timeunit=nil)
|
3002
|
+
@ClusterId = clusterid
|
3003
|
+
@TimeSpan = timespan
|
3004
|
+
@TimeUnit = timeunit
|
3005
|
+
end
|
3006
|
+
|
3007
|
+
def deserialize(params)
|
3008
|
+
@ClusterId = params['ClusterId']
|
3009
|
+
@TimeSpan = params['TimeSpan']
|
3010
|
+
@TimeUnit = params['TimeUnit']
|
3011
|
+
end
|
3012
|
+
end
|
3013
|
+
|
3014
|
+
# InquirePriceRenew返回参数结构体
|
3015
|
+
class InquirePriceRenewResponse < TencentCloud::Common::AbstractModel
|
3016
|
+
# @param ClusterId: 集群ID
|
3017
|
+
# @type ClusterId: String
|
3018
|
+
# @param InstanceIds: 实例ID列表
|
3019
|
+
# @type InstanceIds: Array
|
3020
|
+
# @param Prices: 对应的询价结果数组
|
3021
|
+
# @type Prices: Array
|
3022
|
+
# @param InstanceRealTotalPrice: 续费计算节点的总价格
|
3023
|
+
# @type InstanceRealTotalPrice: Integer
|
3024
|
+
# @param StorageRealTotalPrice: 续费存储节点的总价格
|
3025
|
+
# @type StorageRealTotalPrice: Integer
|
3026
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3027
|
+
# @type RequestId: String
|
3028
|
+
|
3029
|
+
attr_accessor :ClusterId, :InstanceIds, :Prices, :InstanceRealTotalPrice, :StorageRealTotalPrice, :RequestId
|
3030
|
+
|
3031
|
+
def initialize(clusterid=nil, instanceids=nil, prices=nil, instancerealtotalprice=nil, storagerealtotalprice=nil, requestid=nil)
|
3032
|
+
@ClusterId = clusterid
|
3033
|
+
@InstanceIds = instanceids
|
3034
|
+
@Prices = prices
|
3035
|
+
@InstanceRealTotalPrice = instancerealtotalprice
|
3036
|
+
@StorageRealTotalPrice = storagerealtotalprice
|
3037
|
+
@RequestId = requestid
|
3038
|
+
end
|
3039
|
+
|
3040
|
+
def deserialize(params)
|
3041
|
+
@ClusterId = params['ClusterId']
|
3042
|
+
@InstanceIds = params['InstanceIds']
|
3043
|
+
unless params['Prices'].nil?
|
3044
|
+
@Prices = []
|
3045
|
+
params['Prices'].each do |i|
|
3046
|
+
tradeprice_tmp = TradePrice.new
|
3047
|
+
tradeprice_tmp.deserialize(i)
|
3048
|
+
@Prices << tradeprice_tmp
|
3049
|
+
end
|
3050
|
+
end
|
3051
|
+
@InstanceRealTotalPrice = params['InstanceRealTotalPrice']
|
3052
|
+
@StorageRealTotalPrice = params['StorageRealTotalPrice']
|
3053
|
+
@RequestId = params['RequestId']
|
3054
|
+
end
|
3055
|
+
end
|
3056
|
+
|
2866
3057
|
# 实例可售卖规格详细信息,创建实例时Cpu/Memory确定实例规格,存储可选大小为[MinStorageSize,MaxStorageSize]
|
2867
3058
|
class InstanceSpec < TencentCloud::Common::AbstractModel
|
2868
3059
|
# @param Cpu: 实例CPU,单位:核
|
@@ -3537,6 +3728,34 @@ module TencentCloud
|
|
3537
3728
|
end
|
3538
3729
|
end
|
3539
3730
|
|
3731
|
+
# 参数模板信息
|
3732
|
+
class ParamTemplateListInfo < TencentCloud::Common::AbstractModel
|
3733
|
+
# @param Id: 参数模板ID
|
3734
|
+
# @type Id: Integer
|
3735
|
+
# @param TemplateName: 参数模板名称
|
3736
|
+
# @type TemplateName: String
|
3737
|
+
# @param TemplateDescription: 参数模板描述
|
3738
|
+
# @type TemplateDescription: String
|
3739
|
+
# @param EngineVersion: 引擎版本
|
3740
|
+
# @type EngineVersion: String
|
3741
|
+
|
3742
|
+
attr_accessor :Id, :TemplateName, :TemplateDescription, :EngineVersion
|
3743
|
+
|
3744
|
+
def initialize(id=nil, templatename=nil, templatedescription=nil, engineversion=nil)
|
3745
|
+
@Id = id
|
3746
|
+
@TemplateName = templatename
|
3747
|
+
@TemplateDescription = templatedescription
|
3748
|
+
@EngineVersion = engineversion
|
3749
|
+
end
|
3750
|
+
|
3751
|
+
def deserialize(params)
|
3752
|
+
@Id = params['Id']
|
3753
|
+
@TemplateName = params['TemplateName']
|
3754
|
+
@TemplateDescription = params['TemplateDescription']
|
3755
|
+
@EngineVersion = params['EngineVersion']
|
3756
|
+
end
|
3757
|
+
end
|
3758
|
+
|
3540
3759
|
# PauseServerless请求参数结构体
|
3541
3760
|
class PauseServerlessRequest < TencentCloud::Common::AbstractModel
|
3542
3761
|
# @param ClusterId: 集群ID
|
@@ -4074,6 +4293,46 @@ module TencentCloud
|
|
4074
4293
|
end
|
4075
4294
|
end
|
4076
4295
|
|
4296
|
+
# 计费询价结果
|
4297
|
+
class TradePrice < TencentCloud::Common::AbstractModel
|
4298
|
+
# @param TotalPrice: 预付费模式下资源总价,不包含优惠,单位:分
|
4299
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4300
|
+
# @type TotalPrice: Integer
|
4301
|
+
# @param Discount: 总的折扣,100表示100%不打折
|
4302
|
+
# @type Discount: Float
|
4303
|
+
# @param TotalPriceDiscount: 预付费模式下的优惠后总价, 单位: 分,例如用户享有折扣 =TotalPrice × Discount
|
4304
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4305
|
+
# @type TotalPriceDiscount: Integer
|
4306
|
+
# @param UnitPrice: 后付费模式下的单位资源价格,不包含优惠,单位:分
|
4307
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4308
|
+
# @type UnitPrice: Integer
|
4309
|
+
# @param UnitPriceDiscount: 优惠后后付费模式下的单位资源价格, 单位: 分,例如用户享有折扣=UnitPricet × Discount
|
4310
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4311
|
+
# @type UnitPriceDiscount: Integer
|
4312
|
+
# @param ChargeUnit: 计费价格单位
|
4313
|
+
# @type ChargeUnit: String
|
4314
|
+
|
4315
|
+
attr_accessor :TotalPrice, :Discount, :TotalPriceDiscount, :UnitPrice, :UnitPriceDiscount, :ChargeUnit
|
4316
|
+
|
4317
|
+
def initialize(totalprice=nil, discount=nil, totalpricediscount=nil, unitprice=nil, unitpricediscount=nil, chargeunit=nil)
|
4318
|
+
@TotalPrice = totalprice
|
4319
|
+
@Discount = discount
|
4320
|
+
@TotalPriceDiscount = totalpricediscount
|
4321
|
+
@UnitPrice = unitprice
|
4322
|
+
@UnitPriceDiscount = unitpricediscount
|
4323
|
+
@ChargeUnit = chargeunit
|
4324
|
+
end
|
4325
|
+
|
4326
|
+
def deserialize(params)
|
4327
|
+
@TotalPrice = params['TotalPrice']
|
4328
|
+
@Discount = params['Discount']
|
4329
|
+
@TotalPriceDiscount = params['TotalPriceDiscount']
|
4330
|
+
@UnitPrice = params['UnitPrice']
|
4331
|
+
@UnitPriceDiscount = params['UnitPriceDiscount']
|
4332
|
+
@ChargeUnit = params['ChargeUnit']
|
4333
|
+
end
|
4334
|
+
end
|
4335
|
+
|
4077
4336
|
# UpgradeInstance请求参数结构体
|
4078
4337
|
class UpgradeInstanceRequest < TencentCloud::Common::AbstractModel
|
4079
4338
|
# @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.
|
4
|
+
version: 1.0.364
|
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-
|
11
|
+
date: 2022-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|