Skip to content

Commit

Permalink
feat: add CloudShellErrorCode.ENVIRONMENT_UNAVAILABLE enum value
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 489095106
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 17, 2022
1 parent 2c4f203 commit 0184330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 5 additions & 1 deletion google/cloud/shell/v1/cloudshell.proto
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -380,6 +380,10 @@ message CloudShellErrorDetails {
// The user has exhausted their weekly Cloud Shell quota, and Cloud Shell
// will be disabled until the quota resets.
QUOTA_EXCEEDED = 5;

// The Cloud Shell environment is unavailable and cannot be connected to at
// the moment.
ENVIRONMENT_UNAVAILABLE = 6;
}

// Code indicating the specific error the occurred.
Expand Down
12 changes: 1 addition & 11 deletions google/cloud/shell/v1/cloudshell_v1.yaml
Expand Up @@ -5,6 +5,7 @@ title: Cloud Shell API

apis:
- name: google.cloud.shell.v1.CloudShellService
- name: google.longrunning.Operations

types:
- name: google.cloud.shell.v1.AddPublicKeyMetadata
Expand All @@ -30,17 +31,6 @@ backend:
- selector: 'google.longrunning.Operations.*'
deadline: 30.0

http:
rules:
- selector: google.longrunning.Operations.ListOperations
get: '/v1/{name=operations}'
- selector: google.longrunning.Operations.GetOperation
get: '/v1/{name=operations/**}'
- selector: google.longrunning.Operations.DeleteOperation
delete: '/v1/{name=operations/**}'
- selector: google.longrunning.Operations.CancelOperation
post: '/v1/{name=operations/**}:cancel'

authentication:
rules:
- selector: 'google.cloud.shell.v1.CloudShellService.*'
Expand Down

0 comments on commit 0184330

Please sign in to comment.