tencentcloud-sdk-cynosdb 3.0.390 → 3.0.397
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 +120 -0
- data/lib/v20190107/models.rb +367 -8
- 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: 2fb73e4a3a92c1168ba4dd9adec9ec914dbbab61
|
4
|
+
data.tar.gz: 42f85fc9fa2a2a54eadc692dc8b4893967d636f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbfc0d556a4596e8e3394a745a4b59b6e680957339d174430418d34db2bd166b76eeb1e8efa5bf49bcddf219eb7914f391cc801c466d1b8e94f59908ed17b8e3
|
7
|
+
data.tar.gz: 8aec16059a85076fc9a4a1a23cc2ecdaf4a189df196d9a58d9d6925f5f65dd137952b72ee352af0337492df3472fc3875a5396507e1c48dfd87df91ab2a8cf9b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.397
|
data/lib/v20190107/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 增加从可用区
|
57
|
+
|
58
|
+
# @param request: Request instance for AddClusterSlaveZone.
|
59
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::AddClusterSlaveZoneRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::AddClusterSlaveZoneResponse`
|
61
|
+
def AddClusterSlaveZone(request)
|
62
|
+
body = send_request('AddClusterSlaveZone', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddClusterSlaveZoneResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 本接口(AddInstances)用于集群添加实例
|
57
81
|
|
58
82
|
# @param request: Request instance for AddInstances.
|
@@ -413,6 +437,30 @@ module TencentCloud
|
|
413
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
438
|
end
|
415
439
|
|
440
|
+
# 本接口(DescribeClusterParams)用于查询集群参数
|
441
|
+
|
442
|
+
# @param request: Request instance for DescribeClusterParams.
|
443
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterParamsRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterParamsResponse`
|
445
|
+
def DescribeClusterParams(request)
|
446
|
+
body = send_request('DescribeClusterParams', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DescribeClusterParamsResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
416
464
|
# 查询集群列表
|
417
465
|
|
418
466
|
# @param request: Request instance for DescribeClusters.
|
@@ -989,6 +1037,30 @@ module TencentCloud
|
|
989
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
1038
|
end
|
991
1039
|
|
1040
|
+
# 修改从可用区
|
1041
|
+
|
1042
|
+
# @param request: Request instance for ModifyClusterSlaveZone.
|
1043
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterSlaveZoneRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterSlaveZoneResponse`
|
1045
|
+
def ModifyClusterSlaveZone(request)
|
1046
|
+
body = send_request('ModifyClusterSlaveZone', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = ModifyClusterSlaveZoneResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
992
1064
|
# 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
|
993
1065
|
|
994
1066
|
# @param request: Request instance for ModifyDBInstanceSecurityGroups.
|
@@ -1133,6 +1205,30 @@ module TencentCloud
|
|
1133
1205
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1206
|
end
|
1135
1207
|
|
1208
|
+
# 删除从可用区
|
1209
|
+
|
1210
|
+
# @param request: Request instance for RemoveClusterSlaveZone.
|
1211
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::RemoveClusterSlaveZoneRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::RemoveClusterSlaveZoneResponse`
|
1213
|
+
def RemoveClusterSlaveZone(request)
|
1214
|
+
body = send_request('RemoveClusterSlaveZone', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = RemoveClusterSlaveZoneResponse.new
|
1218
|
+
model.deserialize(response['Response'])
|
1219
|
+
model
|
1220
|
+
else
|
1221
|
+
code = response['Response']['Error']['Code']
|
1222
|
+
message = response['Response']['Error']['Message']
|
1223
|
+
reqid = response['Response']['RequestId']
|
1224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1225
|
+
end
|
1226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1227
|
+
raise e
|
1228
|
+
rescue StandardError => e
|
1229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
|
+
end
|
1231
|
+
|
1136
1232
|
# 恢复serverless集群
|
1137
1233
|
|
1138
1234
|
# @param request: Request instance for ResumeServerless.
|
@@ -1229,6 +1325,30 @@ module TencentCloud
|
|
1229
1325
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
1326
|
end
|
1231
1327
|
|
1328
|
+
# 切换到从可用区
|
1329
|
+
|
1330
|
+
# @param request: Request instance for SwitchClusterZone.
|
1331
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::SwitchClusterZoneRequest`
|
1332
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::SwitchClusterZoneResponse`
|
1333
|
+
def SwitchClusterZone(request)
|
1334
|
+
body = send_request('SwitchClusterZone', request.serialize)
|
1335
|
+
response = JSON.parse(body)
|
1336
|
+
if response['Response'].key?('Error') == false
|
1337
|
+
model = SwitchClusterZoneResponse.new
|
1338
|
+
model.deserialize(response['Response'])
|
1339
|
+
model
|
1340
|
+
else
|
1341
|
+
code = response['Response']['Error']['Code']
|
1342
|
+
message = response['Response']['Error']['Message']
|
1343
|
+
reqid = response['Response']['RequestId']
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
+
end
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
+
raise e
|
1348
|
+
rescue StandardError => e
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
+
end
|
1351
|
+
|
1232
1352
|
# 升级实例
|
1233
1353
|
|
1234
1354
|
# @param request: Request instance for UpgradeInstance.
|
data/lib/v20190107/models.rb
CHANGED
@@ -109,6 +109,46 @@ module TencentCloud
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
+
# AddClusterSlaveZone请求参数结构体
|
113
|
+
class AddClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
|
114
|
+
# @param ClusterId: 集群ID
|
115
|
+
# @type ClusterId: String
|
116
|
+
# @param SlaveZone: 从可用区
|
117
|
+
# @type SlaveZone: String
|
118
|
+
|
119
|
+
attr_accessor :ClusterId, :SlaveZone
|
120
|
+
|
121
|
+
def initialize(clusterid=nil, slavezone=nil)
|
122
|
+
@ClusterId = clusterid
|
123
|
+
@SlaveZone = slavezone
|
124
|
+
end
|
125
|
+
|
126
|
+
def deserialize(params)
|
127
|
+
@ClusterId = params['ClusterId']
|
128
|
+
@SlaveZone = params['SlaveZone']
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# AddClusterSlaveZone返回参数结构体
|
133
|
+
class AddClusterSlaveZoneResponse < TencentCloud::Common::AbstractModel
|
134
|
+
# @param FlowId: 异步FlowId
|
135
|
+
# @type FlowId: Integer
|
136
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
137
|
+
# @type RequestId: String
|
138
|
+
|
139
|
+
attr_accessor :FlowId, :RequestId
|
140
|
+
|
141
|
+
def initialize(flowid=nil, requestid=nil)
|
142
|
+
@FlowId = flowid
|
143
|
+
@RequestId = requestid
|
144
|
+
end
|
145
|
+
|
146
|
+
def deserialize(params)
|
147
|
+
@FlowId = params['FlowId']
|
148
|
+
@RequestId = params['RequestId']
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
112
152
|
# AddInstances请求参数结构体
|
113
153
|
class AddInstancesRequest < TencentCloud::Common::AbstractModel
|
114
154
|
# @param ClusterId: 集群ID
|
@@ -2071,6 +2111,53 @@ module TencentCloud
|
|
2071
2111
|
end
|
2072
2112
|
end
|
2073
2113
|
|
2114
|
+
# DescribeClusterParams请求参数结构体
|
2115
|
+
class DescribeClusterParamsRequest < TencentCloud::Common::AbstractModel
|
2116
|
+
# @param ClusterId: 集群ID
|
2117
|
+
# @type ClusterId: String
|
2118
|
+
|
2119
|
+
attr_accessor :ClusterId
|
2120
|
+
|
2121
|
+
def initialize(clusterid=nil)
|
2122
|
+
@ClusterId = clusterid
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
def deserialize(params)
|
2126
|
+
@ClusterId = params['ClusterId']
|
2127
|
+
end
|
2128
|
+
end
|
2129
|
+
|
2130
|
+
# DescribeClusterParams返回参数结构体
|
2131
|
+
class DescribeClusterParamsResponse < TencentCloud::Common::AbstractModel
|
2132
|
+
# @param TotalCount: 参数个数
|
2133
|
+
# @type TotalCount: Integer
|
2134
|
+
# @param Items: 实例参数列表
|
2135
|
+
# @type Items: Array
|
2136
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2137
|
+
# @type RequestId: String
|
2138
|
+
|
2139
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
2140
|
+
|
2141
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
2142
|
+
@TotalCount = totalcount
|
2143
|
+
@Items = items
|
2144
|
+
@RequestId = requestid
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
def deserialize(params)
|
2148
|
+
@TotalCount = params['TotalCount']
|
2149
|
+
unless params['Items'].nil?
|
2150
|
+
@Items = []
|
2151
|
+
params['Items'].each do |i|
|
2152
|
+
paraminfo_tmp = ParamInfo.new
|
2153
|
+
paraminfo_tmp.deserialize(i)
|
2154
|
+
@Items << paraminfo_tmp
|
2155
|
+
end
|
2156
|
+
end
|
2157
|
+
@RequestId = params['RequestId']
|
2158
|
+
end
|
2159
|
+
end
|
2160
|
+
|
2074
2161
|
# DescribeClusters请求参数结构体
|
2075
2162
|
class DescribeClustersRequest < TencentCloud::Common::AbstractModel
|
2076
2163
|
# @param DbType: 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
|
@@ -2319,15 +2406,19 @@ module TencentCloud
|
|
2319
2406
|
# @param DbType: 数据库类型,取值范围:
|
2320
2407
|
# <li> MYSQL </li>
|
2321
2408
|
# @type DbType: String
|
2409
|
+
# @param IncludeZoneStocks: 是否需要返回可用区信息
|
2410
|
+
# @type IncludeZoneStocks: Boolean
|
2322
2411
|
|
2323
|
-
attr_accessor :DbType
|
2412
|
+
attr_accessor :DbType, :IncludeZoneStocks
|
2324
2413
|
|
2325
|
-
def initialize(dbtype=nil)
|
2414
|
+
def initialize(dbtype=nil, includezonestocks=nil)
|
2326
2415
|
@DbType = dbtype
|
2416
|
+
@IncludeZoneStocks = includezonestocks
|
2327
2417
|
end
|
2328
2418
|
|
2329
2419
|
def deserialize(params)
|
2330
2420
|
@DbType = params['DbType']
|
2421
|
+
@IncludeZoneStocks = params['IncludeZoneStocks']
|
2331
2422
|
end
|
2332
2423
|
end
|
2333
2424
|
|
@@ -2645,24 +2736,35 @@ module TencentCloud
|
|
2645
2736
|
|
2646
2737
|
# DescribeRollbackTimeRange返回参数结构体
|
2647
2738
|
class DescribeRollbackTimeRangeResponse < TencentCloud::Common::AbstractModel
|
2648
|
-
# @param TimeRangeStart:
|
2739
|
+
# @param TimeRangeStart: 有效回归时间范围开始时间点(已废弃)
|
2649
2740
|
# @type TimeRangeStart: String
|
2650
|
-
# @param TimeRangeEnd:
|
2741
|
+
# @param TimeRangeEnd: 有效回归时间范围结束时间点(已废弃)
|
2651
2742
|
# @type TimeRangeEnd: String
|
2743
|
+
# @param RollbackTimeRanges: 可回档时间范围
|
2744
|
+
# @type RollbackTimeRanges: Array
|
2652
2745
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2653
2746
|
# @type RequestId: String
|
2654
2747
|
|
2655
|
-
attr_accessor :TimeRangeStart, :TimeRangeEnd, :RequestId
|
2748
|
+
attr_accessor :TimeRangeStart, :TimeRangeEnd, :RollbackTimeRanges, :RequestId
|
2656
2749
|
|
2657
|
-
def initialize(timerangestart=nil, timerangeend=nil, requestid=nil)
|
2750
|
+
def initialize(timerangestart=nil, timerangeend=nil, rollbacktimeranges=nil, requestid=nil)
|
2658
2751
|
@TimeRangeStart = timerangestart
|
2659
2752
|
@TimeRangeEnd = timerangeend
|
2753
|
+
@RollbackTimeRanges = rollbacktimeranges
|
2660
2754
|
@RequestId = requestid
|
2661
2755
|
end
|
2662
2756
|
|
2663
2757
|
def deserialize(params)
|
2664
2758
|
@TimeRangeStart = params['TimeRangeStart']
|
2665
2759
|
@TimeRangeEnd = params['TimeRangeEnd']
|
2760
|
+
unless params['RollbackTimeRanges'].nil?
|
2761
|
+
@RollbackTimeRanges = []
|
2762
|
+
params['RollbackTimeRanges'].each do |i|
|
2763
|
+
rollbacktimerange_tmp = RollbackTimeRange.new
|
2764
|
+
rollbacktimerange_tmp.deserialize(i)
|
2765
|
+
@RollbackTimeRanges << rollbacktimerange_tmp
|
2766
|
+
end
|
2767
|
+
end
|
2666
2768
|
@RequestId = params['RequestId']
|
2667
2769
|
end
|
2668
2770
|
end
|
@@ -3064,14 +3166,30 @@ module TencentCloud
|
|
3064
3166
|
# @type MaxStorageSize: Integer
|
3065
3167
|
# @param MinStorageSize: 实例最小可用存储,单位:GB
|
3066
3168
|
# @type MinStorageSize: Integer
|
3169
|
+
# @param HasStock: 是否有库存
|
3170
|
+
# @type HasStock: Boolean
|
3171
|
+
# @param MachineType: 机器类型
|
3172
|
+
# @type MachineType: String
|
3173
|
+
# @param MaxIops: 最大IOPS
|
3174
|
+
# @type MaxIops: Integer
|
3175
|
+
# @param MaxIoBandWidth: 最大IO带宽
|
3176
|
+
# @type MaxIoBandWidth: Integer
|
3177
|
+
# @param ZoneStockInfos: 地域库存信息
|
3178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3179
|
+
# @type ZoneStockInfos: Array
|
3067
3180
|
|
3068
|
-
attr_accessor :Cpu, :Memory, :MaxStorageSize, :MinStorageSize
|
3181
|
+
attr_accessor :Cpu, :Memory, :MaxStorageSize, :MinStorageSize, :HasStock, :MachineType, :MaxIops, :MaxIoBandWidth, :ZoneStockInfos
|
3069
3182
|
|
3070
|
-
def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil)
|
3183
|
+
def initialize(cpu=nil, memory=nil, maxstoragesize=nil, minstoragesize=nil, hasstock=nil, machinetype=nil, maxiops=nil, maxiobandwidth=nil, zonestockinfos=nil)
|
3071
3184
|
@Cpu = cpu
|
3072
3185
|
@Memory = memory
|
3073
3186
|
@MaxStorageSize = maxstoragesize
|
3074
3187
|
@MinStorageSize = minstoragesize
|
3188
|
+
@HasStock = hasstock
|
3189
|
+
@MachineType = machinetype
|
3190
|
+
@MaxIops = maxiops
|
3191
|
+
@MaxIoBandWidth = maxiobandwidth
|
3192
|
+
@ZoneStockInfos = zonestockinfos
|
3075
3193
|
end
|
3076
3194
|
|
3077
3195
|
def deserialize(params)
|
@@ -3079,6 +3197,18 @@ module TencentCloud
|
|
3079
3197
|
@Memory = params['Memory']
|
3080
3198
|
@MaxStorageSize = params['MaxStorageSize']
|
3081
3199
|
@MinStorageSize = params['MinStorageSize']
|
3200
|
+
@HasStock = params['HasStock']
|
3201
|
+
@MachineType = params['MachineType']
|
3202
|
+
@MaxIops = params['MaxIops']
|
3203
|
+
@MaxIoBandWidth = params['MaxIoBandWidth']
|
3204
|
+
unless params['ZoneStockInfos'].nil?
|
3205
|
+
@ZoneStockInfos = []
|
3206
|
+
params['ZoneStockInfos'].each do |i|
|
3207
|
+
zonestockinfo_tmp = ZoneStockInfo.new
|
3208
|
+
zonestockinfo_tmp.deserialize(i)
|
3209
|
+
@ZoneStockInfos << zonestockinfo_tmp
|
3210
|
+
end
|
3211
|
+
end
|
3082
3212
|
end
|
3083
3213
|
end
|
3084
3214
|
|
@@ -3406,6 +3536,50 @@ module TencentCloud
|
|
3406
3536
|
end
|
3407
3537
|
end
|
3408
3538
|
|
3539
|
+
# ModifyClusterSlaveZone请求参数结构体
|
3540
|
+
class ModifyClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
|
3541
|
+
# @param ClusterId: 集群Id
|
3542
|
+
# @type ClusterId: String
|
3543
|
+
# @param OldSlaveZone: 旧从可用区
|
3544
|
+
# @type OldSlaveZone: String
|
3545
|
+
# @param NewSlaveZone: 新从可用区
|
3546
|
+
# @type NewSlaveZone: String
|
3547
|
+
|
3548
|
+
attr_accessor :ClusterId, :OldSlaveZone, :NewSlaveZone
|
3549
|
+
|
3550
|
+
def initialize(clusterid=nil, oldslavezone=nil, newslavezone=nil)
|
3551
|
+
@ClusterId = clusterid
|
3552
|
+
@OldSlaveZone = oldslavezone
|
3553
|
+
@NewSlaveZone = newslavezone
|
3554
|
+
end
|
3555
|
+
|
3556
|
+
def deserialize(params)
|
3557
|
+
@ClusterId = params['ClusterId']
|
3558
|
+
@OldSlaveZone = params['OldSlaveZone']
|
3559
|
+
@NewSlaveZone = params['NewSlaveZone']
|
3560
|
+
end
|
3561
|
+
end
|
3562
|
+
|
3563
|
+
# ModifyClusterSlaveZone返回参数结构体
|
3564
|
+
class ModifyClusterSlaveZoneResponse < TencentCloud::Common::AbstractModel
|
3565
|
+
# @param FlowId: 异步FlowId
|
3566
|
+
# @type FlowId: Integer
|
3567
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3568
|
+
# @type RequestId: String
|
3569
|
+
|
3570
|
+
attr_accessor :FlowId, :RequestId
|
3571
|
+
|
3572
|
+
def initialize(flowid=nil, requestid=nil)
|
3573
|
+
@FlowId = flowid
|
3574
|
+
@RequestId = requestid
|
3575
|
+
end
|
3576
|
+
|
3577
|
+
def deserialize(params)
|
3578
|
+
@FlowId = params['FlowId']
|
3579
|
+
@RequestId = params['RequestId']
|
3580
|
+
end
|
3581
|
+
end
|
3582
|
+
|
3409
3583
|
# ModifyDBInstanceSecurityGroups请求参数结构体
|
3410
3584
|
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
3411
3585
|
# @param InstanceId: 实例组ID
|
@@ -3719,6 +3893,63 @@ module TencentCloud
|
|
3719
3893
|
end
|
3720
3894
|
end
|
3721
3895
|
|
3896
|
+
# 参数信息
|
3897
|
+
class ParamInfo < TencentCloud::Common::AbstractModel
|
3898
|
+
# @param CurrentValue: 当前值
|
3899
|
+
# @type CurrentValue: String
|
3900
|
+
# @param Default: 默认值
|
3901
|
+
# @type Default: String
|
3902
|
+
# @param EnumValue: 参数为enum/string/bool时,可选值列表
|
3903
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3904
|
+
# @type EnumValue: Array
|
3905
|
+
# @param Max: 参数类型为float/integer时的最大值
|
3906
|
+
# @type Max: String
|
3907
|
+
# @param Min: 参数类型为float/integer时的最小值
|
3908
|
+
# @type Min: String
|
3909
|
+
# @param ParamName: 参数名称
|
3910
|
+
# @type ParamName: String
|
3911
|
+
# @param NeedReboot: 是否需要重启生效
|
3912
|
+
# @type NeedReboot: Integer
|
3913
|
+
# @param ParamType: 参数类型:integer/float/string/enum/bool
|
3914
|
+
# @type ParamType: String
|
3915
|
+
# @param MatchType: 匹配类型,multiVal, regex在参数类型是string时使用
|
3916
|
+
# @type MatchType: String
|
3917
|
+
# @param MatchValue: 匹配目标值,当multiVal时,各个key用;分割
|
3918
|
+
# @type MatchValue: String
|
3919
|
+
# @param Description: 参数描述
|
3920
|
+
# @type Description: String
|
3921
|
+
|
3922
|
+
attr_accessor :CurrentValue, :Default, :EnumValue, :Max, :Min, :ParamName, :NeedReboot, :ParamType, :MatchType, :MatchValue, :Description
|
3923
|
+
|
3924
|
+
def initialize(currentvalue=nil, default=nil, enumvalue=nil, max=nil, min=nil, paramname=nil, needreboot=nil, paramtype=nil, matchtype=nil, matchvalue=nil, description=nil)
|
3925
|
+
@CurrentValue = currentvalue
|
3926
|
+
@Default = default
|
3927
|
+
@EnumValue = enumvalue
|
3928
|
+
@Max = max
|
3929
|
+
@Min = min
|
3930
|
+
@ParamName = paramname
|
3931
|
+
@NeedReboot = needreboot
|
3932
|
+
@ParamType = paramtype
|
3933
|
+
@MatchType = matchtype
|
3934
|
+
@MatchValue = matchvalue
|
3935
|
+
@Description = description
|
3936
|
+
end
|
3937
|
+
|
3938
|
+
def deserialize(params)
|
3939
|
+
@CurrentValue = params['CurrentValue']
|
3940
|
+
@Default = params['Default']
|
3941
|
+
@EnumValue = params['EnumValue']
|
3942
|
+
@Max = params['Max']
|
3943
|
+
@Min = params['Min']
|
3944
|
+
@ParamName = params['ParamName']
|
3945
|
+
@NeedReboot = params['NeedReboot']
|
3946
|
+
@ParamType = params['ParamType']
|
3947
|
+
@MatchType = params['MatchType']
|
3948
|
+
@MatchValue = params['MatchValue']
|
3949
|
+
@Description = params['Description']
|
3950
|
+
end
|
3951
|
+
end
|
3952
|
+
|
3722
3953
|
# 修改参数时,传入参数描述
|
3723
3954
|
class ParamItem < TencentCloud::Common::AbstractModel
|
3724
3955
|
# @param ParamName: 参数名称
|
@@ -3883,6 +4114,46 @@ module TencentCloud
|
|
3883
4114
|
end
|
3884
4115
|
end
|
3885
4116
|
|
4117
|
+
# RemoveClusterSlaveZone请求参数结构体
|
4118
|
+
class RemoveClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
|
4119
|
+
# @param ClusterId: 集群ID
|
4120
|
+
# @type ClusterId: String
|
4121
|
+
# @param SlaveZone: 从可用区
|
4122
|
+
# @type SlaveZone: String
|
4123
|
+
|
4124
|
+
attr_accessor :ClusterId, :SlaveZone
|
4125
|
+
|
4126
|
+
def initialize(clusterid=nil, slavezone=nil)
|
4127
|
+
@ClusterId = clusterid
|
4128
|
+
@SlaveZone = slavezone
|
4129
|
+
end
|
4130
|
+
|
4131
|
+
def deserialize(params)
|
4132
|
+
@ClusterId = params['ClusterId']
|
4133
|
+
@SlaveZone = params['SlaveZone']
|
4134
|
+
end
|
4135
|
+
end
|
4136
|
+
|
4137
|
+
# RemoveClusterSlaveZone返回参数结构体
|
4138
|
+
class RemoveClusterSlaveZoneResponse < TencentCloud::Common::AbstractModel
|
4139
|
+
# @param FlowId: 异步FlowId
|
4140
|
+
# @type FlowId: Integer
|
4141
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4142
|
+
# @type RequestId: String
|
4143
|
+
|
4144
|
+
attr_accessor :FlowId, :RequestId
|
4145
|
+
|
4146
|
+
def initialize(flowid=nil, requestid=nil)
|
4147
|
+
@FlowId = flowid
|
4148
|
+
@RequestId = requestid
|
4149
|
+
end
|
4150
|
+
|
4151
|
+
def deserialize(params)
|
4152
|
+
@FlowId = params['FlowId']
|
4153
|
+
@RequestId = params['RequestId']
|
4154
|
+
end
|
4155
|
+
end
|
4156
|
+
|
3886
4157
|
# ResumeServerless请求参数结构体
|
3887
4158
|
class ResumeServerlessRequest < TencentCloud::Common::AbstractModel
|
3888
4159
|
# @param ClusterId: 集群ID
|
@@ -4114,6 +4385,26 @@ module TencentCloud
|
|
4114
4385
|
end
|
4115
4386
|
end
|
4116
4387
|
|
4388
|
+
# 可回档的时间范围
|
4389
|
+
class RollbackTimeRange < TencentCloud::Common::AbstractModel
|
4390
|
+
# @param TimeRangeStart: 开始时间
|
4391
|
+
# @type TimeRangeStart: String
|
4392
|
+
# @param TimeRangeEnd: 结束时间
|
4393
|
+
# @type TimeRangeEnd: String
|
4394
|
+
|
4395
|
+
attr_accessor :TimeRangeStart, :TimeRangeEnd
|
4396
|
+
|
4397
|
+
def initialize(timerangestart=nil, timerangeend=nil)
|
4398
|
+
@TimeRangeStart = timerangestart
|
4399
|
+
@TimeRangeEnd = timerangeend
|
4400
|
+
end
|
4401
|
+
|
4402
|
+
def deserialize(params)
|
4403
|
+
@TimeRangeStart = params['TimeRangeStart']
|
4404
|
+
@TimeRangeEnd = params['TimeRangeEnd']
|
4405
|
+
end
|
4406
|
+
end
|
4407
|
+
|
4117
4408
|
# 安全组详情
|
4118
4409
|
class SecurityGroup < TencentCloud::Common::AbstractModel
|
4119
4410
|
# @param ProjectId: 项目ID
|
@@ -4264,6 +4555,54 @@ module TencentCloud
|
|
4264
4555
|
end
|
4265
4556
|
end
|
4266
4557
|
|
4558
|
+
# SwitchClusterZone请求参数结构体
|
4559
|
+
class SwitchClusterZoneRequest < TencentCloud::Common::AbstractModel
|
4560
|
+
# @param ClusterId: 集群Id
|
4561
|
+
# @type ClusterId: String
|
4562
|
+
# @param OldZone: 当前可用区
|
4563
|
+
# @type OldZone: String
|
4564
|
+
# @param NewZone: 要切换到的可用区
|
4565
|
+
# @type NewZone: String
|
4566
|
+
# @param IsInMaintainPeriod: 维护期间执行-yes,立即执行-no
|
4567
|
+
# @type IsInMaintainPeriod: String
|
4568
|
+
|
4569
|
+
attr_accessor :ClusterId, :OldZone, :NewZone, :IsInMaintainPeriod
|
4570
|
+
|
4571
|
+
def initialize(clusterid=nil, oldzone=nil, newzone=nil, isinmaintainperiod=nil)
|
4572
|
+
@ClusterId = clusterid
|
4573
|
+
@OldZone = oldzone
|
4574
|
+
@NewZone = newzone
|
4575
|
+
@IsInMaintainPeriod = isinmaintainperiod
|
4576
|
+
end
|
4577
|
+
|
4578
|
+
def deserialize(params)
|
4579
|
+
@ClusterId = params['ClusterId']
|
4580
|
+
@OldZone = params['OldZone']
|
4581
|
+
@NewZone = params['NewZone']
|
4582
|
+
@IsInMaintainPeriod = params['IsInMaintainPeriod']
|
4583
|
+
end
|
4584
|
+
end
|
4585
|
+
|
4586
|
+
# SwitchClusterZone返回参数结构体
|
4587
|
+
class SwitchClusterZoneResponse < TencentCloud::Common::AbstractModel
|
4588
|
+
# @param FlowId: 异步FlowId
|
4589
|
+
# @type FlowId: Integer
|
4590
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4591
|
+
# @type RequestId: String
|
4592
|
+
|
4593
|
+
attr_accessor :FlowId, :RequestId
|
4594
|
+
|
4595
|
+
def initialize(flowid=nil, requestid=nil)
|
4596
|
+
@FlowId = flowid
|
4597
|
+
@RequestId = requestid
|
4598
|
+
end
|
4599
|
+
|
4600
|
+
def deserialize(params)
|
4601
|
+
@FlowId = params['FlowId']
|
4602
|
+
@RequestId = params['RequestId']
|
4603
|
+
end
|
4604
|
+
end
|
4605
|
+
|
4267
4606
|
# mysql表权限
|
4268
4607
|
class TablePrivileges < TencentCloud::Common::AbstractModel
|
4269
4608
|
# @param Db: 数据库名
|
@@ -4422,6 +4761,26 @@ module TencentCloud
|
|
4422
4761
|
end
|
4423
4762
|
end
|
4424
4763
|
|
4764
|
+
# 可用区库存信息
|
4765
|
+
class ZoneStockInfo < TencentCloud::Common::AbstractModel
|
4766
|
+
# @param Zone: 可用区
|
4767
|
+
# @type Zone: String
|
4768
|
+
# @param HasStock: 是否有库存
|
4769
|
+
# @type HasStock: Boolean
|
4770
|
+
|
4771
|
+
attr_accessor :Zone, :HasStock
|
4772
|
+
|
4773
|
+
def initialize(zone=nil, hasstock=nil)
|
4774
|
+
@Zone = zone
|
4775
|
+
@HasStock = hasstock
|
4776
|
+
end
|
4777
|
+
|
4778
|
+
def deserialize(params)
|
4779
|
+
@Zone = params['Zone']
|
4780
|
+
@HasStock = params['HasStock']
|
4781
|
+
end
|
4782
|
+
end
|
4783
|
+
|
4425
4784
|
end
|
4426
4785
|
end
|
4427
4786
|
end
|
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: 3.0.
|
4
|
+
version: 3.0.397
|
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-08-
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|