blob: 040decbe73e200c9319fc53fd27d73edf0028a3f [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 Kim4ed7d3f2020-05-27 12:20:54 -0700110 &quot;expireTime&quot;: &quot;A String&quot;, # The time when the credentials expire. If not set, defaults to one hour from
111 # when the server received the request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -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 Kimd059ad82020-07-22 17:02:09 -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;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
156 # with the environment.
157 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
158 # connections with the environment.
159 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
160 # connections with the environment.
161 42,
162 ],
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;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
169 # 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;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
177 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
178 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
179 # `{owner_email}` is the email address of the user to whom the key belongs.
180 # `{environment_id}` is the identifier of the environment to which the key
181 # grants access. `{key_id}` is the unique identifier of the key. For example,
182 # `users/someone@example.com/environments/default/publicKeys/myKey`.
183 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
184 },
185 ],
186 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
187 # VM size.
188 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
189 # with the environment.
190 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
191 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
192 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
193 # email address of the user to whom this environment belongs, and
194 # `{environment_id}` is the identifier of this environment. For example,
195 # `users/someone@example.com/environments/default`.
196 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
197 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
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 Kimd059ad82020-07-22 17:02:09 -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;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
217 # with the environment.
218 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
219 # connections with the environment.
220 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
221 # connections with the environment.
222 42,
223 ],
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;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
230 # 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;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
238 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
239 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
240 # `{owner_email}` is the email address of the user to whom the key belongs.
241 # `{environment_id}` is the identifier of the environment to which the key
242 # grants access. `{key_id}` is the unique identifier of the key. For example,
243 # `users/someone@example.com/environments/default/publicKeys/myKey`.
244 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
245 },
246 ],
247 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
248 # VM size.
249 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
250 # with the environment.
251 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
252 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
253 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
254 # email address of the user to whom this environment belongs, and
255 # `{environment_id}` is the identifier of this environment. For example,
256 # `users/someone@example.com/environments/default`.
257 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
258 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
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 Kimd059ad82020-07-22 17:02:09 -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;sshPort&quot;: 42, # Output only. Port to which clients can connect to initiate SSH sessions
275 # with the environment.
276 &quot;webHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate HTTPS or WSS
277 # connections with the environment.
278 &quot;webPorts&quot;: [ # Output only. Ports to which clients can connect to initiate HTTPS or WSS
279 # connections with the environment.
280 42,
281 ],
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;sshHost&quot;: &quot;A String&quot;, # Output only. Host to which clients can connect to initiate SSH sessions
288 # 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;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
296 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
297 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
298 # `{owner_email}` is the email address of the user to whom the key belongs.
299 # `{environment_id}` is the identifier of the environment to which the key
300 # grants access. `{key_id}` is the unique identifier of the key. For example,
301 # `users/someone@example.com/environments/default/publicKeys/myKey`.
302 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
303 },
304 ],
305 &quot;vmSizeExpireTime&quot;: &quot;A String&quot;, # Output only. The time when the Environment will expire back to the default
306 # VM size.
307 &quot;sshUsername&quot;: &quot;A String&quot;, # Output only. Username that clients should use when initiating SSH sessions
308 # with the environment.
309 &quot;state&quot;: &quot;A String&quot;, # Output only. Current execution state of this environment.
310 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
311 # `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
312 # email address of the user to whom this environment belongs, and
313 # `{environment_id}` is the identifier of this environment. For example,
314 # `users/someone@example.com/environments/default`.
315 &quot;dockerImage&quot;: &quot;A String&quot;, # Required. Full path to the Docker image used to run this environment, e.g.
316 # &quot;gcr.io/dev-con/cloud-devshell:latest&quot;.
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;publicKeys&quot;: [ # Public keys that should be added to the environment before it is started.
338 { # A public SSH key, corresponding to a private SSH key held by the client.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700339 &quot;format&quot;: &quot;A String&quot;, # Required. Format of this key&#x27;s content.
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;name&quot;: &quot;A String&quot;, # Output only. Full name of this resource, in the format
341 # `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`.
342 # `{owner_email}` is the email address of the user to whom the key belongs.
343 # `{environment_id}` is the identifier of the environment to which the key
344 # grants access. `{key_id}` is the unique identifier of the key. For example,
345 # `users/someone@example.com/environments/default/publicKeys/myKey`.
346 &quot;key&quot;: &quot;A String&quot;, # Required. Content of this key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 },
348 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700349 &quot;accessToken&quot;: &quot;A String&quot;, # The initial access token passed to the environment. If this is present and
350 # valid, the environment will be pre-authenticated with gcloud so that the
351 # user can run gcloud commands in Cloud Shell without having to log in. This
352 # code can be updated later by calling AuthorizeEnvironment.
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 Kim4ed7d3f2020-05-27 12:20:54 -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;details&quot;: [ # A list of messages that carry the error details. There is a common set of
373 # message types for APIs to use.
374 {
375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
376 },
377 ],
378 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
379 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
380 # user-facing error message should be localized and sent in the
381 # google.rpc.Status.details field, or localized by the client.
382 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700383 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
384 # originally returns it. If you use the default HTTP mapping, the
385 # `name` should be a resource name ending with `operations/{unique_id}`.
386 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
387 # If `true`, the operation is completed, and either `error` or `response` is
388 # available.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700389 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
390 # contains progress information and common metadata such as create time.
391 # Some services might not provide such metadata. Any method that returns a
392 # long-running operation should document the metadata type, if any.
393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
394 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700395 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
396 # method returns no data on success, such as `Delete`, the response is
397 # `google.protobuf.Empty`. If the original method is standard
398 # `Get`/`Create`/`Update`, the response should be the resource. For other
399 # methods, the response should have the type `XxxResponse`, where `Xxx`
400 # is the original method name. For example, if the original method name
401 # is `TakeSnapshot()`, the inferred response type is
402 # `TakeSnapshotResponse`.
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 }</pre>
406</div>
407
408</body></html>