Sha256: 16d739028c8f7b82726ddb4d2decb6410f0c6657777043853d0ddf760dbd3022

Contents?: true

Size: 815 Bytes

Versions: 16

Compression:

Stored size: 815 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class User < Fog::Brightbox::Model
        identity :id
        attribute :resource_type
        attribute :url

        attribute :name
        attribute :email_address
        attribute :ssh_key

        # Boolean flags
        attribute :email_verified
        attribute :messaging_pref

        # Links - to be replaced
        attribute :account_id, :aliases => "default_account", :squash => "id"
        attribute :accounts

        def save
          requires :identity

          options = {
            :email_address => email_address,
            :ssh_key => ssh_key,
            :name => name
          }

          data = service.update_user(identity, options)
          merge_attributes(data)
          true
        end
      end
    end
  end
end

Version data entries

16 entries across 14 versions & 3 rubygems

Version Path
fog-brightbox-1.0.0.rc1 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.16.1 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.16.0 lib/fog/brightbox/models/compute/user.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/models/compute/user.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/models/compute/user.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-brightbox-0.15.0/lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.15.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.14.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.13.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.12.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.11.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.10.1 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.10.0 lib/fog/brightbox/models/compute/user.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-brightbox-0.9.0/lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.9.0 lib/fog/brightbox/models/compute/user.rb
fog-brightbox-0.8.0 lib/fog/brightbox/models/compute/user.rb