Class CloudShellServiceConnection (2.19.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::shell::v1::GetEnvironmentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::shell::v1::Environment >

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

Parameter
NameDescription
request google::cloud::shell::v1::StartEnvironmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::shell::v1::StartEnvironmentResponse > >

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

Parameter
NameDescription
request google::cloud::shell::v1::AuthorizeEnvironmentRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::shell::v1::AuthorizeEnvironmentResponse > >

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

Parameter
NameDescription
request google::cloud::shell::v1::AddPublicKeyRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::shell::v1::AddPublicKeyResponse > >

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

Parameter
NameDescription
request google::cloud::shell::v1::RemovePublicKeyRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::shell::v1::RemovePublicKeyResponse > >