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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f164184c5f693d657a8753ca0e60eb947c755ab
4
- data.tar.gz: df746eb358098c3f6ecf26204691d1cb27708f57
3
+ metadata.gz: 09084f0732d78df76d6bb42ad6f68e6c2c57f943
4
+ data.tar.gz: 5d2064b5b6513c4fd2fb4ae64a5402b10e9b38e6
5
5
  SHA512:
6
- metadata.gz: d36576df46ded6aceb6397319d269faf91ed93863dec2ab38632b1b27cf49455021cbd174bba443c576bcbac0ad04812f3c34a77fb45b9137531f3f102714fd1
7
- data.tar.gz: 4d1f5ed62b1c4dbb5dc06321de7131a500225c4fb2394b429baea46e6072e82cefa22ba8e7410148cc1918fb617d87b759e1de4ae4d311c092944f4e96316a5e
6
+ metadata.gz: 59fb339f34cac21e66be47743d5708d7c74b1d5ed73bc30c577fb18b265ab14e1fa6cf4e5da013a98a4d81ab901bad2562c98eeb7a2d9a6ba1fd3e599c937899
7
+ data.tar.gz: 3d172696691f65e8bf3ab7f92c72383b110d5d1d3df969a2d98819609b00211d3992e26fc4dad60a405b2aad410f2fba13ae6ede2adb04138d4cb03b732cfa6c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.963
1
+ 3.0.964
@@ -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.
@@ -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 相同。
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.963
4
+ version: 3.0.964
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud