class Fog::Compute::Google::Firewalls

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/google/models/firewalls.rb, line 7
def all
  data = service.list_firewalls.body
  load(data["items"] || [])
end
get(identity) click to toggle source
# File lib/fog/compute/google/models/firewalls.rb, line 12
def get(identity)
  if firewall = service.get_firewall(identity).body
    new(firewall)
  end
rescue Fog::Errors::NotFound
  nil
end