Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.
See: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.pull
.
Synopsis
- type ProjectsSubscriptionsPullResource = "v1" :> (CaptureMode "subscription" "pull" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PullRequest :> Post '[JSON] PullResponse))))))))
- projectsSubscriptionsPull :: PullRequest -> Text -> ProjectsSubscriptionsPull
- data ProjectsSubscriptionsPull
- pspsXgafv :: Lens' ProjectsSubscriptionsPull (Maybe Xgafv)
- pspsUploadProtocol :: Lens' ProjectsSubscriptionsPull (Maybe Text)
- pspsAccessToken :: Lens' ProjectsSubscriptionsPull (Maybe Text)
- pspsUploadType :: Lens' ProjectsSubscriptionsPull (Maybe Text)
- pspsPayload :: Lens' ProjectsSubscriptionsPull PullRequest
- pspsSubscription :: Lens' ProjectsSubscriptionsPull Text
- pspsCallback :: Lens' ProjectsSubscriptionsPull (Maybe Text)
REST Resource
type ProjectsSubscriptionsPullResource = "v1" :> (CaptureMode "subscription" "pull" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription.
See: projectsSubscriptionsPull
smart constructor.
Instances
Request Lenses
pspsUploadProtocol :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pspsAccessToken :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source #
OAuth access token.
pspsUploadType :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pspsPayload :: Lens' ProjectsSubscriptionsPull PullRequest Source #
Multipart request metadata.
pspsSubscription :: Lens' ProjectsSubscriptionsPull Text Source #
The subscription from which messages should be pulled. Format is `projects/{project}/subscriptions/{sub}`.
pspsCallback :: Lens' ProjectsSubscriptionsPull (Maybe Text) Source #
JSONP