blob: 07e187210ebcbf7e08208661ad8fa75a8cccfe93 [file] [log] [blame]
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="notebooks_v1.html">Notebooks API</a> . <a href="notebooks_v1.projects.html">projects</a> . <a href="notebooks_v1.projects.locations.html">locations</a> . <a href="notebooks_v1.projects.locations.environments.html">environments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, environmentId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new Environment.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a single Environment.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single Environment.</p>
89<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080090 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070091<p class="firstline">Lists environments in a project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
102 <code class="details" id="create">create(parent, body=None, environmentId=None, x__xgafv=None)</code>
103 <pre>Creates a new Environment.
104
105Args:
106 parent: string, Required. Format: `projects/{project_id}/locations/{location}` (required)
107 body: object, The request body.
108 The object takes the form of:
109
110{ # Definition of a software environment that is used to start a notebook instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800111 &quot;description&quot;: &quot;A String&quot;, # A brief description of this environment.
112 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
113 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
114 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
115 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
116 },
117 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `&quot;gs://path-to-file/file-name&quot;`
118 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
119 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
120 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
121 },
122 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this environment for the UI.
123 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`
124 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
125}
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126
127 environmentId: string, Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
136 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800137 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700139 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
140 {
141 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
142 },
143 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800144 &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.
145 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700146 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &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.
148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
149 },
150 &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}`.
151 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700154 }</pre>
155</div>
156
157<div class="method">
158 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
159 <pre>Deletes a single Environment.
160
161Args:
162 name: string, Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}` (required)
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168Returns:
169 An object of the form:
170
171 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800172 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700173 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700174 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
175 {
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &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.
180 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700181 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800182 &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.
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
185 &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}`.
186 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700189 }</pre>
190</div>
191
192<div class="method">
193 <code class="details" id="get">get(name, x__xgafv=None)</code>
194 <pre>Gets details of a single Environment.
195
196Args:
197 name: string, Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}` (required)
198 x__xgafv: string, V1 error format.
199 Allowed values
200 1 - v1 error format
201 2 - v2 error format
202
203Returns:
204 An object of the form:
205
206 { # Definition of a software environment that is used to start a notebook instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800207 &quot;description&quot;: &quot;A String&quot;, # A brief description of this environment.
208 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
209 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
210 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
211 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
212 },
213 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `&quot;gs://path-to-file/file-name&quot;`
214 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
215 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
216 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
217 },
218 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this environment for the UI.
219 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`
220 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
221 }</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700222</div>
223
224<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700226 <pre>Lists environments in a project.
227
228Args:
229 parent: string, Required. Format: `projects/{project_id}/locations/{location}` (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 pageSize: integer, Maximum return size of the list call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800231 pageToken: string, A previous returned page token that can be used to continue listing from the last result.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237Returns:
238 An object of the form:
239
240 { # Response for listing environments.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700241 &quot;environments&quot;: [ # A list of returned environments.
242 { # Definition of a software environment that is used to start a notebook instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800243 &quot;description&quot;: &quot;A String&quot;, # A brief description of this environment.
244 &quot;vmImage&quot;: { # Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM. # Use a Compute Engine VM image to start the notebook instance.
245 &quot;project&quot;: &quot;A String&quot;, # Required. The name of the Google Cloud project that this VM image belongs to. Format: `projects/{project_id}`
246 &quot;imageName&quot;: &quot;A String&quot;, # Use VM image name to find the image.
247 &quot;imageFamily&quot;: &quot;A String&quot;, # Use this VM image family to find the image; the newest image in this family will be used.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800248 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800249 &quot;postStartupScript&quot;: &quot;A String&quot;, # Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `&quot;gs://path-to-file/file-name&quot;`
250 &quot;containerImage&quot;: { # Definition of a container image for starting a notebook instance with the environment installed in a container. # Use a container image to start the notebook instance.
251 &quot;repository&quot;: &quot;A String&quot;, # Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}`
252 &quot;tag&quot;: &quot;A String&quot;, # The tag of the container image. If not specified, this defaults to the latest tag.
253 },
254 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this environment for the UI.
255 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`
256 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this environment was created.
257 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700258 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800259 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token that can be used to continue listing from the last result in the next list call.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700260 &quot;unreachable&quot;: [ # Locations that could not be reached.
261 &quot;A String&quot;,
262 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700263 }</pre>
264</div>
265
266<div class="method">
267 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
268 <pre>Retrieves the next page of results.
269
270Args:
271 previous_request: The request for the previous page. (required)
272 previous_response: The response from the request for the previous page. (required)
273
274Returns:
275 A request object that you can call &#x27;execute()&#x27; on to request the next
276 page. Returns None if there are no more items in the collection.
277 </pre>
278</div>
279
280</body></html>