Sha256: a1121d23e514dd53a95b6c7ea33ccb682dabb90931428560b11b2daa4c4f8271

Contents?: true

Size: 1.24 KB

Versions: 47

Compression:

Stored size: 1.24 KB

Contents

module Fog
  module AWS
    class DataPipeline
      class Real
        # Queries a pipeline for the names of objects that match a specified set of conditions.
        # http://docs.aws.amazon.com/datapipeline/latest/APIReference/API_QueryObjects.html
        # ==== Parameters
        # * PipelineId <~String> - The ID of the pipeline
        # * Sphere <~String> - Specifies whether the query applies to components or instances.
        #                      Allowable values: COMPONENT, INSTANCE, ATTEMPT.
        # * Marker <~String> - The starting point for the results to be returned.
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def query_objects(id, sphere, options={})
          params = {
            'pipelineId' => id,
            'sphere' => sphere,
          }
          params['marker'] = options[:marker] if options[:marker]

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

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

      class Mock
        def query_objects(id, sphere, options={})
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 5 rubygems

Version Path
fog-aws-0.13.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.12.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.11.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.10.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.9.4 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.9.3 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.9.2 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.9.1 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.9.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.8.1 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.8.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.7.6 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.7.5 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.7.4 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.7.3 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.7.2 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.6.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.5.0 lib/fog/aws/requests/data_pipeline/query_objects.rb
fog-aws-0.4.1 lib/fog/aws/requests/data_pipeline/query_objects.rb