gogol-android-enterprise-0.3.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.Patch

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. This method supports patch semantics.

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

Synopsis

REST Resource

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

A resource alias for androidenterprise.users.patch method which the UsersPatch request conforms to.

Creating a Request

usersPatch #

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

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

data UsersPatch #

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. This method supports patch semantics.

See: usersPatch smart constructor.

Instances

Eq UsersPatch # 
Data UsersPatch # 

Methods

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

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

toConstr :: UsersPatch -> Constr #

dataTypeOf :: UsersPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersPatch # 
Generic UsersPatch # 

Associated Types

type Rep UsersPatch :: * -> * #

GoogleRequest UsersPatch # 

Associated Types

type Rs UsersPatch :: * #

type Scopes UsersPatch :: [Symbol] #

type Rep UsersPatch # 
type Rep UsersPatch = D1 (MetaData "UsersPatch" "Network.Google.Resource.AndroidEnterprise.Users.Patch" "gogol-android-enterprise-0.3.0-2y5BmmLo8fUD5kntGxQWAs" False) (C1 (MetaCons "UsersPatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_upEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_upPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User)) (S1 (MetaSel (Just Symbol "_upUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersPatch # 
type Scopes UsersPatch = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs UsersPatch # 

Request Lenses

upEnterpriseId :: Lens' UsersPatch Text #

The ID of the enterprise.

upPayload :: Lens' UsersPatch User #

Multipart request metadata.

upUserId :: Lens' UsersPatch Text #

The ID of the user.