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

Copyright(c) 2015-2016 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" Xgafv :> (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.

Instances

Eq ProjectsSubscriptionsPull Source # 
Data ProjectsSubscriptionsPull Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsSubscriptionsPull -> c ProjectsSubscriptionsPull #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsSubscriptionsPull #

toConstr :: ProjectsSubscriptionsPull -> Constr #

dataTypeOf :: ProjectsSubscriptionsPull -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsSubscriptionsPull) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsSubscriptionsPull) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsSubscriptionsPull -> ProjectsSubscriptionsPull #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsSubscriptionsPull -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsSubscriptionsPull -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsSubscriptionsPull -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsSubscriptionsPull -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsSubscriptionsPull -> m ProjectsSubscriptionsPull #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsSubscriptionsPull -> m ProjectsSubscriptionsPull #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsSubscriptionsPull -> m ProjectsSubscriptionsPull #

Show ProjectsSubscriptionsPull Source # 
Generic ProjectsSubscriptionsPull Source # 
GoogleRequest ProjectsSubscriptionsPull Source # 
type Rep ProjectsSubscriptionsPull Source # 
type Scopes ProjectsSubscriptionsPull Source # 
type Scopes ProjectsSubscriptionsPull = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/pubsub" ([] Symbol))
type Rs ProjectsSubscriptionsPull Source # 

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. Format is `projects/{project}/subscriptions/{sub}`.