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.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 # 
Instance details

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

Data RolesInsert Source # 
Instance details

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

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 # 
Instance details

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

Generic RolesInsert Source # 
Instance details

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

Associated Types

type Rep RolesInsert :: Type -> Type #

GoogleRequest RolesInsert Source # 
Instance details

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

Associated Types

type Rs RolesInsert :: Type #

type Scopes RolesInsert :: [Symbol] #

type Rep RolesInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

riPayload :: Lens' RolesInsert Role Source #

Multipart request metadata.

riCustomer :: Lens' RolesInsert Text Source #

Immutable ID of the G Suite account.