Sha256: 13d55859bec250e4daf8676384ca3cb3abafd50c0f45d59231b9eafd658792d3

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
  	class OracleCloud
	    class SecurityAssociation < Fog::Model
	      identity  :name

	      attribute :seclist
	      attribute :vcable
	      attribute :uri

 				def save
          #identity ? update : create
          create
        end

				def create
        	requires :name, :seclist, :vcable
          
          data = service.create_security_association(name, seclist, vcable)
        end

        def destroy
          requires :name
          service.delete_security_association(name)
        end
	    end
	  end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/security_association.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/security_association.rb