blob: d425a7da0d96ff6b68fdfa4a98ba4bd17d895c72 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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="cloudshell_v1alpha1.html">Cloud Shell API</a> . <a href="cloudshell_v1alpha1.users.html">users</a> . <a href="cloudshell_v1alpha1.users.environments.html">environments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudshell_v1alpha1.users.environments.publicKeys.html">publicKeys()</a></code>
79</p>
80<p class="firstline">Returns the publicKeys Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#authorize">authorize(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Sends OAuth credentials to a running environment on behalf of a user. When</p>
85<p class="toc_element">
86 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Gets an environment. Returns NOT_FOUND if the environment does not exist.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Updates an existing environment.</p>
91<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070092 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Starts an existing environment, allowing clients to connect to it. The</p>
94<h3>Method Details</h3>
95<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code class="details" id="authorize">authorize(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 <pre>Sends OAuth credentials to a running environment on behalf of a user. When
98this completes, the environment will be authorized to run various Google
99Cloud command line tools without requiring the user to manually
100authenticate.
101
102Args:
103 name: string, Name of the resource that should receive the credentials, for example
104`users/me/environments/default` or
105`users/someone@example.com/environments/default`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 The object takes the form of:
108
109{ # Request message for AuthorizeEnvironment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;expireTime&quot;: &quot;A String&quot;, # The time when the credentials expire. If not set, defaults to one hour from
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111 # when the server received the request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700112 &quot;accessToken&quot;: &quot;A String&quot;, # The OAuth access token that should be sent to the environment.
113 &quot;idToken&quot;: &quot;A String&quot;, # The OAuth ID token that should be sent to the environment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 }
115
116 x__xgafv: string, V1 error format.
117 Allowed values
118 1 - v1 error format
119 2 - v2 error format
120
121Returns:
122 An object of the form:
123
124 { # A generic empty message that you can re-use to avoid defining duplicated
125 # empty messages in your APIs. A typical example is to use it as the request
126 # or the response type of an API method. For instance:
127 #
128 # service Foo {
129 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
130 # }
131 #
132 # The JSON representation for `Empty` is empty JSON object `{}`.
133 }</pre>
134</div>
135
136<div class="method">
137 <code class="details" id="get">get(name, x__xgafv=None)</code>
138 <pre>Gets an environment. Returns NOT_FOUND if the environment does not exist.
139
140Args:
141 name: string, Name of the requested resource, for example `users/me/environments/default`
142or `users/someone@example.com/environments/default`. (required)
143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
147
148Returns:
149 An object of the form:
150
151 { # A Cloud Shell environment, which is defined as the combination of a Docker
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 # image specifying what is installed on the environment and a home directory
153 # containing the user&#x27;s data that will remain across sessions. Each user has a
154 # single environment with the ID &quot;default&quot;.
155 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
156 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
157 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
158 # email address of the user to whom this environment belongs, and
159 # `{environment_id}` is the identifier of this environment. For example,
160 # `users/someone@example.com/environments/default`.
161 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
162 # VM size.
163 &quot;id&quot;: &quot;A String&quot;, # Output only. The environment&#x27;s identifier, unique among the user&#x27;s
164 # environments.
165 &quot;size&quot;: &quot;A String&quot;, # Indicates the size of the backing VM running the environment. If set to
166 # something other than DEFAULT, it will be reverted to the default VM size
167 # after vm_size_expire_time.
168 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
169 # connections with the environment.
170 &quot;publicKeys&quot;: [ # Output only. Public keys associated with the environment. Clients can
171 # connect to this environment via SSH only if they possess a private key
172 # corresponding to at least one of these public keys. Keys can be added to or
173 # removed from the environment using the CreatePublicKey and DeletePublicKey
174 # methods.
175 { # A public SSH key, corresponding to a private SSH key held by the client.
176 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
177 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
178 # `{owner_email}` is the email address of the user to whom the key belongs.
179 # `{environment_id}` is the identifier of the environment to which the key
180 # grants access. `{key_id}` is the unique identifier of the key. For example,
181 # `users/someone@example.com/environments/default/publicKeys/myKey`.
182 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
183 &quot;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
184 },
185 ],
186 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
187 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
188 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
189 # connections with the environment.
190 42,
191 ],
192 &quot;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
193 # with the environment.
194 &quot;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
195 # with the environment.
196 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
197 # with the environment.
198 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199</div>
200
201<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700202 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 <pre>Updates an existing environment.
204
205Args:
206 name: string, Name of the resource to be updated, for example
207`users/me/environments/default` or
208`users/someone@example.com/environments/default`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700209 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 The object takes the form of:
211
212{ # A Cloud Shell environment, which is defined as the combination of a Docker
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 # image specifying what is installed on the environment and a home directory
214 # containing the user&#x27;s data that will remain across sessions. Each user has a
215 # single environment with the ID &quot;default&quot;.
216 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
217 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
218 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
219 # email address of the user to whom this environment belongs, and
220 # `{environment_id}` is the identifier of this environment. For example,
221 # `users/someone@example.com/environments/default`.
222 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
223 # VM size.
224 &quot;id&quot;: &quot;A String&quot;, # Output only. The environment&#x27;s identifier, unique among the user&#x27;s
225 # environments.
226 &quot;size&quot;: &quot;A String&quot;, # Indicates the size of the backing VM running the environment. If set to
227 # something other than DEFAULT, it will be reverted to the default VM size
228 # after vm_size_expire_time.
229 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
230 # connections with the environment.
231 &quot;publicKeys&quot;: [ # Output only. Public keys associated with the environment. Clients can
232 # connect to this environment via SSH only if they possess a private key
233 # corresponding to at least one of these public keys. Keys can be added to or
234 # removed from the environment using the CreatePublicKey and DeletePublicKey
235 # methods.
236 { # A public SSH key, corresponding to a private SSH key held by the client.
237 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
238 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
239 # `{owner_email}` is the email address of the user to whom the key belongs.
240 # `{environment_id}` is the identifier of the environment to which the key
241 # grants access. `{key_id}` is the unique identifier of the key. For example,
242 # `users/someone@example.com/environments/default/publicKeys/myKey`.
243 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
244 &quot;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
245 },
246 ],
247 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
248 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
249 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
250 # connections with the environment.
251 42,
252 ],
253 &quot;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
254 # with the environment.
255 &quot;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
256 # with the environment.
257 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
258 # with the environment.
259}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260
261 updateMask: string, Mask specifying which fields in the environment should be updated.
262 x__xgafv: string, V1 error format.
263 Allowed values
264 1 - v1 error format
265 2 - v2 error format
266
267Returns:
268 An object of the form:
269
270 { # A Cloud Shell environment, which is defined as the combination of a Docker
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 # image specifying what is installed on the environment and a home directory
272 # containing the user&#x27;s data that will remain across sessions. Each user has a
273 # single environment with the ID &quot;default&quot;.
274 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
275 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
276 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
277 # email address of the user to whom this environment belongs, and
278 # `{environment_id}` is the identifier of this environment. For example,
279 # `users/someone@example.com/environments/default`.
280 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
281 # VM size.
282 &quot;id&quot;: &quot;A String&quot;, # Output only. The environment&#x27;s identifier, unique among the user&#x27;s
283 # environments.
284 &quot;size&quot;: &quot;A String&quot;, # Indicates the size of the backing VM running the environment. If set to
285 # something other than DEFAULT, it will be reverted to the default VM size
286 # after vm_size_expire_time.
287 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
288 # connections with the environment.
289 &quot;publicKeys&quot;: [ # Output only. Public keys associated with the environment. Clients can
290 # connect to this environment via SSH only if they possess a private key
291 # corresponding to at least one of these public keys. Keys can be added to or
292 # removed from the environment using the CreatePublicKey and DeletePublicKey
293 # methods.
294 { # A public SSH key, corresponding to a private SSH key held by the client.
295 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
296 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
297 # `{owner_email}` is the email address of the user to whom the key belongs.
298 # `{environment_id}` is the identifier of the environment to which the key
299 # grants access. `{key_id}` is the unique identifier of the key. For example,
300 # `users/someone@example.com/environments/default/publicKeys/myKey`.
301 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
302 &quot;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
303 },
304 ],
305 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
306 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
307 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
308 # connections with the environment.
309 42,
310 ],
311 &quot;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
312 # with the environment.
313 &quot;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
314 # with the environment.
315 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
316 # with the environment.
317 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318</div>
319
320<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 <pre>Starts an existing environment, allowing clients to connect to it. The
323returned operation will contain an instance of StartEnvironmentMetadata in
324its metadata field. Users can wait for the environment to start by polling
325this operation via GetOperation. Once the environment has finished starting
326and is ready to accept connections, the operation will contain a
327StartEnvironmentResponse in its response field.
328
329Args:
330 name: string, Name of the resource that should be started, for example
331`users/me/environments/default` or
332`users/someone@example.com/environments/default`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700333 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 The object takes the form of:
335
336{ # Request message for StartEnvironment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 &quot;accessToken&quot;: &quot;A String&quot;, # The initial access token passed to the environment. If this is present and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 # valid, the environment will be pre-authenticated with gcloud so that the
339 # user can run gcloud commands in Cloud Shell without having to log in. This
340 # code can be updated later by calling AuthorizeEnvironment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;publicKeys&quot;: [ # Public keys that should be added to the environment before it is started.
342 { # A public SSH key, corresponding to a private SSH key held by the client.
343 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
344 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
345 # `{owner_email}` is the email address of the user to whom the key belongs.
346 # `{environment_id}` is the identifier of the environment to which the key
347 # grants access. `{key_id}` is the unique identifier of the key. For example,
348 # `users/someone@example.com/environments/default/publicKeys/myKey`.
349 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
350 &quot;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
351 },
352 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353 }
354
355 x__xgafv: string, V1 error format.
356 Allowed values
357 1 - v1 error format
358 2 - v2 error format
359
360Returns:
361 An object of the form:
362
363 { # This resource represents a long-running operation that is the result of a
364 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
366 # different programming environments, including REST APIs and RPC APIs. It is
367 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
368 # three pieces of data: error code, error message, and error details.
369 #
370 # You can find out more about this error model and how to work with it in the
371 # [API Design Guide](https://cloud.google.com/apis/design/errors).
372 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
373 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
374 # user-facing error message should be localized and sent in the
375 # google.rpc.Status.details field, or localized by the client.
376 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
377 # message types for APIs to use.
378 {
379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
380 },
381 ],
382 },
383 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Dan O'Mearadd494642020-05-01 07:42:23 -0700384 # contains progress information and common metadata such as create time.
385 # Some services might not provide such metadata. Any method that returns a
386 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700388 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700390 # If `true`, the operation is completed, and either `error` or `response` is
391 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 # method returns no data on success, such as `Delete`, the response is
394 # `google.protobuf.Empty`. If the original method is standard
395 # `Get`/`Create`/`Update`, the response should be the resource. For other
396 # methods, the response should have the type `XxxResponse`, where `Xxx`
397 # is the original method name. For example, if the original method name
398 # is `TakeSnapshot()`, the inferred response type is
399 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700403 # originally returns it. If you use the default HTTP mapping, the
404 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 }</pre>
406</div>
407
408</body></html>