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.Users.Aliases.Insert

Contents

Description

Add a alias for the user

See: Admin Directory API Reference for directory.users.aliases.insert.

Synopsis

REST Resource

type UsersAliasesInsertResource = "admin" :> ("directory" :> ("v1" :> ("users" :> (Capture "userKey" Text :> ("aliases" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Alias :> Post '[JSON] Alias))))))) Source #

A resource alias for directory.users.aliases.insert method which the UsersAliasesInsert request conforms to.

Creating a Request

usersAliasesInsert Source #

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

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

data UsersAliasesInsert Source #

Add a alias for the user

See: usersAliasesInsert smart constructor.

Instances
Eq UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Data UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Methods

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

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

toConstr :: UsersAliasesInsert -> Constr #

dataTypeOf :: UsersAliasesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Generic UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Associated Types

type Rep UsersAliasesInsert :: Type -> Type #

GoogleRequest UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Associated Types

type Rs UsersAliasesInsert :: Type #

type Scopes UsersAliasesInsert :: [Symbol] #

type Rep UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

type Rep UsersAliasesInsert = D1 (MetaData "UsersAliasesInsert" "Network.Google.Resource.Directory.Users.Aliases.Insert" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "UsersAliasesInsert'" PrefixI True) (S1 (MetaSel (Just "_uaiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Alias) :*: S1 (MetaSel (Just "_uaiUserKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersAliasesInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

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

Defined in Network.Google.Resource.Directory.Users.Aliases.Insert

Request Lenses

uaiPayload :: Lens' UsersAliasesInsert Alias Source #

Multipart request metadata.

uaiUserKey :: Lens' UsersAliasesInsert Text Source #

Email or immutable ID of the user