Resource: QueryTemplate
A query template is a container for sharing table-valued functions defined by contributors in a data clean room.
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "proposer": string, "primaryContact": string, "documentation": string, "state": enum ( |
| Fields | |
|---|---|
name |
Output only. The resource name of the QueryTemplate. e.g. |
displayName |
Required. Human-readable display name of the QueryTemplate. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces. Default value is an empty string. Max length: 63 bytes. |
description |
Optional. Short description of the QueryTemplate. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes. |
proposer |
Optional. Will be deprecated. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes. |
primaryContact |
Optional. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes. |
documentation |
Optional. Documentation describing the QueryTemplate. |
state |
Output only. The QueryTemplate lifecycle state. |
routine |
Optional. The routine associated with the QueryTemplate. |
createTime |
Output only. Timestamp when the QueryTemplate was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Timestamp when the QueryTemplate was last modified. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
State
The QueryTemplate lifecycle state.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Default value. This value is unused. |
DRAFTED |
The QueryTemplate is in draft state. |
PENDING |
The QueryTemplate is in pending state. |
DELETED |
The QueryTemplate is in deleted state. |
APPROVED |
The QueryTemplate is in approved state. |
Routine
Represents a bigquery routine.
| JSON representation |
|---|
{
"routineType": enum ( |
| Fields | |
|---|---|
routineType |
Required. The type of routine. |
definitionBody |
Optional. The definition body of the routine. |
RoutineType
Represents the type of a given routine.
| Enums | |
|---|---|
ROUTINE_TYPE_UNSPECIFIED |
Default value. |
TABLE_VALUED_FUNCTION |
Non-built-in persistent TVF. |
Methods |
|
|---|---|
|
Approves a query template. |
|
Creates a new QueryTemplate |
|
Deletes a query template. |
|
Gets a QueryTemplate |
|
Lists all QueryTemplates in a given project and location. |
|
Updates an existing QueryTemplate |
|
Submits a query template for approval. |