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

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

Synopsis

REST Resource

type ProjectsReposTestIAMPermissionsResource = "v1" :> (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 sourcerepo.projects.repos.testIamPermissions method which the ProjectsReposTestIAMPermissions request conforms to.

Creating a Request

data ProjectsReposTestIAMPermissions 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.

See: projectsReposTestIAMPermissions smart constructor.

Instances
Eq ProjectsReposTestIAMPermissions Source # 
Instance details

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

Data ProjectsReposTestIAMPermissions Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsReposTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsReposTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsReposTestIAMPermissions Source # 
Instance details

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

Generic ProjectsReposTestIAMPermissions Source # 
Instance details

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

Associated Types

type Rep ProjectsReposTestIAMPermissions :: Type -> Type #

GoogleRequest ProjectsReposTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsReposTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsReposTestIAMPermissions = D1 (MetaData "ProjectsReposTestIAMPermissions" "Network.Google.Resource.SourceRepo.Projects.Repos.TestIAMPermissions" "gogol-sourcerepo-0.4.0-2G5gXtsWHXD7LxqikVtfdD" False) (C1 (MetaCons "ProjectsReposTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_prtipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prtipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prtipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prtipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prtipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_prtipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prtipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsReposTestIAMPermissions Source # 
Instance details

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

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

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

Request Lenses

prtipUploadProtocol :: Lens' ProjectsReposTestIAMPermissions (Maybe Text) Source #

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

prtipUploadType :: Lens' ProjectsReposTestIAMPermissions (Maybe Text) Source #

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

prtipResource :: Lens' ProjectsReposTestIAMPermissions Text Source #

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