lib/v20220331/client.rb in tencentcloud-sdk-ciam-1.0.344 vs lib/v20220331/client.rb in tencentcloud-sdk-ciam-1.0.345

- old
+ new

@@ -195,9 +195,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询日志信息 + + # @param request: Request instance for ListLogMessageByCondition. + # @type request: :class:`Tencentcloud::ciam::V20220331::ListLogMessageByConditionRequest` + # @rtype: :class:`Tencentcloud::ciam::V20220331::ListLogMessageByConditionResponse` + def ListLogMessageByCondition(request) + body = send_request('ListLogMessageByCondition', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ListLogMessageByConditionResponse.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 + # 查询用户列表 # @param request: Request instance for ListUser. # @type request: :class:`Tencentcloud::ciam::V20220331::ListUserRequest` # @rtype: :class:`Tencentcloud::ciam::V20220331::ListUserResponse` \ No newline at end of file