gogol-admin-directory-0.2.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 # 
Data RoleAssignmentsInsert Source # 

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 # 
Generic RoleAssignmentsInsert Source # 
GoogleRequest RoleAssignmentsInsert Source # 
type Rep RoleAssignmentsInsert Source # 
type Rep RoleAssignmentsInsert = D1 (MetaData "RoleAssignmentsInsert" "Network.Google.Resource.Directory.RoleAssignments.Insert" "gogol-admin-directory-0.2.0-LtLu3aZ0zIMLZgbWZuob8D" False) (C1 (MetaCons "RoleAssignmentsInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_raiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoleAssignment)) (S1 (MetaSel (Just Symbol "_raiCustomer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes RoleAssignmentsInsert Source # 
type Scopes RoleAssignmentsInsert = (:) Symbol "https://www.googleapis.com/auth/admin.directory.rolemanagement" ([] Symbol)
type Rs RoleAssignmentsInsert Source # 

Request Lenses

raiCustomer :: Lens' RoleAssignmentsInsert Text Source #

Immutable ID of the Google Apps account.