gogol-admin-directory-0.1.1: 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.Roles.Insert

Contents

Description

Creates a role.

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

Synopsis

REST Resource

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

A resource alias for directory.roles.insert method which the RolesInsert request conforms to.

Creating a Request

rolesInsert Source #

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

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

data RolesInsert Source #

Creates a role.

See: rolesInsert smart constructor.

Instances

Eq RolesInsert Source # 
Data RolesInsert Source # 

Methods

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

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

toConstr :: RolesInsert -> Constr #

dataTypeOf :: RolesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RolesInsert Source # 
Generic RolesInsert Source # 

Associated Types

type Rep RolesInsert :: * -> * #

GoogleRequest RolesInsert Source # 

Associated Types

type Rs RolesInsert :: * #

type Scopes RolesInsert :: [Symbol] #

type Rep RolesInsert Source # 
type Rep RolesInsert = D1 (MetaData "RolesInsert" "Network.Google.Resource.Directory.Roles.Insert" "gogol-admin-directory-0.1.1-73Tf2vuRaxhTzoNR29qV8" False) (C1 (MetaCons "RolesInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_riPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Role)) (S1 (MetaSel (Just Symbol "_riCustomer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes RolesInsert Source # 
type Scopes RolesInsert = (:) Symbol "https://www.googleapis.com/auth/admin.directory.rolemanagement" ([] Symbol)
type Rs RolesInsert Source # 

Request Lenses

riPayload :: Lens' RolesInsert Role Source #

Multipart request metadata.

riCustomer :: Lens' RolesInsert Text Source #

Immutable ID of the Google Apps account.