tencentcloud-sdk-postgres 1.0.301 → 1.0.304
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/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +86 -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: 7a754c377174c334298e277ecd6ba0c402133631
|
4
|
+
data.tar.gz: 58c585cc402d0c31f7ef81dc43f333456b9dd3ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd00c2e8b1d396f73cde4ccbdfb0289cb419f50505c921ad7c59a4910338a71e0e2c10e4feca211b7de67ce8538881aa3a0e009cd111036c5e8028dd7e4f7aa
|
7
|
+
data.tar.gz: 46d940bc93917343522543d598318b113776b0d32e7137558cc44dea652933b7f375bdbab5aa928862d49c58156b08d5053c21eb01b9ffbfa3ee4ce6d7e68883
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.304
|
data/lib/v20170312/client.rb
CHANGED
@@ -677,6 +677,30 @@ module TencentCloud
|
|
677
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
678
|
end
|
679
679
|
|
680
|
+
# 获取实例的密钥信息列表。
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeEncryptionKeys.
|
683
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DescribeEncryptionKeysRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeEncryptionKeysResponse`
|
685
|
+
def DescribeEncryptionKeys(request)
|
686
|
+
body = send_request('DescribeEncryptionKeys', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeEncryptionKeysResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
680
704
|
# 本接口(DescribeOrders)用于获取订单信息。
|
681
705
|
|
682
706
|
# @param request: Request instance for DescribeOrders.
|
data/lib/v20170312/models.rb
CHANGED
@@ -2216,6 +2216,50 @@ module TencentCloud
|
|
2216
2216
|
end
|
2217
2217
|
end
|
2218
2218
|
|
2219
|
+
# DescribeEncryptionKeys请求参数结构体
|
2220
|
+
class DescribeEncryptionKeysRequest < TencentCloud::Common::AbstractModel
|
2221
|
+
# @param DBInstanceId: 实例ID。
|
2222
|
+
# @type DBInstanceId: String
|
2223
|
+
|
2224
|
+
attr_accessor :DBInstanceId
|
2225
|
+
|
2226
|
+
def initialize(dbinstanceid=nil)
|
2227
|
+
@DBInstanceId = dbinstanceid
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
def deserialize(params)
|
2231
|
+
@DBInstanceId = params['DBInstanceId']
|
2232
|
+
end
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
# DescribeEncryptionKeys返回参数结构体
|
2236
|
+
class DescribeEncryptionKeysResponse < TencentCloud::Common::AbstractModel
|
2237
|
+
# @param EncryptionKeys: 实例密钥信息列表。
|
2238
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2239
|
+
# @type EncryptionKeys: Array
|
2240
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2241
|
+
# @type RequestId: String
|
2242
|
+
|
2243
|
+
attr_accessor :EncryptionKeys, :RequestId
|
2244
|
+
|
2245
|
+
def initialize(encryptionkeys=nil, requestid=nil)
|
2246
|
+
@EncryptionKeys = encryptionkeys
|
2247
|
+
@RequestId = requestid
|
2248
|
+
end
|
2249
|
+
|
2250
|
+
def deserialize(params)
|
2251
|
+
unless params['EncryptionKeys'].nil?
|
2252
|
+
@EncryptionKeys = []
|
2253
|
+
params['EncryptionKeys'].each do |i|
|
2254
|
+
encryptionkey_tmp = EncryptionKey.new
|
2255
|
+
encryptionkey_tmp.deserialize(i)
|
2256
|
+
@EncryptionKeys << encryptionkey_tmp
|
2257
|
+
end
|
2258
|
+
end
|
2259
|
+
@RequestId = params['RequestId']
|
2260
|
+
end
|
2261
|
+
end
|
2262
|
+
|
2219
2263
|
# DescribeOrders请求参数结构体
|
2220
2264
|
class DescribeOrdersRequest < TencentCloud::Common::AbstractModel
|
2221
2265
|
# @param DealNames: 订单名集合
|
@@ -2861,6 +2905,48 @@ module TencentCloud
|
|
2861
2905
|
end
|
2862
2906
|
end
|
2863
2907
|
|
2908
|
+
# KMS密钥信息
|
2909
|
+
class EncryptionKey < TencentCloud::Common::AbstractModel
|
2910
|
+
# @param KeyId: KMS实例加密的KeyId。
|
2911
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2912
|
+
# @type KeyId: String
|
2913
|
+
# @param KeyAlias: KMS实例加密Key的别名。
|
2914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2915
|
+
# @type KeyAlias: String
|
2916
|
+
# @param DEKCipherTextBlob: 实例加密密钥DEK的密文。
|
2917
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2918
|
+
# @type DEKCipherTextBlob: String
|
2919
|
+
# @param IsEnabled: 密钥是否启用,1-启用, 0-未启用。
|
2920
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2921
|
+
# @type IsEnabled: Integer
|
2922
|
+
# @param KeyRegion: KMS密钥所在地域。
|
2923
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2924
|
+
# @type KeyRegion: String
|
2925
|
+
# @param CreateTime: DEK密钥创建时间。
|
2926
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2927
|
+
# @type CreateTime: String
|
2928
|
+
|
2929
|
+
attr_accessor :KeyId, :KeyAlias, :DEKCipherTextBlob, :IsEnabled, :KeyRegion, :CreateTime
|
2930
|
+
|
2931
|
+
def initialize(keyid=nil, keyalias=nil, dekciphertextblob=nil, isenabled=nil, keyregion=nil, createtime=nil)
|
2932
|
+
@KeyId = keyid
|
2933
|
+
@KeyAlias = keyalias
|
2934
|
+
@DEKCipherTextBlob = dekciphertextblob
|
2935
|
+
@IsEnabled = isenabled
|
2936
|
+
@KeyRegion = keyregion
|
2937
|
+
@CreateTime = createtime
|
2938
|
+
end
|
2939
|
+
|
2940
|
+
def deserialize(params)
|
2941
|
+
@KeyId = params['KeyId']
|
2942
|
+
@KeyAlias = params['KeyAlias']
|
2943
|
+
@DEKCipherTextBlob = params['DEKCipherTextBlob']
|
2944
|
+
@IsEnabled = params['IsEnabled']
|
2945
|
+
@KeyRegion = params['KeyRegion']
|
2946
|
+
@CreateTime = params['CreateTime']
|
2947
|
+
end
|
2948
|
+
end
|
2949
|
+
|
2864
2950
|
# 错误日志详情
|
2865
2951
|
class ErrLogDetail < TencentCloud::Common::AbstractModel
|
2866
2952
|
# @param UserName: 用户名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.304
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|