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.Topics.Publish

Contents

Description

Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.

See: Google Cloud Pub/Sub API Reference for pubsub.projects.topics.publish.

Synopsis

REST Resource

type ProjectsTopicsPublishResource = "v1" :> (CaptureMode "topic" "publish" 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]` PublishRequest :> Post `[JSON]` PublishResponse)))))))))) Source

A resource alias for pubsub.projects.topics.publish method which the ProjectsTopicsPublish request conforms to.

Creating a Request

projectsTopicsPublish Source

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

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

data ProjectsTopicsPublish Source

Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.

See: projectsTopicsPublish smart constructor.

Request Lenses

ptpUploadProtocol :: Lens' ProjectsTopicsPublish (Maybe Text) Source

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

ptpPp :: Lens' ProjectsTopicsPublish Bool Source

Pretty-print response.

ptpUploadType :: Lens' ProjectsTopicsPublish (Maybe Text) Source

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

ptpTopic :: Lens' ProjectsTopicsPublish Text Source

The messages in the request will be published on this topic.