Sha256: 80486a13c22f1005e58da356d06c47b84d30a51b9fb72598021b798910911c09

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

module Yao::Resources
  class Volume < Base
    friendly_attributes :name, :size, :volume_type

    map_attribute_to_attribute 'os-vol-tenant-attr:tenant_id' => :tenant_id

    self.service        = "volumev3"
    self.resource_name  = "volume"
    self.resources_name = "volumes"

    class << self
      def list_detail(query={})
        return_resources(
            resources_from_json(
                GET([resources_path, "detail"].join("/"), query).body
            )
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yao-0.7.0 lib/yao/resources/volume.rb
yao-0.6.3 lib/yao/resources/volume.rb
yao-0.6.2 lib/yao/resources/volume.rb
yao-0.6.1 lib/yao/resources/volume.rb
yao-0.6.0 lib/yao/resources/volume.rb