Class TopicAdminConnection (2.31.0-rc)

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

To create a concrete instance, see MakeTopicAdminConnection().

For mocking, see pubsub_admin_mocks::MockTopicAdminConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateTopic(google::pubsub::v1::Topic const &)

Parameter
Name Description
request google::pubsub::v1::Topic const &
Returns
Type Description
StatusOr< google::pubsub::v1::Topic >

virtual UpdateTopic(google::pubsub::v1::UpdateTopicRequest const &)

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

virtual GetTopic(google::pubsub::v1::GetTopicRequest const &)

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

virtual ListTopics(google::pubsub::v1::ListTopicsRequest)

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

virtual ListTopicSubscriptions(google::pubsub::v1::ListTopicSubscriptionsRequest)

Parameter
Name Description
request google::pubsub::v1::ListTopicSubscriptionsRequest
Returns
Type Description
StreamRange< std::string >

virtual ListTopicSnapshots(google::pubsub::v1::ListTopicSnapshotsRequest)

Parameter
Name Description
request google::pubsub::v1::ListTopicSnapshotsRequest
Returns
Type Description
StreamRange< std::string >

virtual DeleteTopic(google::pubsub::v1::DeleteTopicRequest const &)

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

virtual DetachSubscription(google::pubsub::v1::DetachSubscriptionRequest const &)

Parameter
Name Description
request google::pubsub::v1::DetachSubscriptionRequest const &
Returns
Type Description
StatusOr< google::pubsub::v1::DetachSubscriptionResponse >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >