tencentcloud-sdk-dcdb 1.0.240 → 1.0.241

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: 4158a4c429d785612736f1e0ce5e6e206453ecb9
4
- data.tar.gz: 56cfa3bf3a54f96c6dd093bf1c3fca5b7d16d013
3
+ metadata.gz: a1f9b6194fb090ef76c4ad65e29b1977f7a3e2ff
4
+ data.tar.gz: cd97e7a5e0873e93fa4c2a7e4ab9fa0fbdf11d04
5
5
  SHA512:
6
- metadata.gz: 645743f475a3e2a3eb04b6ee3a571fbbd39f67914fa57348900f63988a96e07f731fa152ad29ca29c00774e7fc38a3cedb4cad8ac5729108c696ea6a8da28a8b
7
- data.tar.gz: 58cb4a9a590bd1b8c87c22be781946a8dd772da4527c91952a745928e0abf3859970ecd8a25b1ae7aa76d3d22e7e7d1b200887e99f4ec9015e0e59cb7becbfed
6
+ metadata.gz: a1f2c28cde3a518c2bb5d18b078a7caea581274a145958b06fc1e8b742991fa40eb095787a4161ffb09bef6e123d80567da5f2999a65156b3d584fe0f35e0991
7
+ data.tar.gz: e540a9612edc6d79b1083aa63084ae6d0ffbc6ae9831d20b04e6837048d86956335f22ad956984f5739ce92c10e656fd929a824018cfb7ed313a2519f910e07f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.240
1
+ 1.0.241
@@ -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.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