gogol-sourcerepo-0.4.0: Google Cloud Source Repositories 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.SourceRepo.Projects.Repos.SetIAMPolicy

Contents

Description

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

See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.setIamPolicy.

Synopsis

REST Resource

type ProjectsReposSetIAMPolicyResource = "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 sourcerepo.projects.repos.setIamPolicy method which the ProjectsReposSetIAMPolicy request conforms to.

Creating a Request

projectsReposSetIAMPolicy Source #

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

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

data ProjectsReposSetIAMPolicy Source #

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

See: projectsReposSetIAMPolicy smart constructor.

Instances
Eq ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

Data ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

Methods

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

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

toConstr :: ProjectsReposSetIAMPolicy -> Constr #

dataTypeOf :: ProjectsReposSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

Generic ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

Associated Types

type Rep ProjectsReposSetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

type Rep ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

type Rep ProjectsReposSetIAMPolicy = D1 (MetaData "ProjectsReposSetIAMPolicy" "Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" False) (C1 (MetaCons "ProjectsReposSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_prsipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prsipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prsipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prsipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_prsipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prsipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsReposSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

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

Defined in Network.Google.Resource.SourceRepo.Projects.Repos.SetIAMPolicy

Request Lenses

prsipUploadProtocol :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #

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

prsipUploadType :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #

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

prsipResource :: Lens' ProjectsReposSetIAMPolicy Text Source #

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