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.MakeAdmin

Contents

Description

change admin status of a user

See: Admin Directory API Reference for directory.users.makeAdmin.

Synopsis

REST Resource

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

A resource alias for directory.users.makeAdmin method which the UsersMakeAdmin request conforms to.

Creating a Request

usersMakeAdmin Source #

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

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

data UsersMakeAdmin Source #

change admin status of a user

See: usersMakeAdmin smart constructor.

Instances
Eq UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

Data UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

Methods

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

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

toConstr :: UsersMakeAdmin -> Constr #

dataTypeOf :: UsersMakeAdmin -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

Generic UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

Associated Types

type Rep UsersMakeAdmin :: Type -> Type #

GoogleRequest UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

Associated Types

type Rs UsersMakeAdmin :: Type #

type Scopes UsersMakeAdmin :: [Symbol] #

type Rep UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

type Rep UsersMakeAdmin = D1 (MetaData "UsersMakeAdmin" "Network.Google.Resource.Directory.Users.MakeAdmin" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "UsersMakeAdmin'" PrefixI True) (S1 (MetaSel (Just "_umaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UserMakeAdmin) :*: S1 (MetaSel (Just "_umaUserKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersMakeAdmin Source # 
Instance details

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

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

Defined in Network.Google.Resource.Directory.Users.MakeAdmin

type Rs UsersMakeAdmin = ()

Request Lenses

umaPayload :: Lens' UsersMakeAdmin UserMakeAdmin Source #

Multipart request metadata.

umaUserKey :: Lens' UsersMakeAdmin Text Source #

Email or immutable ID of the user as admin