21
21
22
22
from google .cloud .aiplatform_v1beta1 .types import encryption_spec as gca_encryption_spec
23
23
from google .cloud .aiplatform_v1beta1 .types import job_state as gca_job_state
24
+ from google .cloud .aiplatform_v1beta1 .types import machine_resources
25
+ from google .cloud .aiplatform_v1beta1 .types import network_spec as gca_network_spec
24
26
from google .protobuf import duration_pb2 # type: ignore
25
27
from google .protobuf import timestamp_pb2 # type: ignore
26
28
from google .rpc import status_pb2 # type: ignore
@@ -64,6 +66,11 @@ class NotebookExecutionJob(proto.Message):
64
66
The NotebookRuntimeTemplate to source compute
65
67
configuration from.
66
68
69
+ This field is a member of `oneof`_ ``environment_spec``.
70
+ custom_environment_spec (google.cloud.aiplatform_v1beta1.types.NotebookExecutionJob.CustomEnvironmentSpec):
71
+ The custom compute configuration for an
72
+ execution job.
73
+
67
74
This field is a member of `oneof`_ ``environment_spec``.
68
75
gcs_output_uri (str):
69
76
The Cloud Storage location to upload the result to. Format:
@@ -186,6 +193,37 @@ class DirectNotebookSource(proto.Message):
186
193
number = 1 ,
187
194
)
188
195
196
+ class CustomEnvironmentSpec (proto .Message ):
197
+ r"""Compute configuration to use for an execution job.
198
+
199
+ Attributes:
200
+ machine_spec (google.cloud.aiplatform_v1beta1.types.MachineSpec):
201
+ The specification of a single machine for the
202
+ execution job.
203
+ persistent_disk_spec (google.cloud.aiplatform_v1beta1.types.PersistentDiskSpec):
204
+ The specification of a persistent disk to
205
+ attach for the execution job.
206
+ network_spec (google.cloud.aiplatform_v1beta1.types.NetworkSpec):
207
+ The network configuration to use for the
208
+ execution job.
209
+ """
210
+
211
+ machine_spec : machine_resources .MachineSpec = proto .Field (
212
+ proto .MESSAGE ,
213
+ number = 1 ,
214
+ message = machine_resources .MachineSpec ,
215
+ )
216
+ persistent_disk_spec : machine_resources .PersistentDiskSpec = proto .Field (
217
+ proto .MESSAGE ,
218
+ number = 2 ,
219
+ message = machine_resources .PersistentDiskSpec ,
220
+ )
221
+ network_spec : gca_network_spec .NetworkSpec = proto .Field (
222
+ proto .MESSAGE ,
223
+ number = 3 ,
224
+ message = gca_network_spec .NetworkSpec ,
225
+ )
226
+
189
227
dataform_repository_source : DataformRepositorySource = proto .Field (
190
228
proto .MESSAGE ,
191
229
number = 3 ,
@@ -209,6 +247,12 @@ class DirectNotebookSource(proto.Message):
209
247
number = 14 ,
210
248
oneof = "environment_spec" ,
211
249
)
250
+ custom_environment_spec : CustomEnvironmentSpec = proto .Field (
251
+ proto .MESSAGE ,
252
+ number = 16 ,
253
+ oneof = "environment_spec" ,
254
+ message = CustomEnvironmentSpec ,
255
+ )
212
256
gcs_output_uri : str = proto .Field (
213
257
proto .STRING ,
214
258
number = 8 ,
0 commit comments