tencentcloud-sdk-postgres 1.0.302 → 1.0.303

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: 624310db9f53aa4fbb1ac1d3ef536a0a067a733e
4
- data.tar.gz: 617151eec3d4067c23196cb6b3d9d98c7eb9a2b9
3
+ metadata.gz: c802b6b8a0ed8f26cde279d9d1b646737e24cc95
4
+ data.tar.gz: ef4fad261f98df499d909fb49afb5be379d9267e
5
5
  SHA512:
6
- metadata.gz: ad79f2b5a066bab7e0248eaa9a172631dbc40598fdfe9517f42459f039625d00cfeb944b4c3592dd55728bda1c3d0ddfdea874bc65dc1c83930bedbbca23e6f5
7
- data.tar.gz: c01be89016fe52ec38dc8f8775ba604848e473ebf81e196c331a4a2e35de9ad3642881830b4418edb94112d6b62460903748618d725c39dc3725d24439c22423
6
+ metadata.gz: a9e5ddfe5b6be62368564490ecdcb1982d3e8378ac4ff26357169cf31f132be75026eb01ba6bc03e846bb54aa6f98910c032e1368f4fb17efc1c33042d686a44
7
+ data.tar.gz: 8f92c099955f4c2740cb925e7e9d3598a9fd9ae349d9e76fa982b85cb1dc066beb9151b83324a071fd971cf8572b93a89c07852435b34875cc4a937a17fc59c9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.302
1
+ 1.0.303
@@ -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.
@@ -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.302
4
+ version: 1.0.303
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-20 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common