def _construct_bq_resource_string()

in src/package/dataplexutils/metadata/wizard.py [0:0]


    def _construct_bq_resource_string(self, table_fqn):
        """Constructs a BigQuery resource string for use in API calls.

        Args:
            table_fqn (str): The fully qualified name of the table
                (e.g., 'project.dataset.table')

        Returns:
            str: The constructed resource string in the format
                '//bigquery.googleapis.com/projects/{project}/datasets/{dataset}/tables/{table}'

        Raises:
            Exception: If there is an error constructing the resource string
        """
        try:
            project_id, dataset_id, table_id = self._split_table_fqn(table_fqn)
            return f"//bigquery.googleapis.com/projects/{project_id}/datasets/{dataset_id}/tables/{table_id}"
        except Exception as e:
            logger.error(f"Exception: {e}.")
            raise e