{-# 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.Roles.Delete
(
ProjectsRolesDeleteResource
, projectsRolesDelete
, ProjectsRolesDelete
, prdXgafv
, prdEtag
, prdUploadProtocol
, prdAccessToken
, prdUploadType
, prdName
, prdCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type ProjectsRolesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "etag" Bytes :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Role
data ProjectsRolesDelete = ProjectsRolesDelete'
{ _prdXgafv :: !(Maybe Xgafv)
, _prdEtag :: !(Maybe Bytes)
, _prdUploadProtocol :: !(Maybe Text)
, _prdAccessToken :: !(Maybe Text)
, _prdUploadType :: !(Maybe Text)
, _prdName :: !Text
, _prdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRolesDelete
:: Text
-> ProjectsRolesDelete
projectsRolesDelete pPrdName_ =
ProjectsRolesDelete'
{ _prdXgafv = Nothing
, _prdEtag = Nothing
, _prdUploadProtocol = Nothing
, _prdAccessToken = Nothing
, _prdUploadType = Nothing
, _prdName = pPrdName_
, _prdCallback = Nothing
}
prdXgafv :: Lens' ProjectsRolesDelete (Maybe Xgafv)
prdXgafv = lens _prdXgafv (\ s a -> s{_prdXgafv = a})
prdEtag :: Lens' ProjectsRolesDelete (Maybe ByteString)
prdEtag
= lens _prdEtag (\ s a -> s{_prdEtag = a}) .
mapping _Bytes
prdUploadProtocol :: Lens' ProjectsRolesDelete (Maybe Text)
prdUploadProtocol
= lens _prdUploadProtocol
(\ s a -> s{_prdUploadProtocol = a})
prdAccessToken :: Lens' ProjectsRolesDelete (Maybe Text)
prdAccessToken
= lens _prdAccessToken
(\ s a -> s{_prdAccessToken = a})
prdUploadType :: Lens' ProjectsRolesDelete (Maybe Text)
prdUploadType
= lens _prdUploadType
(\ s a -> s{_prdUploadType = a})
prdName :: Lens' ProjectsRolesDelete Text
prdName = lens _prdName (\ s a -> s{_prdName = a})
prdCallback :: Lens' ProjectsRolesDelete (Maybe Text)
prdCallback
= lens _prdCallback (\ s a -> s{_prdCallback = a})
instance GoogleRequest ProjectsRolesDelete where
type Rs ProjectsRolesDelete = Role
type Scopes ProjectsRolesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRolesDelete'{..}
= go _prdName _prdXgafv _prdEtag _prdUploadProtocol
_prdAccessToken
_prdUploadType
_prdCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy :: Proxy ProjectsRolesDeleteResource)
mempty