## Packages

- [aiplatform.gdc.goog/v1](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#aiplatformgdcgoogv1)

## aiplatform.gdc.goog/v1

Package v1 contains API schema definitions for the aiplatform.gdc.goog v1 API
group.

### Resource Types

- [Notebook](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebook)
- [NotebookList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebooklist)

#### Notebook

`Notebook` is the Schema for the Notebooks API.

*Appears in:*
- [NotebookList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebooklist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `aiplatform.gdc.goog/v1` |
| `kind` *string* | `Notebook` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[NotebookSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookspec)* |   |
| `status` *[NotebookStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookstatus)* |   |

#### NotebookCondition

*Appears in:*
- [NotebookStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookstatus)

| Field | Description |
|---|---|
| `type` *string* | The type of the condition. There are three possible values, `Running`, `Waiting`, and `Terminated`. |
| `lastProbeTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#time-v1-meta)* | The time when the Notebook was last probed. |
| `reason` *string* | A string that contains the reason the container is in its current state. |
| `message` *string* | A string that contains a detailed message the container is in its current state. |

#### NotebookError

`NotebookError` represents an error that occurred while updating Notebook resources.

*Appears in:*
- [NotebookStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookstatus)

| Field | Description |
|---|---|
| `errorMessage` *string* | A string that contains a detailed message that describes the `Pod` state. |
| `code` *string* | A string that contains the error code of the `Pod` in its current state, such as `VTXWB-E0000`. |

#### NotebookList

`NotebookList` contains a list of `Notebook` instances.

| Field | Description |
|---|---|
| `apiVersion` *string* | `aiplatform.gdc.goog/v1` |
| `kind` *string* | `NotebookList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[Notebook](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebook) array* |   |

#### NotebookSpec

`NotebookSpec` defines the desired state of the Notebook.

*Appears in:*
- [Notebook](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebook)

| Field | Description |
|---|---|
| `template` *[NotebookTemplateSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebooktemplatespec)* | A specification for a Notebook instance that describes the desired state of the Notebook's workload in the cluster. |

#### NotebookStatus

`NotebookStatus` defines the observed state of the Notebook.

*Appears in:*
- [Notebook](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebook)

| Field | Description |
|---|---|
| `conditions` *[NotebookCondition](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookcondition) array* | Deprecated, use `Notebook` CR `Events`. An array of `NotebookCondition` objects. |
| `readyReplicas` *integer* | The number of `Pods` created by the `StatefulSet` controller with their `Condition` set to `Ready`. |
| `containerState` *[ContainerState](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#containerstate-v1-core)* | Deprecated, use `NotebookStatus.Phase`. The state of the underlying container. For more information, refer to https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#containerstate-v1-core. |
| `phase` *string* | A string that contains the current `Pod` phase. |
| `reason` *string* | A string that contains the reason the `Pod` is in its current state. |
| `podUnavailableTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#time-v1-meta)* | If the Notebook is not currently running or the controller failed to query pod status, the time when the Notebook pod was first observed to not be running. |
| `error` *[NotebookError](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookerror)* | The last error to occur while updating Notebook resources. This field is empty on success. |

#### NotebookTemplateSpec

`NotebookTemplateSpec` defines the desired state of the cluster.

*Appears in:*
- [NotebookSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/vertex-ai/workbench/krm/vertex-ai-workbench-krm-ref.md.txt#notebookspec)

| Field | Description |
|---|---|
| `spec` *[PodSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podspec-v1-core)* | Defines the containers, environment variables for the container, and other properties such as the scheduler name and security context. For more information, refer to https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podspec-v1-core. |
| `userCluster` *string* | `UserCluster` is the name of the user cluster where the Notebook workload is created. The cluster must have sufficient resources to run the workload specified in `PodSpec`. |