The "subscriptions" collection of methods.
More...
|
| acknowledge (Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams=array()) |
| Acknowledges a particular received message: the Pub/Sub system can remove the given message from the subscription.
|
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| create (Google_Service_Pubsub_Subscription $postBody, $optParams=array()) |
| Creates a subscription on a given topic for a given subscriber.
|
|
| delete ($subscription, $optParams=array()) |
| Deletes an existing subscription.
|
|
| get ($subscription, $optParams=array()) |
| Gets the configuration details of a subscription.
|
|
| listSubscriptions ($optParams=array()) |
| Lists matching subscriptions.
|
|
| modifyAckDeadline (Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams=array()) |
| Modifies the Ack deadline for a message received from a pull request.
|
|
| modifyPushConfig (Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams=array()) |
| Modifies the PushConfig for a specified subscription.
|
|
| pull (Google_Service_Pubsub_PullRequest $postBody, $optParams=array()) |
| Pulls a single message from the server.
|
|
| pullBatch (Google_Service_Pubsub_PullBatchRequest $postBody, $optParams=array()) |
| Pulls messages from the server.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "subscriptions" collection of methods.
Typical usage is: $pubsubService = new Google_Service_Pubsub(...); $subscriptions = $pubsubService->subscriptions;
◆ acknowledge()
Acknowledges a particular received message: the Pub/Sub system can remove the given message from the subscription.
Acknowledging a message whose Ack deadline has expired may succeed, but the message could have been already redelivered. Acknowledging a message more than once will not result in an error. This is only used for messages received via pull. (subscriptions.acknowledge)
- Parameters
-
Google_AcknowledgeRequest | $postBody | |
array | $optParams | Optional parameters. |
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ create()
Creates a subscription on a given topic for a given subscriber.
If the subscription already exists, returns ALREADY_EXISTS. If the corresponding topic doesn't exist, returns NOT_FOUND.
If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. (subscriptions.create)
- Parameters
-
Google_Subscription | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ delete()
Google_Service_Pubsub_Subscriptions_Resource::delete |
( |
| $subscription, |
|
|
| $optParams = array() ) |
Deletes an existing subscription.
All pending messages in the subscription are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. (subscriptions.delete)
- Parameters
-
string | $subscription | The subscription to delete. |
array | $optParams | Optional parameters. |
◆ get()
Google_Service_Pubsub_Subscriptions_Resource::get |
( |
| $subscription, |
|
|
| $optParams = array() ) |
Gets the configuration details of a subscription.
(subscriptions.get)
- Parameters
-
string | $subscription | The name of the subscription to get. |
array | $optParams | Optional parameters. |
- Return values
-
◆ listSubscriptions()
Google_Service_Pubsub_Subscriptions_Resource::listSubscriptions |
( |
| $optParams = array() | ) |
|
Lists matching subscriptions.
(subscriptions.listSubscriptions)
- Parameters
-
array | $optParams | Optional parameters. |
@opt_param string pageToken The value obtained in the last ListSubscriptionsResponse for continuation. @opt_param int maxResults Maximum number of subscriptions to return. @opt_param string query A valid label query expression.
- Return values
-
◆ modifyAckDeadline()
Modifies the Ack deadline for a message received from a pull request.
(subscriptions.modifyAckDeadline)
- Parameters
-
Google_ModifyAckDeadlineRequest | $postBody | |
array | $optParams | Optional parameters. |
◆ modifyPushConfig()
Modifies the PushConfig for a specified subscription.
This method can be used to suspend the flow of messages to an endpoint by clearing the PushConfig field in the request. Messages will be accumulated for delivery even if no push configuration is defined or while the configuration is modified. (subscriptions.modifyPushConfig)
- Parameters
-
Google_ModifyPushConfigRequest | $postBody | |
array | $optParams | Optional parameters. |
◆ pull()
Pulls a single message from the server.
If return_immediately is true, and no messages are available in the subscription, this method returns FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no messages are available in a reasonable amount of time (to reduce system load). (subscriptions.pull)
- Parameters
-
Google_PullRequest | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ pullBatch()
Pulls messages from the server.
Returns an empty list if there are no messages available in the backlog. The system is free to return UNAVAILABLE if there are too many pull requests outstanding for the given subscription. (subscriptions.pullBatch)
- Parameters
-
Google_PullBatchRequest | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Pubsub.php