class Fog::Compute::Google::Network
Represents a Network resource
@see developers.google.com/compute/docs/reference/latest/networks
Public Instance Methods
destroy(async = true)
click to toggle source
# File lib/fog/compute/google/models/network.rb, line 28 def destroy(async = true) requires :identity data = service.delete_network(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/network.rb, line 19 def save requires :identity, :ipv4_range data = service.insert_network(identity, ipv4_range, attributes) operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"]) operation.wait_for { !pending? } reload end