{-# 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.Delete
(
ProjectsServiceAccountsDeleteResource
, projectsServiceAccountsDelete
, ProjectsServiceAccountsDelete
, psadXgafv
, psadUploadProtocol
, psadAccessToken
, psadUploadType
, psadName
, psadCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type ProjectsServiceAccountsDeleteResource =
"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 ProjectsServiceAccountsDelete = ProjectsServiceAccountsDelete'
{ _psadXgafv :: !(Maybe Xgafv)
, _psadUploadProtocol :: !(Maybe Text)
, _psadAccessToken :: !(Maybe Text)
, _psadUploadType :: !(Maybe Text)
, _psadName :: !Text
, _psadCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsServiceAccountsDelete
:: Text
-> ProjectsServiceAccountsDelete
projectsServiceAccountsDelete pPsadName_ =
ProjectsServiceAccountsDelete'
{ _psadXgafv = Nothing
, _psadUploadProtocol = Nothing
, _psadAccessToken = Nothing
, _psadUploadType = Nothing
, _psadName = pPsadName_
, _psadCallback = Nothing
}
psadXgafv :: Lens' ProjectsServiceAccountsDelete (Maybe Xgafv)
psadXgafv
= lens _psadXgafv (\ s a -> s{_psadXgafv = a})
psadUploadProtocol :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
psadUploadProtocol
= lens _psadUploadProtocol
(\ s a -> s{_psadUploadProtocol = a})
psadAccessToken :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
psadAccessToken
= lens _psadAccessToken
(\ s a -> s{_psadAccessToken = a})
psadUploadType :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
psadUploadType
= lens _psadUploadType
(\ s a -> s{_psadUploadType = a})
psadName :: Lens' ProjectsServiceAccountsDelete Text
psadName = lens _psadName (\ s a -> s{_psadName = a})
psadCallback :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
psadCallback
= lens _psadCallback (\ s a -> s{_psadCallback = a})
instance GoogleRequest ProjectsServiceAccountsDelete
where
type Rs ProjectsServiceAccountsDelete = Empty
type Scopes ProjectsServiceAccountsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsServiceAccountsDelete'{..}
= go _psadName _psadXgafv _psadUploadProtocol
_psadAccessToken
_psadUploadType
_psadCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy ::
Proxy ProjectsServiceAccountsDeleteResource)
mempty