class Fog::Identity::Proxmox::Roles
class Roles model collection authentication
Public Instance Methods
all(_options = {})
click to toggle source
# File lib/fog/identity/proxmox/models/roles.rb, line 29 def all(_options = {}) # special attibute is volatile in role load_response(service.list_roles, 'roles', ['special']) end
destroy(id)
click to toggle source
# File lib/fog/identity/proxmox/models/roles.rb, line 43 def destroy(id) role = find_by_id(id) role.destroy end
find_by_id(id)
click to toggle source
# File lib/fog/identity/proxmox/models/roles.rb, line 34 def find_by_id(id) cached_role = find { |role| role.roleid == id } return cached_role if cached_role role_hash = service.get_role(id) Fog::Identity::Proxmox::Role.new( role_hash.merge(service: service) ) end