gogol-containeranalysis-0.5.0: Google Container Analysis 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.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Contents

Description

Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

See: Container Analysis API Reference for containeranalysis.projects.occurrences.setIamPolicy.

Synopsis

REST Resource

type ProjectsOccurrencesSetIAMPolicyResource = "v1beta1" :> (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 containeranalysis.projects.occurrences.setIamPolicy method which the ProjectsOccurrencesSetIAMPolicy request conforms to.

Creating a Request

data ProjectsOccurrencesSetIAMPolicy Source #

Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.

See: projectsOccurrencesSetIAMPolicy smart constructor.

Instances
Eq ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Data ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Methods

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

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

toConstr :: ProjectsOccurrencesSetIAMPolicy -> Constr #

dataTypeOf :: ProjectsOccurrencesSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Generic ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Associated Types

type Rep ProjectsOccurrencesSetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

type Rep ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

type Rep ProjectsOccurrencesSetIAMPolicy = D1 (MetaData "ProjectsOccurrencesSetIAMPolicy" "Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy" "gogol-containeranalysis-0.5.0-8Ss1LZdDl5O9yFa7L1rdnz" False) (C1 (MetaCons "ProjectsOccurrencesSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_posipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_posipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_posipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_posipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_posipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_posipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_posipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsOccurrencesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

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

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Occurrences.SetIAMPolicy

Request Lenses

posipUploadProtocol :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text) Source #

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

posipUploadType :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text) Source #

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

posipResource :: Lens' ProjectsOccurrencesSetIAMPolicy Text Source #

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