# File lib/fog/profitbricks/requests/compute/update_share.rb, line 48 def update_share(group_id, resource_id, options = {}) if share = data[:shares]['items'].find do |shr| shr["id"] == resource_id end share['editPrivilege'] = options[:editPrivilege] if [true, false].include?(options[:editPrivilege]) share['sharePrivilege'] = options[:sharePrivilege] if [true, false].include?(options[:sharePrivilege]) else raise Excon::Error::HTTPStatus, "Resource does not exist" end response = Excon::Response.new response.status = 202 response.body = share response end