class Fog::Compute::Google::GlobalForwardingRules
Public Instance Methods
all(opts = {})
click to toggle source
# File lib/fog/compute/google/models/global_forwarding_rules.rb, line 7 def all(opts = {}) data = service.list_global_forwarding_rules(opts).to_h[:items] || [] load(data) end
get(identity)
click to toggle source
# File lib/fog/compute/google/models/global_forwarding_rules.rb, line 12 def get(identity) if identity rule = service.get_global_forwarding_rule(identity).to_h return new(rule) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end