Sha256: 4a5ccec6a0f3845efce140db6bcac2e95230b7c7ef5fba40178b77924a0f80ae

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

require 'fog/core/collection'

module Fog
  module Compute
  	class OracleCloud
	    class SecurityRules < Fog::Collection

	    	model Fog::Compute::OracleCloud::SecurityRule
				
				def all
					data = service.list_security_rules().body['result']
					load(data)
				end

 				def get(name)
          data = service.get_security_rule(name).body
          new(data)
        end
	    end
	  end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/security_rules.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/security_rules.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/security_rules.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/security_rules.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/models/compute/security_rules.rb