Stay organized with collections Save and categorize content based on your preferences.
Routine(routine_ref, **kwargs)
Parameters Name Description routine_ref Union[str, google.cloud.bigquery.routine.RoutineReference]
A pointer to a routine. If routine_ref
is a string, it must included a project ID, dataset ID, and routine ID, each separated by .
.
Dict
Initial property values.
Inheritancebuiltins.object > Routine Properties arguments bodystr: The body of the routine.
createdOptional[datetime.datetime]: Datetime at which the routine was created (:data:None
until set from the server).
Read-only.
dataset_idstr: ID of dataset containing the routine.
descriptionOptional[str]: Description of the routine (defaults to :data:None
).
Optional[str]: (experimental) The determinism level of the JavaScript UDF if defined.
etagstr: ETag for the resource (:data:None
until set from the server).
Read-only.
imported_librariesList[str]: The path of the imported JavaScript libraries.
The language must equal JAVACRIPT
.
Examples: Set the imported_libraries
to a list of Google Cloud Storage URIs.
.. code-block:: python
routine = bigquery.Routine("proj.dataset.routine_id")
routine.imported_libraries = [
"gs://cloud-samples-data/bigquery/udfs/max-value.js",
]
language
Optional[str]: The language of the routine.
Defaults to SQL
.
Optional[datetime.datetime]: Datetime at which the routine was last modified (:data:None
until set from the server).
Read-only.
pathstr: URL path for the routine's APIs.
projectstr: ID of the project containing the routine.
referencegoogle.cloud.bigquery.routine.RoutineReference: Reference describing the ID of this routine.
return_table_typeThe return type of a Table Valued Function (TVF) routine.
.. versionadded:: 2.22.0
return_type routine_idstr: The routine ID.
type_ Methods from_api_reprfrom_api_repr(resource: dict)
Factory: construct a routine given its API representation.
Parameter Name Description resourceDict[str, object]
Resource, as returned from the API.
Returns Type Description google.cloud.bigquery.routine.Routine Python object, as parsed from ``resource``. to_api_reprConstruct the API resource representation of this routine.
Returns Type Description Dict[str, object] Routine represented as an API resource. __init____init__(routine_ref, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
RoutineRoutine(routine_ref, **kwargs)
Parameters Name Description routine_ref Union[str, google.cloud.bigquery.routine.RoutineReference]
A pointer to a routine. If routine_ref
is a string, it must included a project ID, dataset ID, and routine ID, each separated by .
.
Dict
Initial property values.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4