Skip to content

Commit 0184330

Browse files
Google APIscopybara-github
authored andcommitted
feat: add CloudShellErrorCode.ENVIRONMENT_UNAVAILABLE enum value
PiperOrigin-RevId: 489095106
1 parent 2c4f203 commit 0184330

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

google/cloud/shell/v1/cloudshell.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -380,6 +380,10 @@ message CloudShellErrorDetails {
380380
// The user has exhausted their weekly Cloud Shell quota, and Cloud Shell
381381
// will be disabled until the quota resets.
382382
QUOTA_EXCEEDED = 5;
383+
384+
// The Cloud Shell environment is unavailable and cannot be connected to at
385+
// the moment.
386+
ENVIRONMENT_UNAVAILABLE = 6;
383387
}
384388

385389
// Code indicating the specific error the occurred.

google/cloud/shell/v1/cloudshell_v1.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Cloud Shell API
55

66
apis:
77
- name: google.cloud.shell.v1.CloudShellService
8+
- name: google.longrunning.Operations
89

910
types:
1011
- name: google.cloud.shell.v1.AddPublicKeyMetadata
@@ -30,17 +31,6 @@ backend:
3031
- selector: 'google.longrunning.Operations.*'
3132
deadline: 30.0
3233

33-
http:
34-
rules:
35-
- selector: google.longrunning.Operations.ListOperations
36-
get: '/v1/{name=operations}'
37-
- selector: google.longrunning.Operations.GetOperation
38-
get: '/v1/{name=operations/**}'
39-
- selector: google.longrunning.Operations.DeleteOperation
40-
delete: '/v1/{name=operations/**}'
41-
- selector: google.longrunning.Operations.CancelOperation
42-
post: '/v1/{name=operations/**}:cancel'
43-
4434
authentication:
4535
rules:
4636
- selector: 'google.cloud.shell.v1.CloudShellService.*'

0 commit comments

Comments
 (0)