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 |
Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
See: Cloud Pub/Sub API Reference for pubsub.projects.topics.publish
.
Synopsis
- type ProjectsTopicsPublishResource = "v1" :> (CaptureMode "topic" "publish" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PublishRequest :> Post '[JSON] PublishResponse))))))))
- projectsTopicsPublish :: PublishRequest -> Text -> ProjectsTopicsPublish
- data ProjectsTopicsPublish
- ptptXgafv :: Lens' ProjectsTopicsPublish (Maybe Xgafv)
- ptptUploadProtocol :: Lens' ProjectsTopicsPublish (Maybe Text)
- ptptAccessToken :: Lens' ProjectsTopicsPublish (Maybe Text)
- ptptUploadType :: Lens' ProjectsTopicsPublish (Maybe Text)
- ptptPayload :: Lens' ProjectsTopicsPublish PublishRequest
- ptptTopic :: Lens' ProjectsTopicsPublish Text
- ptptCallback :: Lens' ProjectsTopicsPublish (Maybe Text)
REST Resource
type ProjectsTopicsPublishResource = "v1" :> (CaptureMode "topic" "publish" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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.
See: projectsTopicsPublish
smart constructor.
Instances
Request Lenses
ptptUploadProtocol :: Lens' ProjectsTopicsPublish (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptptAccessToken :: Lens' ProjectsTopicsPublish (Maybe Text) Source #
OAuth access token.
ptptUploadType :: Lens' ProjectsTopicsPublish (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptptPayload :: Lens' ProjectsTopicsPublish PublishRequest Source #
Multipart request metadata.
ptptTopic :: Lens' ProjectsTopicsPublish Text Source #
The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`.
ptptCallback :: Lens' ProjectsTopicsPublish (Maybe Text) Source #
JSONP