Sha256: d7cb269120c57c9e3f2d14c7c29a93e56f4f322b33a868a160d2f58f114c4b8f

Contents?: true

Size: 1.23 KB

Versions: 12

Compression:

Stored size: 1.23 KB

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Create a new image for the account by registering it against an image stored within the Brightbox cloud image library.
        #
        # The disk image must be in place before you can attempt to create a reference in the API.
        #
        # @param [Hash] options
        # @option options [String] :source Filename of the image file uploaded to /incoming via FTP
        # @option options [String] :arch OS architecture this image is built for
        # @option options [String] :name Name for this image. If no name is specified, a name will be autogenerated based on the source filename & current time. Can be modified later.
        # @option options [String] :username Username for the image
        # @option options [Boolean] :public
        # @option options [Boolean] :compatibility_mode
        # @option options [String] :description
        #
        # @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
        #
        # @see https://api.gb1.brightbox.com/1.0/#image_create_image
        #
        def create_image(options)
          wrapped_request("post", "/1.0/images", [201], options)
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
hpfog-0.0.20 lib/fog/brightbox/requests/compute/create_image.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/brightbox/requests/compute/create_image.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/brightbox/requests/compute/create_image.rb
fog-1.11.1 lib/fog/brightbox/requests/compute/create_image.rb
fog-1.11.0 lib/fog/brightbox/requests/compute/create_image.rb
fog-1.10.1 lib/fog/brightbox/requests/compute/create_image.rb
fog-test-me-1.10.0 lib/fog/brightbox/requests/compute/create_image.rb
fog-1.10.0 lib/fog/brightbox/requests/compute/create_image.rb
fog-1.9.0 lib/fog/brightbox/requests/compute/create_image.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/brightbox/requests/compute/create_image.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/brightbox/requests/compute/create_image.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/brightbox/requests/compute/create_image.rb