Class CloudShellServiceConnection (2.15.1)

This interface defines virtual methods for each of the user-facing overload sets in CloudShellServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CloudShellServiceClient.

To create a concrete instance, see MakeCloudShellServiceConnection().

For mocking, see shell_v1_mocks::MockCloudShellServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetEnvironment(google::cloud::shell::v1::GetEnvironmentRequest const &)

Parameter
Name Description
request google::cloud::shell::v1::GetEnvironmentRequest const &
Returns
Type Description
StatusOr< google::cloud::shell::v1::Environment >

virtual StartEnvironment(google::cloud::shell::v1::StartEnvironmentRequest const &)

Parameter
Name Description
request google::cloud::shell::v1::StartEnvironmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::shell::v1::StartEnvironmentResponse > >

virtual AuthorizeEnvironment(google::cloud::shell::v1::AuthorizeEnvironmentRequest const &)

Parameter
Name Description
request google::cloud::shell::v1::AuthorizeEnvironmentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::shell::v1::AuthorizeEnvironmentResponse > >

virtual AddPublicKey(google::cloud::shell::v1::AddPublicKeyRequest const &)

Parameter
Name Description
request google::cloud::shell::v1::AddPublicKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::shell::v1::AddPublicKeyResponse > >

virtual RemovePublicKey(google::cloud::shell::v1::RemovePublicKeyRequest const &)

Parameter
Name Description
request google::cloud::shell::v1::RemovePublicKeyRequest const &
Returns
Type Description
future< StatusOr< google::cloud::shell::v1::RemovePublicKeyResponse > >