Class: Fog::Compute::OracleCloud::SecurityIpList

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

Instance Method Summary collapse

Instance Method Details

#createObject



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

def create
  requires :name, :secipentries
  
  data = service.create_security_ip_list(name, description, secipentries)
  merge_attributes(data.body)
end

#saveObject



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

def save
  #identity ? update : create
  create
end