Skip to content

Commit b975c34

Browse files
feat(notebooks): update the api
#### notebooks:v1 The following keys were added: - schemas.DataprocParameters (Total Keys: 3) - schemas.ExecutionTemplate.properties.dataprocParameters.$ref (Total Keys: 1) - schemas.ExecutionTemplate.properties.jobType.type (Total Keys: 1)
1 parent 8739999 commit b975c34

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

docs/dyn/notebooks_v1.projects.locations.executions.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ <h3>Method Details</h3>
117117
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
118118
},
119119
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
120+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
121+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
122+
},
120123
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
124+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
121125
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
122126
&quot;a_key&quot;: &quot;A String&quot;,
123127
},
@@ -224,7 +228,11 @@ <h3>Method Details</h3>
224228
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
225229
},
226230
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
231+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
232+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
233+
},
227234
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
235+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
228236
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
229237
&quot;a_key&quot;: &quot;A String&quot;,
230238
},
@@ -273,7 +281,11 @@ <h3>Method Details</h3>
273281
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
274282
},
275283
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
284+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
285+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
286+
},
276287
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
288+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
277289
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
278290
&quot;a_key&quot;: &quot;A String&quot;,
279291
},

docs/dyn/notebooks_v1.projects.locations.schedules.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ <h3>Method Details</h3>
121121
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
122122
},
123123
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
124+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
125+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
126+
},
124127
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
128+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
125129
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
126130
&quot;a_key&quot;: &quot;A String&quot;,
127131
},
@@ -144,7 +148,11 @@ <h3>Method Details</h3>
144148
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
145149
},
146150
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
151+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
152+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
153+
},
147154
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
155+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
148156
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
149157
&quot;a_key&quot;: &quot;A String&quot;,
150158
},
@@ -257,7 +265,11 @@ <h3>Method Details</h3>
257265
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
258266
},
259267
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
268+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
269+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
270+
},
260271
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
272+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
261273
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
262274
&quot;a_key&quot;: &quot;A String&quot;,
263275
},
@@ -280,7 +292,11 @@ <h3>Method Details</h3>
280292
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
281293
},
282294
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
295+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
296+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
297+
},
283298
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
299+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
284300
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
285301
&quot;a_key&quot;: &quot;A String&quot;,
286302
},
@@ -336,7 +352,11 @@ <h3>Method Details</h3>
336352
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
337353
},
338354
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
355+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
356+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
357+
},
339358
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
359+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
340360
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
341361
&quot;a_key&quot;: &quot;A String&quot;,
342362
},
@@ -359,7 +379,11 @@ <h3>Method Details</h3>
359379
&quot;type&quot;: &quot;A String&quot;, # Type of this accelerator.
360380
},
361381
&quot;containerImageUri&quot;: &quot;A String&quot;, # Container Image URI to a DLVM Example: &#x27;gcr.io/deeplearning-platform-release/base-cu100&#x27; More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container
382+
&quot;dataprocParameters&quot;: { # Parameters used in Dataproc JobType executions. # Parameters used in Dataproc JobType executions.
383+
&quot;cluster&quot;: &quot;A String&quot;, # URI for cluster used to run Dataproc execution. Format: &#x27;projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
384+
},
362385
&quot;inputNotebookFile&quot;: &quot;A String&quot;, # Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
386+
&quot;jobType&quot;: &quot;A String&quot;, # The type of Job to be used on this execution.
363387
&quot;labels&quot;: { # Labels for execution. If execution is scheduled, a field included will be &#x27;nbs-scheduled&#x27;. Otherwise, it is an immediate execution, and an included field will be &#x27;nbs-immediate&#x27;. Use fields to efficiently index between various types of executions.
364388
&quot;a_key&quot;: &quot;A String&quot;,
365389
},

googleapiclient/discovery_cache/documents/notebooks.v1.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@
16091609
}
16101610
}
16111611
},
1612-
"revision": "20210729",
1612+
"revision": "20210808",
16131613
"rootUrl": "https://notebooks.googleapis.com/",
16141614
"schemas": {
16151615
"AcceleratorConfig": {
@@ -1699,6 +1699,17 @@
16991699
},
17001700
"type": "object"
17011701
},
1702+
"DataprocParameters": {
1703+
"description": "Parameters used in Dataproc JobType executions.",
1704+
"id": "DataprocParameters",
1705+
"properties": {
1706+
"cluster": {
1707+
"description": "URI for cluster used to run Dataproc execution. Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}",
1708+
"type": "string"
1709+
}
1710+
},
1711+
"type": "object"
1712+
},
17021713
"Disk": {
17031714
"description": "An instance-attached disk resource.",
17041715
"id": "Disk",
@@ -1928,10 +1939,28 @@
19281939
"description": "Container Image URI to a DLVM Example: 'gcr.io/deeplearning-platform-release/base-cu100' More examples can be found at: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container",
19291940
"type": "string"
19301941
},
1942+
"dataprocParameters": {
1943+
"$ref": "DataprocParameters",
1944+
"description": "Parameters used in Dataproc JobType executions."
1945+
},
19311946
"inputNotebookFile": {
19321947
"description": "Path to the notebook file to execute. Must be in a Google Cloud Storage bucket. Format: gs://{project_id}/{folder}/{notebook_file_name} Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb",
19331948
"type": "string"
19341949
},
1950+
"jobType": {
1951+
"description": "The type of Job to be used on this execution.",
1952+
"enum": [
1953+
"JOB_TYPE_UNSPECIFIED",
1954+
"VERTEX_AI",
1955+
"DATAPROC"
1956+
],
1957+
"enumDescriptions": [
1958+
"No type specified.",
1959+
"Custom Job in `aiplatform.googleapis.com`. Default value for an execution.",
1960+
"Run execution on a cluster with Dataproc as a job. https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs"
1961+
],
1962+
"type": "string"
1963+
},
19351964
"labels": {
19361965
"additionalProperties": {
19371966
"type": "string"

0 commit comments

Comments
 (0)