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 |
Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.
See: Google Play EMM API Reference for androidenterprise.enterprises.getServiceAccount
.
Synopsis
- type EnterprisesGetServiceAccountResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("serviceAccount" :> (QueryParam "keyType" EnterprisesGetServiceAccountKeyType :> (QueryParam "alt" AltJSON :> Get '[JSON] ServiceAccount))))))
- enterprisesGetServiceAccount :: Text -> EnterprisesGetServiceAccount
- data EnterprisesGetServiceAccount
- egsaKeyType :: Lens' EnterprisesGetServiceAccount (Maybe EnterprisesGetServiceAccountKeyType)
- egsaEnterpriseId :: Lens' EnterprisesGetServiceAccount Text
REST Resource
type EnterprisesGetServiceAccountResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("serviceAccount" :> (QueryParam "keyType" EnterprisesGetServiceAccountKeyType :> (QueryParam "alt" AltJSON :> Get '[JSON] ServiceAccount)))))) Source #
A resource alias for androidenterprise.enterprises.getServiceAccount
method which the
EnterprisesGetServiceAccount
request conforms to.
Creating a Request
enterprisesGetServiceAccount Source #
Creates a value of EnterprisesGetServiceAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesGetServiceAccount Source #
Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.
See: enterprisesGetServiceAccount
smart constructor.
Instances
Request Lenses
egsaKeyType :: Lens' EnterprisesGetServiceAccount (Maybe EnterprisesGetServiceAccountKeyType) Source #
The type of credential to return with the service account. Required.
egsaEnterpriseId :: Lens' EnterprisesGetServiceAccount Text Source #
The ID of the enterprise.