google.cloud.bigquery.query.StructQueryParameter¶
-
class
google.cloud.bigquery.query.
StructQueryParameter
(name, *sub_params)[source]¶ Named / positional query parameters for struct values.
- Parameters
name (Optional[str]) – Parameter name, used via
@foo
syntax. If None, the parameter can only be addressed via position (?
).(Union[Tuple[ (sub_params) – google.cloud.bigquery.query.ScalarQueryParameter, google.cloud.bigquery.query.ArrayQueryParameter, google.cloud.bigquery.query.StructQueryParameter
]]) – The sub-parameters for the struct
Methods
__init__
(name, *sub_params)Initialize self.
from_api_repr
(resource)Factory: construct parameter from JSON resource.
positional
(*sub_params)Factory for positional parameters.
Construct JSON API representation for the parameter.
-
classmethod
from_api_repr
(resource)[source]¶ Factory: construct parameter from JSON resource.
- Parameters
resource (Dict) – JSON mapping of parameter
- Returns
Instance
- Return type
-
classmethod
positional
(*sub_params)[source]¶ Factory for positional parameters.
- Parameters
(Union[Tuple[ (sub_params) – google.cloud.bigquery.query.ScalarQueryParameter, google.cloud.bigquery.query.ArrayQueryParameter, google.cloud.bigquery.query.StructQueryParameter
]]) – The sub-parameters for the struct
- Returns
Instance without name
- Return type