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 |
Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.
See: Cloud Pub/Sub API Reference for pubsub.projects.topics.delete
.
Synopsis
- type ProjectsTopicsDeleteResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))
- projectsTopicsDelete :: Text -> ProjectsTopicsDelete
- data ProjectsTopicsDelete
- ptdXgafv :: Lens' ProjectsTopicsDelete (Maybe Xgafv)
- ptdUploadProtocol :: Lens' ProjectsTopicsDelete (Maybe Text)
- ptdAccessToken :: Lens' ProjectsTopicsDelete (Maybe Text)
- ptdUploadType :: Lens' ProjectsTopicsDelete (Maybe Text)
- ptdTopic :: Lens' ProjectsTopicsDelete Text
- ptdCallback :: Lens' ProjectsTopicsDelete (Maybe Text)
REST Resource
type ProjectsTopicsDeleteResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))) Source #
A resource alias for pubsub.projects.topics.delete
method which the
ProjectsTopicsDelete
request conforms to.
Creating a Request
Creates a value of ProjectsTopicsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTopicsDelete Source #
Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.
See: projectsTopicsDelete
smart constructor.
Instances
Request Lenses
ptdUploadProtocol :: Lens' ProjectsTopicsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptdAccessToken :: Lens' ProjectsTopicsDelete (Maybe Text) Source #
OAuth access token.
ptdUploadType :: Lens' ProjectsTopicsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptdTopic :: Lens' ProjectsTopicsDelete Text Source #
Name of the topic to delete. Format is `projects/{project}/topics/{topic}`.
ptdCallback :: Lens' ProjectsTopicsDelete (Maybe Text) Source #
JSONP