Package com.google.cloud.shell.v1
Class CloudShellServiceGrpc.CloudShellServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<CloudShellServiceGrpc.CloudShellServiceStub>
-
- com.google.cloud.shell.v1.CloudShellServiceGrpc.CloudShellServiceStub
-
- Enclosing class:
- CloudShellServiceGrpc
public static final class CloudShellServiceGrpc.CloudShellServiceStub extends io.grpc.stub.AbstractAsyncStub<CloudShellServiceGrpc.CloudShellServiceStub>
A stub to allow clients to do asynchronous rpc calls to service CloudShellService.API for interacting with Google Cloud Shell. Each user of Cloud Shell has at least one environment, which has the ID "default". Environment consists of a Docker image defining what is installed on the environment and a home directory containing the user's data that will remain across sessions. Clients use this API to start and fetch information about their environment, which can then be used to connect to that environment via a separate SSH client.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPublicKey(AddPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH.void
authorizeEnvironment(AuthorizeEnvironmentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Sends OAuth credentials to a running environment on behalf of a user.protected CloudShellServiceGrpc.CloudShellServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
getEnvironment(GetEnvironmentRequest request, io.grpc.stub.StreamObserver<Environment> responseObserver)
Gets an environment.void
removePublicKey(RemovePublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Removes a public SSH key from an environment.void
startEnvironment(StartEnvironmentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Starts an existing environment, allowing clients to connect to it.
-
-
-
Method Detail
-
build
protected CloudShellServiceGrpc.CloudShellServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<CloudShellServiceGrpc.CloudShellServiceStub>
-
getEnvironment
public void getEnvironment(GetEnvironmentRequest request, io.grpc.stub.StreamObserver<Environment> responseObserver)
Gets an environment. Returns NOT_FOUND if the environment does not exist.
-
startEnvironment
public void startEnvironment(StartEnvironmentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.
-
authorizeEnvironment
public void authorizeEnvironment(AuthorizeEnvironmentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.
-
addPublicKey
public void addPublicKey(AddPublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS.
-
removePublicKey
public void removePublicKey(RemovePublicKeyRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key. If a key with the same content is not present, this will error with NOT_FOUND.
-
-