Sha256: 476b68213f985c6c38e974d1e354531f135081dcfdb312a15235d842f13d9425
Contents?: true
Size: 627 Bytes
Versions: 20
Compression:
Stored size: 627 Bytes
Contents
require 'fog/openstack/models/collection' module Fog module OpenStack class Volume 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::OpenStack::Volume::NotFound nil end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems