tencentcloud-sdk-cdb 3.0.508 → 3.0.510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +34 -0
- data/lib/v20170320/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: 73ce4717228225dfeaed882b6d5465bb3db0a5ac
|
4
|
+
data.tar.gz: 2a6bfba6e0bd6bbdcfcfc402157fb1645a62e14f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4285551bd5517cca5b5d96891c7cd98d3c6f97812f7d125756703444f7f913d1968a6c9d0ca74108483ef4f184ce1637c674db9534c9baf4672a4ba1afcdac61
|
7
|
+
data.tar.gz: b245a9cd360d312e57d145032c363da225a65e4293b8fe0a35633a0748360d482f4677d5117595db9cc3af872ac1b87a009c683c3368cc7d637af5e585f7491d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.510
|
data/lib/v20170320/client.rb
CHANGED
@@ -2847,6 +2847,40 @@ module TencentCloud
|
|
2847
2847
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2848
2848
|
end
|
2849
2849
|
|
2850
|
+
# 本接口(OpenDBInstanceEncryption)用于启用实例数据存储加密功能,支持用户指定自定义密钥。
|
2851
|
+
|
2852
|
+
# 注意,启用实例数据存储加密之前,需要进行以下操作:
|
2853
|
+
|
2854
|
+
# 1、进行 [实例初始化](https://cloud.tencent.com/document/api/236/15873) 操作;
|
2855
|
+
|
2856
|
+
# 2、开启 [KMS服务](https://console.cloud.tencent.com/kms2);
|
2857
|
+
|
2858
|
+
# 3、对云数据库(MySQL)[授予访问KMS密钥的权限](https://console.cloud.tencent.com/cam/role),角色名为MySQL_QCSRole,预设策略名为QcloudAccessForMySQLRole;
|
2859
|
+
|
2860
|
+
# 该 API 耗时可能到10s,客户端可能超时,如果调用 API 返回 InternalError ,请您调用DescribeDBInstanceInfo 确认后端加密是否开通成功。
|
2861
|
+
|
2862
|
+
# @param request: Request instance for OpenDBInstanceEncryption.
|
2863
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::OpenDBInstanceEncryptionRequest`
|
2864
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::OpenDBInstanceEncryptionResponse`
|
2865
|
+
def OpenDBInstanceEncryption(request)
|
2866
|
+
body = send_request('OpenDBInstanceEncryption', request.serialize)
|
2867
|
+
response = JSON.parse(body)
|
2868
|
+
if response['Response'].key?('Error') == false
|
2869
|
+
model = OpenDBInstanceEncryptionResponse.new
|
2870
|
+
model.deserialize(response['Response'])
|
2871
|
+
model
|
2872
|
+
else
|
2873
|
+
code = response['Response']['Error']['Code']
|
2874
|
+
message = response['Response']['Error']['Message']
|
2875
|
+
reqid = response['Response']['RequestId']
|
2876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2877
|
+
end
|
2878
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2879
|
+
raise e
|
2880
|
+
rescue StandardError => e
|
2881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2882
|
+
end
|
2883
|
+
|
2850
2884
|
# 本接口(OpenDBInstanceGTID)用于开启云数据库实例的 GTID,只支持版本为 5.6 以及以上的实例。
|
2851
2885
|
|
2852
2886
|
# @param request: Request instance for OpenDBInstanceGTID.
|
data/lib/v20170320/models.rb
CHANGED
@@ -8787,6 +8787,46 @@ module TencentCloud
|
|
8787
8787
|
end
|
8788
8788
|
end
|
8789
8789
|
|
8790
|
+
# OpenDBInstanceEncryption请求参数结构体
|
8791
|
+
class OpenDBInstanceEncryptionRequest < TencentCloud::Common::AbstractModel
|
8792
|
+
# @param InstanceId: 云数据库实例 ID。
|
8793
|
+
# @type InstanceId: String
|
8794
|
+
# @param KeyId: 用户自定义密钥ID,CMK唯一标识符。该值为空时,将使用腾讯云自动生成的密钥KMS-CDB。
|
8795
|
+
# @type KeyId: String
|
8796
|
+
# @param KeyRegion: 用户自定义密钥的存储地域。如:ap-guangzhou 。KeyId不为空时,该参数必填。
|
8797
|
+
# @type KeyRegion: String
|
8798
|
+
|
8799
|
+
attr_accessor :InstanceId, :KeyId, :KeyRegion
|
8800
|
+
|
8801
|
+
def initialize(instanceid=nil, keyid=nil, keyregion=nil)
|
8802
|
+
@InstanceId = instanceid
|
8803
|
+
@KeyId = keyid
|
8804
|
+
@KeyRegion = keyregion
|
8805
|
+
end
|
8806
|
+
|
8807
|
+
def deserialize(params)
|
8808
|
+
@InstanceId = params['InstanceId']
|
8809
|
+
@KeyId = params['KeyId']
|
8810
|
+
@KeyRegion = params['KeyRegion']
|
8811
|
+
end
|
8812
|
+
end
|
8813
|
+
|
8814
|
+
# OpenDBInstanceEncryption返回参数结构体
|
8815
|
+
class OpenDBInstanceEncryptionResponse < TencentCloud::Common::AbstractModel
|
8816
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8817
|
+
# @type RequestId: String
|
8818
|
+
|
8819
|
+
attr_accessor :RequestId
|
8820
|
+
|
8821
|
+
def initialize(requestid=nil)
|
8822
|
+
@RequestId = requestid
|
8823
|
+
end
|
8824
|
+
|
8825
|
+
def deserialize(params)
|
8826
|
+
@RequestId = params['RequestId']
|
8827
|
+
end
|
8828
|
+
end
|
8829
|
+
|
8790
8830
|
# OpenDBInstanceGTID请求参数结构体
|
8791
8831
|
class OpenDBInstanceGTIDRequest < TencentCloud::Common::AbstractModel
|
8792
8832
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 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.510
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|