Sha256: 8f5ffaa07733b38d26312b41c21c1e46d73ddb9aba69668b4434a2c667d29f2f

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # @param [String] identifier Unique reference to identify the resource
        #
        # @return [Hash] if successful Hash version of JSON object
        #
        # @see https://api.gb1.brightbox.com/1.0/#server_lock_resource_server
        #
        def lock_resource_server(identifier)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("put", "/1.0/servers/#{identifier}/lock_resource", [200])
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-brightbox-0.6.1 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.6.0 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.5.1 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.5.0 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.4.1 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.4.0 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.3.0 lib/fog/brightbox/requests/compute/lock_resource_server.rb
fog-brightbox-0.2.0 lib/fog/brightbox/requests/compute/lock_resource_server.rb