gogol-binaryauthorization-0.4.0: Google Binary Authorization 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.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

Contents

Description

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

See: Binary Authorization API Reference for binaryauthorization.projects.attestors.testIamPermissions.

Synopsis

REST Resource

type ProjectsAttestorsTestIAMPermissionsResource = "v1beta1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #

A resource alias for binaryauthorization.projects.attestors.testIamPermissions method which the ProjectsAttestorsTestIAMPermissions request conforms to.

Creating a Request

data ProjectsAttestorsTestIAMPermissions Source #

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

See: projectsAttestorsTestIAMPermissions smart constructor.

Instances
Eq ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

Data ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

Methods

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

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

toConstr :: ProjectsAttestorsTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsAttestorsTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

Generic ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

GoogleRequest ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

type Rep ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

type Rep ProjectsAttestorsTestIAMPermissions = D1 (MetaData "ProjectsAttestorsTestIAMPermissions" "Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions" "gogol-binaryauthorization-0.4.0-BhgUYr1FlAtBUJGnGudaWV" False) (C1 (MetaCons "ProjectsAttestorsTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_patipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_patipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_patipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_patipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_patipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_patipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_patipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAttestorsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

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

Defined in Network.Google.Resource.BinaryAuthorization.Projects.Attestors.TestIAMPermissions

Request Lenses

patipUploadProtocol :: Lens' ProjectsAttestorsTestIAMPermissions (Maybe Text) Source #

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

patipUploadType :: Lens' ProjectsAttestorsTestIAMPermissions (Maybe Text) Source #

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

patipResource :: Lens' ProjectsAttestorsTestIAMPermissions Text Source #

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