tencentcloud-sdk-cdb 3.0.963 → 3.0.964
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/v20170320/client.rb +24 -0
- data/lib/v20170320/models.rb +36 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09084f0732d78df76d6bb42ad6f68e6c2c57f943
|
4
|
+
data.tar.gz: 5d2064b5b6513c4fd2fb4ae64a5402b10e9b38e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59fb339f34cac21e66be47743d5708d7c74b1d5ed73bc30c577fb18b265ab14e1fa6cf4e5da013a98a4d81ab901bad2562c98eeb7a2d9a6ba1fd3e599c937899
|
7
|
+
data.tar.gz: 3d172696691f65e8bf3ab7f92c72383b110d5d1d3df969a2d98819609b00211d3992e26fc4dad60a405b2aad410f2fba13ae6ede2adb04138d4cb03b732cfa6c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.964
|
data/lib/v20170320/client.rb
CHANGED
@@ -3397,6 +3397,30 @@ module TencentCloud
|
|
3397
3397
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3398
3398
|
end
|
3399
3399
|
|
3400
|
+
# 该接口(ModifyProtectMode)用于修改实例的同步方式。
|
3401
|
+
|
3402
|
+
# @param request: Request instance for ModifyProtectMode.
|
3403
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::ModifyProtectModeRequest`
|
3404
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::ModifyProtectModeResponse`
|
3405
|
+
def ModifyProtectMode(request)
|
3406
|
+
body = send_request('ModifyProtectMode', request.serialize)
|
3407
|
+
response = JSON.parse(body)
|
3408
|
+
if response['Response'].key?('Error') == false
|
3409
|
+
model = ModifyProtectModeResponse.new
|
3410
|
+
model.deserialize(response['Response'])
|
3411
|
+
model
|
3412
|
+
else
|
3413
|
+
code = response['Response']['Error']['Code']
|
3414
|
+
message = response['Response']['Error']['Message']
|
3415
|
+
reqid = response['Response']['RequestId']
|
3416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3417
|
+
end
|
3418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3419
|
+
raise e
|
3420
|
+
rescue StandardError => e
|
3421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3422
|
+
end
|
3423
|
+
|
3400
3424
|
# 本接口(ModifyRemoteBackupConfig)用于修改数据库异地备份配置信息。
|
3401
3425
|
|
3402
3426
|
# @param request: Request instance for ModifyRemoteBackupConfig.
|
data/lib/v20170320/models.rb
CHANGED
@@ -11155,6 +11155,42 @@ module TencentCloud
|
|
11155
11155
|
end
|
11156
11156
|
end
|
11157
11157
|
|
11158
|
+
# ModifyProtectMode请求参数结构体
|
11159
|
+
class ModifyProtectModeRequest < TencentCloud::Common::AbstractModel
|
11160
|
+
# @param ProtectMode: 无
|
11161
|
+
# @type ProtectMode: Integer
|
11162
|
+
# @param InstanceId: 实例ID。
|
11163
|
+
# @type InstanceId: String
|
11164
|
+
|
11165
|
+
attr_accessor :ProtectMode, :InstanceId
|
11166
|
+
|
11167
|
+
def initialize(protectmode=nil, instanceid=nil)
|
11168
|
+
@ProtectMode = protectmode
|
11169
|
+
@InstanceId = instanceid
|
11170
|
+
end
|
11171
|
+
|
11172
|
+
def deserialize(params)
|
11173
|
+
@ProtectMode = params['ProtectMode']
|
11174
|
+
@InstanceId = params['InstanceId']
|
11175
|
+
end
|
11176
|
+
end
|
11177
|
+
|
11178
|
+
# ModifyProtectMode返回参数结构体
|
11179
|
+
class ModifyProtectModeResponse < TencentCloud::Common::AbstractModel
|
11180
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11181
|
+
# @type RequestId: String
|
11182
|
+
|
11183
|
+
attr_accessor :RequestId
|
11184
|
+
|
11185
|
+
def initialize(requestid=nil)
|
11186
|
+
@RequestId = requestid
|
11187
|
+
end
|
11188
|
+
|
11189
|
+
def deserialize(params)
|
11190
|
+
@RequestId = params['RequestId']
|
11191
|
+
end
|
11192
|
+
end
|
11193
|
+
|
11158
11194
|
# ModifyRemoteBackupConfig请求参数结构体
|
11159
11195
|
class ModifyRemoteBackupConfigRequest < TencentCloud::Common::AbstractModel
|
11160
11196
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
|