Sha256: c6f53ae036e1e81e71a81022d986fe20eafa6bb9b15d4b310e9b7b64718e45c0

Contents?: true

Size: 573 Bytes

Versions: 15

Compression:

Stored size: 573 Bytes

Contents

require 'fog/core/collection'
require 'fog/storm_on_demand/models/network/pool'

module Fog
  module Network
    class StormOnDemand
      class Pools < Fog::Collection
        model Fog::Network::StormOnDemand::Pool

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

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

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

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/storm_on_demand/models/network/pools.rb
fog-1.25.0 lib/fog/storm_on_demand/models/network/pools.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/models/network/pools.rb
fog-1.24.0 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/models/network/pools.rb
fog-1.23.0 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/models/network/pools.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/models/network/pools.rb
fog-1.22.1 lib/fog/storm_on_demand/models/network/pools.rb