Class: Fog::Network::StormOnDemand::Pools

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/network/pools.rb

Instance Method Summary collapse

Instance Method Details

#create(options) ⇒ Object



10
11
12
13
# File 'lib/fog/storm_on_demand/models/network/pools.rb', line 10

def create(options)
  p = service.create_pool(options).body
  new(p)
end

#get(uniq_id) ⇒ Object



15
16
17
18
# File 'lib/fog/storm_on_demand/models/network/pools.rb', line 15

def get(uniq_id)
  p = service.get_pool(:uniq_id => uniq_id).body
  new(p)
end

#get_assignments(options = {}) ⇒ Object



20
21
22
# File 'lib/fog/storm_on_demand/models/network/pools.rb', line 20

def get_assignments(options={})
  service.get_assignments(options).body['items']
end