gogol-admin-directory-0.4.0: Google Admin Directory 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.Directory.RoleAssignments.Insert

Contents

Description

Creates a role assignment.

See: Admin Directory API Reference for directory.roleAssignments.insert.

Synopsis

REST Resource

type RoleAssignmentsInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("roleassignments" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoleAssignment :> Post '[JSON] RoleAssignment))))))) Source #

A resource alias for directory.roleAssignments.insert method which the RoleAssignmentsInsert request conforms to.

Creating a Request

roleAssignmentsInsert Source #

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

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

data RoleAssignmentsInsert Source #

Creates a role assignment.

See: roleAssignmentsInsert smart constructor.

Instances
Eq RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

Data RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

Methods

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

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

toConstr :: RoleAssignmentsInsert -> Constr #

dataTypeOf :: RoleAssignmentsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

Generic RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

Associated Types

type Rep RoleAssignmentsInsert :: Type -> Type #

GoogleRequest RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

type Rep RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

type Rep RoleAssignmentsInsert = D1 (MetaData "RoleAssignmentsInsert" "Network.Google.Resource.Directory.RoleAssignments.Insert" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "RoleAssignmentsInsert'" PrefixI True) (S1 (MetaSel (Just "_raiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoleAssignment) :*: S1 (MetaSel (Just "_raiCustomer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

type Scopes RoleAssignmentsInsert = "https://www.googleapis.com/auth/admin.directory.rolemanagement" ': ([] :: [Symbol])
type Rs RoleAssignmentsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.RoleAssignments.Insert

Request Lenses

raiCustomer :: Lens' RoleAssignmentsInsert Text Source #

Immutable ID of the G Suite account.