15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SUBSCRIPTION_ADMIN_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SUBSCRIPTION_ADMIN_CONNECTION_H
18#include "google/cloud/pubsub/backoff_policy.h"
19#include "google/cloud/pubsub/connection_options.h"
20#include "google/cloud/pubsub/internal/subscriber_stub.h"
21#include "google/cloud/pubsub/retry_policy.h"
22#include "google/cloud/pubsub/snapshot.h"
23#include "google/cloud/pubsub/subscription.h"
24#include "google/cloud/pubsub/version.h"
25#include "google/cloud/internal/non_constructible.h"
26#include "google/cloud/internal/pagination_range.h"
27#include "google/cloud/status_or.h"
28#include <google/pubsub/v1/pubsub.pb.h>
29#include <initializer_list>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
39
40
41
42
43
44
45
46
47using ListSubscriptionsRange =
51
52
53
54
55
56
57
58
59using ListSnapshotsRange =
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
192
193
194
195
196
197
198
199
200
201GOOGLE_CLOUD_CPP_DEPRECATED(
"use MakeSubscriptionAdminConnection() instead")
203 std::initializer_list<internal::NonConstructible>);
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262GOOGLE_CLOUD_CPP_DEPRECATED(
263 "use the overload consuming google::cloud::Options instead")
265 ConnectionOptions
const& options,
266 std::unique_ptr<
pubsub::RetryPolicy
const> retry_policy = {},
267 std::unique_ptr<
pubsub::BackoffPolicy
const> backoff_policy = {});
269GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
272namespace pubsub_internal {
273GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
276MakeTestSubscriptionAdminConnection(
Options const& opts,
277 std::shared_ptr<SubscriberStub> stub);
279GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Objects of this class identify a Cloud Pub/Sub snapshot.
Definition: snapshot.h:37
A connection to Cloud Pub/Sub for subscription-related administrative operations.
Definition: subscription_admin_connection.h:82
virtual Options options() const
Return the options used to create the connection.
Definition: subscription_admin_connection.h:188
virtual StatusOr< google::pubsub::v1::Snapshot > CreateSnapshot(CreateSnapshotParams)
Defines the interface for SnapshotAdminClient::CreateSnapshot()
virtual StatusOr< google::pubsub::v1::Subscription > GetSubscription(GetSubscriptionParams)
Defines the interface for SubscriptionAdminClient::GetSubscription()
virtual StatusOr< google::pubsub::v1::Snapshot > GetSnapshot(GetSnapshotParams)
Defines the interface for SnapshotAdminClient::GetSnapshot()
virtual Status DeleteSubscription(DeleteSubscriptionParams)
Defines the interface for SubscriptionAdminClient::DeleteSubscription()
virtual Status DeleteSnapshot(DeleteSnapshotParams)
Defines the interface for SnapshotAdminClient::DeleteSnapshot()
virtual StatusOr< google::pubsub::v1::Subscription > CreateSubscription(CreateSubscriptionParams)
Defines the interface for SubscriptionAdminClient::CreateSubscription()
virtual Status ModifyPushConfig(ModifyPushConfigParams)
Defines the interface for SubscriptionAdminClient::ModifyPushConfig()
virtual StatusOr< google::pubsub::v1::SeekResponse > Seek(SeekParams)
Defines the interface for SubscriptionAdminClient::Seek()
virtual StatusOr< google::pubsub::v1::Subscription > UpdateSubscription(UpdateSubscriptionParams)
Defines the interface for SubscriptionAdminClient::UpdateSubscription()
virtual ListSnapshotsRange ListSnapshots(ListSnapshotsParams)
Defines the interface for SubscriptionAdminClient::ListSnapshots()
virtual ~SubscriptionAdminConnection()=0
virtual StatusOr< google::pubsub::v1::Snapshot > UpdateSnapshot(UpdateSnapshotParams)
Defines the interface for SnapshotAdminClient::UpdateSnapshot()
virtual ListSubscriptionsRange ListSubscriptions(ListSubscriptionsParams)
Defines the interface for SubscriptionAdminClient::ListSubscriptions()
Objects of this class identify a Cloud Pub/Sub subscription.
Definition: subscription.h:37
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
std::shared_ptr< SubscriptionAdminConnection > MakeSubscriptionAdminConnection(ConnectionOptions const &options, std::unique_ptr< pubsub::RetryPolicy const > retry_policy={}, std::unique_ptr< pubsub::BackoffPolicy const > backoff_policy={})
Creates a new SubscriptionAdminConnection object to work with SubscriptionAdminClient.
std::shared_ptr< SubscriptionAdminConnection > MakeSubscriptionAdminConnection(std::initializer_list< internal::NonConstructible >)
Creates a new SubscriptionAdminConnection object to work with SubscriptionAdminClient.
std::shared_ptr< SubscriptionAdminConnection > MakeSubscriptionAdminConnection(Options opts={})
Creates a new SubscriptionAdminConnection object to work with SubscriptionAdminClient.
The namespace Google Cloud Platform C++ client libraries.
Wrap the arguments for CreateSnapshot()
Definition: subscription_admin_connection.h:117
google::pubsub::v1::CreateSnapshotRequest request
Definition: subscription_admin_connection.h:118
Wrap the arguments for CreateSubscription()
Definition: subscription_admin_connection.h:87
google::pubsub::v1::Subscription subscription
Definition: subscription_admin_connection.h:88
Wrap the arguments for DeleteSnapshot()
Definition: subscription_admin_connection.h:137
Snapshot snapshot
Definition: subscription_admin_connection.h:138
Wrap the arguments for DeleteSubscription()
Definition: subscription_admin_connection.h:107
Subscription subscription
Definition: subscription_admin_connection.h:108
Wrap the arguments for GetSnapshot()
Definition: subscription_admin_connection.h:122
Snapshot snapshot
Definition: subscription_admin_connection.h:123
Wrap the arguments for GetSubscription()
Definition: subscription_admin_connection.h:92
Subscription subscription
Definition: subscription_admin_connection.h:93
Wrap the arguments for ListSnapshots()
Definition: subscription_admin_connection.h:127
std::string project_id
Definition: subscription_admin_connection.h:128
Wrap the arguments for ListSubscriptions()
Definition: subscription_admin_connection.h:102
std::string project_id
Definition: subscription_admin_connection.h:103
Wrap the arguments for ModifyPushConfig()
Definition: subscription_admin_connection.h:112
google::pubsub::v1::ModifyPushConfigRequest request
Definition: subscription_admin_connection.h:113
Wrap the arguments for Seek()
Definition: subscription_admin_connection.h:142
google::pubsub::v1::SeekRequest request
Definition: subscription_admin_connection.h:143
Wrap the arguments for UpdateSnapshot()
Definition: subscription_admin_connection.h:132
google::pubsub::v1::UpdateSnapshotRequest request
Definition: subscription_admin_connection.h:133
Wrap the arguments for UpdateSubscription()
Definition: subscription_admin_connection.h:97
google::pubsub::v1::UpdateSubscriptionRequest request
Definition: subscription_admin_connection.h:98