# File lib/fog/brightbox/models/compute/firewall_rule.rb, line 44 def destroy requires :identity service.destroy_firewall_rule(identity) true end
Sticking with existing Fog behaviour, save does not update but creates a new resource
# File lib/fog/brightbox/models/compute/firewall_rule.rb, line 26 def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? requires :firewall_policy_id options = { :firewall_policy => firewall_policy_id, :protocol => protocol, :description => description, :source => source, :source_port => source_port, :destination => destination, :destination_port => destination_port, :icmp_type_name => icmp_type_name }.delete_if {|k,v| v.nil? || v == "" } data = service.create_firewall_rule(options) merge_attributes(data) true end
Generated with the Darkfish Rdoc Generator 2.