# Google Cloud Ai Platform V1 Client - Class NotebookRuntimeTemplate (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class NotebookRuntimeTemplate.

A template that specifies runtime configurations such as machine type,
runtime version, network configurations, etc.

Multiple runtimes can be created from a runtime template.

Generated from protobuf message `google.cloud.aiplatform.v1.NotebookRuntimeTemplate`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The resource name of the NotebookRuntimeTemplate. |
| `↳ display_name` | `string` Required. The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
| `↳ description` | `string` The description of the NotebookRuntimeTemplate. |
| `↳ is_default` | `bool` Output only. Deprecated: This field has no behavior. Use notebook_runtime_type = 'ONE_CLICK' instead. The default template to use if not specified. |
| `↳ machine_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.MachineSpec` Optional. Immutable. The specification of a single machine for the template. |
| `↳ data_persistent_disk_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PersistentDiskSpec` Optional. The specification of \[persistent disk\]\[<https://cloud.google.com/compute/docs/disks/persistent-disks>\] attached to the runtime as data disk storage. |
| `↳ network_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NetworkSpec` Optional. Network spec. |
| `↳ service_account` | `string` Deprecated: This field is ignored and the "Vertex AI Notebook Service Account" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See <https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account> for more details. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. |
| `↳ etag` | `string` Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The labels with user-defined metadata to organize the NotebookRuntimeTemplates. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See <https://goo.gl/xmQnxf> for more information and examples of labels. |
| `↳ idle_shutdown_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookIdleShutdownConfig` The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled. |
| `↳ euc_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookEucConfig` EUC configuration of the NotebookRuntimeTemplate. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when this NotebookRuntimeTemplate was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated. |
| `↳ notebook_runtime_type` | `int` Optional. Immutable. The type of the notebook runtime template. |
| `↳ shielded_vm_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ShieldedVmConfig` Optional. Immutable. Runtime Shielded VM spec. |
| `↳ network_tags` | `string[]` Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). |
| `↳ encryption_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec` Customer-managed encryption key spec for the notebook runtime. |
| `↳ software_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookSoftwareConfig` Optional. The notebook software configuration of the notebook runtime. |

### getName

The resource name of the NotebookRuntimeTemplate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The resource name of the NotebookRuntimeTemplate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. The display name of the NotebookRuntimeTemplate.

The name can be up to 128 characters long and can consist of any UTF-8
characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. The display name of the NotebookRuntimeTemplate.

The name can be up to 128 characters long and can consist of any UTF-8
characters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

The description of the NotebookRuntimeTemplate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

The description of the NotebookRuntimeTemplate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIsDefault

Output only. Deprecated: This field has no behavior. Use
notebook_runtime_type = 'ONE_CLICK' instead.

The default template to use if not specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsDefault

Output only. Deprecated: This field has no behavior. Use
notebook_runtime_type = 'ONE_CLICK' instead.

The default template to use if not specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMachineSpec

Optional. Immutable. The specification of a single machine for the
template.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.MachineSpec|null` |   |

### hasMachineSpec

### clearMachineSpec

### setMachineSpec

Optional. Immutable. The specification of a single machine for the
template.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.MachineSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataPersistentDiskSpec

Optional. The specification of \[persistent
disk\]\[<https://cloud.google.com/compute/docs/disks/persistent-disks>\]
attached to the runtime as data disk storage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PersistentDiskSpec|null` |   |

### hasDataPersistentDiskSpec

### clearDataPersistentDiskSpec

### setDataPersistentDiskSpec

Optional. The specification of \[persistent
disk\]\[<https://cloud.google.com/compute/docs/disks/persistent-disks>\]
attached to the runtime as data disk storage.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PersistentDiskSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkSpec

Optional. Network spec.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NetworkSpec|null` |   |

### hasNetworkSpec

### clearNetworkSpec

### setNetworkSpec

Optional. Network spec.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NetworkSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccount

Deprecated: This field is ignored and the "Vertex AI Notebook Service
Account"
(service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
used for the runtime workload identity.

See
<https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account>
for more details.
For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
The service account that the runtime workload runs as.
You can use any service account within the same project, but you
must have the service account user permission to use the instance.
If not specified, the [Compute Engine default service
account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
is used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAccount

Deprecated: This field is ignored and the "Vertex AI Notebook Service
Account"
(service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
used for the runtime workload identity.

See
<https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account>
for more details.
For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
The service account that the runtime workload runs as.
You can use any service account within the same project, but you
must have the service account user permission to use the instance.
If not specified, the [Compute Engine default service
account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
is used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEtag

Used to perform consistent read-modify-write updates. If not set, a blind
"overwrite" update happens.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEtag

Used to perform consistent read-modify-write updates. If not set, a blind
"overwrite" update happens.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

The labels with user-defined metadata to organize the
NotebookRuntimeTemplates.

Label keys and values can be no longer than 64 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
See <https://goo.gl/xmQnxf> for more information and examples of labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

The labels with user-defined metadata to organize the
NotebookRuntimeTemplates.

Label keys and values can be no longer than 64 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
See <https://goo.gl/xmQnxf> for more information and examples of labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIdleShutdownConfig

The idle shutdown configuration of NotebookRuntimeTemplate. This config
will only be set when idle shutdown is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookIdleShutdownConfig|null` |   |

### hasIdleShutdownConfig

### clearIdleShutdownConfig

### setIdleShutdownConfig

The idle shutdown configuration of NotebookRuntimeTemplate. This config
will only be set when idle shutdown is enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookIdleShutdownConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEucConfig

EUC configuration of the NotebookRuntimeTemplate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookEucConfig|null` |   |

### hasEucConfig

### clearEucConfig

### setEucConfig

EUC configuration of the NotebookRuntimeTemplate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookEucConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Timestamp when this NotebookRuntimeTemplate was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp when this NotebookRuntimeTemplate was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. Timestamp when this NotebookRuntimeTemplate was most recently
updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp when this NotebookRuntimeTemplate was most recently
updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNotebookRuntimeType

Optional. Immutable. The type of the notebook runtime template.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [NotebookRuntimeType](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookRuntimeType). |

### setNotebookRuntimeType

Optional. Immutable. The type of the notebook runtime template.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [NotebookRuntimeType](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookRuntimeType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShieldedVmConfig

Optional. Immutable. Runtime Shielded VM spec.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ShieldedVmConfig|null` |   |

### hasShieldedVmConfig

### clearShieldedVmConfig

### setShieldedVmConfig

Optional. Immutable. Runtime Shielded VM spec.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ShieldedVmConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkTags

Optional. The Compute Engine tags to add to runtime (see [Tagging
instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNetworkTags

Optional. The Compute Engine tags to add to runtime (see [Tagging
instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionSpec

Customer-managed encryption key spec for the notebook runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec|null` |   |

### hasEncryptionSpec

### clearEncryptionSpec

### setEncryptionSpec

Customer-managed encryption key spec for the notebook runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSoftwareConfig

Optional. The notebook software configuration of the notebook runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookSoftwareConfig|null` |   |

### hasSoftwareConfig

### clearSoftwareConfig

### setSoftwareConfig

Optional. The notebook software configuration of the notebook runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.NotebookSoftwareConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |