lib/v20190107/client.rb in tencentcloud-sdk-cynosdb-3.0.755 vs lib/v20190107/client.rb in tencentcloud-sdk-cynosdb-3.0.756

- old
+ new

@@ -723,9 +723,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 获取审计实例列表 + + # @param request: Request instance for DescribeAuditInstanceList. + # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditInstanceListRequest` + # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditInstanceListResponse` + def DescribeAuditInstanceList(request) + body = send_request('DescribeAuditInstanceList', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeAuditInstanceListResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 本接口(DescribeAuditLogFiles)用于查询云数据库实例的审计日志文件。 # @param request: Request instance for DescribeAuditLogFiles. # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogFilesRequest` # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditLogFilesResponse` \ No newline at end of file