Sha256: e8dad1b99601e7124b0f628fb5cd8a3522d6f9b6b1bf45ba7591cbab345278cd

Contents?: true

Size: 916 Bytes

Versions: 37

Compression:

Stored size: 916 Bytes

Contents

module Fog
  module AWS
    class Compute
      class Real

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

        # Start 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 start_instances(instance_id)
          params = AWS.indexed_param('InstanceId', instance_id)
          request({
            'Action'    => 'StartInstances',
            :idempotent => true,
            :parser     => Fog::Parsers::AWS::Compute::StartStopInstances.new
          }.merge!(params))
        end

      end

      class Mock

        def start_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.3.16 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.15 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.14 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.13 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.12 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.11 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.10 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.9 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.8 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.7 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.6 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.5 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.4 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.3 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.2 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.1 lib/fog/aws/requests/compute/start_instances.rb
fog-0.3.0 lib/fog/aws/requests/compute/start_instances.rb