Solution for Column Tagging in GCP Data Catalog using DLP results and Python
is Given Below:
I’ve been dealing with this issue for weeks. Does anyone know how to create column tags in Data Catalog from DLP results? I wanted to run inspection job on DLP and then tag the inspected tables with the infoTypes that I’ve inspected. I only found Java codes regarding this problem but I appreciate if anyone can help me with Python.
I was unable to find a sample Python code that would implement column level tags. This Tag() function from the Python Client Library could be useful. The complete Data Catalog Python Client Library documentation can be found here.
However, you can let Google know that this is a feature that is important for access through their client libraries, and that you would like to request they provide a sample code for it.
Google’s Issue Tracker is a place for developers to report issues and make feature requests for their development services. I’d suggest you make a feature request there. The best component to file this under would be the Big Data, with the
Feature Request template.