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.Subscriptions.ModifyPushConfig

Contents

Description

Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.

See: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.modifyPushConfig.

Synopsis

REST Resource

type ProjectsSubscriptionsModifyPushConfigResource = "v1" :> (CaptureMode "subscription" "modifyPushConfig" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyPushConfigRequest :> Post '[JSON] Empty)))))))) Source #

A resource alias for pubsub.projects.subscriptions.modifyPushConfig method which the ProjectsSubscriptionsModifyPushConfig request conforms to.

Creating a Request

data ProjectsSubscriptionsModifyPushConfig Source #

Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.

See: projectsSubscriptionsModifyPushConfig smart constructor.

Instances
Eq ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

Data ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

Methods

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

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

toConstr :: ProjectsSubscriptionsModifyPushConfig -> Constr #

dataTypeOf :: ProjectsSubscriptionsModifyPushConfig -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

Generic ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

GoogleRequest ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

type Rep ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

type Rep ProjectsSubscriptionsModifyPushConfig = D1 (MetaData "ProjectsSubscriptionsModifyPushConfig" "Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsSubscriptionsModifyPushConfig'" PrefixI True) ((S1 (MetaSel (Just "_psmpcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_psmpcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psmpcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_psmpcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psmpcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ModifyPushConfigRequest)) :*: (S1 (MetaSel (Just "_psmpcSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_psmpcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsSubscriptionsModifyPushConfig Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

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

Defined in Network.Google.Resource.PubSub.Projects.Subscriptions.ModifyPushConfig

Request Lenses

psmpcUploadProtocol :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text) Source #

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

psmpcUploadType :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text) Source #

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

psmpcSubscription :: Lens' ProjectsSubscriptionsModifyPushConfig Text Source #

The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.