Sha256: 86e4b05b3b3519c9d3b4dae5e87e4f1c5c63aa325541b278c7b075077b75c8ab
Contents?: true
Size: 593 Bytes
Versions: 11
Compression:
Stored size: 593 Bytes
Contents
require 'fog/core/collection' require 'fog/google/models/compute/global_forwarding_rule' module Fog module Compute class Google class GlobalForwardingRules < Fog::Collection model Fog::Compute::Google::GlobalForwardingRule def all data = service.list_global_forwarding_rules.body['items'] || [] load(data) end def get(identity, region='global') response = service.get_global_forwarding_rule(identity, region) return nil if response.nil? new(response.body) end end end end end
Version data entries
11 entries across 11 versions & 3 rubygems