class Fog::Proxmox::Identity::User

class User model

Public Instance Methods

change_password() click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 53
def change_password
  requires :userid, :password
  service.change_password(userid, password)
end
destroy() click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 41
def destroy
  requires :userid
  service.delete_user(userid)
  true
end
save(options = {}) click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 36
def save(options = {})
  service.create_user(attributes.merge(options))
  reload
end
update() click to toggle source
# File lib/fog/identity/proxmox/models/user.rb, line 47
def update
  requires :userid
  service.update_user(userid, attributes.reject { |attribute| [:userid].include? attribute })
  reload
end