Class SubscriptionAdminConnection (2.21.0)

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

To create a concrete instance, see MakeSubscriptionAdminConnection().

For mocking, see pubsub_admin_mocks::MockSubscriptionAdminConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateSubscription(google::pubsub::v1::Subscription const &)

Parameter
NameDescription
request google::pubsub::v1::Subscription const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Subscription >

virtual GetSubscription(google::pubsub::v1::GetSubscriptionRequest const &)

Parameter
NameDescription
request google::pubsub::v1::GetSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Subscription >

virtual UpdateSubscription(google::pubsub::v1::UpdateSubscriptionRequest const &)

Parameter
NameDescription
request google::pubsub::v1::UpdateSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Subscription >

virtual ListSubscriptions(google::pubsub::v1::ListSubscriptionsRequest)

Parameter
NameDescription
request google::pubsub::v1::ListSubscriptionsRequest
Returns
TypeDescription
StreamRange< google::pubsub::v1::Subscription >

virtual DeleteSubscription(google::pubsub::v1::DeleteSubscriptionRequest const &)

Parameter
NameDescription
request google::pubsub::v1::DeleteSubscriptionRequest const &
Returns
TypeDescription
Status

virtual ModifyPushConfig(google::pubsub::v1::ModifyPushConfigRequest const &)

Parameter
NameDescription
request google::pubsub::v1::ModifyPushConfigRequest const &
Returns
TypeDescription
Status

virtual GetSnapshot(google::pubsub::v1::GetSnapshotRequest const &)

Parameter
NameDescription
request google::pubsub::v1::GetSnapshotRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Snapshot >

virtual ListSnapshots(google::pubsub::v1::ListSnapshotsRequest)

Parameter
NameDescription
request google::pubsub::v1::ListSnapshotsRequest
Returns
TypeDescription
StreamRange< google::pubsub::v1::Snapshot >

virtual CreateSnapshot(google::pubsub::v1::CreateSnapshotRequest const &)

Parameter
NameDescription
request google::pubsub::v1::CreateSnapshotRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Snapshot >

virtual UpdateSnapshot(google::pubsub::v1::UpdateSnapshotRequest const &)

Parameter
NameDescription
request google::pubsub::v1::UpdateSnapshotRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Snapshot >

virtual DeleteSnapshot(google::pubsub::v1::DeleteSnapshotRequest const &)

Parameter
NameDescription
request google::pubsub::v1::DeleteSnapshotRequest const &
Returns
TypeDescription
Status

virtual Seek(google::pubsub::v1::SeekRequest const &)

Parameter
NameDescription
request google::pubsub::v1::SeekRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::SeekResponse >