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

Contents

Description

Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token. This call only works with Google managed accounts.

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

Synopsis

REST Resource

type UsersGenerateTokenResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("token" :> (QueryParam "alt" AltJSON :> Post '[JSON] UserToken))))))) Source #

A resource alias for androidenterprise.users.generateToken method which the UsersGenerateToken request conforms to.

Creating a Request

usersGenerateToken Source #

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

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

data UsersGenerateToken Source #

Generates a token (activation code) to allow this user to configure their managed account in the Android Setup Wizard. Revokes any previously generated token. This call only works with Google managed accounts.

See: usersGenerateToken smart constructor.

Instances
Eq UsersGenerateToken Source # 
Instance details

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

Data UsersGenerateToken Source # 
Instance details

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

Methods

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

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

toConstr :: UsersGenerateToken -> Constr #

dataTypeOf :: UsersGenerateToken -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersGenerateToken Source # 
Instance details

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

Generic UsersGenerateToken Source # 
Instance details

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

Associated Types

type Rep UsersGenerateToken :: Type -> Type #

GoogleRequest UsersGenerateToken Source # 
Instance details

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

Associated Types

type Rs UsersGenerateToken :: Type #

type Scopes UsersGenerateToken :: [Symbol] #

type Rep UsersGenerateToken Source # 
Instance details

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

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

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

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

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

Request Lenses

ugtEnterpriseId :: Lens' UsersGenerateToken Text Source #

The ID of the enterprise.