def validate_params(self):
        """
        To validate the required parameters for the function.

        Raises:
            TeamCymruScoutException: If any required parameter is missing or empty.
        """
        __method_name = inspect.currentframe().f_code.co_name
        required_params = {
            "CymruScoutBaseURL": consts.CYMRU_SCOUT_BASE_URL,
            "AuthenticationType": consts.AUTHENTICATION_TYPE,
            "APIType": consts.API_TYPE,
            "AZURE_CLIENT_ID": consts.AZURE_CLIENT_ID,
            "AZURE_CLIENT_SECRET": consts.AZURE_CLIENT_SECRET,
            "AZURE_TENANT_ID": consts.AZURE_TENANT_ID,
            "IPTableName": consts.IP_TABLE_NAME,
            "DomainTableName": consts.DOMAIN_TABLE_NAME,
            "AccountUsageTableName": consts.ACCOUNT_USAGE_TABLE_NAME,
            "AZURE_DATA_COLLECTION_ENDPOINT": consts.AZURE_DATA_COLLECTION_ENDPOINT,
            "AZURE_DATA_COLLECTION_RULE_ID_MAIN_TABLES": consts.AZURE_DATA_COLLECTION_RULE_ID_MAIN_TABLES,
            "AZURE_DATA_COLLECTION_RULE_ID_SUB_TABLES": consts.AZURE_DATA_COLLECTION_RULE_ID_SUB_TABLES,
        }
        if consts.AUTHENTICATION_TYPE == "API Key":
            required_params.update({"APIKey": consts.API_KEY})
        else:
            required_params.update({"Username": consts.USERNAME, "Password": consts.PASSWORD})
        applogger.debug(
            "{}(method={}) : Checking if all the environment variables exist or not.".format(self.logs_starts_with, __method_name)
        )
        missing_required_field = False
        for label, params in required_params.items():
            if not params or params == "":
                missing_required_field = True
                applogger.error(
                    '{}(method={}) : "{}" field is not set in the environment please set '
                    "the environment variable and run the app.".format(
                        self.logs_starts_with,
                        __method_name,
                        label,
                    )
                )
        if missing_required_field:
            raise TeamCymruScoutException("Error Occurred while validating params. Required fields missing.")
        applogger.info(
            "{}(method={}) : All necessary variables are present in the Configuration.".format(self.logs_starts_with, __method_name)
        )

        To validate the required parameters for the function.

        Raises:
            TeamCymruScoutException: If any required parameter is missing or empty.
        
Solutions/Team Cymru Scout/Data Connectors/TeamCymruScout/SharedCode/utils.py