session_templates
Creates, updates, deletes, gets or lists a session_templates
resource.
Overview
Name | session_templates |
Type | Resource |
Id | google.dataproc.session_templates |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the session template. |
description | string | Optional. Brief description of the template. |
createTime | string | Output only. The time when the template was created. |
creator | string | Output only. The email address of the user who created the template. |
environmentConfig | object | Environment configuration for a workload. |
jupyterSession | object | Jupyter configuration for an interactive session. |
labels | object | 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. |
runtimeConfig | object | Runtime configuration for a workload. |
sparkConnectSession | object | Spark connect configuration for an interactive session. |
updateTime | string | Output only. The time the template was last updated. |
uuid | string | Output only. A session template UUID (Unique Universal Identifier). The service generates this value when it creates the session template. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_session_templates_get | SELECT | locationsId, projectsId, sessionTemplatesId | Gets the resource representation for a session template. |
projects_locations_session_templates_list | SELECT | locationsId, projectsId | Lists session templates. |
projects_locations_session_templates_create | INSERT | locationsId, projectsId | Create a session template synchronously. |
projects_locations_session_templates_delete | DELETE | locationsId, projectsId, sessionTemplatesId | Deletes a session template. |
projects_locations_session_templates_patch | UPDATE | locationsId, projectsId, sessionTemplatesId | Updates the session template synchronously. |
SELECT
examples
Lists session templates.
SELECT
name,
description,
createTime,
creator,
environmentConfig,
jupyterSession,
labels,
runtimeConfig,
sparkConnectSession,
updateTime,
uuid
FROM google.dataproc.session_templates
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new session_templates
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataproc.session_templates (
locationsId,
projectsId,
name,
description,
jupyterSession,
sparkConnectSession,
labels,
runtimeConfig,
environmentConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ jupyterSession }}',
'{{ sparkConnectSession }}',
'{{ labels }}',
'{{ runtimeConfig }}',
'{{ environmentConfig }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: jupyterSession
value:
- name: kernel
value: string
- name: displayName
value: string
- name: sparkConnectSession
value: []
- name: creator
value: string
- name: labels
value: object
- name: runtimeConfig
value:
- name: version
value: string
- name: containerImage
value: string
- name: properties
value: object
- name: repositoryConfig
value:
- name: pypiRepositoryConfig
value:
- name: pypiRepository
value: string
- name: autotuningConfig
value:
- name: scenarios
value:
- string
- name: cohort
value: string
- name: environmentConfig
value:
- name: executionConfig
value:
- name: serviceAccount
value: string
- name: networkUri
value: string
- name: subnetworkUri
value: string
- name: networkTags
value:
- string
- name: kmsKey
value: string
- name: idleTtl
value: string
- name: ttl
value: string
- name: stagingBucket
value: string
- name: peripheralsConfig
value:
- name: metastoreService
value: string
- name: sparkHistoryServerConfig
value:
- name: dataprocCluster
value: string
- name: updateTime
value: string
- name: uuid
value: string
UPDATE
example
Updates a session_templates
resource.
/*+ update */
UPDATE google.dataproc.session_templates
SET
name = '{{ name }}',
description = '{{ description }}',
jupyterSession = '{{ jupyterSession }}',
sparkConnectSession = '{{ sparkConnectSession }}',
labels = '{{ labels }}',
runtimeConfig = '{{ runtimeConfig }}',
environmentConfig = '{{ environmentConfig }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sessionTemplatesId = '{{ sessionTemplatesId }}';
DELETE
example
Deletes the specified session_templates
resource.
/*+ delete */
DELETE FROM google.dataproc.session_templates
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sessionTemplatesId = '{{ sessionTemplatesId }}';