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.Topics.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.topics.testIamPermissions.

Synopsis

REST Resource

type ProjectsTopicsTestIAMPermissionsResource = "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.topics.testIamPermissions method which the ProjectsTopicsTestIAMPermissions request conforms to.

Creating a Request

data ProjectsTopicsTestIAMPermissions 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: projectsTopicsTestIAMPermissions smart constructor.

Instances
Eq ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

Data ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsTopicsTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsTopicsTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

Generic ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

Associated Types

type Rep ProjectsTopicsTestIAMPermissions :: Type -> Type #

GoogleRequest ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsTopicsTestIAMPermissions = D1 (MetaData "ProjectsTopicsTestIAMPermissions" "Network.Google.Resource.PubSub.Projects.Topics.TestIAMPermissions" "gogol-pubsub-0.4.0-4HrlFZL2Veq5x2Cv2TajBN" False) (C1 (MetaCons "ProjectsTopicsTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_pttipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pttipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pttipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pttipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pttipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_pttipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pttipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsTopicsTestIAMPermissions Source # 
Instance details

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

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

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

Request Lenses

pttipUploadProtocol :: Lens' ProjectsTopicsTestIAMPermissions (Maybe Text) Source #

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

pttipUploadType :: Lens' ProjectsTopicsTestIAMPermissions (Maybe Text) Source #

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

pttipResource :: Lens' ProjectsTopicsTestIAMPermissions Text Source #

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