tencentcloud-sdk-cynosdb 1.0.286 → 1.0.287
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 +73 -1
- 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: f3d42ceb4e6e2e80dc28e2633d6b7ac710fbc93b
|
4
|
+
data.tar.gz: 7ca66a45f3e6c809f05b79f3eaafd9c43fc2f2d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce84968aa128eef3146b40cc260ca38c88e273ebaccf44392ae512fe20c7bfad6f486cc30b25089e13830e1ce48989b00f2e1ea820e55b58d9a956ebdee6458
|
7
|
+
data.tar.gz: 8284f03bd0b5b7f08f8552c1f1ebeae80fe7886b0373fc62f3dffe8509a6b3b2633d23f6a79fcbf3f0238f587b4db19dae80cacc965a2a2b7c01dc5b1cadd8a8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.287
|
data/lib/v20190107/client.rb
CHANGED
@@ -701,6 +701,30 @@ module TencentCloud
|
|
701
701
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
702
|
end
|
703
703
|
|
704
|
+
# 修改集群名称
|
705
|
+
|
706
|
+
# @param request: Request instance for ModifyClusterName.
|
707
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterNameRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterNameResponse`
|
709
|
+
def ModifyClusterName(request)
|
710
|
+
body = send_request('ModifyClusterName', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = ModifyClusterNameResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
704
728
|
# 修改集群参数
|
705
729
|
|
706
730
|
# @param request: Request instance for ModifyClusterParam.
|
@@ -749,6 +773,30 @@ module TencentCloud
|
|
749
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
774
|
end
|
751
775
|
|
776
|
+
# 本接口(ModifyInstanceName)用于修改实例名称。
|
777
|
+
|
778
|
+
# @param request: Request instance for ModifyInstanceName.
|
779
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceNameRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceNameResponse`
|
781
|
+
def ModifyInstanceName(request)
|
782
|
+
body = send_request('ModifyInstanceName', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = ModifyInstanceNameResponse.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
|
+
|
752
800
|
# 修改维护时间配置
|
753
801
|
|
754
802
|
# @param request: Request instance for ModifyMaintainPeriodConfig.
|
data/lib/v20190107/models.rb
CHANGED
@@ -494,7 +494,7 @@ module TencentCloud
|
|
494
494
|
# @type Port: Integer
|
495
495
|
# @param PayMode: 计费模式,按量计费:0,包年包月:1。默认按量计费。
|
496
496
|
# @type PayMode: Integer
|
497
|
-
# @param Count:
|
497
|
+
# @param Count: 购买集群数,可选值范围[1,50],默认为1
|
498
498
|
# @type Count: Integer
|
499
499
|
# @param RollbackStrategy: 回档类型:
|
500
500
|
# noneRollback:不回档;
|
@@ -2715,6 +2715,42 @@ module TencentCloud
|
|
2715
2715
|
end
|
2716
2716
|
end
|
2717
2717
|
|
2718
|
+
# ModifyClusterName请求参数结构体
|
2719
|
+
class ModifyClusterNameRequest < TencentCloud::Common::AbstractModel
|
2720
|
+
# @param ClusterId: 集群ID
|
2721
|
+
# @type ClusterId: String
|
2722
|
+
# @param ClusterName: 集群名
|
2723
|
+
# @type ClusterName: String
|
2724
|
+
|
2725
|
+
attr_accessor :ClusterId, :ClusterName
|
2726
|
+
|
2727
|
+
def initialize(clusterid=nil, clustername=nil)
|
2728
|
+
@ClusterId = clusterid
|
2729
|
+
@ClusterName = clustername
|
2730
|
+
end
|
2731
|
+
|
2732
|
+
def deserialize(params)
|
2733
|
+
@ClusterId = params['ClusterId']
|
2734
|
+
@ClusterName = params['ClusterName']
|
2735
|
+
end
|
2736
|
+
end
|
2737
|
+
|
2738
|
+
# ModifyClusterName返回参数结构体
|
2739
|
+
class ModifyClusterNameResponse < TencentCloud::Common::AbstractModel
|
2740
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2741
|
+
# @type RequestId: String
|
2742
|
+
|
2743
|
+
attr_accessor :RequestId
|
2744
|
+
|
2745
|
+
def initialize(requestid=nil)
|
2746
|
+
@RequestId = requestid
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
def deserialize(params)
|
2750
|
+
@RequestId = params['RequestId']
|
2751
|
+
end
|
2752
|
+
end
|
2753
|
+
|
2718
2754
|
# ModifyClusterParam请求参数结构体
|
2719
2755
|
class ModifyClusterParamRequest < TencentCloud::Common::AbstractModel
|
2720
2756
|
# @param ClusterId: 集群ID
|
@@ -2806,6 +2842,42 @@ module TencentCloud
|
|
2806
2842
|
end
|
2807
2843
|
end
|
2808
2844
|
|
2845
|
+
# ModifyInstanceName请求参数结构体
|
2846
|
+
class ModifyInstanceNameRequest < TencentCloud::Common::AbstractModel
|
2847
|
+
# @param InstanceId: 实例ID
|
2848
|
+
# @type InstanceId: String
|
2849
|
+
# @param InstanceName: 实例名称
|
2850
|
+
# @type InstanceName: String
|
2851
|
+
|
2852
|
+
attr_accessor :InstanceId, :InstanceName
|
2853
|
+
|
2854
|
+
def initialize(instanceid=nil, instancename=nil)
|
2855
|
+
@InstanceId = instanceid
|
2856
|
+
@InstanceName = instancename
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
def deserialize(params)
|
2860
|
+
@InstanceId = params['InstanceId']
|
2861
|
+
@InstanceName = params['InstanceName']
|
2862
|
+
end
|
2863
|
+
end
|
2864
|
+
|
2865
|
+
# ModifyInstanceName返回参数结构体
|
2866
|
+
class ModifyInstanceNameResponse < TencentCloud::Common::AbstractModel
|
2867
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2868
|
+
# @type RequestId: String
|
2869
|
+
|
2870
|
+
attr_accessor :RequestId
|
2871
|
+
|
2872
|
+
def initialize(requestid=nil)
|
2873
|
+
@RequestId = requestid
|
2874
|
+
end
|
2875
|
+
|
2876
|
+
def deserialize(params)
|
2877
|
+
@RequestId = params['RequestId']
|
2878
|
+
end
|
2879
|
+
end
|
2880
|
+
|
2809
2881
|
# ModifyMaintainPeriodConfig请求参数结构体
|
2810
2882
|
class ModifyMaintainPeriodConfigRequest < TencentCloud::Common::AbstractModel
|
2811
2883
|
# @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.287
|
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-03-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|