class Fog::Proxmox::Identity::Role
class Role
model authentication
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/proxmox/identity/models/role.rb, line 34 def destroy requires :roleid service.delete_role(roleid) true end
save(options = {})
click to toggle source
# File lib/fog/proxmox/identity/models/role.rb, line 29 def save(options = {}) service.create_role(attributes.merge(options)) reload end
update()
click to toggle source
# File lib/fog/proxmox/identity/models/role.rb, line 40 def update requires :roleid service.update_role(roleid, attributes.reject { |attribute| [:roleid, :special].include? attribute }) reload end