class Fog::Identity::Proxmox::Groups
class Groups authentication
Public Instance Methods
all(_options = {})
click to toggle source
# File lib/fog/identity/proxmox/models/groups.rb, line 29 def all(_options = {}) load_response(service.list_groups, 'groups') end
destroy(id)
click to toggle source
# File lib/fog/identity/proxmox/models/groups.rb, line 42 def destroy(id) group = find_by_id(id) group.destroy end
find_by_id(id)
click to toggle source
# File lib/fog/identity/proxmox/models/groups.rb, line 33 def find_by_id(id) cached_group = find { |group| group.groupid == id } return cached_group if cached_group group_hash = service.get_group(id) Fog::Identity::Proxmox::Group.new( group_hash.merge(service: service) ) end