Skip to content

Expose remote functions options as first class properties #1552

@shobsi

Description

@shobsi

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.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions