Sha256: d3746d58408631dc9c099cb2927b1fd35624e93862ef4ecbd62e71165d78ae7b

Contents?: true

Size: 1.25 KB

Versions: 60

Compression:

Stored size: 1.25 KB

Contents

module Fog
  module AWS
    class Kinesis
      class Real
        # List availabe streams
        #
        # ==== Options
        # * ExclusiveStartStreamName<~String>: The name of the stream to start the list with.
        # * Limit<~Number>: The maximum number of streams to list.
        # ==== Returns
        # * response<~Excon::Response>:
        #
        # ==== See Also
        # https://docs.aws.amazon.com/kinesis/latest/APIReference/API_ListStreams.html
        #
        def list_streams(options={})
          response = request({
                               :idempotent    => true,
                               'X-Amz-Target' => "Kinesis_#{@version}.ListStreams",
                               :body          => {},
                             }.merge(options))
          response.body = Fog::JSON.decode(response.body) unless response.body.nil?
          response
        end
      end

      class Mock
        def list_streams(options={})
          response = Excon::Response.new
          response.status = 200
          response.body =           {
            "HasMoreStreams" => false,
            "StreamNames" => data[:kinesis_streams].map{ |stream| stream["StreamName"] }
          }
          response
        end
      end
    end
  end
end

Version data entries

60 entries across 58 versions & 3 rubygems

Version Path
fog-aws-3.22.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.21.1 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.21.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.20.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.19.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.18.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.17.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.16.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.15.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.14.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.13.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.12.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.11.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.10.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.9.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.8.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.7.0 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.6.7 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.6.6 lib/fog/aws/requests/kinesis/list_streams.rb
fog-aws-3.6.5 lib/fog/aws/requests/kinesis/list_streams.rb