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