google.cloud.bigquery.routine.RoutineArgument#

Methods

from_api_repr(resource)

Factory: construct a routine argument given its API representation.

to_api_repr()

Construct the API resource representation of this routine argument.

Attributes

data_type

Type of a variable, e.g., a function argument.

kind

The kind of argument, for example FIXED_TYPE or ANY_TYPE.

mode

The input/output mode of the argument.

name

Name of this argument.


class google.cloud.bigquery.routine.RoutineArgument(**kwargs)[source]#

Bases: object

Input/output argument of a function or a stored procedure.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/routines

Parameters

**kwargs (Dict) – Initial property values.

property data_type#

Type of a variable, e.g., a function argument.

See: https://cloud.google.com/bigquery/docs/reference/rest/v2/StandardSqlDataType

Type

Optional[google.cloud.bigquery_v2.types.StandardSqlDataType]

classmethod from_api_repr(resource)[source]#

Factory: construct a routine argument given its API representation.

Parameters

resource (Dict[str, object]) – Resource, as returned from the API.

Returns

Python object, as parsed from resource.

Return type

google.cloud.bigquery.routine.RoutineArgument

property kind#

The kind of argument, for example FIXED_TYPE or ANY_TYPE.

See: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#ArgumentKind

Type

Optional[str]

property mode#

The input/output mode of the argument.

Type

Optional[str]

property name#

Name of this argument.

Can be absent for function return argument.

Type

Optional[str]

to_api_repr()[source]#

Construct the API resource representation of this routine argument.

Returns

Routine argument represented as an API resource.

Return type

Dict[str, object]