You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: upload_symbols_to_sentry.rb
    path of file: ./repos/fastlane/fastlane/lib/fastlane/actions
    
    the code of the file until where you have to start completion: module Fastlane
  module Actions
    class UploadSymbolsToSentryAction < Action
      def self.run(params)
        # Warning about using new plugin
        UI.important("It's recommended to use the official Sentry Fastlane plugin")
        UI.important("GitHub: https://github.com/getsentry/fastlane-plugin-sentry")
        UI.important("Installation: fastlane add_plugin sentry")

        UI.user_error!("This plugin is now completely deprecated")
        # the code below doesn't run anymore
        # Actions.verify_gem!('rest-client')
        # require 'rest-client'

        # Params - API
        host = params[:api_host]
        api_key = params[:api_key]
        auth_token = params[:auth_token]
        org = params[:org_slug]
        project = params[:project_slug]

        # Params - dSYM
        dsym_path = params[:dsym_path]
        dsym_paths = params[:dsym_paths] || []

        has_api_key = !api_key.to_s.empty?
        has_auth_token = !auth_token.to_s.
    
      def self.run(params)
        # Warning about using new plugin
        UI.important("It's recommended to use the official Sentry Fastlane plugin")
        UI.important("GitHub: https://github.com/getsentry/fastlane-plugin-sentry")
        UI.important("Installation: fastlane add_plugin sentry")

        UI.user_error!("This plugin is now completely deprecated")
        # the code below doesn't run anymore
        # Actions.verify_gem!('rest-client')
        # require 'rest-client'

        # Params - API
        host = params[:api_host]
        api_key = params[:api_key]
        auth_token = params[:auth_token]
        org = params[:org_slug]
        project = params[:project_slug]

        # Params - dSYM
        dsym_path = params[:dsym_path]
        dsym_paths = params[:dsym_paths] || []

        has_api_key = !api_key.to_s.empty?
        has_auth_token = !auth_token.to_s.empty?

        # Will fail if none or both authentication methods are provided
        if !has_api_key && !has_auth_token
          UI.user_error!("No API key or authentication token found for SentryAction given, pass using `api_key: 'key'` or `auth_token: 'token'`")
        elsif has_api_key && has_auth_token
          UI.user_error!("Both API key and authentication token found for SentryAction given, please only give one")
        end

        # Url to post dSYMs to
        url = "#{host}/projects/#{org}/#{project}/files/dsyms/"

        if has_api_key
          resource = RestClient::Resource.new(url, api_key, '')
        else
          resource = RestClient::Resource.new(url, headers: { Authorization: "Bearer #{auth_token}" })
        end