tencentcloud-sdk-dcdb 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: a4c098cc203494f5a7ab7d419b224eb934bd4fe5
4
- data.tar.gz: b83d1a17ca83f0719b6bda43ad4ff5d23460ce90
3
+ metadata.gz: 62f975bd90f798ed8414ead54cd6a28e4a8e4a8e
4
+ data.tar.gz: 2743160635821d07a1763820aba9920276822c88
5
5
  SHA512:
6
- metadata.gz: 62aaa6a3b30816dd3a5438a9e6535ec9c57eabb279a62423d271414d86b5ffb35e2aba0f4c3e524322d38d41dad65618ae2455bea01c8ab0393fd1ebd3cde7e1
7
- data.tar.gz: 492d72085a6f5ae0a851e455edaf03b00318a6212a993f614039e753730c821c1726af1bc7986267319354e9f56c03b0e05f3daadf30e9e4fd872b198bd84c6a
6
+ metadata.gz: e554bf9ba9b85599e2af9d7bde2e07c581099ae89bfe9a824c9791db19890eda2af05566eba60cda222d34fdf87d6c150fdf7ec59411f53a8889749635562f79
7
+ data.tar.gz: 5941b7a7a0dcc2f061bc2fe357bd72b15ce1386c92cc38c3a4ee4a2f348c2b6fbbb39ad111b6a09ff09000f0b052949baca5ccb1db369da71f5acf9d1be54510
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.239
1
+ 1.0.243
@@ -1240,6 +1240,30 @@ module TencentCloud
1240
1240
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1241
1241
  end
1242
1242
 
1243
+ # 本接口(SwitchDBInstanceHA)用于实例主备切换。
1244
+
1245
+ # @param request: Request instance for SwitchDBInstanceHA.
1246
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::SwitchDBInstanceHARequest`
1247
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::SwitchDBInstanceHAResponse`
1248
+ def SwitchDBInstanceHA(request)
1249
+ body = send_request('SwitchDBInstanceHA', request.serialize)
1250
+ response = JSON.parse(body)
1251
+ if response['Response'].key?('Error') == false
1252
+ model = SwitchDBInstanceHAResponse.new
1253
+ model.deserialize(response['Response'])
1254
+ model
1255
+ else
1256
+ code = response['Response']['Error']['Code']
1257
+ message = response['Response']['Error']['Message']
1258
+ reqid = response['Response']['RequestId']
1259
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1260
+ end
1261
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1262
+ raise e
1263
+ rescue StandardError => e
1264
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1265
+ end
1266
+
1243
1267
  # 本接口(UpgradeDCDBInstance)用于升级分布式数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
1244
1268
 
1245
1269
  # @param request: Request instance for UpgradeDCDBInstance.
@@ -4059,6 +4059,46 @@ module TencentCloud
4059
4059
  end
4060
4060
  end
4061
4061
 
4062
+ # SwitchDBInstanceHA请求参数结构体
4063
+ class SwitchDBInstanceHARequest < TencentCloud::Common::AbstractModel
4064
+ # @param InstanceId: 实例Id,形如 tdsql-ow728lmc。
4065
+ # @type InstanceId: String
4066
+ # @param Zone: 切换的目标区域,会自动选择该可用区中延迟最低的节点。
4067
+ # @type Zone: String
4068
+
4069
+ attr_accessor :InstanceId, :Zone
4070
+
4071
+ def initialize(instanceid=nil, zone=nil)
4072
+ @InstanceId = instanceid
4073
+ @Zone = zone
4074
+ end
4075
+
4076
+ def deserialize(params)
4077
+ @InstanceId = params['InstanceId']
4078
+ @Zone = params['Zone']
4079
+ end
4080
+ end
4081
+
4082
+ # SwitchDBInstanceHA返回参数结构体
4083
+ class SwitchDBInstanceHAResponse < TencentCloud::Common::AbstractModel
4084
+ # @param FlowId: 异步流程Id
4085
+ # @type FlowId: Integer
4086
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4087
+ # @type RequestId: String
4088
+
4089
+ attr_accessor :FlowId, :RequestId
4090
+
4091
+ def initialize(flowid=nil, requestid=nil)
4092
+ @FlowId = flowid
4093
+ @RequestId = requestid
4094
+ end
4095
+
4096
+ def deserialize(params)
4097
+ @FlowId = params['FlowId']
4098
+ @RequestId = params['RequestId']
4099
+ end
4100
+ end
4101
+
4062
4102
  # 数据库列信息
4063
4103
  class TableColumn < TencentCloud::Common::AbstractModel
4064
4104
  # @param Col: 列名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
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