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

Contents

Description

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: Google Cloud Pub/Sub API Reference for pubsub.projects.topics.delete.

Synopsis

REST Resource

type ProjectsTopicsDeleteResource = "v1" :> (Capture "topic" 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 :> Delete `[JSON]` Empty))))))))) Source

A resource alias for pubsub.projects.topics.delete method which the ProjectsTopicsDelete request conforms to.

Creating a Request

projectsTopicsDelete Source

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.

Request Lenses

ptdUploadProtocol :: Lens' ProjectsTopicsDelete (Maybe Text) Source

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

ptdPp :: Lens' ProjectsTopicsDelete Bool Source

Pretty-print response.

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.