Sha256: 573d6f4221b7306d90d4d864cee4c7b37cf4225fa0dfb9d73ed4457874c26f13

Contents?: true

Size: 912 Bytes

Versions: 37

Compression:

Stored size: 912 Bytes

Contents

module Fog
  module AWS
    class Compute
      class Real

        require 'fog/aws/parsers/compute/start_stop_instances'

        # Stop specified instance
        #
        # ==== Parameters
        # * instance_id<~Array> - Id of instance to start
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> - Id of request
        #     * TODO: fill in the blanks
        def stop_instances(instance_id)
          params = AWS.indexed_param('InstanceId', instance_id)
          request({
            'Action'    => 'StopInstances',
            :idempotent => true,
            :parser     => Fog::Parsers::AWS::Compute::StartStopInstances.new
          }.merge!(params))
        end

      end

      class Mock

        def stop_instances(instance_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
fog-0.4.0 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.34 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.33 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.32 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.31 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.30 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.29 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.28 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.27 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.26 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.25 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.24 lib/fog/aws/requests/compute/stop_instances.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.23 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.22 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.21 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.20 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.19 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.18 lib/fog/aws/requests/compute/stop_instances.rb
fog-0.3.17 lib/fog/aws/requests/compute/stop_instances.rb