Sha256: ec1249da3e164e9858e689b65f1aa2259bdcec18080fbafe2b0a891c466eeed8
Contents?: true
Size: 531 Bytes
Versions: 15
Compression:
Stored size: 531 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 firewall = service.get_firewall(identity) new(firewall.to_h) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems