tencentcloud-sdk-cdb 3.0.507 → 3.0.508
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 +50 -0
- data/lib/v20170320/models.rb +72 -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: d6229f8284030be5f288f07c75ae8f102a7fe30b
|
4
|
+
data.tar.gz: 570603db5e9003c51d85e60d399d7665cb856687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4f32464479f65e7ecab8925cbf22c72377d34458e6dc8141715afc04a9d142b9ecfed28862155668d660d63b4a2b7ee14689d96d773a05ac1e09c30815dbbf
|
7
|
+
data.tar.gz: 221fe8d7df763819c733445088df382866e59229fd18571f73ccc8797cbacc4352c6aa7e9da9aa3387550d29d37e92dc656b49727af69c6de6389895f7a90092
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.508
|
data/lib/v20170320/client.rb
CHANGED
@@ -890,6 +890,30 @@ module TencentCloud
|
|
890
890
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
891
891
|
end
|
892
892
|
|
893
|
+
# 本接口(DescribeBackupEncryptionStatus)用于查询实例默认备份加密状态。
|
894
|
+
|
895
|
+
# @param request: Request instance for DescribeBackupEncryptionStatus.
|
896
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeBackupEncryptionStatusRequest`
|
897
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeBackupEncryptionStatusResponse`
|
898
|
+
def DescribeBackupEncryptionStatus(request)
|
899
|
+
body = send_request('DescribeBackupEncryptionStatus', request.serialize)
|
900
|
+
response = JSON.parse(body)
|
901
|
+
if response['Response'].key?('Error') == false
|
902
|
+
model = DescribeBackupEncryptionStatusResponse.new
|
903
|
+
model.deserialize(response['Response'])
|
904
|
+
model
|
905
|
+
else
|
906
|
+
code = response['Response']['Error']['Code']
|
907
|
+
message = response['Response']['Error']['Message']
|
908
|
+
reqid = response['Response']['RequestId']
|
909
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
910
|
+
end
|
911
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
912
|
+
raise e
|
913
|
+
rescue StandardError => e
|
914
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
915
|
+
end
|
916
|
+
|
893
917
|
# 本接口(DescribeBackupOverview)用于查询用户的备份概览。返回用户当前备份总个数、备份总的占用容量、赠送的免费容量、计费容量(容量单位为字节)。
|
894
918
|
|
895
919
|
# @param request: Request instance for DescribeBackupOverview.
|
@@ -2363,6 +2387,30 @@ module TencentCloud
|
|
2363
2387
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2364
2388
|
end
|
2365
2389
|
|
2390
|
+
# 本接口(ModifyBackupEncryptionStatus)用于设置实例备份文件是否加密。
|
2391
|
+
|
2392
|
+
# @param request: Request instance for ModifyBackupEncryptionStatus.
|
2393
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::ModifyBackupEncryptionStatusRequest`
|
2394
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::ModifyBackupEncryptionStatusResponse`
|
2395
|
+
def ModifyBackupEncryptionStatus(request)
|
2396
|
+
body = send_request('ModifyBackupEncryptionStatus', request.serialize)
|
2397
|
+
response = JSON.parse(body)
|
2398
|
+
if response['Response'].key?('Error') == false
|
2399
|
+
model = ModifyBackupEncryptionStatusResponse.new
|
2400
|
+
model.deserialize(response['Response'])
|
2401
|
+
model
|
2402
|
+
else
|
2403
|
+
code = response['Response']['Error']['Code']
|
2404
|
+
message = response['Response']['Error']['Message']
|
2405
|
+
reqid = response['Response']['RequestId']
|
2406
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2407
|
+
end
|
2408
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2409
|
+
raise e
|
2410
|
+
rescue StandardError => e
|
2411
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2412
|
+
end
|
2413
|
+
|
2366
2414
|
# 请求该接口配置数据库连接池;支持的连接池配置请求DescribeProxyConnectionPoolConf接口获取。
|
2367
2415
|
|
2368
2416
|
# @param request: Request instance for ModifyCDBProxyConnectionPool.
|
@@ -3213,6 +3261,8 @@ module TencentCloud
|
|
3213
3261
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3214
3262
|
end
|
3215
3263
|
|
3264
|
+
# 接口已经废弃,请使用AdjustCdbProxy进行数据库代理的配置
|
3265
|
+
|
3216
3266
|
# 调整数据库代理配置
|
3217
3267
|
|
3218
3268
|
# @param request: Request instance for UpgradeCDBProxy.
|
data/lib/v20170320/models.rb
CHANGED
@@ -3462,6 +3462,42 @@ module TencentCloud
|
|
3462
3462
|
end
|
3463
3463
|
end
|
3464
3464
|
|
3465
|
+
# DescribeBackupEncryptionStatus请求参数结构体
|
3466
|
+
class DescribeBackupEncryptionStatusRequest < TencentCloud::Common::AbstractModel
|
3467
|
+
# @param InstanceId: 实例ID,格式如:cdb-XXXX。与云数据库控制台页面中显示的实例 ID 相同。
|
3468
|
+
# @type InstanceId: String
|
3469
|
+
|
3470
|
+
attr_accessor :InstanceId
|
3471
|
+
|
3472
|
+
def initialize(instanceid=nil)
|
3473
|
+
@InstanceId = instanceid
|
3474
|
+
end
|
3475
|
+
|
3476
|
+
def deserialize(params)
|
3477
|
+
@InstanceId = params['InstanceId']
|
3478
|
+
end
|
3479
|
+
end
|
3480
|
+
|
3481
|
+
# DescribeBackupEncryptionStatus返回参数结构体
|
3482
|
+
class DescribeBackupEncryptionStatusResponse < TencentCloud::Common::AbstractModel
|
3483
|
+
# @param EncryptionStatus: 实例是否开启了物理备份加密。可能的值有 on, off 。
|
3484
|
+
# @type EncryptionStatus: String
|
3485
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3486
|
+
# @type RequestId: String
|
3487
|
+
|
3488
|
+
attr_accessor :EncryptionStatus, :RequestId
|
3489
|
+
|
3490
|
+
def initialize(encryptionstatus=nil, requestid=nil)
|
3491
|
+
@EncryptionStatus = encryptionstatus
|
3492
|
+
@RequestId = requestid
|
3493
|
+
end
|
3494
|
+
|
3495
|
+
def deserialize(params)
|
3496
|
+
@EncryptionStatus = params['EncryptionStatus']
|
3497
|
+
@RequestId = params['RequestId']
|
3498
|
+
end
|
3499
|
+
end
|
3500
|
+
|
3465
3501
|
# DescribeBackupOverview请求参数结构体
|
3466
3502
|
class DescribeBackupOverviewRequest < TencentCloud::Common::AbstractModel
|
3467
3503
|
# @param Product: 需要查询的云数据库产品类型,目前仅支持 "mysql"。
|
@@ -7869,6 +7905,42 @@ module TencentCloud
|
|
7869
7905
|
end
|
7870
7906
|
end
|
7871
7907
|
|
7908
|
+
# ModifyBackupEncryptionStatus请求参数结构体
|
7909
|
+
class ModifyBackupEncryptionStatusRequest < TencentCloud::Common::AbstractModel
|
7910
|
+
# @param InstanceId: 实例ID,格式如:cdb-XXXX。与云数据库控制台页面中显示的实例 ID 相同。
|
7911
|
+
# @type InstanceId: String
|
7912
|
+
# @param EncryptionStatus: 设置实例新增的自动物理备份文件默认加密状态。可选值为 on或者off。
|
7913
|
+
# @type EncryptionStatus: String
|
7914
|
+
|
7915
|
+
attr_accessor :InstanceId, :EncryptionStatus
|
7916
|
+
|
7917
|
+
def initialize(instanceid=nil, encryptionstatus=nil)
|
7918
|
+
@InstanceId = instanceid
|
7919
|
+
@EncryptionStatus = encryptionstatus
|
7920
|
+
end
|
7921
|
+
|
7922
|
+
def deserialize(params)
|
7923
|
+
@InstanceId = params['InstanceId']
|
7924
|
+
@EncryptionStatus = params['EncryptionStatus']
|
7925
|
+
end
|
7926
|
+
end
|
7927
|
+
|
7928
|
+
# ModifyBackupEncryptionStatus返回参数结构体
|
7929
|
+
class ModifyBackupEncryptionStatusResponse < TencentCloud::Common::AbstractModel
|
7930
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7931
|
+
# @type RequestId: String
|
7932
|
+
|
7933
|
+
attr_accessor :RequestId
|
7934
|
+
|
7935
|
+
def initialize(requestid=nil)
|
7936
|
+
@RequestId = requestid
|
7937
|
+
end
|
7938
|
+
|
7939
|
+
def deserialize(params)
|
7940
|
+
@RequestId = params['RequestId']
|
7941
|
+
end
|
7942
|
+
end
|
7943
|
+
|
7872
7944
|
# ModifyCDBProxyConnectionPool请求参数结构体
|
7873
7945
|
class ModifyCDBProxyConnectionPoolRequest < TencentCloud::Common::AbstractModel
|
7874
7946
|
# @param ProxyGroupId: 数据库代理ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.508
|
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-02-
|
11
|
+
date: 2023-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|