Sha256: 6e3a4c20444e3440015a5b8208ca667921a022d9f63e4f53bd63882ac2aab101
Contents?: true
Size: 559 Bytes
Versions: 12
Compression:
Stored size: 559 Bytes
Contents
module Fog module Compute class Google class Firewalls < Fog::Collection model Fog::Compute::Google::Firewall def all(opts = {}) data = service.list_firewalls(opts).to_h[:items] load(data || []) end def get(identity) if identity firewall = service.get_firewall(identity).to_h return new(firewall) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems