gogol-pubsub-0.5.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 the resource name rules.

See: 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 "access_token" Text :> (QueryParam "uploadType" 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 the resource name rules.

See: projectsTopicsCreate smart constructor.

Instances
Eq ProjectsTopicsCreate Source # 
Instance details

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

Data ProjectsTopicsCreate Source # 
Instance details

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

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 # 
Instance details

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

Generic ProjectsTopicsCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsTopicsCreate :: Type -> Type #

GoogleRequest ProjectsTopicsCreate Source # 
Instance details

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

Associated Types

type Rs ProjectsTopicsCreate :: Type #

type Scopes ProjectsTopicsCreate :: [Symbol] #

type Rep ProjectsTopicsCreate Source # 
Instance details

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

type Rep ProjectsTopicsCreate = D1 (MetaData "ProjectsTopicsCreate" "Network.Google.Resource.PubSub.Projects.Topics.Create" "gogol-pubsub-0.5.0-LIQQ2v5pjD82QASoUQpr2c" False) (C1 (MetaCons "ProjectsTopicsCreate'" PrefixI True) ((S1 (MetaSel (Just "_ptcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ptcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ptcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Topic)) :*: (S1 (MetaSel (Just "_ptcName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ptcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTopicsCreate Source # 
Instance details

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

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

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

Request Lenses

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

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

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