| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken
Description
Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes. You can provision a maximum of 10 devices per user. This call only works with EMM-managed accounts.
See: Google Play EMM API Reference for androidenterprise.users.generateAuthenticationToken.
Synopsis
- type UsersGenerateAuthenticationTokenResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("authenticationToken" :> (QueryParam "alt" AltJSON :> Post '[JSON] AuthenticationToken)))))))
- usersGenerateAuthenticationToken :: Text -> Text -> UsersGenerateAuthenticationToken
- data UsersGenerateAuthenticationToken
- ugatEnterpriseId :: Lens' UsersGenerateAuthenticationToken Text
- ugatUserId :: Lens' UsersGenerateAuthenticationToken Text
REST Resource
type UsersGenerateAuthenticationTokenResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("authenticationToken" :> (QueryParam "alt" AltJSON :> Post '[JSON] AuthenticationToken))))))) Source #
A resource alias for androidenterprise.users.generateAuthenticationToken method which the
UsersGenerateAuthenticationToken request conforms to.
Creating a Request
usersGenerateAuthenticationToken Source #
Arguments
| :: Text | |
| -> Text | |
| -> UsersGenerateAuthenticationToken |
Creates a value of UsersGenerateAuthenticationToken with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersGenerateAuthenticationToken Source #
Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes. You can provision a maximum of 10 devices per user. This call only works with EMM-managed accounts.
See: usersGenerateAuthenticationToken smart constructor.
Instances
Request Lenses
ugatEnterpriseId :: Lens' UsersGenerateAuthenticationToken Text Source #
The ID of the enterprise.
ugatUserId :: Lens' UsersGenerateAuthenticationToken Text Source #
The ID of the user.