tencentcloud-sdk-mariadb 1.0.240 → 1.0.241

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: 213981dbf7cca39e0c0d636af3d380a1122c4503
4
- data.tar.gz: 5f6c607dd3374b346f721970a8c84eff7377349c
3
+ metadata.gz: f1a109444dd0d09aeda1e0c4f093bef0dce9ae61
4
+ data.tar.gz: 352a52ec339a0a417d94a42473fa35858ef55037
5
5
  SHA512:
6
- metadata.gz: 63d9672a4b15cf04259ffd2dd8c06a4660cf5db10026de4b0589c89ea842b4d46d51b789d94143074e40691bf32d74b948f5a95780763bf0c475af00387003e0
7
- data.tar.gz: d333e0ed8a869eabcedd8a6e48648216e84b7f48362ffce70a36e0a9ffb91b027da9b8827f51058d199584873738344a230b664c6f435198e7ca1765604762ae
6
+ metadata.gz: 48429cd3290e1f77fe8a1cfcc6bd70af700627c20c58c4c651792ff81ff508d4d16a54e854075eedc4dac5c81a71c29e42474085015ca5787fafe71a76e12a9c
7
+ data.tar.gz: bdcc1dac394f6a75de172d5ac787b191d1f0a05521547bb99de541db98f9161ecea86608885554b3261c1bc7f64189968e812072949a516b127ad269ab3067c3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.240
1
+ 1.0.241
@@ -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.241
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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common