Sha256: 86e6daa8a7bf9ca77a25335c4c1f6488eab48cea806ef50b8da5fb073964fbef

Contents?: true

Size: 898 Bytes

Versions: 10

Compression:

Stored size: 898 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Invites the given email address to collaborate with the specified account. Existing users
        # will be able to accept the collaboration whilst those without a Brightbox account will be
        # invited to create one.
        #
        # @param [Hash] options
        # @option options [String] :email Email address of user to invite
        # @option options [String] :role Role to grant to the user. Currently only `admin`
        #
        # @return [Hash] if successful Hash version of JSON object
        # @return [NilClass] if no options were passed
        #
        # @see https://api.gb1.brightbox.com/1.0/#collaboration_create_collaboration
        #
        def create_collaboration(options)
          wrapped_request("post", "/1.0/collaborations", [201], options)
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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