class Fog::Identity::Proxmox::Role
class Role model authentication
Public Instance Methods
create(new_attributes = {})
click to toggle source
# File lib/fog/identity/proxmox/models/role.rb, line 42 def create(new_attributes = {}) service.create_role(attributes.merge(new_attributes)) end
destroy()
click to toggle source
# File lib/fog/identity/proxmox/models/role.rb, line 46 def destroy requires :roleid service.delete_role(roleid) true end
to_s()
click to toggle source
# File lib/fog/identity/proxmox/models/role.rb, line 38 def to_s roleid end
update()
click to toggle source
# File lib/fog/identity/proxmox/models/role.rb, line 52 def update requires :roleid attr = attributes.reject { |key, _value| key == :roleid } service.update_role(roleid, attr) end