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

Contents

Description

Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

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

Synopsis

REST Resource

type ProjectsTopicsPublishResource = "v1" :> (CaptureMode "topic" "publish" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PublishRequest :> Post '[JSON] PublishResponse)))))))) Source #

A resource alias for pubsub.projects.topics.publish method which the ProjectsTopicsPublish request conforms to.

Creating a Request

projectsTopicsPublish Source #

Creates a value of ProjectsTopicsPublish with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsTopicsPublish Source #

Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

See: projectsTopicsPublish smart constructor.

Instances
Eq ProjectsTopicsPublish Source # 
Instance details

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

Data ProjectsTopicsPublish Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsTopicsPublish -> Constr #

dataTypeOf :: ProjectsTopicsPublish -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsTopicsPublish Source # 
Instance details

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

Generic ProjectsTopicsPublish Source # 
Instance details

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

Associated Types

type Rep ProjectsTopicsPublish :: Type -> Type #

GoogleRequest ProjectsTopicsPublish Source # 
Instance details

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

type Rep ProjectsTopicsPublish Source # 
Instance details

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

type Rep ProjectsTopicsPublish = D1 (MetaData "ProjectsTopicsPublish" "Network.Google.Resource.PubSub.Projects.Topics.Publish" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsTopicsPublish'" PrefixI True) ((S1 (MetaSel (Just "_ptptXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ptptUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptptAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ptptUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptptPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PublishRequest)) :*: (S1 (MetaSel (Just "_ptptTopic") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ptptCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTopicsPublish Source # 
Instance details

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

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

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

Request Lenses

ptptUploadProtocol :: Lens' ProjectsTopicsPublish (Maybe Text) Source #

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

ptptUploadType :: Lens' ProjectsTopicsPublish (Maybe Text) Source #

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

ptptTopic :: Lens' ProjectsTopicsPublish Text Source #

The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`.