Skip to content

Commit 7b30cb5

Browse files
Google APIscopybara-github
authored andcommitted
feat: add CustomEnvironmentSpec to NotebookExecutionJob
PiperOrigin-RevId: 697694162
1 parent 1f3eb16 commit 7b30cb5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/notebook_execution_job.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/aiplatform/v1/encryption_spec.proto";
2222
import "google/cloud/aiplatform/v1/job_state.proto";
23+
import "google/cloud/aiplatform/v1/machine_resources.proto";
24+
import "google/cloud/aiplatform/v1/network_spec.proto";
2325
import "google/protobuf/duration.proto";
2426
import "google/protobuf/timestamp.proto";
2527
import "google/rpc/status.proto";
@@ -70,6 +72,18 @@ message NotebookExecutionJob {
7072
bytes content = 1;
7173
}
7274

75+
// Compute configuration to use for an execution job.
76+
message CustomEnvironmentSpec {
77+
// The specification of a single machine for the execution job.
78+
MachineSpec machine_spec = 1;
79+
80+
// The specification of a persistent disk to attach for the execution job.
81+
PersistentDiskSpec persistent_disk_spec = 2;
82+
83+
// The network configuration to use for the execution job.
84+
NetworkSpec network_spec = 3;
85+
}
86+
7387
// The input notebook.
7488
oneof notebook_source {
7589
// The Dataform Repository pointing to a single file notebook repository.
@@ -90,6 +104,9 @@ message NotebookExecutionJob {
90104
[(google.api.resource_reference) = {
91105
type: "aiplatform.googleapis.com/NotebookRuntimeTemplate"
92106
}];
107+
108+
// The custom compute configuration for an execution job.
109+
CustomEnvironmentSpec custom_environment_spec = 16;
93110
}
94111

95112
// The location to store the notebook execution result.

0 commit comments

Comments
 (0)