(self, identifier: str, quote_key: str)
Quote or do not quote the given identifer as configured in the
        project config for the quote key.

        The quote key should be one of 'database' (on bigquery, 'profile'),
        'identifier', or 'schema', or it will be treated as if you set `True`.
Quote or do not quote the given identifer as configured in the
        project config for the quote key.
Quote or do not quote the given identifer as configured in the project config for the quote key .
def quote_as_configured(self, identifier: str, quote_key: str) -> str:
        """Quote or do not quote the given identifer as configured in the
        project config for the quote key.

        The quote key should be one of 'database' (on bigquery, 'profile'),
        'identifier', or 'schema', or it will be treated as if you set `True`.
        """
        try:
            key = ComponentName(quote_key)
        except ValueError:
            return identifier

        default = self.Relation.get_default_quote_policy().get_part(key)
        if self.config.quoting.get(key, default):
            return self.quote(identifier)
        else:
            return identifier
def quote_as_configured ( self , identifier : str , quote_key : str ) -> str : try : key = ComponentName ( quote_key ) except ValueError : return identifier default = self . Relation . get_default_quote_policy ( ) . get_part ( key ) if self . config . quoting . get ( key , default ) : return self . quote ( identifier ) else : return identifier