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

Contents

Description

Sets the access control policy on the specified resource. Replaces any existing policy.

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

Synopsis

REST Resource

type ProjectsTopicsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #

A resource alias for pubsub.projects.topics.setIamPolicy method which the ProjectsTopicsSetIAMPolicy request conforms to.

Creating a Request

projectsTopicsSetIAMPolicy Source #

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

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

data ProjectsTopicsSetIAMPolicy Source #

Sets the access control policy on the specified resource. Replaces any existing policy.

See: projectsTopicsSetIAMPolicy smart constructor.

Instances
Eq ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

Data ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsTopicsSetIAMPolicy -> Constr #

dataTypeOf :: ProjectsTopicsSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

Generic ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep ProjectsTopicsSetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

type Rep ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

type Rep ProjectsTopicsSetIAMPolicy = D1 (MetaData "ProjectsTopicsSetIAMPolicy" "Network.Google.Resource.PubSub.Projects.Topics.SetIAMPolicy" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsTopicsSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_ptsipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ptsipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptsipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ptsipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ptsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_ptsipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ptsipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTopicsSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

ptsipUploadProtocol :: Lens' ProjectsTopicsSetIAMPolicy (Maybe Text) Source #

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

ptsipUploadType :: Lens' ProjectsTopicsSetIAMPolicy (Maybe Text) Source #

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

ptsipResource :: Lens' ProjectsTopicsSetIAMPolicy Text Source #

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.