gogol-containeranalysis-0.4.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.Notes.GetIAMPolicy

Contents

Description

Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or 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.notes.getIamPolicy.

Synopsis

REST Resource

type ProjectsNotesGetIAMPolicyResource = "v1beta1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #

A resource alias for containeranalysis.projects.notes.getIamPolicy method which the ProjectsNotesGetIAMPolicy request conforms to.

Creating a Request

projectsNotesGetIAMPolicy Source #

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

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

data ProjectsNotesGetIAMPolicy Source #

Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or 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: projectsNotesGetIAMPolicy smart constructor.

Instances
Eq ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

Data ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

Methods

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

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

toConstr :: ProjectsNotesGetIAMPolicy -> Constr #

dataTypeOf :: ProjectsNotesGetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

Generic ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

Associated Types

type Rep ProjectsNotesGetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

type Rep ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

type Rep ProjectsNotesGetIAMPolicy = D1 (MetaData "ProjectsNotesGetIAMPolicy" "Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy" "gogol-containeranalysis-0.4.0-3wkxC3MNsjpAG6P3o2ozxx" False) (C1 (MetaCons "ProjectsNotesGetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pngipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pngipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pngipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pngipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pngipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_pngipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pngipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsNotesGetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

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

Defined in Network.Google.Resource.ContainerAnalysis.Projects.Notes.GetIAMPolicy

Request Lenses

pngipUploadProtocol :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #

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

pngipUploadType :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #

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

pngipResource :: Lens' ProjectsNotesGetIAMPolicy Text Source #

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