Sha256: 3d45fb604fdf04fce0fe5b53cd98905816032e0452c92cd0ff308aeb599952cf

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

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