Debian Codegraph @

docs/dyn/aiplatform_v1.projects.locations.notebookExecutionJobs.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="aiplatform_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a> . <a href="aiplatform_v1.projects.locations.notebookExecutionJobs.html">notebookExecutionJobs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1.projects.locations.notebookExecutionJobs.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, notebookExecutionJobId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a NotebookExecutionJob.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a NotebookExecutionJob.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets a NotebookExecutionJob.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists NotebookExecutionJobs in a Location.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <h3>Method Details</h3>
101 <div class="method">
102 <code class="details" id="close">close()</code>
103 <pre>Close httplib2 connections.</pre>
104 </div>
105
106 <div class="method">
107 <code class="details" id="create">create(parent, body=None, notebookExecutionJobId=None, x__xgafv=None)</code>
108 <pre>Creates a NotebookExecutionJob.
109
110 Args:
111 parent: string, Required. The resource name of the Location to create the NotebookExecutionJob. Format: `projects/{project}/locations/{location}` (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # NotebookExecutionJob represents an instance of a notebook execution.
116 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was created.
117 &quot;customEnvironmentSpec&quot;: { # Compute configuration to use for an execution job. # The custom compute configuration for an execution job.
118 &quot;machineSpec&quot;: { # Specification of a single machine. # The specification of a single machine for the execution job.
119 &quot;acceleratorCount&quot;: 42, # The number of accelerators to attach to the machine. For [accelerator optimized machine types](https://cloud.google.com/compute/docs/accelerator-optimized-machines), One may set the accelerator_count from 1 to N for machine with N GPUs. If accelerator_count is less than or equal to N / 2, Agent Platform co-schedules the replicas of the model into the same VM to save cost. For example, if the machine type is a3-highgpu-8g, which has 8 H100 GPUs, one can set accelerator_count to 1 to 8. If accelerator_count is 1, 2, 3, or 4, Agent Platform co-schedules 8, 4, 2, or 2 replicas of the model into the same VM to save cost. When co-scheduling, CPU, memory and storage on the VM will be distributed to replicas on the VM. For example, one can expect a co-scheduled replica requesting 2 GPUs out of a 8-GPU VM will receive 25% of the CPU, memory and storage of the VM. Note that the feature is not compatible with multihost_gpu_node_count. When multihost_gpu_node_count is set, the co-scheduling will not be enabled.
120 &quot;acceleratorType&quot;: &quot;A String&quot;, # Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
121 &quot;gpuPartitionSize&quot;: &quot;A String&quot;, # Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size=&quot;1g.10gb&quot;, the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1.
122 &quot;machineType&quot;: &quot;A String&quot;, # Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.
123 &quot;reservationAffinity&quot;: { # A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity. # Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
124 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
125 &quot;reservationAffinityType&quot;: &quot;A String&quot;, # Required. Specifies the reservation affinity type.
126 &quot;values&quot;: [ # Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.
127 &quot;A String&quot;,
128 ],
129 },
130 &quot;tpuTopology&quot;: &quot;A String&quot;, # Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: &quot;2x2x1&quot;).
131 },
132 &quot;networkSpec&quot;: { # Network spec. # The network configuration to use for the execution job.
133 &quot;enableInternetAccess&quot;: True or False, # Whether to enable public internet access. Default false.
134 &quot;network&quot;: &quot;A String&quot;, # The full name of the Google Compute Engine [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
135 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`
136 },
137 &quot;persistentDiskSpec&quot;: { # Represents the spec of persistent disk and hyperdisk options. # The specification of a persistent disk to attach for the execution job.
138 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Size in GB of the disk (default is 100GB).
139 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive) &quot;pd-balanced&quot; (Balanced Persistent Disk) &quot;pd-extreme&quot; (Extreme Persistent Disk) &quot;hyperdisk-balanced&quot; (Hyperdisk Balanced) &quot;hyperdisk-extreme&quot; (Hyperdisk Extreme) &quot;hyperdisk-balanced-high-availability&quot; (Hyperdisk Balanced High Availability) &quot;hyperdisk-ml&quot; (Hyperdisk ML) &quot;hyperdisk-throughput&quot; (Hyperdisk Throughput)
140 },
141 },
142 &quot;dataformRepositorySource&quot;: { # The Dataform Repository containing the input notebook. # The Dataform Repository pointing to a single file notebook repository.
143 &quot;commitSha&quot;: &quot;A String&quot;, # The commit SHA to read repository with. If unset, the file will be read at HEAD.
144 &quot;dataformRepositoryResourceName&quot;: &quot;A String&quot;, # The resource name of the Dataform Repository. Format: `projects/{project_id}/locations/{location}/repositories/{repository_id}`
145 },
146 &quot;directNotebookSource&quot;: { # The content of the input notebook in ipynb format. # The contents of an input notebook file.
147 &quot;content&quot;: &quot;A String&quot;, # The base64-encoded contents of the input notebook file.
148 },
149 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
150 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.
151 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
152 },
153 &quot;executionTimeout&quot;: &quot;A String&quot;, # Max running time of the execution job in seconds (default 86400s / 24 hrs).
154 &quot;executionUser&quot;: &quot;A String&quot;, # The user email to run the execution as. Only supported by Colab runtimes.
155 &quot;gcsNotebookSource&quot;: { # The Cloud Storage uri for the input notebook. # The Cloud Storage url pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
156 &quot;generation&quot;: &quot;A String&quot;, # The version of the Cloud Storage object to read. If unset, the current version of the object is read. See https://cloud.google.com/storage/docs/metadata#generation-number.
157 &quot;uri&quot;: &quot;A String&quot;, # The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
158 },
159 &quot;gcsOutputUri&quot;: &quot;A String&quot;, # The Cloud Storage location to upload the result to. Format: `gs://bucket-name`
160 &quot;jobState&quot;: &quot;A String&quot;, # Output only. The state of the NotebookExecutionJob.
161 &quot;kernelName&quot;: &quot;A String&quot;, # The name of the kernel to use during notebook execution. If unset, the default kernel is used.
162 &quot;labels&quot;: { # The labels with user-defined metadata to organize NotebookExecutionJobs. 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. System reserved label keys are prefixed with &quot;aiplatform.googleapis.com/&quot; and are immutable.
163 &quot;a_key&quot;: &quot;A String&quot;,
164 },
165 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
166 &quot;notebookRuntimeTemplateResourceName&quot;: &quot;A String&quot;, # The NotebookRuntimeTemplate to source compute configuration from.
167 &quot;scheduleResourceName&quot;: &quot;A String&quot;, # The Schedule resource name if this job is triggered by one. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
168 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to run the execution as.
169 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.
170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
172 {
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 ],
176 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
177 },
178 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was most recently updated.
179 &quot;workbenchRuntime&quot;: { # Configuration for a Workbench Instances-based environment. # The Workbench runtime configuration to use for the notebook execution.
180 },
181 }
182
183 notebookExecutionJobId: string, Optional. User specified ID for the NotebookExecutionJob.
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189 Returns:
190 An object of the form:
191
192 { # This resource represents a long-running operation that is the result of a network API call.
193 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
194 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
195 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
196 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
197 {
198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199 },
200 ],
201 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
202 },
203 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
207 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210 }</pre>
211 </div>
212
213 <div class="method">
214 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
215 <pre>Deletes a NotebookExecutionJob.
216
217 Args:
218 name: string, Required. The name of the NotebookExecutionJob resource to be deleted. (required)
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224 Returns:
225 An object of the form:
226
227 { # This resource represents a long-running operation that is the result of a network API call.
228 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
229 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
230 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
231 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
232 {
233 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
234 },
235 ],
236 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
237 },
238 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
240 },
241 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
242 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
243 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
244 },
245 }</pre>
246 </div>
247
248 <div class="method">
249 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
250 <pre>Gets a NotebookExecutionJob.
251
252 Args:
253 name: string, Required. The name of the NotebookExecutionJob resource. (required)
254 view: string, Optional. The NotebookExecutionJob view. Defaults to BASIC.
255 Allowed values
256 NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED - When unspecified, the API defaults to the BASIC view.
257 NOTEBOOK_EXECUTION_JOB_VIEW_BASIC - Includes all fields except for direct notebook inputs.
258 NOTEBOOK_EXECUTION_JOB_VIEW_FULL - Includes all fields.
259 x__xgafv: string, V1 error format.
260 Allowed values
261 1 - v1 error format
262 2 - v2 error format
263
264 Returns:
265 An object of the form:
266
267 { # NotebookExecutionJob represents an instance of a notebook execution.
268 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was created.
269 &quot;customEnvironmentSpec&quot;: { # Compute configuration to use for an execution job. # The custom compute configuration for an execution job.
270 &quot;machineSpec&quot;: { # Specification of a single machine. # The specification of a single machine for the execution job.
271 &quot;acceleratorCount&quot;: 42, # The number of accelerators to attach to the machine. For [accelerator optimized machine types](https://cloud.google.com/compute/docs/accelerator-optimized-machines), One may set the accelerator_count from 1 to N for machine with N GPUs. If accelerator_count is less than or equal to N / 2, Agent Platform co-schedules the replicas of the model into the same VM to save cost. For example, if the machine type is a3-highgpu-8g, which has 8 H100 GPUs, one can set accelerator_count to 1 to 8. If accelerator_count is 1, 2, 3, or 4, Agent Platform co-schedules 8, 4, 2, or 2 replicas of the model into the same VM to save cost. When co-scheduling, CPU, memory and storage on the VM will be distributed to replicas on the VM. For example, one can expect a co-scheduled replica requesting 2 GPUs out of a 8-GPU VM will receive 25% of the CPU, memory and storage of the VM. Note that the feature is not compatible with multihost_gpu_node_count. When multihost_gpu_node_count is set, the co-scheduling will not be enabled.
272 &quot;acceleratorType&quot;: &quot;A String&quot;, # Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
273 &quot;gpuPartitionSize&quot;: &quot;A String&quot;, # Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size=&quot;1g.10gb&quot;, the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1.
274 &quot;machineType&quot;: &quot;A String&quot;, # Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.
275 &quot;reservationAffinity&quot;: { # A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity. # Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
276 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
277 &quot;reservationAffinityType&quot;: &quot;A String&quot;, # Required. Specifies the reservation affinity type.
278 &quot;values&quot;: [ # Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.
279 &quot;A String&quot;,
280 ],
281 },
282 &quot;tpuTopology&quot;: &quot;A String&quot;, # Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: &quot;2x2x1&quot;).
283 },
284 &quot;networkSpec&quot;: { # Network spec. # The network configuration to use for the execution job.
285 &quot;enableInternetAccess&quot;: True or False, # Whether to enable public internet access. Default false.
286 &quot;network&quot;: &quot;A String&quot;, # The full name of the Google Compute Engine [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
287 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`
288 },
289 &quot;persistentDiskSpec&quot;: { # Represents the spec of persistent disk and hyperdisk options. # The specification of a persistent disk to attach for the execution job.
290 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Size in GB of the disk (default is 100GB).
291 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive) &quot;pd-balanced&quot; (Balanced Persistent Disk) &quot;pd-extreme&quot; (Extreme Persistent Disk) &quot;hyperdisk-balanced&quot; (Hyperdisk Balanced) &quot;hyperdisk-extreme&quot; (Hyperdisk Extreme) &quot;hyperdisk-balanced-high-availability&quot; (Hyperdisk Balanced High Availability) &quot;hyperdisk-ml&quot; (Hyperdisk ML) &quot;hyperdisk-throughput&quot; (Hyperdisk Throughput)
292 },
293 },
294 &quot;dataformRepositorySource&quot;: { # The Dataform Repository containing the input notebook. # The Dataform Repository pointing to a single file notebook repository.
295 &quot;commitSha&quot;: &quot;A String&quot;, # The commit SHA to read repository with. If unset, the file will be read at HEAD.
296 &quot;dataformRepositoryResourceName&quot;: &quot;A String&quot;, # The resource name of the Dataform Repository. Format: `projects/{project_id}/locations/{location}/repositories/{repository_id}`
297 },
298 &quot;directNotebookSource&quot;: { # The content of the input notebook in ipynb format. # The contents of an input notebook file.
299 &quot;content&quot;: &quot;A String&quot;, # The base64-encoded contents of the input notebook file.
300 },
301 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
302 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.
303 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
304 },
305 &quot;executionTimeout&quot;: &quot;A String&quot;, # Max running time of the execution job in seconds (default 86400s / 24 hrs).
306 &quot;executionUser&quot;: &quot;A String&quot;, # The user email to run the execution as. Only supported by Colab runtimes.
307 &quot;gcsNotebookSource&quot;: { # The Cloud Storage uri for the input notebook. # The Cloud Storage url pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
308 &quot;generation&quot;: &quot;A String&quot;, # The version of the Cloud Storage object to read. If unset, the current version of the object is read. See https://cloud.google.com/storage/docs/metadata#generation-number.
309 &quot;uri&quot;: &quot;A String&quot;, # The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
310 },
311 &quot;gcsOutputUri&quot;: &quot;A String&quot;, # The Cloud Storage location to upload the result to. Format: `gs://bucket-name`
312 &quot;jobState&quot;: &quot;A String&quot;, # Output only. The state of the NotebookExecutionJob.
313 &quot;kernelName&quot;: &quot;A String&quot;, # The name of the kernel to use during notebook execution. If unset, the default kernel is used.
314 &quot;labels&quot;: { # The labels with user-defined metadata to organize NotebookExecutionJobs. 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. System reserved label keys are prefixed with &quot;aiplatform.googleapis.com/&quot; and are immutable.
315 &quot;a_key&quot;: &quot;A String&quot;,
316 },
317 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
318 &quot;notebookRuntimeTemplateResourceName&quot;: &quot;A String&quot;, # The NotebookRuntimeTemplate to source compute configuration from.
319 &quot;scheduleResourceName&quot;: &quot;A String&quot;, # The Schedule resource name if this job is triggered by one. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
320 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to run the execution as.
321 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.
322 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
323 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
324 {
325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
326 },
327 ],
328 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
329 },
330 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was most recently updated.
331 &quot;workbenchRuntime&quot;: { # Configuration for a Workbench Instances-based environment. # The Workbench runtime configuration to use for the notebook execution.
332 },
333 }</pre>
334 </div>
335
336 <div class="method">
337 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
338 <pre>Lists NotebookExecutionJobs in a Location.
339
340 Args:
341 parent: string, Required. The resource name of the Location from which to list the NotebookExecutionJobs. Format: `projects/{project}/locations/{location}` (required)
342 filter: string, Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookExecutionJob` supports = and !=. `notebookExecutionJob` represents the NotebookExecutionJob ID. * `displayName` supports = and != and regex. * `schedule` supports = and != and regex. Some examples: * `notebookExecutionJob=&quot;123&quot;` * `notebookExecutionJob=&quot;my-execution-job&quot;` * `displayName=&quot;myDisplayName&quot;` and `displayName=~&quot;myDisplayNameRegex&quot;`
343 orderBy: string, Optional. A comma-separated list of fields to order by, sorted in ascending order. Use &quot;desc&quot; after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.
344 pageSize: integer, Optional. The standard list page size.
345 pageToken: string, Optional. The standard list page token. Typically obtained via ListNotebookExecutionJobsResponse.next_page_token of the previous NotebookService.ListNotebookExecutionJobs call.
346 view: string, Optional. The NotebookExecutionJob view. Defaults to BASIC.
347 Allowed values
348 NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED - When unspecified, the API defaults to the BASIC view.
349 NOTEBOOK_EXECUTION_JOB_VIEW_BASIC - Includes all fields except for direct notebook inputs.
350 NOTEBOOK_EXECUTION_JOB_VIEW_FULL - Includes all fields.
351 x__xgafv: string, V1 error format.
352 Allowed values
353 1 - v1 error format
354 2 - v2 error format
355
356 Returns:
357 An object of the form:
358
359 { # Response message for [NotebookService.CreateNotebookExecutionJob]
360 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Pass to ListNotebookExecutionJobsRequest.page_token to obtain that page.
361 &quot;notebookExecutionJobs&quot;: [ # List of NotebookExecutionJobs in the requested page.
362 { # NotebookExecutionJob represents an instance of a notebook execution.
363 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was created.
364 &quot;customEnvironmentSpec&quot;: { # Compute configuration to use for an execution job. # The custom compute configuration for an execution job.
365 &quot;machineSpec&quot;: { # Specification of a single machine. # The specification of a single machine for the execution job.
366 &quot;acceleratorCount&quot;: 42, # The number of accelerators to attach to the machine. For [accelerator optimized machine types](https://cloud.google.com/compute/docs/accelerator-optimized-machines), One may set the accelerator_count from 1 to N for machine with N GPUs. If accelerator_count is less than or equal to N / 2, Agent Platform co-schedules the replicas of the model into the same VM to save cost. For example, if the machine type is a3-highgpu-8g, which has 8 H100 GPUs, one can set accelerator_count to 1 to 8. If accelerator_count is 1, 2, 3, or 4, Agent Platform co-schedules 8, 4, 2, or 2 replicas of the model into the same VM to save cost. When co-scheduling, CPU, memory and storage on the VM will be distributed to replicas on the VM. For example, one can expect a co-scheduled replica requesting 2 GPUs out of a 8-GPU VM will receive 25% of the CPU, memory and storage of the VM. Note that the feature is not compatible with multihost_gpu_node_count. When multihost_gpu_node_count is set, the co-scheduling will not be enabled.
367 &quot;acceleratorType&quot;: &quot;A String&quot;, # Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
368 &quot;gpuPartitionSize&quot;: &quot;A String&quot;, # Optional. Immutable. The Nvidia GPU partition size. When specified, the requested accelerators will be partitioned into smaller GPU partitions. For example, if the request is for 8 units of NVIDIA A100 GPUs, and gpu_partition_size=&quot;1g.10gb&quot;, the service will create 8 * 7 = 56 partitioned MIG instances. The partition size must be a value supported by the requested accelerator. Refer to [Nvidia GPU Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) for the available partition sizes. If set, the accelerator_count should be set to 1.
369 &quot;machineType&quot;: &quot;A String&quot;, # Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/gemini-enterprise-agent-platform/machine-learning/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.
370 &quot;reservationAffinity&quot;: { # A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity. # Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
371 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
372 &quot;reservationAffinityType&quot;: &quot;A String&quot;, # Required. Specifies the reservation affinity type.
373 &quot;values&quot;: [ # Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.
374 &quot;A String&quot;,
375 ],
376 },
377 &quot;tpuTopology&quot;: &quot;A String&quot;, # Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: &quot;2x2x1&quot;).
378 },
379 &quot;networkSpec&quot;: { # Network spec. # The network configuration to use for the execution job.
380 &quot;enableInternetAccess&quot;: True or False, # Whether to enable public internet access. Default false.
381 &quot;network&quot;: &quot;A String&quot;, # The full name of the Google Compute Engine [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
382 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnet that this instance is in. Format: `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`
383 },
384 &quot;persistentDiskSpec&quot;: { # Represents the spec of persistent disk and hyperdisk options. # The specification of a persistent disk to attach for the execution job.
385 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Size in GB of the disk (default is 100GB).
386 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive) &quot;pd-balanced&quot; (Balanced Persistent Disk) &quot;pd-extreme&quot; (Extreme Persistent Disk) &quot;hyperdisk-balanced&quot; (Hyperdisk Balanced) &quot;hyperdisk-extreme&quot; (Hyperdisk Extreme) &quot;hyperdisk-balanced-high-availability&quot; (Hyperdisk Balanced High Availability) &quot;hyperdisk-ml&quot; (Hyperdisk ML) &quot;hyperdisk-throughput&quot; (Hyperdisk Throughput)
387 },
388 },
389 &quot;dataformRepositorySource&quot;: { # The Dataform Repository containing the input notebook. # The Dataform Repository pointing to a single file notebook repository.
390 &quot;commitSha&quot;: &quot;A String&quot;, # The commit SHA to read repository with. If unset, the file will be read at HEAD.
391 &quot;dataformRepositoryResourceName&quot;: &quot;A String&quot;, # The resource name of the Dataform Repository. Format: `projects/{project_id}/locations/{location}/repositories/{repository_id}`
392 },
393 &quot;directNotebookSource&quot;: { # The content of the input notebook in ipynb format. # The contents of an input notebook file.
394 &quot;content&quot;: &quot;A String&quot;, # The base64-encoded contents of the input notebook file.
395 },
396 &quot;displayName&quot;: &quot;A String&quot;, # The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
397 &quot;encryptionSpec&quot;: { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.
398 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
399 },
400 &quot;executionTimeout&quot;: &quot;A String&quot;, # Max running time of the execution job in seconds (default 86400s / 24 hrs).
401 &quot;executionUser&quot;: &quot;A String&quot;, # The user email to run the execution as. Only supported by Colab runtimes.
402 &quot;gcsNotebookSource&quot;: { # The Cloud Storage uri for the input notebook. # The Cloud Storage url pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
403 &quot;generation&quot;: &quot;A String&quot;, # The version of the Cloud Storage object to read. If unset, the current version of the object is read. See https://cloud.google.com/storage/docs/metadata#generation-number.
404 &quot;uri&quot;: &quot;A String&quot;, # The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/notebook_file.ipynb`
405 },
406 &quot;gcsOutputUri&quot;: &quot;A String&quot;, # The Cloud Storage location to upload the result to. Format: `gs://bucket-name`
407 &quot;jobState&quot;: &quot;A String&quot;, # Output only. The state of the NotebookExecutionJob.
408 &quot;kernelName&quot;: &quot;A String&quot;, # The name of the kernel to use during notebook execution. If unset, the default kernel is used.
409 &quot;labels&quot;: { # The labels with user-defined metadata to organize NotebookExecutionJobs. 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. System reserved label keys are prefixed with &quot;aiplatform.googleapis.com/&quot; and are immutable.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
412 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
413 &quot;notebookRuntimeTemplateResourceName&quot;: &quot;A String&quot;, # The NotebookRuntimeTemplate to source compute configuration from.
414 &quot;scheduleResourceName&quot;: &quot;A String&quot;, # The Schedule resource name if this job is triggered by one. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
415 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to run the execution as.
416 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.
417 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
418 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
419 {
420 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
421 },
422 ],
423 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
424 },
425 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this NotebookExecutionJob was most recently updated.
426 &quot;workbenchRuntime&quot;: { # Configuration for a Workbench Instances-based environment. # The Workbench runtime configuration to use for the notebook execution.
427 },
428 },
429 ],
430 }</pre>
431 </div>
432
433 <div class="method">
434 <code class="details" id="list_next">list_next()</code>
435 <pre>Retrieves the next page of results.
436
437 Args:
438 previous_request: The request for the previous page. (required)
439 previous_response: The response from the request for the previous page. (required)
440
441 Returns:
442 A request object that you can call &#x27;execute()&#x27; on to request the next
443 page. Returns None if there are no more items in the collection.
444 </pre>
445 </div>
446
447 </body></html>