class Google::Cloud::Storage::Service

def rewrite_key_options source_key, destination_key

def rewrite_key_options source_key, destination_key
  options = {}
  if source_key
    encryption_key_headers options, source_key, copy_source: true
  end
  encryption_key_headers options, destination_key if destination_key
  options
end