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 an SSH public key and returns the profile information. This method supports patch semantics.
See: Cloud OS Login API Reference for oslogin.users.sshPublicKeys.patch
.
Synopsis
- type UsersSSHPublicKeysPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SSHPublicKey :> Patch '[JSON] SSHPublicKey)))))))))
- usersSSHPublicKeysPatch :: SSHPublicKey -> Text -> UsersSSHPublicKeysPatch
- data UsersSSHPublicKeysPatch
- uspkpXgafv :: Lens' UsersSSHPublicKeysPatch (Maybe Xgafv)
- uspkpUploadProtocol :: Lens' UsersSSHPublicKeysPatch (Maybe Text)
- uspkpUpdateMask :: Lens' UsersSSHPublicKeysPatch (Maybe GFieldMask)
- uspkpAccessToken :: Lens' UsersSSHPublicKeysPatch (Maybe Text)
- uspkpUploadType :: Lens' UsersSSHPublicKeysPatch (Maybe Text)
- uspkpPayload :: Lens' UsersSSHPublicKeysPatch SSHPublicKey
- uspkpName :: Lens' UsersSSHPublicKeysPatch Text
- uspkpCallback :: Lens' UsersSSHPublicKeysPatch (Maybe Text)
REST Resource
type UsersSSHPublicKeysPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SSHPublicKey :> Patch '[JSON] SSHPublicKey))))))))) Source #
A resource alias for oslogin.users.sshPublicKeys.patch
method which the
UsersSSHPublicKeysPatch
request conforms to.
Creating a Request
usersSSHPublicKeysPatch Source #
Creates a value of UsersSSHPublicKeysPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSSHPublicKeysPatch Source #
Updates an SSH public key and returns the profile information. This method supports patch semantics.
See: usersSSHPublicKeysPatch
smart constructor.
Instances
Request Lenses
uspkpXgafv :: Lens' UsersSSHPublicKeysPatch (Maybe Xgafv) Source #
V1 error format.
uspkpUploadProtocol :: Lens' UsersSSHPublicKeysPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
uspkpUpdateMask :: Lens' UsersSSHPublicKeysPatch (Maybe GFieldMask) Source #
Mask to control which fields get updated. Updates all if not present.
uspkpAccessToken :: Lens' UsersSSHPublicKeysPatch (Maybe Text) Source #
OAuth access token.
uspkpUploadType :: Lens' UsersSSHPublicKeysPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
uspkpPayload :: Lens' UsersSSHPublicKeysPatch SSHPublicKey Source #
Multipart request metadata.
uspkpName :: Lens' UsersSSHPublicKeysPatch Text Source #
The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
uspkpCallback :: Lens' UsersSSHPublicKeysPatch (Maybe Text) Source #
JSONP