gogol-servicebroker-0.4.0: Google Service Broker 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.ServiceBroker.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: Service Broker API Reference for servicebroker.testIamPermissions.

Synopsis

REST Resource

type TestIAMPermissionsResource = "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] GoogleIAMV1__TestIAMPermissionsRequest :> Post '[JSON] GoogleIAMV1__TestIAMPermissionsResponse)))))))) Source #

A resource alias for servicebroker.testIamPermissions method which the TestIAMPermissions request conforms to.

Creating a Request

testIAMPermissions Source #

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

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

data TestIAMPermissions 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: testIAMPermissions smart constructor.

Instances
Eq TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Data TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Methods

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

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

toConstr :: TestIAMPermissions -> Constr #

dataTypeOf :: TestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Generic TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Associated Types

type Rep TestIAMPermissions :: Type -> Type #

GoogleRequest TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Associated Types

type Rs TestIAMPermissions :: Type #

type Scopes TestIAMPermissions :: [Symbol] #

type Rep TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

type Rep TestIAMPermissions = D1 (MetaData "TestIAMPermissions" "Network.Google.Resource.ServiceBroker.TestIAMPermissions" "gogol-servicebroker-0.4.0-378DxXBBEB9BcpeeXB9Tvu" False) (C1 (MetaCons "TestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_tipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_tipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_tipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleIAMV1__TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_tipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes TestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

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

Defined in Network.Google.Resource.ServiceBroker.TestIAMPermissions

Request Lenses

tipUploadProtocol :: Lens' TestIAMPermissions (Maybe Text) Source #

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

tipUploadType :: Lens' TestIAMPermissions (Maybe Text) Source #

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

tipResource :: Lens' TestIAMPermissions Text Source #

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