Send feedback
Class SubscriptionAdminConnection (2.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.11.0 keyboard_arrow_down
A connection to Cloud Pub/Sub for subscription-related administrative operations.
This interface defines pure-virtual functions for each of the user-facing overload sets in SubscriptionAdminClient
. That is, all of SubscriptionAdminClient
overloads will forward to the one pure-virtual function declared in this interface. This allows users to inject custom behavior (e.g., with a Google Mock object) in a SubscriptionAdminClient
object for use in their own tests.
To create a concrete instance that connects you to the real Cloud Pub/Sub service, see MakeSubscriptionAdminConnection()
.
The *Params nested classes
Applications may define classes derived from SubscriptionAdminConnection
, for example, because they want to mock the class. To avoid breaking all such derived classes when we change the number or type of the arguments to the member functions we define lightweight structures to pass the arguments.
Functions
virtual CreateSubscription(CreateSubscriptionParams)
Parameter
Name
Description
CreateSubscriptionParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Subscription >
virtual GetSubscription(GetSubscriptionParams)
Parameter
Name
Description
GetSubscriptionParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Subscription >
virtual UpdateSubscription(UpdateSubscriptionParams)
Parameter
Name
Description
UpdateSubscriptionParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Subscription >
virtual ListSubscriptions(ListSubscriptionsParams)
Parameter
Name
Description
ListSubscriptionsParams
Returns
Type
Description
ListSubscriptionsRange
virtual DeleteSubscription(DeleteSubscriptionParams)
Parameter
Name
Description
DeleteSubscriptionParams
Returns
Type
Description
Status
virtual ModifyPushConfig(ModifyPushConfigParams)
Defines the interface for SubscriptionAdminClient::ModifyPushConfig()
Parameter
Name
Description
ModifyPushConfigParams
Returns
Type
Description
Status
virtual CreateSnapshot(CreateSnapshotParams)
Defines the interface for SnapshotAdminClient::CreateSnapshot()
Parameter
Name
Description
CreateSnapshotParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Snapshot >
virtual GetSnapshot(GetSnapshotParams)
Defines the interface for SnapshotAdminClient::GetSnapshot()
Parameter
Name
Description
GetSnapshotParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Snapshot >
virtual UpdateSnapshot(UpdateSnapshotParams)
Defines the interface for SnapshotAdminClient::UpdateSnapshot()
Parameter
Name
Description
UpdateSnapshotParams
Returns
Type
Description
StatusOr< google::pubsub::v1::Snapshot >
virtual ListSnapshots(ListSnapshotsParams)
Parameter
Name
Description
ListSnapshotsParams
Returns
Type
Description
ListSnapshotsRange
virtual DeleteSnapshot(DeleteSnapshotParams)
Defines the interface for SnapshotAdminClient::DeleteSnapshot()
Parameter
Name
Description
DeleteSnapshotParams
Returns
Type
Description
Status
virtual Seek(SeekParams)
Parameter
Name
Description
SeekParams
Returns
Type
Description
StatusOr< google::pubsub::v1::SeekResponse >
virtual options() const
Return the options used to create the connection.
Returns
Type
Description
Options
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-21 UTC.",
"confidential": False
}