| 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.Storage.Projects.HmacKeys.Create
Description
Creates a new HMAC key for the specified service account.
See: Cloud Storage JSON API Reference for storage.projects.hmacKeys.create.
Synopsis
- type ProjectsHmacKeysCreateResource = "storage" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("hmacKeys" :> (QueryParam "serviceAccountEmail" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] HmacKey))))))
- projectsHmacKeysCreate :: Text -> Text -> ProjectsHmacKeysCreate
- data ProjectsHmacKeysCreate
- phkcServiceAccountEmail :: Lens' ProjectsHmacKeysCreate Text
- phkcProjectId :: Lens' ProjectsHmacKeysCreate Text
REST Resource
type ProjectsHmacKeysCreateResource = "storage" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("hmacKeys" :> (QueryParam "serviceAccountEmail" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] HmacKey)))))) Source #
A resource alias for storage.projects.hmacKeys.create method which the
ProjectsHmacKeysCreate request conforms to.
Creating a Request
projectsHmacKeysCreate Source #
Arguments
| :: Text | |
| -> Text | |
| -> ProjectsHmacKeysCreate |
Creates a value of ProjectsHmacKeysCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsHmacKeysCreate Source #
Creates a new HMAC key for the specified service account.
See: projectsHmacKeysCreate smart constructor.
Instances
Request Lenses
phkcServiceAccountEmail :: Lens' ProjectsHmacKeysCreate Text Source #
Email address of the service account.
phkcProjectId :: Lens' ProjectsHmacKeysCreate Text Source #
Project ID owning the service account.