This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
Unable to create tag template with dictionary #84
Labels
api: datacatalog
Issues related to the googleapis/python-datacatalog API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
status: blocked
Resolving the issue is dependent on other work.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi.
I'm working on updating to the latest version of the libraries. Previously I was using 0.8.0 and 1.0.0 where I had a similar problem, but found a simple workaround - some values as an object, but these workarounds no longer work in the newer version of the library.
In datacatalog 0.8.0, it was possible to create an tag template using a dictionary, but template fields must be passed as a TagTemplateField object.
In a newer version, such a trick can no longer be used. If we want to create an object, we must always pass the fully typed object.
However, I would expect that it would be possible to pass the object as a dictionary.
As a workaround, I can convert this object on my side for now, but it would be great if the library handles it correctly.
Environment details
Python 3.6.8
pip 20.2.4 from /Users/XXXXXXXXX/.virtualenvs/airflow/lib/python3.6/site-packages/pip (python 3.6)
google-cloud-datacatalog
version:3.0.0
Steps to reproduce
Code example
Full example: https://gist.github.com/mik-laj/4d2e4701b0f827dff5a712300646f024
Stack trace
CC: @busunkim96
The text was updated successfully, but these errors were encountered: