tencentcloud-sdk-cynosdb 1.0.362 → 1.0.363
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/v20190107/client.rb +48 -0
- data/lib/v20190107/models.rb +137 -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: 8da0b53ebf8ef386ccadf692422d7b70adeed78d
|
4
|
+
data.tar.gz: 60cf2c519ca5166ef843857ab8ec91a02cc68ec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0da7a927892852ff35aa87a47b138b68ad934ec21185b50314624727f968545ad7995a78c9906b091d8448395ebd2b6bddc7bfd83339a76cf9e76ea7efec5836
|
7
|
+
data.tar.gz: ddce4c6212d5387257b6b1622278da6c7288e5a12b0a3e716d98a292f5c786260a9a07bfb95e7dea8a5df91762c52bed23469475621313e7192798c0da04119f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.363
|
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.
|
@@ -773,6 +797,30 @@ module TencentCloud
|
|
773
797
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
798
|
end
|
775
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
|
+
|
776
824
|
# 隔离集群
|
777
825
|
|
778
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
|
@@ -2945,6 +2987,73 @@ module TencentCloud
|
|
2945
2987
|
end
|
2946
2988
|
end
|
2947
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
|
+
|
2948
3057
|
# 实例可售卖规格详细信息,创建实例时Cpu/Memory确定实例规格,存储可选大小为[MinStorageSize,MaxStorageSize]
|
2949
3058
|
class InstanceSpec < TencentCloud::Common::AbstractModel
|
2950
3059
|
# @param Cpu: 实例CPU,单位:核
|
@@ -3619,6 +3728,34 @@ module TencentCloud
|
|
3619
3728
|
end
|
3620
3729
|
end
|
3621
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
|
+
|
3622
3759
|
# PauseServerless请求参数结构体
|
3623
3760
|
class PauseServerlessRequest < TencentCloud::Common::AbstractModel
|
3624
3761
|
# @param ClusterId: 集群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.363
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|