Represents a Route resource
@see developers.google.com/compute/docs/reference/latest/routes
# File lib/fog/google/models/compute/route.rb, line 37 def destroy(async=true) requires :identity data = service.delete_route(identity) operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body['name']) unless async operation.wait_for { ready? } end operation end
# File lib/fog/google/models/compute/route.rb, line 28 def save requires :identity, :network, :dest_range, :priority data = service.insert_route(identity, self.network, self.dest_range, self.priority, self.attributes) operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body['name']) operation.wait_for { !pending? } reload end
Generated with the Darkfish Rdoc Generator 2.