|
| SubscriptionAdminClient (std::shared_ptr< SubscriptionAdminConnection > connection, Options opts={}) |
|
| SubscriptionAdminClient ()=delete |
| The default constructor is deleted. More...
|
|
StatusOr< google::pubsub::v1::Subscription > | CreateSubscription (Topic const &topic, Subscription const &subscription, SubscriptionBuilder builder={}, Options opts={}) |
| Creates a new subscription in Cloud Pub/Sub. More...
|
|
StatusOr< google::pubsub::v1::Subscription > | GetSubscription (Subscription subscription, Options opts={}) |
| Gets the metadata for an existing Cloud Pub/Sub subscription. More...
|
|
StatusOr< google::pubsub::v1::Subscription > | UpdateSubscription (Subscription const &subscription, SubscriptionBuilder builder, Options opts={}) |
| Updates an existing subscription in Cloud Pub/Sub. More...
|
|
ListSubscriptionsRange | ListSubscriptions (std::string const &project_id, Options opts={}) |
| Lists all the subscriptions for a given project id. More...
|
|
Status | DeleteSubscription (Subscription subscription, Options opts={}) |
| Deletes an existing subscription in Cloud Pub/Sub. More...
|
|
Status | ModifyPushSubscription (Subscription const &subscription, PushConfigBuilder builder, Options opts={}) |
| Modifies an existing subscription's push configuration. More...
|
|
StatusOr< google::pubsub::v1::Snapshot > | CreateSnapshot (Subscription const &subscription, SnapshotBuilder builder={}, Options opts={}) |
| Creates a new snapshot for a subscription with a server-assigned name. More...
|
|
StatusOr< google::pubsub::v1::Snapshot > | CreateSnapshot (Subscription const &subscription, Snapshot const &snapshot, SnapshotBuilder builder={}, Options opts={}) |
| Creates a new snapshot for a subscription with a given name. More...
|
|
StatusOr< google::pubsub::v1::Snapshot > | GetSnapshot (Snapshot const &snapshot, Options opts={}) |
| Gets information about an existing snapshot. More...
|
|
StatusOr< google::pubsub::v1::Snapshot > | UpdateSnapshot (Snapshot const &snapshot, SnapshotBuilder builder, Options opts={}) |
| Updates an existing snapshot. More...
|
|
ListSnapshotsRange | ListSnapshots (std::string const &project_id, Options opts={}) |
| Lists all the snapshots for a given project id. More...
|
|
Status | DeleteSnapshot (Snapshot const &snapshot, Options opts={}) |
| Deletes a snapshot. More...
|
|
StatusOr< google::pubsub::v1::SeekResponse > | Seek (Subscription const &subscription, std::chrono::system_clock::time_point timestamp, Options opts={}) |
| Seeks a subscription to its state at timestamp . More...
|
|
StatusOr< google::pubsub::v1::SeekResponse > | Seek (Subscription const &subscription, Snapshot const &snapshot, Options opts={}) |
| Seeks a subscription to its state at snapshot . More...
|
|
Performs subscription administrative operations in Cloud Pub/Sub.
Applications use this class to perform subscription administrative operations on Cloud Pub/Sub.
- Performance
SubscriptionAdminClient
objects are relatively cheap to create, copy, and move. However, each SubscriptionAdminClient
object must be created with a std::shared_ptr<SubscriptionAdminConnection>
, which itself is relatively expensive to create. Therefore, connection instances should be shared when possible. See the MakeSubscriptionAdminConnection()
function and the SubscriptionAdminConnection
interface for more details.
- Thread Safety
- Instances of this class created via copy-construction or copy-assignment share the underlying pool of connections. Access to these copies via multiple threads is guaranteed to work. Two threads operating on the same instance of this class is not guaranteed to work.
- Error Handling
- This class uses
StatusOr<T>
to report errors. When an operation fails to perform its work the returned StatusOr<T>
contains the error details. If the ok()
member function in the StatusOr<T>
returns true
then it contains the expected result. Please consult the `StatusOr<T>` documentation for more details.