Copyright | (c) 2015 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: Google Cloud Pub/Sub API Reference for pubsub.projects.topics.create
.
- 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))))))))))
- projectsTopicsCreate :: Topic -> Text -> ProjectsTopicsCreate
- data ProjectsTopicsCreate
- ptcXgafv :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcPp :: Lens' ProjectsTopicsCreate Bool
- ptcAccessToken :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcUploadType :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcPayload :: Lens' ProjectsTopicsCreate Topic
- ptcBearerToken :: Lens' ProjectsTopicsCreate (Maybe Text)
- ptcName :: Lens' ProjectsTopicsCreate Text
- ptcCallback :: Lens' ProjectsTopicsCreate (Maybe Text)
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
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: projectsTopicsCreate
smart constructor.
Request Lenses
ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
ptcPp :: Lens' ProjectsTopicsCreate Bool Source
Pretty-print response.
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.
ptcBearerToken :: Lens' ProjectsTopicsCreate (Maybe Text) Source
OAuth bearer token.
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