Class WorkstationsConnection (2.13.0)

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

To create a concrete instance, see MakeWorkstationsConnection().

For mocking, see workstations_v1_mocks::MockWorkstationsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetWorkstationCluster(google::cloud::workstations::v1::GetWorkstationClusterRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::GetWorkstationClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::workstations::v1::WorkstationCluster >

virtual ListWorkstationClusters(google::cloud::workstations::v1::ListWorkstationClustersRequest)

Parameter
NameDescription
request google::cloud::workstations::v1::ListWorkstationClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::workstations::v1::WorkstationCluster >

virtual CreateWorkstationCluster(google::cloud::workstations::v1::CreateWorkstationClusterRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::CreateWorkstationClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationCluster > >

virtual UpdateWorkstationCluster(google::cloud::workstations::v1::UpdateWorkstationClusterRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::UpdateWorkstationClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationCluster > >

virtual DeleteWorkstationCluster(google::cloud::workstations::v1::DeleteWorkstationClusterRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::DeleteWorkstationClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationCluster > >

virtual GetWorkstationConfig(google::cloud::workstations::v1::GetWorkstationConfigRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::GetWorkstationConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::workstations::v1::WorkstationConfig >

virtual ListWorkstationConfigs(google::cloud::workstations::v1::ListWorkstationConfigsRequest)

Parameter
NameDescription
request google::cloud::workstations::v1::ListWorkstationConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::workstations::v1::WorkstationConfig >

virtual ListUsableWorkstationConfigs(google::cloud::workstations::v1::ListUsableWorkstationConfigsRequest)

Parameter
NameDescription
request google::cloud::workstations::v1::ListUsableWorkstationConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::workstations::v1::WorkstationConfig >

virtual CreateWorkstationConfig(google::cloud::workstations::v1::CreateWorkstationConfigRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::CreateWorkstationConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationConfig > >

virtual UpdateWorkstationConfig(google::cloud::workstations::v1::UpdateWorkstationConfigRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::UpdateWorkstationConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationConfig > >

virtual DeleteWorkstationConfig(google::cloud::workstations::v1::DeleteWorkstationConfigRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::DeleteWorkstationConfigRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::WorkstationConfig > >

virtual GetWorkstation(google::cloud::workstations::v1::GetWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::GetWorkstationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::workstations::v1::Workstation >

virtual ListWorkstations(google::cloud::workstations::v1::ListWorkstationsRequest)

Parameter
NameDescription
request google::cloud::workstations::v1::ListWorkstationsRequest
Returns
TypeDescription
StreamRange< google::cloud::workstations::v1::Workstation >

virtual ListUsableWorkstations(google::cloud::workstations::v1::ListUsableWorkstationsRequest)

Parameter
NameDescription
request google::cloud::workstations::v1::ListUsableWorkstationsRequest
Returns
TypeDescription
StreamRange< google::cloud::workstations::v1::Workstation >

virtual CreateWorkstation(google::cloud::workstations::v1::CreateWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::CreateWorkstationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::Workstation > >

virtual UpdateWorkstation(google::cloud::workstations::v1::UpdateWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::UpdateWorkstationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::Workstation > >

virtual DeleteWorkstation(google::cloud::workstations::v1::DeleteWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::DeleteWorkstationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::Workstation > >

virtual StartWorkstation(google::cloud::workstations::v1::StartWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::StartWorkstationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::Workstation > >

virtual StopWorkstation(google::cloud::workstations::v1::StopWorkstationRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::StopWorkstationRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workstations::v1::Workstation > >

virtual GenerateAccessToken(google::cloud::workstations::v1::GenerateAccessTokenRequest const &)

Parameter
NameDescription
request google::cloud::workstations::v1::GenerateAccessTokenRequest const &
Returns
TypeDescription
StatusOr< google::cloud::workstations::v1::GenerateAccessTokenResponse >