gogol-pubsub-0.3.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.Create

Contents

Description

Creates the given topic with the given name.

See: Google Cloud Pub/Sub API Reference for pubsub.projects.topics.create.

Synopsis

REST Resource

type ProjectsTopicsCreateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (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

projectsTopicsCreate Source #

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.

Instances

Eq ProjectsTopicsCreate Source # 
Data ProjectsTopicsCreate Source # 

Methods

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

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

toConstr :: ProjectsTopicsCreate -> Constr #

dataTypeOf :: ProjectsTopicsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsTopicsCreate Source # 
Generic ProjectsTopicsCreate Source # 
GoogleRequest ProjectsTopicsCreate Source # 
type Rep ProjectsTopicsCreate Source # 
type Scopes ProjectsTopicsCreate Source # 
type Scopes ProjectsTopicsCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/pubsub" ([] Symbol))
type Rs ProjectsTopicsCreate Source # 

Request Lenses

ptcUploadProtocol :: Lens' ProjectsTopicsCreate (Maybe Text) Source #

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

ptcPp :: Lens' ProjectsTopicsCreate Bool Source #

Pretty-print response.

ptcUploadType :: Lens' ProjectsTopicsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

ptcPayload :: Lens' ProjectsTopicsCreate Topic Source #

Multipart request metadata.

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