Sha256: f34f0eb735345ae8ec3cbb498093ddf440e77624789739182ed5f0269f0e6aec

Contents?: true

Size: 611 Bytes

Versions: 19

Compression:

Stored size: 611 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      class Real
        def list_snapshots(detailed=true)
          path = detailed ? 'snapshots/detail' : 'snapshots'
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => path
          )
        end
      end

      class Mock
        def list_snapshots(detailed=true)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'snapshots' => [get_snapshot_details.body["snapshot"]]
          }
          response
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.29.0 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.28.0 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.27.0 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.26.0 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.25.0 lib/fog/openstack/requests/volume/list_snapshots.rb
nsidc-fog-1.24.1 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.24.0 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.11 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.10 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.9 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.8 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.7 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.6 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.23.0 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.4 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.3 lib/fog/openstack/requests/volume/list_snapshots.rb
ns-fog-1.22.2 lib/fog/openstack/requests/volume/list_snapshots.rb
fog-1.22.1 lib/fog/openstack/requests/volume/list_snapshots.rb