Class: Fog::Compute::OracleCloud::SecurityAssociation

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/oraclecloud/models/compute/security_association.rb

Instance Method Summary collapse

Instance Method Details

#createObject



18
19
20
21
22
# File 'lib/fog/oraclecloud/models/compute/security_association.rb', line 18

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

#destroyObject



24
25
26
27
# File 'lib/fog/oraclecloud/models/compute/security_association.rb', line 24

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

#saveObject



13
14
15
16
# File 'lib/fog/oraclecloud/models/compute/security_association.rb', line 13

def save
  #identity ? update : create
  create
end