# File lib/fog/volume/openstack/v1/models/snapshot.rb, line 17 def save requires :display_name data = if id.nil? service.create_snapshot(attributes[:volume_id], display_name, display_description, force) else service.update_snapshot(id, attributes.reject { |k, _v| k == :id }) end merge_attributes(data.body['snapshot']) true end