# Class QueryTemplate (0.6.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.20 0.4.20 0.3.2 0.2.1 0.1.1

    QueryTemplate(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A query template is a container for sharing table-valued
functions defined by contributors in a data clean room.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The resource name of the QueryTemplate. e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456` |
| `display_name` | `str` 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` | `str` 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` | `str` Optional. Will be deprecated. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes. |
| `primary_contact` | `str` Optional. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes. |
| `documentation` | `str` Optional. Documentation describing the QueryTemplate. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/analyticshub/latest/google.cloud.bigquery_analyticshub_v1.types.QueryTemplate.State` Output only. The QueryTemplate lifecycle state. |
| `routine` | `https://docs.cloud.google.com/python/docs/reference/analyticshub/latest/google.cloud.bigquery_analyticshub_v1.types.Routine` Optional. The routine associated with the QueryTemplate. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the QueryTemplate was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Timestamp when the QueryTemplate was last modified. |

## Classes

### State

    State(value)

The QueryTemplate lifecycle state.