{-# 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.IAM.Projects.ServiceAccounts.Keys.Delete
(
ProjectsServiceAccountsKeysDeleteResource
, projectsServiceAccountsKeysDelete
, ProjectsServiceAccountsKeysDelete
, psakdXgafv
, psakdUploadProtocol
, psakdAccessToken
, psakdUploadType
, psakdName
, psakdCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type ProjectsServiceAccountsKeysDeleteResource =
"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 ProjectsServiceAccountsKeysDelete = ProjectsServiceAccountsKeysDelete'
{ _psakdXgafv :: !(Maybe Xgafv)
, _psakdUploadProtocol :: !(Maybe Text)
, _psakdAccessToken :: !(Maybe Text)
, _psakdUploadType :: !(Maybe Text)
, _psakdName :: !Text
, _psakdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsServiceAccountsKeysDelete
:: Text
-> ProjectsServiceAccountsKeysDelete
projectsServiceAccountsKeysDelete pPsakdName_ =
ProjectsServiceAccountsKeysDelete'
{ _psakdXgafv = Nothing
, _psakdUploadProtocol = Nothing
, _psakdAccessToken = Nothing
, _psakdUploadType = Nothing
, _psakdName = pPsakdName_
, _psakdCallback = Nothing
}
psakdXgafv :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Xgafv)
psakdXgafv
= lens _psakdXgafv (\ s a -> s{_psakdXgafv = a})
psakdUploadProtocol :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
psakdUploadProtocol
= lens _psakdUploadProtocol
(\ s a -> s{_psakdUploadProtocol = a})
psakdAccessToken :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
psakdAccessToken
= lens _psakdAccessToken
(\ s a -> s{_psakdAccessToken = a})
psakdUploadType :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
psakdUploadType
= lens _psakdUploadType
(\ s a -> s{_psakdUploadType = a})
psakdName :: Lens' ProjectsServiceAccountsKeysDelete Text
psakdName
= lens _psakdName (\ s a -> s{_psakdName = a})
psakdCallback :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
psakdCallback
= lens _psakdCallback
(\ s a -> s{_psakdCallback = a})
instance GoogleRequest
ProjectsServiceAccountsKeysDelete where
type Rs ProjectsServiceAccountsKeysDelete = Empty
type Scopes ProjectsServiceAccountsKeysDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsServiceAccountsKeysDelete'{..}
= go _psakdName _psakdXgafv _psakdUploadProtocol
_psakdAccessToken
_psakdUploadType
_psakdCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy ::
Proxy ProjectsServiceAccountsKeysDeleteResource)
mempty