class Fog::OpenStack::SharedFileSystem::Snapshots
Public Instance Methods
all(options = {})
click to toggle source
# File lib/fog/openstack/shared_file_system/models/snapshots.rb, line 10 def all(options = {}) load_response(service.list_snapshots_detail(options), 'snapshots') end
destroy(id)
click to toggle source
# File lib/fog/openstack/shared_file_system/models/snapshots.rb, line 21 def destroy(id) snapshot = find_by_id(id) snapshot.destroy end
find_by_id(id)
click to toggle source
# File lib/fog/openstack/shared_file_system/models/snapshots.rb, line 14 def find_by_id(id) snapshot_hash = service.get_snapshot(id).body['snapshot'] new(snapshot_hash.merge(:service => service)) end
Also aliased as: get