gogol-android-enterprise-0.4.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))))))) Source #

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

Creating a Request

usersPatch Source #

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

See: usersPatch smart constructor.

Instances
Eq UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

Data UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

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 Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

Generic UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

Associated Types

type Rep UsersPatch :: Type -> Type #

GoogleRequest UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

Associated Types

type Rs UsersPatch :: Type #

type Scopes UsersPatch :: [Symbol] #

type Rep UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

type Rep UsersPatch = D1 (MetaData "UsersPatch" "Network.Google.Resource.AndroidEnterprise.Users.Patch" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "UsersPatch'" PrefixI True) (S1 (MetaSel (Just "_upEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_upPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User) :*: S1 (MetaSel (Just "_upUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

type Scopes UsersPatch = "https://www.googleapis.com/auth/androidenterprise" ': ([] :: [Symbol])
type Rs UsersPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Patch

Request Lenses

upEnterpriseId :: Lens' UsersPatch Text Source #

The ID of the enterprise.

upPayload :: Lens' UsersPatch User Source #

Multipart request metadata.

upUserId :: Lens' UsersPatch Text Source #

The ID of the user.