class Fog::Compute::Google::GlobalForwardingRules

Public Instance Methods

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