Sha256: 7535636a8a237c55e1c9741f156960be9e449a10cebbaff41cf691f845c6ea00

Contents?: true

Size: 792 Bytes

Versions: 39

Compression:

Stored size: 792 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        def list_volume_attachments(server_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => format('servers/%s/os-volume_attachments', server_id)
          )
        end
      end

      class Mock
        def list_volume_attachments(server_id)
          Excon::Response.new(
            :body   => {
              :volumeAttachments => [{
                :device   => '/dev/vdd',
                :serverId => server_id,
                :id       => '24011ca7-9937-41e4-b19b-141307d1b656',
                :volumeId => '24011ca7-9937-41e4-b19b-141307d1b656'
              }]
            },
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.10 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.1.30 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.1.29 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.9 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.1.28 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.8 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.7 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.6 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.5 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.4 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.3 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.2 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.3.0 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.2.4 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.2.3 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.2.2 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.2.1 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-openstack-0.2.0 lib/fog/compute/openstack/requests/list_volume_attachments.rb
fog-zj-0.1.28 lib/fog/compute/openstack/requests/list_volume_attachments.rb