Sha256: 058f96ab31c9375b1181428f73aff4a9a48c47d6b8254fef9c79cc7a5658689e
Contents?: true
Size: 920 Bytes
Versions: 14
Compression:
Stored size: 920 Bytes
Contents
module Fog module Brightbox class Compute class Real # Attach a detached server to a nominated server # # @param [String] identifier Unique reference to identify the resource # @param [Hash] options # @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded. # @option options [String] :server The identifier of the server # @option options [Boolean] :boot Set +true+ to attach as boot volume. Only when server is stopped # # @return [Hash] if successful Hash version of JSON object # @return [NilClass] if no options were passed # def attach_volume(identifier, options) return nil if identifier.nil? || identifier == "" wrapped_request("post", "/1.0/volumes/#{identifier}/attach", [202], options) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems