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.ServiceAccountkeys.Insert
Description
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
.
- 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)))))) #
A resource alias for androidenterprise.serviceaccountkeys.insert
method which the
ServiceAccountkeysInsert
request conforms to.
Creating a Request
Arguments
:: Text | |
-> ServiceAccountKey | |
-> ServiceAccountkeysInsert |
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 #
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.
Request Lenses
saiEnterpriseId :: Lens' ServiceAccountkeysInsert Text #
The ID of the enterprise.
saiPayload :: Lens' ServiceAccountkeysInsert ServiceAccountKey #
Multipart request metadata.