Sha256: 367130f1ea000718dfb1f5d160bb2b2d105ae578bd9b498baca04784360b1d85
Contents?: true
Size: 575 Bytes
Versions: 15
Compression:
Stored size: 575 Bytes
Contents
module Fog module Compute class Google class GlobalForwardingRules < Fog::Collection model Fog::Compute::Google::GlobalForwardingRule def all(opts = {}) data = service.list_global_forwarding_rules(opts).to_h[:items] || [] load(data) end def get(identity) if rule = service.get_global_forwarding_rule(identity).to_h new(rule) 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