Class ScalarQueryParameterType

Type representation for scalar query parameters.

Inheritance

builtins.object > google.cloud.bigquery.query._AbstractQueryParameterType > ScalarQueryParameterType

Methods

from_api_repr

from_api_repr(resource)

Factory: construct parameter type from JSON resource.

Parameter
NameDescription
resource Dict

JSON mapping of parameter

Returns
TypeDescription
google.cloud.bigquery.query.ScalarQueryParameterTypeInstance

to_api_repr

to_api_repr()

Construct JSON API representation for the parameter type.

Returns
TypeDescription
DictJSON mapping

with_name

with_name(new_name: Optional[str])

Return a copy of the instance with name set to new_name.

Parameters
NameDescription
new_name None(
name Union[str, None]

The new name of the query parameter type. If None, the existing name is cleared.

Returns
TypeDescription
google.cloud.bigquery.query.ScalarQueryParameterTypeA new instance with updated name.