tencentcloud-sdk-cynosdb 3.0.594 → 3.0.595

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 333d35a621a810b7332c5b5536e77acb9b9bc0b4
4
- data.tar.gz: a515d95d24f19273484bf33607398cdf4938d246
3
+ metadata.gz: e77974e7159dfda4516c9432666d7a18ef83ec7d
4
+ data.tar.gz: e2330d4213391821b619e95b7fe593c518e3f029
5
5
  SHA512:
6
- metadata.gz: 2098c4a32a486a54c208ab7860a2ce433fede570be15407b66b24bced01ebf9112cc7800a2781a21f511a7d4bddd30ab5886c80c76e48211b5bad0fc5fc9ac68
7
- data.tar.gz: 3b5175c8d9abf5903a5c6c6135cfbb2402c1b7994549b817af50adb4053f6cd8787d78cb402402be55f241d9337e812ec82845f25a0bc4e2dd026eb006485498
6
+ metadata.gz: f38747dee587d71f74c05b5349b1ec8863dd3527766c1ec3492eaaaa1576bb92dfd7a6c591a351a6533708596803478f9012012c16b97f6e41254a1662780eb5
7
+ data.tar.gz: 3ee6a428d1a4cd8d984a84dc6def35ee841c721cd5c5c49c79f82f65c0cf2dfcddc939f7352be356f408632edee39e29941102696e4ffcf6303ee81756adfed0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.594
1
+ 3.0.595
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 关闭数据库代理
201
+
202
+ # @param request: Request instance for CloseProxy.
203
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CloseProxyRequest`
204
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CloseProxyResponse`
205
+ def CloseProxy(request)
206
+ body = send_request('CloseProxy', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CloseProxyResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 本接口(CloseWan)用于关闭外网
201
225
 
202
226
  # @param request: Request instance for CloseWan.
@@ -413,6 +437,54 @@ module TencentCloud
413
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
438
  end
415
439
 
440
+ # 创建数据库代理
441
+
442
+ # @param request: Request instance for CreateProxy.
443
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateProxyRequest`
444
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateProxyResponse`
445
+ def CreateProxy(request)
446
+ body = send_request('CreateProxy', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = CreateProxyResponse.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
+
464
+ # 创建数据库代理连接点
465
+
466
+ # @param request: Request instance for CreateProxyEndPoint.
467
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateProxyEndPointRequest`
468
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateProxyEndPointResponse`
469
+ def CreateProxyEndPoint(request)
470
+ body = send_request('CreateProxyEndPoint', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = CreateProxyEndPointResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
416
488
  # 新购资源包
417
489
 
418
490
  # @param request: Request instance for CreateResourcePackage.
@@ -1349,6 +1421,54 @@ module TencentCloud
1349
1421
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
1422
  end
1351
1423
 
1424
+ # 查询数据库代理列表
1425
+
1426
+ # @param request: Request instance for DescribeProxies.
1427
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeProxiesRequest`
1428
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeProxiesResponse`
1429
+ def DescribeProxies(request)
1430
+ body = send_request('DescribeProxies', request.serialize)
1431
+ response = JSON.parse(body)
1432
+ if response['Response'].key?('Error') == false
1433
+ model = DescribeProxiesResponse.new
1434
+ model.deserialize(response['Response'])
1435
+ model
1436
+ else
1437
+ code = response['Response']['Error']['Code']
1438
+ message = response['Response']['Error']['Message']
1439
+ reqid = response['Response']['RequestId']
1440
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1441
+ end
1442
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1443
+ raise e
1444
+ rescue StandardError => e
1445
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1446
+ end
1447
+
1448
+ # 本接口(DescribeProxyNodes)用于查询代理接口列表。
1449
+
1450
+ # @param request: Request instance for DescribeProxyNodes.
1451
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeProxyNodesRequest`
1452
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeProxyNodesResponse`
1453
+ def DescribeProxyNodes(request)
1454
+ body = send_request('DescribeProxyNodes', request.serialize)
1455
+ response = JSON.parse(body)
1456
+ if response['Response'].key?('Error') == false
1457
+ model = DescribeProxyNodesResponse.new
1458
+ model.deserialize(response['Response'])
1459
+ model
1460
+ else
1461
+ code = response['Response']['Error']['Code']
1462
+ message = response['Response']['Error']['Message']
1463
+ reqid = response['Response']['RequestId']
1464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1465
+ end
1466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1467
+ raise e
1468
+ rescue StandardError => e
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
+ end
1471
+
1352
1472
  # 查询资源包使用详情
1353
1473
 
1354
1474
  # @param request: Request instance for DescribeResourcePackageDetail.
@@ -2189,6 +2309,54 @@ module TencentCloud
2189
2309
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2190
2310
  end
2191
2311
 
2312
+ # 修改数据库代理描述
2313
+
2314
+ # @param request: Request instance for ModifyProxyDesc.
2315
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyProxyDescRequest`
2316
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyProxyDescResponse`
2317
+ def ModifyProxyDesc(request)
2318
+ body = send_request('ModifyProxyDesc', request.serialize)
2319
+ response = JSON.parse(body)
2320
+ if response['Response'].key?('Error') == false
2321
+ model = ModifyProxyDescResponse.new
2322
+ model.deserialize(response['Response'])
2323
+ model
2324
+ else
2325
+ code = response['Response']['Error']['Code']
2326
+ message = response['Response']['Error']['Message']
2327
+ reqid = response['Response']['RequestId']
2328
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2329
+ end
2330
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2331
+ raise e
2332
+ rescue StandardError => e
2333
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2334
+ end
2335
+
2336
+ # 配置数据库代理读写分离
2337
+
2338
+ # @param request: Request instance for ModifyProxyRwSplit.
2339
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyProxyRwSplitRequest`
2340
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyProxyRwSplitResponse`
2341
+ def ModifyProxyRwSplit(request)
2342
+ body = send_request('ModifyProxyRwSplit', request.serialize)
2343
+ response = JSON.parse(body)
2344
+ if response['Response'].key?('Error') == false
2345
+ model = ModifyProxyRwSplitResponse.new
2346
+ model.deserialize(response['Response'])
2347
+ model
2348
+ else
2349
+ code = response['Response']['Error']['Code']
2350
+ message = response['Response']['Error']['Message']
2351
+ reqid = response['Response']['RequestId']
2352
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2353
+ end
2354
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2355
+ raise e
2356
+ rescue StandardError => e
2357
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2358
+ end
2359
+
2192
2360
  # 给资源包绑定集群
2193
2361
 
2194
2362
  # @param request: Request instance for ModifyResourcePackageClusters.
@@ -2453,6 +2621,30 @@ module TencentCloud
2453
2621
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2454
2622
  end
2455
2623
 
2624
+ # 负载均衡数据库代理
2625
+
2626
+ # @param request: Request instance for ReloadBalanceProxyNode.
2627
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ReloadBalanceProxyNodeRequest`
2628
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ReloadBalanceProxyNodeResponse`
2629
+ def ReloadBalanceProxyNode(request)
2630
+ body = send_request('ReloadBalanceProxyNode', request.serialize)
2631
+ response = JSON.parse(body)
2632
+ if response['Response'].key?('Error') == false
2633
+ model = ReloadBalanceProxyNodeResponse.new
2634
+ model.deserialize(response['Response'])
2635
+ model
2636
+ else
2637
+ code = response['Response']['Error']['Code']
2638
+ message = response['Response']['Error']['Message']
2639
+ reqid = response['Response']['RequestId']
2640
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2641
+ end
2642
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2643
+ raise e
2644
+ rescue StandardError => e
2645
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2646
+ end
2647
+
2456
2648
  # 删除从可用区
2457
2649
 
2458
2650
  # @param request: Request instance for RemoveClusterSlaveZone.
@@ -2813,6 +3005,54 @@ module TencentCloud
2813
3005
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2814
3006
  end
2815
3007
 
3008
+ # 升级数据库代理配置
3009
+
3010
+ # @param request: Request instance for UpgradeProxy.
3011
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::UpgradeProxyRequest`
3012
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::UpgradeProxyResponse`
3013
+ def UpgradeProxy(request)
3014
+ body = send_request('UpgradeProxy', request.serialize)
3015
+ response = JSON.parse(body)
3016
+ if response['Response'].key?('Error') == false
3017
+ model = UpgradeProxyResponse.new
3018
+ model.deserialize(response['Response'])
3019
+ model
3020
+ else
3021
+ code = response['Response']['Error']['Code']
3022
+ message = response['Response']['Error']['Message']
3023
+ reqid = response['Response']['RequestId']
3024
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3025
+ end
3026
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3027
+ raise e
3028
+ rescue StandardError => e
3029
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3030
+ end
3031
+
3032
+ # 升级数据库代理版本
3033
+
3034
+ # @param request: Request instance for UpgradeProxyVersion.
3035
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::UpgradeProxyVersionRequest`
3036
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::UpgradeProxyVersionResponse`
3037
+ def UpgradeProxyVersion(request)
3038
+ body = send_request('UpgradeProxyVersion', request.serialize)
3039
+ response = JSON.parse(body)
3040
+ if response['Response'].key?('Error') == false
3041
+ model = UpgradeProxyVersionResponse.new
3042
+ model.deserialize(response['Response'])
3043
+ model
3044
+ else
3045
+ code = response['Response']['Error']['Code']
3046
+ message = response['Response']['Error']['Message']
3047
+ reqid = response['Response']['RequestId']
3048
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3049
+ end
3050
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3051
+ raise e
3052
+ rescue StandardError => e
3053
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3054
+ end
3055
+
2816
3056
 
2817
3057
  end
2818
3058
  end