tencentcloud-sdk-dcdb 3.0.586 → 3.0.587
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180411/client.rb +24 -0
- data/lib/v20180411/models.rb +40 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b5d9b919bad4690c51f9ecc54d76130def02a1
|
4
|
+
data.tar.gz: b03e5abad04cee26636ff39507137d365b4d2dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8000ea82d1d7b97e71135942376cb4765e4d8ee1182e2b48ffdec08c9bc3edb21584fe27b6ff850ac2bff66c1964bb440e23ebbcce3dba35e1492362ae29cdf
|
7
|
+
data.tar.gz: ed1405cfdec4f2fd148a990a03b046d9a04cd76ff25373077d31444a2a8922ec3463c5d7a4f1875b6a4572db3f1e45681168ff408d9c7ef19075dd0deb343093
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.587
|
data/lib/v20180411/client.rb
CHANGED
@@ -1163,6 +1163,30 @@ module TencentCloud
|
|
1163
1163
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1164
1164
|
end
|
1165
1165
|
|
1166
|
+
# 本接口(IsolateDCDBInstance)用于隔离分布式数据库TDSQL实例(包年包月),隔离后不能通过IP和端口访问数据库。隔离的实例可在回收站中进行开机。若为欠费隔离,请尽快进行充值。
|
1167
|
+
|
1168
|
+
# @param request: Request instance for IsolateDCDBInstance.
|
1169
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::IsolateDCDBInstanceRequest`
|
1170
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::IsolateDCDBInstanceResponse`
|
1171
|
+
def IsolateDCDBInstance(request)
|
1172
|
+
body = send_request('IsolateDCDBInstance', request.serialize)
|
1173
|
+
response = JSON.parse(body)
|
1174
|
+
if response['Response'].key?('Error') == false
|
1175
|
+
model = IsolateDCDBInstanceResponse.new
|
1176
|
+
model.deserialize(response['Response'])
|
1177
|
+
model
|
1178
|
+
else
|
1179
|
+
code = response['Response']['Error']['Code']
|
1180
|
+
message = response['Response']['Error']['Message']
|
1181
|
+
reqid = response['Response']['RequestId']
|
1182
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1183
|
+
end
|
1184
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1185
|
+
raise e
|
1186
|
+
rescue StandardError => e
|
1187
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1188
|
+
end
|
1189
|
+
|
1166
1190
|
# 本接口(IsolateDedicatedDBInstance)用于隔离独享云数据库实例。
|
1167
1191
|
|
1168
1192
|
# @param request: Request instance for IsolateDedicatedDBInstance.
|
data/lib/v20180411/models.rb
CHANGED
@@ -4001,6 +4001,46 @@ module TencentCloud
|
|
4001
4001
|
end
|
4002
4002
|
end
|
4003
4003
|
|
4004
|
+
# IsolateDCDBInstance请求参数结构体
|
4005
|
+
class IsolateDCDBInstanceRequest < TencentCloud::Common::AbstractModel
|
4006
|
+
# @param InstanceIds: 实例 ID,格式如:tdsqlshard-avw0207d,与云数据库控制台页面中显示的实例 ID 相同,可使用 查询实例列表 接口获取,其值为输出参数中字段 InstanceId 的值。
|
4007
|
+
# @type InstanceIds: Array
|
4008
|
+
|
4009
|
+
attr_accessor :InstanceIds
|
4010
|
+
|
4011
|
+
def initialize(instanceids=nil)
|
4012
|
+
@InstanceIds = instanceids
|
4013
|
+
end
|
4014
|
+
|
4015
|
+
def deserialize(params)
|
4016
|
+
@InstanceIds = params['InstanceIds']
|
4017
|
+
end
|
4018
|
+
end
|
4019
|
+
|
4020
|
+
# IsolateDCDBInstance返回参数结构体
|
4021
|
+
class IsolateDCDBInstanceResponse < TencentCloud::Common::AbstractModel
|
4022
|
+
# @param SuccessInstanceIds: 隔离成功实例ID列表。
|
4023
|
+
# @type SuccessInstanceIds: Array
|
4024
|
+
# @param FailedInstanceIds: 隔离失败实例ID列表。
|
4025
|
+
# @type FailedInstanceIds: Array
|
4026
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4027
|
+
# @type RequestId: String
|
4028
|
+
|
4029
|
+
attr_accessor :SuccessInstanceIds, :FailedInstanceIds, :RequestId
|
4030
|
+
|
4031
|
+
def initialize(successinstanceids=nil, failedinstanceids=nil, requestid=nil)
|
4032
|
+
@SuccessInstanceIds = successinstanceids
|
4033
|
+
@FailedInstanceIds = failedinstanceids
|
4034
|
+
@RequestId = requestid
|
4035
|
+
end
|
4036
|
+
|
4037
|
+
def deserialize(params)
|
4038
|
+
@SuccessInstanceIds = params['SuccessInstanceIds']
|
4039
|
+
@FailedInstanceIds = params['FailedInstanceIds']
|
4040
|
+
@RequestId = params['RequestId']
|
4041
|
+
end
|
4042
|
+
end
|
4043
|
+
|
4004
4044
|
# IsolateDedicatedDBInstance请求参数结构体
|
4005
4045
|
class IsolateDedicatedDBInstanceRequest < TencentCloud::Common::AbstractModel
|
4006
4046
|
# @param InstanceId: 实例 Id,形如:dcdbt-ow728lmc。
|
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: 3.0.
|
4
|
+
version: 3.0.587
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|