Represents a Firewall resource
@see developers.google.com/compute/docs/reference/latest/firewalls
# File lib/fog/google/models/compute/firewall.rb, line 33 def destroy(async=true) requires :identity data = service.delete_firewall(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/firewall.rb, line 24 def save requires :identity, :allowed, :network data = service.insert_firewall(identity, self.allowed, self.network, 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.