Class CloudShellServiceConnection (2.32.0)

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 StartEnvironment(NoAwaitTag, google::cloud::shell::v1::StartEnvironmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::shell::v1::StartEnvironmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StartEnvironment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 AuthorizeEnvironment(NoAwaitTag, google::cloud::shell::v1::AuthorizeEnvironmentRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::shell::v1::AuthorizeEnvironmentRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual AuthorizeEnvironment(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 AddPublicKey(NoAwaitTag, google::cloud::shell::v1::AddPublicKeyRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::shell::v1::AddPublicKeyRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual AddPublicKey(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::shell::v1::RemovePublicKeyRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RemovePublicKey(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::shell::v1::RemovePublicKeyResponse > >