gogol-pubsub-0.4.0: Google Cloud Pub/Sub SDK.

Copyright(c) 2015-2016 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: Cloud Pub/Sub API Reference for pubsub.projects.topics.delete.

Synopsis

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

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.

Instances
Eq ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Data ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsTopicsDelete -> c ProjectsTopicsDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsTopicsDelete #

toConstr :: ProjectsTopicsDelete -> Constr #

dataTypeOf :: ProjectsTopicsDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsTopicsDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsTopicsDelete) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsTopicsDelete -> ProjectsTopicsDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsTopicsDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsTopicsDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsTopicsDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsTopicsDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsTopicsDelete -> m ProjectsTopicsDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsTopicsDelete -> m ProjectsTopicsDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsTopicsDelete -> m ProjectsTopicsDelete #

Show ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Generic ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Associated Types

type Rep ProjectsTopicsDelete :: Type -> Type #

GoogleRequest ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Associated Types

type Rs ProjectsTopicsDelete :: Type #

type Scopes ProjectsTopicsDelete :: [Symbol] #

type Rep ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

type Rep ProjectsTopicsDelete = D1 (MetaData "ProjectsTopicsDelete" "Network.Google.Resource.PubSub.Projects.Topics.Delete" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsTopicsDelete'" PrefixI True) ((S1 (MetaSel (Just "_ptdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ptdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_ptdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ptdTopic") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ptdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

type Scopes ProjectsTopicsDelete = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/pubsub" ': ([] :: [Symbol]))
type Rs ProjectsTopicsDelete Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Topics.Delete

Request Lenses

ptdUploadProtocol :: Lens' ProjectsTopicsDelete (Maybe Text) Source #

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

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}`.