tencentcloud-sdk-cynosdb 3.0.580 → 3.0.581
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 +216 -0
- data/lib/v20190107/models.rb +912 -158
- 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: bd4cabd0aea5aa36aafde9d46d7db37c0885779f
|
4
|
+
data.tar.gz: 99057119bc2d96989f7c016bbf5247a1ea252b20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf16c8d93d3bdafbcb618e9f325a016698b600f4f1f0abf828196ea0ce57968fdde08319560e423e886da883d12c030ec88aa664b6773baf7c3df5c7790628e
|
7
|
+
data.tar.gz: 69080943e97629f655d9298b81b0747e4dddee290fdd4992e2332f69a6eef26e5ab85ca4c23193bcbfe70baf7d0e47875931cb6564cafdf5ebf80a20a411565b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.581
|
data/lib/v20190107/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 为集群绑定资源包
|
129
|
+
|
130
|
+
# @param request: Request instance for BindClusterResourcePackages.
|
131
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::BindClusterResourcePackagesRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::BindClusterResourcePackagesResponse`
|
133
|
+
def BindClusterResourcePackages(request)
|
134
|
+
body = send_request('BindClusterResourcePackages', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = BindClusterResourcePackagesResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# TDSQL-C for MySQL实例关闭审计服务
|
129
153
|
|
130
154
|
# @param request: Request instance for CloseAuditService.
|
@@ -389,6 +413,30 @@ module TencentCloud
|
|
389
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
414
|
end
|
391
415
|
|
416
|
+
# 新购资源包
|
417
|
+
|
418
|
+
# @param request: Request instance for CreateResourcePackage.
|
419
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateResourcePackageRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateResourcePackageResponse`
|
421
|
+
def CreateResourcePackage(request)
|
422
|
+
body = send_request('CreateResourcePackage', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateResourcePackageResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
392
440
|
# 删除账号
|
393
441
|
|
394
442
|
# @param request: Request instance for DeleteAccounts.
|
@@ -1301,6 +1349,78 @@ module TencentCloud
|
|
1301
1349
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
1350
|
end
|
1303
1351
|
|
1352
|
+
# 查询资源包使用详情
|
1353
|
+
|
1354
|
+
# @param request: Request instance for DescribeResourcePackageDetail.
|
1355
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageDetailRequest`
|
1356
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageDetailResponse`
|
1357
|
+
def DescribeResourcePackageDetail(request)
|
1358
|
+
body = send_request('DescribeResourcePackageDetail', request.serialize)
|
1359
|
+
response = JSON.parse(body)
|
1360
|
+
if response['Response'].key?('Error') == false
|
1361
|
+
model = DescribeResourcePackageDetailResponse.new
|
1362
|
+
model.deserialize(response['Response'])
|
1363
|
+
model
|
1364
|
+
else
|
1365
|
+
code = response['Response']['Error']['Code']
|
1366
|
+
message = response['Response']['Error']['Message']
|
1367
|
+
reqid = response['Response']['RequestId']
|
1368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1369
|
+
end
|
1370
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1371
|
+
raise e
|
1372
|
+
rescue StandardError => e
|
1373
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# 查询资源包列表
|
1377
|
+
|
1378
|
+
# @param request: Request instance for DescribeResourcePackageList.
|
1379
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageListRequest`
|
1380
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageListResponse`
|
1381
|
+
def DescribeResourcePackageList(request)
|
1382
|
+
body = send_request('DescribeResourcePackageList', request.serialize)
|
1383
|
+
response = JSON.parse(body)
|
1384
|
+
if response['Response'].key?('Error') == false
|
1385
|
+
model = DescribeResourcePackageListResponse.new
|
1386
|
+
model.deserialize(response['Response'])
|
1387
|
+
model
|
1388
|
+
else
|
1389
|
+
code = response['Response']['Error']['Code']
|
1390
|
+
message = response['Response']['Error']['Message']
|
1391
|
+
reqid = response['Response']['RequestId']
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1393
|
+
end
|
1394
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1395
|
+
raise e
|
1396
|
+
rescue StandardError => e
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# 查询资源包规格
|
1401
|
+
|
1402
|
+
# @param request: Request instance for DescribeResourcePackageSaleSpec.
|
1403
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageSaleSpecRequest`
|
1404
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeResourcePackageSaleSpecResponse`
|
1405
|
+
def DescribeResourcePackageSaleSpec(request)
|
1406
|
+
body = send_request('DescribeResourcePackageSaleSpec', request.serialize)
|
1407
|
+
response = JSON.parse(body)
|
1408
|
+
if response['Response'].key?('Error') == false
|
1409
|
+
model = DescribeResourcePackageSaleSpecResponse.new
|
1410
|
+
model.deserialize(response['Response'])
|
1411
|
+
model
|
1412
|
+
else
|
1413
|
+
code = response['Response']['Error']['Code']
|
1414
|
+
message = response['Response']['Error']['Message']
|
1415
|
+
reqid = response['Response']['RequestId']
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1417
|
+
end
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1419
|
+
raise e
|
1420
|
+
rescue StandardError => e
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
|
+
end
|
1423
|
+
|
1304
1424
|
# 根据计费订单id查询资源列表
|
1305
1425
|
|
1306
1426
|
# @param request: Request instance for DescribeResourcesByDealName.
|
@@ -2069,6 +2189,54 @@ module TencentCloud
|
|
2069
2189
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2070
2190
|
end
|
2071
2191
|
|
2192
|
+
# 给资源包绑定集群
|
2193
|
+
|
2194
|
+
# @param request: Request instance for ModifyResourcePackageClusters.
|
2195
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyResourcePackageClustersRequest`
|
2196
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyResourcePackageClustersResponse`
|
2197
|
+
def ModifyResourcePackageClusters(request)
|
2198
|
+
body = send_request('ModifyResourcePackageClusters', request.serialize)
|
2199
|
+
response = JSON.parse(body)
|
2200
|
+
if response['Response'].key?('Error') == false
|
2201
|
+
model = ModifyResourcePackageClustersResponse.new
|
2202
|
+
model.deserialize(response['Response'])
|
2203
|
+
model
|
2204
|
+
else
|
2205
|
+
code = response['Response']['Error']['Code']
|
2206
|
+
message = response['Response']['Error']['Message']
|
2207
|
+
reqid = response['Response']['RequestId']
|
2208
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2209
|
+
end
|
2210
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2211
|
+
raise e
|
2212
|
+
rescue StandardError => e
|
2213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
# 修改资源包名称
|
2217
|
+
|
2218
|
+
# @param request: Request instance for ModifyResourcePackageName.
|
2219
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyResourcePackageNameRequest`
|
2220
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyResourcePackageNameResponse`
|
2221
|
+
def ModifyResourcePackageName(request)
|
2222
|
+
body = send_request('ModifyResourcePackageName', request.serialize)
|
2223
|
+
response = JSON.parse(body)
|
2224
|
+
if response['Response'].key?('Error') == false
|
2225
|
+
model = ModifyResourcePackageNameResponse.new
|
2226
|
+
model.deserialize(response['Response'])
|
2227
|
+
model
|
2228
|
+
else
|
2229
|
+
code = response['Response']['Error']['Code']
|
2230
|
+
message = response['Response']['Error']['Message']
|
2231
|
+
reqid = response['Response']['RequestId']
|
2232
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2233
|
+
end
|
2234
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2235
|
+
raise e
|
2236
|
+
rescue StandardError => e
|
2237
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2238
|
+
end
|
2239
|
+
|
2072
2240
|
# 修改实例组ip,端口
|
2073
2241
|
|
2074
2242
|
# @param request: Request instance for ModifyVipVport.
|
@@ -2261,6 +2429,30 @@ module TencentCloud
|
|
2261
2429
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2262
2430
|
end
|
2263
2431
|
|
2432
|
+
# 退款资源包
|
2433
|
+
|
2434
|
+
# @param request: Request instance for RefundResourcePackage.
|
2435
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::RefundResourcePackageRequest`
|
2436
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::RefundResourcePackageResponse`
|
2437
|
+
def RefundResourcePackage(request)
|
2438
|
+
body = send_request('RefundResourcePackage', request.serialize)
|
2439
|
+
response = JSON.parse(body)
|
2440
|
+
if response['Response'].key?('Error') == false
|
2441
|
+
model = RefundResourcePackageResponse.new
|
2442
|
+
model.deserialize(response['Response'])
|
2443
|
+
model
|
2444
|
+
else
|
2445
|
+
code = response['Response']['Error']['Code']
|
2446
|
+
message = response['Response']['Error']['Message']
|
2447
|
+
reqid = response['Response']['RequestId']
|
2448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2449
|
+
end
|
2450
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2451
|
+
raise e
|
2452
|
+
rescue StandardError => e
|
2453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2454
|
+
end
|
2455
|
+
|
2264
2456
|
# 删除从可用区
|
2265
2457
|
|
2266
2458
|
# @param request: Request instance for RemoveClusterSlaveZone.
|
@@ -2549,6 +2741,30 @@ module TencentCloud
|
|
2549
2741
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2550
2742
|
end
|
2551
2743
|
|
2744
|
+
# cynos解绑资源包
|
2745
|
+
|
2746
|
+
# @param request: Request instance for UnbindClusterResourcePackages.
|
2747
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::UnbindClusterResourcePackagesRequest`
|
2748
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::UnbindClusterResourcePackagesResponse`
|
2749
|
+
def UnbindClusterResourcePackages(request)
|
2750
|
+
body = send_request('UnbindClusterResourcePackages', request.serialize)
|
2751
|
+
response = JSON.parse(body)
|
2752
|
+
if response['Response'].key?('Error') == false
|
2753
|
+
model = UnbindClusterResourcePackagesResponse.new
|
2754
|
+
model.deserialize(response['Response'])
|
2755
|
+
model
|
2756
|
+
else
|
2757
|
+
code = response['Response']['Error']['Code']
|
2758
|
+
message = response['Response']['Error']['Message']
|
2759
|
+
reqid = response['Response']['RequestId']
|
2760
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2761
|
+
end
|
2762
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2763
|
+
raise e
|
2764
|
+
rescue StandardError => e
|
2765
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2766
|
+
end
|
2767
|
+
|
2552
2768
|
# 更新集群Cynos内核版本
|
2553
2769
|
|
2554
2770
|
# @param request: Request instance for UpgradeClusterVersion.
|