gogol-pubsub-0.0.1: Google Cloud Pub/Sub SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.PubSub.Projects.Subscriptions.Pull

Contents

Description

Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.

See: Google Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.pull.

Synopsis

REST Resource

type ProjectsSubscriptionsPullResource = "v1" :> (CaptureMode "subscription" "pull" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` PullRequest :> Post `[JSON]` PullResponse)))))))))) Source

A resource alias for pubsub.projects.subscriptions.pull method which the ProjectsSubscriptionsPull request conforms to.

Creating a Request

projectsSubscriptionsPull Source

Creates a value of ProjectsSubscriptionsPull with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsSubscriptionsPull Source

Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.

See: projectsSubscriptionsPull smart constructor.

Request Lenses

pspUploadProtocol :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

pspUploadType :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

pspSubscription :: Lens' ProjectsSubscriptionsPull Text Source

The subscription from which messages should be pulled.