Sha256: b2adff65de368658be93356a10571c63216f29ad9997046114241916d88e82ab

Contents?: true

Size: 1.72 KB

Versions: 59

Compression:

Stored size: 1.72 KB

Contents

module Fog
  module HP
    class BlockStorage
      class Real

        # List existing block storage bootbale volumes
        #
        # ==== Parameters
        # None
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * volumes<~Hash>:
        #       * 'id'<~Integer>: - Id for the volume
        #       * 'displayName'<~String>: - Name of the volume
        #       * 'displayDescription'<~String>: - Description of the volume
        #       * 'size'<~Integer>: - Size in GB for the volume
        #       * 'status'<~String>: - Status of the volume i.e. "available"
        #       * 'volumeType'<~String>: - Type of the volume
        #       * 'snapshotId'<~String>: - Id of the source snapshot used to create volume
        #       * 'sourceImageRef'<~String>: - Id of the source image used to create volume
        #       * 'createdAt'<~String>: - Timestamp in UTC when volume was created
        #       * 'availabilityZone'<~String>: - Availability zone i.e. "nova"
        #       * attachments<~Array>: Array of hashes of attachments
        #       * metadata<~Hash>: Hash of metadata for the volume
        def list_bootable_volumes
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "hp-bootable-volumes"
          )
          response
        end

      end

      class Mock # :nodoc:all

        def list_bootable_volumes
          response = Excon::Response.new
          volumes = []
          volumes = self.data[:volumes].values unless self.data[:volumes].nil?

          response.status = 200
          response.body = { 'volumes' => volumes }
          response
        end
      end

    end
  end
end

Version data entries

59 entries across 59 versions & 6 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-1.20.0 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-1.19.0 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/hp/requests/block_storage/list_bootable_volumes.rb