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.Create

Contents

Description

Creates the given topic with the given name.

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

Synopsis

REST Resource

type ProjectsTopicsCreateResource = "v1" :> (Capture "name" 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]` Topic :> Put `[JSON]` Topic)))))))))) Source

A resource alias for pubsub.projects.topics.create method which the ProjectsTopicsCreate request conforms to.

Creating a Request

projectsTopicsCreate Source

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

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

Request Lenses

ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text) Source

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

ptcPp :: Lens' ProjectsTopicsCreate Bool Source

Pretty-print response.

ptcUploadType :: Lens' ProjectsTopicsCreate (Maybe Text) Source

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

ptcPayload :: Lens' ProjectsTopicsCreate Topic Source

Multipart request metadata.

ptcName :: Lens' ProjectsTopicsCreate Text Source

The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.