class Fog::Proxmox::Identity::Permissions

class Permissions authentication

Public Instance Methods

all() click to toggle source
# File lib/fog/proxmox/identity/models/permissions.rb, line 29
def all
  load service.list_permissions
end
destroy(permission_hash) click to toggle source
# File lib/fog/proxmox/identity/models/permissions.rb, line 39
def destroy(permission_hash)
  permission = new(permission_hash)
  permission.destroy
end
get(type, path, roleid, ugid) click to toggle source
# File lib/fog/proxmox/identity/models/permissions.rb, line 33
def get(type, path, roleid, ugid)
  all.find do |permission|
    permission.type == type && permission.path == path && permission.roleid == roleid && permission.ugid == ugid
  end
end