In these types the queries are instead defined within the Python code i.e.
class OCInterfaces(InfrahubTransform):
query = "oc_interfaces"
I would vote to remove the .query attribute from the Python classes and instead define them within a .infrahub.yml file as we don't have that option with the Jinja2 templates.
Component
Python SDK
Task Description
Today we have Jinja2 transforms and Python transforms. Looking at a .infrahub.yml file the definitions can look like this:
Here we can note that the
query
param is used by:They are not defined in:
In these types the queries are instead defined within the Python code i.e.
I would vote to remove the .query attribute from the Python classes and instead define them within a .infrahub.yml file as we don't have that option with the Jinja2 templates.