Sha256: 484213f1529e23337c0a6c5a4f858b85aec93b19f4683725e1cf8bd7a1a6f055

Contents?: true

Size: 428 Bytes

Versions: 12

Compression:

Stored size: 428 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

12 entries across 12 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/compute/security_lists.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/compute/security_lists.rb