-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Right now if I want to access spec details for a bigquery remote function I have to use the hidden properties, e.g.
routines = bq_client.list_routines(f"{gcp_project_id}.{bq_dataset}")
for routine in routines:
rf_options = routine._properties.get("remoteFunctionOptions")
if rf_options:
http_endpoint = rf_options.get("endpoint")
bq_connection = rf_options.get("connection")
which is not ideal and takes a bit of figuring out. It would be nice to have it exposed via first class properties, which can be used like
routines = bq_client.list_routines(f"{gcp_project_id}.{bq_dataset}")
for routine in routines:
rf_options = routine.remote_function_options
if rf_options:
http_endpoint = rf_options.endpoint
bq_connection = rf_options.connection
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.