class Fog::Compute::Google::Route
Represents a Route resource
@see developers.google.com/compute/docs/reference/latest/routes
Public Instance Methods
destroy(async = true)
click to toggle source
# File lib/fog/compute/google/models/route.rb, line 35 def destroy(async = true) requires :identity data = service.delete_route(identity) operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"]) operation.wait_for { ready? } unless async operation end
save()
click to toggle source
# File lib/fog/compute/google/models/route.rb, line 26 def save requires :identity, :network, :dest_range, :priority data = service.insert_route(identity, network, dest_range, priority, attributes) operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"]) operation.wait_for { !pending? } reload end