def accept_table_draft_description()

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


    def accept_table_draft_description(self, table_fqn):
        """Method to accept the table draft description

        Args:
            table_fqn: table FQN

        Raises:
            Exception
        """
        from typing import MutableSequence

        # Create a client
        client = self._cloud_clients[constants["CLIENTS"]["DATAPLEX_CATALOG"]]
        client = dataplex_v1.CatalogServiceClient()


        aspect_types = [f"""projects/{self._project_id}/locations/global/aspectTypes/{constants["ASPECT_TEMPLATE"]["name"]}""",
                        f"""projects/dataplex-types/locations/global/aspectTypes/overview"""]
        
        # Create the aspect
        project_id, dataset_id, table_id = self._split_table_fqn(table_fqn)

        entry_name = f"projects/{project_id}/locations/{self._get_dataset_location(table_fqn)}/entryGroups/@bigquery/entries/bigquery.googleapis.com/projects/{project_id}/datasets/{dataset_id}/tables/{table_id}"

        aspect=dataplex_v1.Aspect()
        request=dataplex_v1.GetEntryRequest(name=entry_name,view=dataplex_v1.EntryView.CUSTOM,aspect_types=aspect_types)
        
        entry = client.get_entry(request=request)
        for aspect in entry.aspects:
            print(f"aspect: {aspect}")
            aspect= entry.aspects[aspect]
            if aspect.aspect_type.endswith(f"""aspectTypes/{constants["ASPECT_TEMPLATE"]["name"]}"""):
                
                for i in aspect.data:
                    if i == "contents":
                        overview=aspect.data[i]

        self._update_table_dataplex_description(table_fqn, overview)
        self._update_table_bq_description(table_fqn, overview)