Skip to content

Commit 63161c0

Browse files
Google APIscopybara-github
authored andcommitted
feat: add message ColabImage, add field colab_image to NotebookSoftwareConfig
feat: allow user input for schedule_resource_name in NotebookExecutionJob docs: A comment for message NotebookRuntime is changed docs: A comment for enum value BEING_STARTED in enum NotebookRuntime.RuntimeState is changed docs: A comment for message NotebookSoftwareConfig is changed PiperOrigin-RevId: 778092563
1 parent 57d6eab commit 63161c0

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

google/cloud/aiplatform/v1beta1/notebook_execution_job.proto

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,11 @@ message NotebookExecutionJob {
146146
// Max running time of the execution job in seconds (default 86400s / 24 hrs).
147147
google.protobuf.Duration execution_timeout = 5;
148148

149-
// Output only. The Schedule resource name if this job is triggered by one.
150-
// Format:
149+
// The Schedule resource name if this job is triggered by one. Format:
151150
// `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
152-
string schedule_resource_name = 6 [
153-
(google.api.field_behavior) = OUTPUT_ONLY,
154-
(google.api.resource_reference) = {
155-
type: "aiplatform.googleapis.com/Schedule"
156-
}
157-
];
151+
string schedule_resource_name = 6 [(google.api.resource_reference) = {
152+
type: "aiplatform.googleapis.com/Schedule"
153+
}];
158154

159155
// Output only. The state of the NotebookExecutionJob.
160156
JobState job_state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];

google/cloud/aiplatform/v1beta1/notebook_runtime.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ message NotebookRuntimeTemplate {
164164
}
165165

166166
// A runtime is a virtual machine allocated to a particular user for a
167-
// particular Notebook file on temporary basis with lifetime limited to 24
168-
// hours.
167+
// particular Notebook file on temporary basis with lifetime. Default runtimes
168+
// have a lifetime of 18 hours, while custom runtimes last for 6 months from
169+
// their creation or last upgrade.
169170
message NotebookRuntime {
170171
option (google.api.resource) = {
171172
type: "aiplatform.googleapis.com/NotebookRuntime"
@@ -193,7 +194,8 @@ message NotebookRuntime {
193194
// NotebookRuntime is in running state.
194195
RUNNING = 1;
195196

196-
// NotebookRuntime is in starting state.
197+
// NotebookRuntime is in starting state. This is when the runtime is being
198+
// started from a stopped state.
197199
BEING_STARTED = 2;
198200

199201
// NotebookRuntime is in stopping state.

google/cloud/aiplatform/v1beta1/notebook_software_config.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,27 @@ message PostStartupScriptConfig {
4646
[(google.api.field_behavior) = OPTIONAL];
4747
}
4848

49+
// Colab image of the runtime.
50+
message ColabImage {
51+
// Optional. The release name of the NotebookRuntime Colab image, e.g.
52+
// "py310". If not specified, detault to the latest release.
53+
string release_name = 1 [(google.api.field_behavior) = OPTIONAL];
54+
55+
// Output only. A human-readable description of the specified colab image
56+
// release, populated by the system. Example: "Python 3.10", "Latest - current
57+
// Python 3.11"
58+
string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
59+
}
60+
61+
// Notebook Software Config. This is passed to the backend when user
62+
// makes software configurations in UI.
4963
message NotebookSoftwareConfig {
64+
// The image to be used by the notebook runtime.
65+
oneof runtime_image {
66+
// Optional. Google-managed NotebookRuntime colab image.
67+
ColabImage colab_image = 5 [(google.api.field_behavior) = OPTIONAL];
68+
}
69+
5070
// Optional. Environment variables to be passed to the container.
5171
// Maximum limit is 100.
5272
repeated EnvVar env = 1 [(google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)