Sha256: 17ec97c62ce9442ad529b0d6f04b80f8e68a39682e02c18e5e26472b451f63d0

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

require 'fog/core/collection'

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

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

 				def get(name)
          data = service.get_security_list(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_lists.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/models/compute/security_lists.rb