Class GameServerClustersServiceConnection (2.12.0)

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

To create a concrete instance, see MakeGameServerClustersServiceConnection().

For mocking, see gameservices_v1_mocks::MockGameServerClustersServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListGameServerClusters(google::cloud::gaming::v1::ListGameServerClustersRequest)

Parameter
NameDescription
request google::cloud::gaming::v1::ListGameServerClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::gaming::v1::GameServerCluster >

virtual GetGameServerCluster(google::cloud::gaming::v1::GetGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::GetGameServerClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::GameServerCluster >

virtual CreateGameServerCluster(google::cloud::gaming::v1::CreateGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::CreateGameServerClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::GameServerCluster > >

virtual PreviewCreateGameServerCluster(google::cloud::gaming::v1::PreviewCreateGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::PreviewCreateGameServerClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::PreviewCreateGameServerClusterResponse >

virtual DeleteGameServerCluster(google::cloud::gaming::v1::DeleteGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::DeleteGameServerClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::OperationMetadata > >

virtual PreviewDeleteGameServerCluster(google::cloud::gaming::v1::PreviewDeleteGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::PreviewDeleteGameServerClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::PreviewDeleteGameServerClusterResponse >

virtual UpdateGameServerCluster(google::cloud::gaming::v1::UpdateGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::UpdateGameServerClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::GameServerCluster > >

virtual PreviewUpdateGameServerCluster(google::cloud::gaming::v1::PreviewUpdateGameServerClusterRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::PreviewUpdateGameServerClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::PreviewUpdateGameServerClusterResponse >