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 |
Updates an existing topic. Note that certain properties of a topic are not modifiable.
See: Cloud Pub/Sub API Reference for pubsub.projects.topics.patch
.
Synopsis
- type ProjectsTopicsPatchResource = "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] UpdateTopicRequest :> Patch '[JSON] Topic))))))))
- projectsTopicsPatch :: UpdateTopicRequest -> Text -> ProjectsTopicsPatch
- data ProjectsTopicsPatch
- ptpXgafv :: Lens' ProjectsTopicsPatch (Maybe Xgafv)
- ptpUploadProtocol :: Lens' ProjectsTopicsPatch (Maybe Text)
- ptpAccessToken :: Lens' ProjectsTopicsPatch (Maybe Text)
- ptpUploadType :: Lens' ProjectsTopicsPatch (Maybe Text)
- ptpPayload :: Lens' ProjectsTopicsPatch UpdateTopicRequest
- ptpName :: Lens' ProjectsTopicsPatch Text
- ptpCallback :: Lens' ProjectsTopicsPatch (Maybe Text)
REST Resource
type ProjectsTopicsPatchResource = "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] UpdateTopicRequest :> Patch '[JSON] Topic)))))))) Source #
A resource alias for pubsub.projects.topics.patch
method which the
ProjectsTopicsPatch
request conforms to.
Creating a Request
Creates a value of ProjectsTopicsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTopicsPatch Source #
Updates an existing topic. Note that certain properties of a topic are not modifiable.
See: projectsTopicsPatch
smart constructor.
Instances
Request Lenses
ptpUploadProtocol :: Lens' ProjectsTopicsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptpAccessToken :: Lens' ProjectsTopicsPatch (Maybe Text) Source #
OAuth access token.
ptpUploadType :: Lens' ProjectsTopicsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptpPayload :: Lens' ProjectsTopicsPatch UpdateTopicRequest Source #
Multipart request metadata.
ptpName :: Lens' ProjectsTopicsPatch 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"`.
ptpCallback :: Lens' ProjectsTopicsPatch (Maybe Text) Source #
JSONP