{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.OSLogin.Users.SSHPublicKeys.Delete
(
UsersSSHPublicKeysDeleteResource
, usersSSHPublicKeysDelete
, UsersSSHPublicKeysDelete
, uspkdXgafv
, uspkdUploadProtocol
, uspkdAccessToken
, uspkdUploadType
, uspkdName
, uspkdCallback
) where
import Network.Google.OSLogin.Types
import Network.Google.Prelude
type UsersSSHPublicKeysDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data UsersSSHPublicKeysDelete =
UsersSSHPublicKeysDelete'
{ _uspkdXgafv :: !(Maybe Xgafv)
, _uspkdUploadProtocol :: !(Maybe Text)
, _uspkdAccessToken :: !(Maybe Text)
, _uspkdUploadType :: !(Maybe Text)
, _uspkdName :: !Text
, _uspkdCallback :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usersSSHPublicKeysDelete
:: Text
-> UsersSSHPublicKeysDelete
usersSSHPublicKeysDelete pUspkdName_ =
UsersSSHPublicKeysDelete'
{ _uspkdXgafv = Nothing
, _uspkdUploadProtocol = Nothing
, _uspkdAccessToken = Nothing
, _uspkdUploadType = Nothing
, _uspkdName = pUspkdName_
, _uspkdCallback = Nothing
}
uspkdXgafv :: Lens' UsersSSHPublicKeysDelete (Maybe Xgafv)
uspkdXgafv
= lens _uspkdXgafv (\ s a -> s{_uspkdXgafv = a})
uspkdUploadProtocol :: Lens' UsersSSHPublicKeysDelete (Maybe Text)
uspkdUploadProtocol
= lens _uspkdUploadProtocol
(\ s a -> s{_uspkdUploadProtocol = a})
uspkdAccessToken :: Lens' UsersSSHPublicKeysDelete (Maybe Text)
uspkdAccessToken
= lens _uspkdAccessToken
(\ s a -> s{_uspkdAccessToken = a})
uspkdUploadType :: Lens' UsersSSHPublicKeysDelete (Maybe Text)
uspkdUploadType
= lens _uspkdUploadType
(\ s a -> s{_uspkdUploadType = a})
uspkdName :: Lens' UsersSSHPublicKeysDelete Text
uspkdName
= lens _uspkdName (\ s a -> s{_uspkdName = a})
uspkdCallback :: Lens' UsersSSHPublicKeysDelete (Maybe Text)
uspkdCallback
= lens _uspkdCallback
(\ s a -> s{_uspkdCallback = a})
instance GoogleRequest UsersSSHPublicKeysDelete where
type Rs UsersSSHPublicKeysDelete = Empty
type Scopes UsersSSHPublicKeysDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient UsersSSHPublicKeysDelete'{..}
= go _uspkdName _uspkdXgafv _uspkdUploadProtocol
_uspkdAccessToken
_uspkdUploadType
_uspkdCallback
(Just AltJSON)
oSLoginService
where go
= buildClient
(Proxy :: Proxy UsersSSHPublicKeysDeleteResource)
mempty