lib/fog/oraclecloud/models/compute/security_rule.rb in fog-oraclecloud-0.1.12 vs lib/fog/oraclecloud/models/compute/security_rule.rb in fog-oraclecloud-0.1.13

- old
+ new

@@ -1,41 +1,41 @@ -require 'fog/core/model' - -module Fog - module Compute - class OracleCloud - class SecurityRule < Fog::Model - identity :name - - attribute :dst_list - attribute :name - attribute :src_list - attribute :uri - attribute :disabled - attribute :application - attribute :proxyuri - attribute :action - - # Only used in create - attribute :description - - def save - #identity ? update : create - create - end - - def create - requires :name, :src_list, :dst_list, :application, :action - - data = service.create_security_rule(name, src_list, dst_list, application, action, - :description => description, - :disabled => disabled) - end - - def destroy - requires :name - service.delete_security_rule(name) - end - end - end - end -end +require 'fog/core/model' + +module Fog + module Compute + class OracleCloud + class SecurityRule < Fog::Model + identity :name + + attribute :dst_list + attribute :name + attribute :src_list + attribute :uri + attribute :disabled + attribute :application + attribute :proxyuri + attribute :action + + # Only used in create + attribute :description + + def save + #identity ? update : create + create + end + + def create + requires :name, :src_list, :dst_list, :application, :action + + data = service.create_security_rule(name, src_list, dst_list, application, action, + :description => description, + :disabled => disabled) + end + + def destroy + requires :name + service.delete_security_rule(name) + end + end + end + end +end