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.Members.Insert

Contents

Description

Add user to the specified group.

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

Synopsis

REST Resource

type MembersInsertResource = "admin" :> ("directory" :> ("v1" :> ("groups" :> (Capture "groupKey" Text :> ("members" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Member :> Post '[JSON] Member))))))) Source #

A resource alias for directory.members.insert method which the MembersInsert request conforms to.

Creating a Request

membersInsert Source #

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

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

data MembersInsert Source #

Add user to the specified group.

See: membersInsert smart constructor.

Instances
Eq MembersInsert Source # 
Instance details

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

Data MembersInsert Source # 
Instance details

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

Methods

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

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

toConstr :: MembersInsert -> Constr #

dataTypeOf :: MembersInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MembersInsert Source # 
Instance details

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

Generic MembersInsert Source # 
Instance details

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

Associated Types

type Rep MembersInsert :: Type -> Type #

GoogleRequest MembersInsert Source # 
Instance details

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

Associated Types

type Rs MembersInsert :: Type #

type Scopes MembersInsert :: [Symbol] #

type Rep MembersInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

miGroupKey :: Lens' MembersInsert Text Source #

Email or immutable ID of the group

miPayload :: Lens' MembersInsert Member Source #

Multipart request metadata.