Sha256: 40e781c28ffeec856356af00a8d653a3dd7f7ac7f8aaa2e7f56e24c9908013d0

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

module Fog
  module AWS
    class DataPipeline

      class Real

        # List all pipelines
        # http://docs.aws.amazon.com/datapipeline/latest/APIReference/API_ListPipelines.html
        # ==== Parameters
        # * Marker <~String> - The starting point for the results to be returned.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def list_pipelines(options={})
          params = {}
          params['Marker'] = options[:marker] if options[:marker]

          response = request({
            :body => Fog::JSON.encode(params),
            :headers => { 'X-Amz-Target' => 'DataPipeline.ListPipelines' },
          })

          Fog::JSON.decode(response.body)
        end

      end

      class Mock
        def list_pipelines(options={})
          Fog::Mock.not_implemented
        end
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/data_pipeline/list_pipelines.rb
fog-1.21.0 lib/fog/aws/requests/data_pipeline/list_pipelines.rb