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 |
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.
See: Cloud Storage JSON API Reference for storage.projects.hmacKeys.update
.
Synopsis
- type ProjectsHmacKeysUpdateResource = "storage" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("hmacKeys" :> (Capture "accessId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] HmacKeyMetadata :> Put '[JSON] HmacKeyMetadata)))))))
- projectsHmacKeysUpdate :: HmacKeyMetadata -> Text -> Text -> ProjectsHmacKeysUpdate
- data ProjectsHmacKeysUpdate
- phkuPayload :: Lens' ProjectsHmacKeysUpdate HmacKeyMetadata
- phkuProjectId :: Lens' ProjectsHmacKeysUpdate Text
- phkuAccessId :: Lens' ProjectsHmacKeysUpdate Text
REST Resource
type ProjectsHmacKeysUpdateResource = "storage" :> ("v1" :> ("projects" :> (Capture "projectId" Text :> ("hmacKeys" :> (Capture "accessId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] HmacKeyMetadata :> Put '[JSON] HmacKeyMetadata))))))) Source #
A resource alias for storage.projects.hmacKeys.update
method which the
ProjectsHmacKeysUpdate
request conforms to.
Creating a Request
projectsHmacKeysUpdate Source #
Creates a value of ProjectsHmacKeysUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsHmacKeysUpdate Source #
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.
See: projectsHmacKeysUpdate
smart constructor.
Instances
Request Lenses
phkuPayload :: Lens' ProjectsHmacKeysUpdate HmacKeyMetadata Source #
Multipart request metadata.
phkuProjectId :: Lens' ProjectsHmacKeysUpdate Text Source #
Project ID owning the service account of the updated key.
phkuAccessId :: Lens' ProjectsHmacKeysUpdate Text Source #
Name of the HMAC key being updated.