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 |
Creates the given topic with the given name. See the resource name rules.
See: Cloud Pub/Sub API Reference for pubsub.projects.topics.create
.
Synopsis
- type ProjectsTopicsCreateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Topic :> Put '[JSON] Topic))))))))
- projectsTopicsCreate :: Topic -> Text -> ProjectsTopicsCreate
- data ProjectsTopicsCreate
- ptcXgafv :: Lens' ProjectsTopicsCreate (Maybe Xgafv)
- ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcAccessToken :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcUploadType :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcPayload :: Lens' ProjectsTopicsCreate Topic
- ptcName :: Lens' ProjectsTopicsCreate Text
- ptcCallback :: Lens' ProjectsTopicsCreate (Maybe Text)
REST Resource
type ProjectsTopicsCreateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
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:
data ProjectsTopicsCreate Source #
Creates the given topic with the given name. See the resource name rules.
See: projectsTopicsCreate
smart constructor.
Instances
Request Lenses
ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptcAccessToken :: Lens' ProjectsTopicsCreate (Maybe Text) Source #
OAuth access token.
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"`.
ptcCallback :: Lens' ProjectsTopicsCreate (Maybe Text) Source #
JSONP