Sha256: cff35b73f812f075eaf1ee8c5ac0e2946cb6cf4e1b4b329c16bff2b1ea1910f0

Contents?: true

Size: 545 Bytes

Versions: 8

Compression:

Stored size: 545 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/#image_lock_resource_image
        #
        def lock_resource_image(identifier)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("put", "/1.0/images/#{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_image.rb
fog-brightbox-0.6.0 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.5.1 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.5.0 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.4.1 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.4.0 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.3.0 lib/fog/brightbox/requests/compute/lock_resource_image.rb
fog-brightbox-0.2.0 lib/fog/brightbox/requests/compute/lock_resource_image.rb