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

Contents

Description

Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.

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

Synopsis

REST Resource

type ProjectsSubscriptionsPatchResource = "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] UpdateSubscriptionRequest :> Patch '[JSON] Subscription)))))))) Source #

A resource alias for pubsub.projects.subscriptions.patch method which the ProjectsSubscriptionsPatch request conforms to.

Creating a Request

projectsSubscriptionsPatch Source #

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

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

data ProjectsSubscriptionsPatch Source #

Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.

See: projectsSubscriptionsPatch smart constructor.

Instances
Eq ProjectsSubscriptionsPatch Source # 
Instance details

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

Data ProjectsSubscriptionsPatch Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsSubscriptionsPatch -> Constr #

dataTypeOf :: ProjectsSubscriptionsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSubscriptionsPatch Source # 
Instance details

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

Generic ProjectsSubscriptionsPatch Source # 
Instance details

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

Associated Types

type Rep ProjectsSubscriptionsPatch :: Type -> Type #

GoogleRequest ProjectsSubscriptionsPatch Source # 
Instance details

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

type Rep ProjectsSubscriptionsPatch Source # 
Instance details

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

type Rep ProjectsSubscriptionsPatch = D1 (MetaData "ProjectsSubscriptionsPatch" "Network.Google.Resource.PubSub.Projects.Subscriptions.Patch" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsSubscriptionsPatch'" PrefixI True) ((S1 (MetaSel (Just "_pspXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pspUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pspAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pspUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateSubscriptionRequest)) :*: (S1 (MetaSel (Just "_pspName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pspCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsSubscriptionsPatch Source # 
Instance details

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

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

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

Request Lenses

pspUploadProtocol :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #

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

pspUploadType :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #

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

pspName :: Lens' ProjectsSubscriptionsPatch Text Source #

The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` 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"`.