tencentcloud-sdk-mariadb 1.0.240 → 1.0.244

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 213981dbf7cca39e0c0d636af3d380a1122c4503
4
- data.tar.gz: 5f6c607dd3374b346f721970a8c84eff7377349c
3
+ metadata.gz: 304fb304cf845f84e2aa445850047622192b1d42
4
+ data.tar.gz: 2206ad44a702c6ed469e124aa39bd457ccb44aaa
5
5
  SHA512:
6
- metadata.gz: 63d9672a4b15cf04259ffd2dd8c06a4660cf5db10026de4b0589c89ea842b4d46d51b789d94143074e40691bf32d74b948f5a95780763bf0c475af00387003e0
7
- data.tar.gz: d333e0ed8a869eabcedd8a6e48648216e84b7f48362ffce70a36e0a9ffb91b027da9b8827f51058d199584873738344a230b664c6f435198e7ca1765604762ae
6
+ metadata.gz: 983e719a95c44ace4d2bcaa45cdd2e80578ca0a28b05538834172e6fdf7070c3d0368a56764e402ff7dc8e86b036b8507e38b53605592e3263f1410c77bfd056
7
+ data.tar.gz: f18dfc757ff1a5aa2f3a0426b67969f06842ae9e4ff308351bb47e81ad070ffcec0bf33d51cb3b0327e98fab6cda48f76e55f31879fc4cf8b163b736a65e7a75
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.240
1
+ 1.0.244
@@ -1437,6 +1437,30 @@ module TencentCloud
1437
1437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1438
1438
  end
1439
1439
 
1440
+ # 本接口(SwitchDBInstanceHA)用于发起实例主备切换。
1441
+
1442
+ # @param request: Request instance for SwitchDBInstanceHA.
1443
+ # @type request: :class:`Tencentcloud::mariadb::V20170312::SwitchDBInstanceHARequest`
1444
+ # @rtype: :class:`Tencentcloud::mariadb::V20170312::SwitchDBInstanceHAResponse`
1445
+ def SwitchDBInstanceHA(request)
1446
+ body = send_request('SwitchDBInstanceHA', request.serialize)
1447
+ response = JSON.parse(body)
1448
+ if response['Response'].key?('Error') == false
1449
+ model = SwitchDBInstanceHAResponse.new
1450
+ model.deserialize(response['Response'])
1451
+ model
1452
+ else
1453
+ code = response['Response']['Error']['Code']
1454
+ message = response['Response']['Error']['Message']
1455
+ reqid = response['Response']['RequestId']
1456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1457
+ end
1458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1459
+ raise e
1460
+ rescue StandardError => e
1461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1462
+ end
1463
+
1440
1464
  # 本接口(UpgradeDBInstance)用于扩容云数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
1441
1465
 
1442
1466
  # @param request: Request instance for UpgradeDBInstance.
@@ -4569,6 +4569,46 @@ module TencentCloud
4569
4569
  end
4570
4570
  end
4571
4571
 
4572
+ # SwitchDBInstanceHA请求参数结构体
4573
+ class SwitchDBInstanceHARequest < TencentCloud::Common::AbstractModel
4574
+ # @param InstanceId: 实例Id,形如 tdsql-ow728lmc
4575
+ # @type InstanceId: String
4576
+ # @param Zone: 切换的目标区域,会自动选择该可用区中延迟最低的节点
4577
+ # @type Zone: String
4578
+
4579
+ attr_accessor :InstanceId, :Zone
4580
+
4581
+ def initialize(instanceid=nil, zone=nil)
4582
+ @InstanceId = instanceid
4583
+ @Zone = zone
4584
+ end
4585
+
4586
+ def deserialize(params)
4587
+ @InstanceId = params['InstanceId']
4588
+ @Zone = params['Zone']
4589
+ end
4590
+ end
4591
+
4592
+ # SwitchDBInstanceHA返回参数结构体
4593
+ class SwitchDBInstanceHAResponse < TencentCloud::Common::AbstractModel
4594
+ # @param FlowId: 异步流程Id
4595
+ # @type FlowId: Integer
4596
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4597
+ # @type RequestId: String
4598
+
4599
+ attr_accessor :FlowId, :RequestId
4600
+
4601
+ def initialize(flowid=nil, requestid=nil)
4602
+ @FlowId = flowid
4603
+ @RequestId = requestid
4604
+ end
4605
+
4606
+ def deserialize(params)
4607
+ @FlowId = params['FlowId']
4608
+ @RequestId = params['RequestId']
4609
+ end
4610
+ end
4611
+
4572
4612
  # 数据库表权限
4573
4613
  class TablePrivilege < TencentCloud::Common::AbstractModel
4574
4614
  # @param Database: 数据库名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mariadb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.240
4
+ version: 1.0.244
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-01-12 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common