Class RoutineReference (3.12.0)

RoutineReference()

Properties

dataset_id

str: ID of dataset containing the routine.

path

str: URL path for the routine's APIs.

project

str: ID of the project containing the routine.

routine_id

str: The routine ID.

Methods

__eq__

__eq__(other)

Two RoutineReferences are equal if they point to the same routine.

__str__

__str__()

String representation of the reference.

This is a fully-qualified ID, including the project ID and dataset ID.

from_api_repr

from_api_repr(
    resource: dict,
) -> google.cloud.bigquery.routine.routine.RoutineReference

Factory: construct a routine reference given its API representation.

Parameter
NameDescription
resource Dict[str, object]

Routine reference representation returned from the API.

Returns
TypeDescription
google.cloud.bigquery.routine.RoutineReferenceRoutine reference parsed from resource.

from_string

from_string(
    routine_id: str, default_project: typing.Optional[str] = None
) -> google.cloud.bigquery.routine.routine.RoutineReference

Factory: construct a routine reference from routine ID string.

Parameters
NameDescription
routine_id str

A routine ID in standard SQL format. If default_project is not specified, this must included a project ID, dataset ID, and routine ID, each separated by ..

default_project Optional[str]

The project ID to use when routine_id does not include a project ID.

Exceptions
TypeDescription
ValueErrorIf routine_id is not a fully-qualified routine ID in standard SQL format.
Returns
TypeDescription
google.cloud.bigquery.routine.RoutineReferenceRoutine reference parsed from routine_id.

to_api_repr

to_api_repr() -> dict

Construct the API resource representation of this routine reference.

Returns
TypeDescription
Dict[str, object]Routine reference represented as an API resource.

__init__

__init__()

Initialize self. See help(type(self)) for accurate signature.

RoutineReference

RoutineReference()