gogol-android-enterprise-0.2.0: Google Play EMM 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.AndroidEnterprise.Users.Update

Contents

Description

Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.

See: Google Play EMM API Reference for androidenterprise.users.update.

Synopsis

REST Resource

type UsersUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Put '[JSON] User))))))) Source #

A resource alias for androidenterprise.users.update method which the UsersUpdate request conforms to.

Creating a Request

usersUpdate Source #

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

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

data UsersUpdate Source #

Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.

See: usersUpdate smart constructor.

Instances

Eq UsersUpdate Source # 
Data UsersUpdate Source # 

Methods

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

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

toConstr :: UsersUpdate -> Constr #

dataTypeOf :: UsersUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersUpdate Source # 
Generic UsersUpdate Source # 

Associated Types

type Rep UsersUpdate :: * -> * #

GoogleRequest UsersUpdate Source # 

Associated Types

type Rs UsersUpdate :: * #

type Scopes UsersUpdate :: [Symbol] #

type Rep UsersUpdate Source # 
type Rep UsersUpdate = D1 (MetaData "UsersUpdate" "Network.Google.Resource.AndroidEnterprise.Users.Update" "gogol-android-enterprise-0.2.0-7EO2AYALwhq1nyn98Kd1x" False) (C1 (MetaCons "UsersUpdate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uuEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_uuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User)) (S1 (MetaSel (Just Symbol "_uuUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersUpdate Source # 
type Scopes UsersUpdate = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs UsersUpdate Source # 

Request Lenses

uuEnterpriseId :: Lens' UsersUpdate Text Source #

The ID of the enterprise.

uuPayload :: Lens' UsersUpdate User Source #

Multipart request metadata.

uuUserId :: Lens' UsersUpdate Text Source #

The ID of the user.