Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::HP::SecurityGroups

Public Instance Methods

all() click to toggle source
# File lib/fog/hp/models/compute/security_groups.rb, line 12
def all
  items = service.list_security_groups.body['security_groups']
  load(items)
end
get(security_group_id) click to toggle source
# File lib/fog/hp/models/compute/security_groups.rb, line 17
def get(security_group_id)
  if security_group_id
    sec_group = service.get_security_group(security_group_id).body['security_group']
    new(sec_group)
  end
rescue Fog::Compute::HP::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.