Class ModelReference (3.34.0)

ModelReference()

Properties

dataset_id

str: ID of dataset containing the model.

model_id

str: The model ID.

path

URL path for the model's APIs.

project

str: Project bound to the model

Methods

from_api_repr

from_api_repr(
 resource: typing.Dict[str, typing.Any],
) -> google.cloud.bigquery.model.ModelReference

Factory: construct a model reference given its API representation.

from_string

from_string(
 model_id: str, default_project: typing.Optional[str] = None
) -> google.cloud.bigquery.model.ModelReference

Construct a model reference from model ID string.

Exceptions
Type Description
ValueError If model_id is not a fully-qualified table ID in standard SQL format.

to_api_repr

to_api_repr() -> typing.Dict[str, typing.Any]

Construct the API resource representation of this model reference.

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年10月30日 UTC.