Class ManagedKafkaConnection (2.31.0)

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

To create a concrete instance, see MakeManagedKafkaConnection().

For mocking, see managedkafka_v1_mocks::MockManagedKafkaConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListClusters(google::cloud::managedkafka::v1::ListClustersRequest)

Parameter
Name Description
request google::cloud::managedkafka::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::managedkafka::v1::Cluster >

virtual GetCluster(google::cloud::managedkafka::v1::GetClusterRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::GetClusterRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::Cluster >

virtual CreateCluster(google::cloud::managedkafka::v1::CreateClusterRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::CreateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::managedkafka::v1::Cluster > >

virtual CreateCluster(NoAwaitTag, google::cloud::managedkafka::v1::CreateClusterRequest const &)

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

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

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

virtual UpdateCluster(google::cloud::managedkafka::v1::UpdateClusterRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::UpdateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::managedkafka::v1::Cluster > >

virtual UpdateCluster(NoAwaitTag, google::cloud::managedkafka::v1::UpdateClusterRequest const &)

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

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

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

virtual DeleteCluster(google::cloud::managedkafka::v1::DeleteClusterRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::managedkafka::v1::OperationMetadata > >

virtual DeleteCluster(NoAwaitTag, google::cloud::managedkafka::v1::DeleteClusterRequest const &)

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

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

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

virtual ListTopics(google::cloud::managedkafka::v1::ListTopicsRequest)

Parameter
Name Description
request google::cloud::managedkafka::v1::ListTopicsRequest
Returns
Type Description
StreamRange< google::cloud::managedkafka::v1::Topic >

virtual GetTopic(google::cloud::managedkafka::v1::GetTopicRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::GetTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::Topic >

virtual CreateTopic(google::cloud::managedkafka::v1::CreateTopicRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::CreateTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::Topic >

virtual UpdateTopic(google::cloud::managedkafka::v1::UpdateTopicRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::UpdateTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::Topic >

virtual DeleteTopic(google::cloud::managedkafka::v1::DeleteTopicRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::DeleteTopicRequest const &
Returns
Type Description
Status

virtual ListConsumerGroups(google::cloud::managedkafka::v1::ListConsumerGroupsRequest)

Parameter
Name Description
request google::cloud::managedkafka::v1::ListConsumerGroupsRequest
Returns
Type Description
StreamRange< google::cloud::managedkafka::v1::ConsumerGroup >

virtual GetConsumerGroup(google::cloud::managedkafka::v1::GetConsumerGroupRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::GetConsumerGroupRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::ConsumerGroup >

virtual UpdateConsumerGroup(google::cloud::managedkafka::v1::UpdateConsumerGroupRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::UpdateConsumerGroupRequest const &
Returns
Type Description
StatusOr< google::cloud::managedkafka::v1::ConsumerGroup >

virtual DeleteConsumerGroup(google::cloud::managedkafka::v1::DeleteConsumerGroupRequest const &)

Parameter
Name Description
request google::cloud::managedkafka::v1::DeleteConsumerGroupRequest const &
Returns
Type Description
Status

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status