Class: Fog::Compute::OracleCloud::SecurityLists

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/oraclecloud/models/compute/security_lists.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
# File 'lib/fog/oraclecloud/models/compute/security_lists.rb', line 10

def all
  data = service.list_security_lists().body['result']
  load(data)
end

#get(name) ⇒ Object



15
16
17
18
# File 'lib/fog/oraclecloud/models/compute/security_lists.rb', line 15

def get(name)
  data = service.get_security_list(name).body
  new(data)
end