Class: Fog::Storage::OracleCloud::Containers

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/oraclecloud/models/storage/containers.rb

Instance Method Summary collapse

Instance Method Details

#allObject



8
9
10
11
# File 'lib/fog/oraclecloud/models/storage/containers.rb', line 8

def all
  containers = service.list_containers().body
  load(containers)
end

#get(name) ⇒ Object



13
14
15
16
17
18
# File 'lib/fog/oraclecloud/models/storage/containers.rb', line 13

def get(name)
  data = service.get_container(name).headers
  # The storage cloud service doesn't actually return the name. Add it back in
  data['name'] = name
  new(data)
end