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