tencentcloud-sdk-mariadb 1.0.239 → 1.0.243

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: f5d8dbdae324b5f3e68b2d64310d1c59dd7d42d0
4
- data.tar.gz: 2e4ef8e92b65ed84aa4eb69fc8d009438bbabd9e
3
+ metadata.gz: 08c7b89d9864daab717a20d44826d289a017c162
4
+ data.tar.gz: 87c33c134891bf0a7c6408c7fc8aa050b7bcd516
5
5
  SHA512:
6
- metadata.gz: 81c30bba52b50d8249a7417aad185f4c861c59b2bdb70de1dbe89be48935b1cc4acbacd5737390cd0bee3d2a26720ccfdefebebe7fc4a180475529c1c6f46161
7
- data.tar.gz: 3dd4c00c507319ac3a9188966c9d283f12e93b66df6254ac21a2dd54a9c3918983e848036d5059befc5d428ee89f69a835a5f01f6ed6c810cbf65a63fd5c7847
6
+ metadata.gz: e2cc70a8532feb66d2fcd419cf8cd275546ddc6d0b5810ebeb09a945d348dcaf7f33a38ab1997d25ad026d4fa543e9710714ada1c6b9b0196dd915e954236881
7
+ data.tar.gz: 8b873f056e2c6f2afcc33a48b77f5ce45ed33c7a5a0de888685e1b33f0b3eaec4277138662f3db232578f135108a160c07b5f897763773e8876072b28dbbbf30
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.239
1
+ 1.0.243
@@ -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.239
4
+ version: 1.0.243
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-11 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common