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 |
Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.
See: Google Play EMM API Reference for androidenterprise.serviceaccountkeys.insert
.
Synopsis
- type ServiceAccountkeysInsertResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("serviceAccountKeys" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ServiceAccountKey :> Post '[JSON] ServiceAccountKey))))))
- serviceAccountkeysInsert :: Text -> ServiceAccountKey -> ServiceAccountkeysInsert
- data ServiceAccountkeysInsert
- saiEnterpriseId :: Lens' ServiceAccountkeysInsert Text
- saiPayload :: Lens' ServiceAccountkeysInsert ServiceAccountKey
REST Resource
type ServiceAccountkeysInsertResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("serviceAccountKeys" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ServiceAccountKey :> Post '[JSON] ServiceAccountKey)))))) Source #
A resource alias for androidenterprise.serviceaccountkeys.insert
method which the
ServiceAccountkeysInsert
request conforms to.
Creating a Request
serviceAccountkeysInsert Source #
Creates a value of ServiceAccountkeysInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServiceAccountkeysInsert Source #
Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.
See: serviceAccountkeysInsert
smart constructor.
Instances
Request Lenses
saiEnterpriseId :: Lens' ServiceAccountkeysInsert Text Source #
The ID of the enterprise.
saiPayload :: Lens' ServiceAccountkeysInsert ServiceAccountKey Source #
Multipart request metadata.