Sha256: 4c4ba51ae8e23dbe4451e161fd9b502aea03c68d0fa3a6ffc2aa044eaff945a5

Contents?: true

Size: 627 Bytes

Versions: 44

Compression:

Stored size: 627 Bytes

Contents

require 'fog/openstack/models/collection'

module Fog
  module Volume
    class OpenStack
      module Snapshots
        def all(options = {})
          load_response(service.list_snapshots_detailed(options), 'snapshots')
        end

        def summary(options = {})
          load_response(service.list_snapshots(options), 'snapshots')
        end

        def get(snapshots_id)
          snapshot = service.get_snapshot_details(snapshots_id).body['snapshot']
          if snapshot
            new(snapshot)
          end
        rescue Fog::Volume::OpenStack::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

44 entries across 42 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/volume/openstack/models/snapshots.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/models/snapshots.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/models/snapshots.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.26 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.25 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.24 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.23 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.22 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.21 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.20 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.19 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.18 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.17 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.15 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.14 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.13 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.12 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.11 lib/fog/volume/openstack/models/snapshots.rb
fog-openstack-0.1.10 lib/fog/openstack/models/volume/snapshots.rb