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