Class StructQueryParameterType (3.26.0)

StructQueryParameterType(*fields, name=None, description=None)

Type representation for struct query parameters.

Parameters

Name Description
fields Iterable[Union[ ArrayQueryParameterType, ScalarQueryParameterType, StructQueryParameterType ]]

An non-empty iterable describing the struct's field types.

name Optional[str]

The name of the query parameter. Primarily used if the type is one of the subfields in StructQueryParameterType instance.

description Optional[str]

The query parameter description. Primarily used if the type is one of the subfields in StructQueryParameterType instance.

Methods

from_api_repr

from_api_repr(resource)

Factory: construct parameter type from JSON resource.

Parameter
Name Description
resource Dict

JSON mapping of parameter

Returns
Type Description
google.cloud.bigquery.query.StructQueryParameterType Instance

to_api_repr

to_api_repr()

Construct JSON API representation for the parameter type.

Returns
Type Description
Dict JSON mapping