# File lib/fog/shared_file_system/openstack/models/snapshot.rb, line 33 def destroy requires :id service.delete_snapshot(id) true end
# File lib/fog/shared_file_system/openstack/models/snapshot.rb, line 39 def ready? status == 'available' end
# File lib/fog/shared_file_system/openstack/models/snapshot.rb, line 20 def save raise Fog::Errors::Error, 'Resaving an existing object may create a duplicate' if persisted? requires :share_id merge_attributes(service.create_snapshot(share_id, attributes).body['snapshot']) true end
# File lib/fog/shared_file_system/openstack/models/snapshot.rb, line 27 def update(options = nil) requires :id merge_attributes(service.update_snapshot(id, options || attributes).body['snapshot']) self end