Sha256: 7e2721cd6fda68b7f468272c8090708928f19c4d6e159a0438a32b57f7ab0035
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Lists all volumes. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/listVolumes.html] def list_volumes(options={}) options.merge!( 'command' => 'listVolumes' ) request(options) end end class Mock def list_volumes(options={}) volume_id = options.delete('id') if volume_id volumes = [self.data[:volumes][volume_id]] else volumes = self.data[:volumes].values end { 'listvolumesresponse' => { 'count' => volumes.size, 'volume' => volumes } } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-1.23.0 | lib/fog/cloudstack/requests/compute/list_volumes.rb |