Sha256: 56b8dd9ae8ae86f3f0b01440b1c7c5f3f9e00340445654762c9344d33fc9afe6

Contents?: true

Size: 922 Bytes

Versions: 9

Compression:

Stored size: 922 Bytes

Contents

module Fog
  module Compute
    class AWS
      class Real

        require 'fog/aws/parsers/compute/describe_instance_status'

        def describe_instance_status(filters = {})
          raise ArgumentError.new("Filters must be a hash, but is a #{filters.class}.") unless filters.is_a?(Hash)

          params = Fog::AWS.indexed_filters(filters)
          request({
            'Action'    => 'DescribeInstanceStatus',
            :idempotent => true,
            :parser     => Fog::Parsers::Compute::AWS::DescribeInstanceStatus.new
          }.merge!(params))
        end
      end

      class Mock
        def describe_instance_status(filters = {})
          response = Excon::Response.new
          response.status = 200

          response.body = {
            'instanceStatusSet' => [],
            'requestId' => Fog::AWS::Mock.request_id
          }

          response

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_instance_status.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/compute/describe_instance_status.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_instance_status.rb
fog-1.3.1 lib/fog/aws/requests/compute/describe_instance_status.rb
fog-1.3.0 lib/fog/aws/requests/compute/describe_instance_status.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/describe_instance_status.rb
fog-1.2.0 lib/fog/aws/requests/compute/describe_instance_status.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/compute/describe_instance_status.rb
fog-1.1.2 lib/fog/aws/requests/compute/describe_instance_status.rb