- [Resource: SessionTemplate](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates#SessionTemplate)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates#SessionTemplate.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates#METHODS_SUMMARY)

## Resource: SessionTemplate

A representation of a session template.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "displayName": string, "createTime": string, "creator": string, "labels": { string: string, ... }, "runtimeConfig": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeConfig`) }, "environmentConfig": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/EnvironmentConfig`) }, "updateTime": string, "uuid": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "jupyterSession": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/JupyterConfig`) }, "sparkConnectSession": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/SparkConnectConfig`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Identifier. The resource name of the session template. |
| `description` | `string` Optional. Brief description of the template. |
| `displayName` | `string` Optional. User-friendly display name for the session template. Can be up to 63 characters. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time when the template 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: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `creator` | `string` Output only. The email address of the user who created the template. |
| `labels` | `map (key: string, value: string)` Optional. Labels to associate with sessions created using this template. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** can be empty, but, if present, must contain 1 to 63 characters and conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `runtimeConfig` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeConfig`)`` Optional. Runtime configuration for session execution. |
| `environmentConfig` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/EnvironmentConfig`)`` Optional. Environment configuration for session execution. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time the template was last updated. 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: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `uuid` | `string` Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template. |
| The session configuration. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `jupyterSession` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/JupyterConfig`)`` Optional. Jupyter session config. |
| `sparkConnectSession` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/SparkConnectConfig`)`` Optional. Spark connect session config. |
| End of mutually exclusive fields. ||

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates/create` | Create a session template synchronously. |
| ### `https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates/delete` | Deletes a session template. |
| ### `https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates/get` | Gets the resource representation for a session template. |
| ### `https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates/list` | Lists session templates. |
| ### `https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/projects.locations.sessionTemplates/patch` | Updates the session template synchronously. |