gogol-pubsub-0.4.0: Google Cloud Pub/Sub 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.PubSub.Projects.Snapshots.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: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.testIamPermissions.

Synopsis

REST Resource

type ProjectsSnapshotsTestIAMPermissionsResource = "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 pubsub.projects.snapshots.testIamPermissions method which the ProjectsSnapshotsTestIAMPermissions request conforms to.

Creating a Request

data ProjectsSnapshotsTestIAMPermissions 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: projectsSnapshotsTestIAMPermissions smart constructor.

Instances
Eq ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

Data ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

Methods

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

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

toConstr :: ProjectsSnapshotsTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsSnapshotsTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

Generic ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

GoogleRequest ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

type Rep ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

type Rep ProjectsSnapshotsTestIAMPermissions = D1 (MetaData "ProjectsSnapshotsTestIAMPermissions" "Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsSnapshotsTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_pstipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pstipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pstipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pstipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pstipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_pstipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pstipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsSnapshotsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

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

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.TestIAMPermissions

Request Lenses

pstipUploadProtocol :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #

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

pstipUploadType :: Lens' ProjectsSnapshotsTestIAMPermissions (Maybe Text) Source #

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

pstipResource :: Lens' ProjectsSnapshotsTestIAMPermissions Text Source #

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