{-# 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.BinaryAuthorization.Projects.Attestors.Delete
(
ProjectsAttestorsDeleteResource
, projectsAttestorsDelete
, ProjectsAttestorsDelete
, padXgafv
, padUploadProtocol
, padAccessToken
, padUploadType
, padName
, padCallback
) where
import Network.Google.BinaryAuthorization.Types
import Network.Google.Prelude
type ProjectsAttestorsDeleteResource =
"v1beta1" :>
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 ProjectsAttestorsDelete = ProjectsAttestorsDelete'
{ _padXgafv :: !(Maybe Xgafv)
, _padUploadProtocol :: !(Maybe Text)
, _padAccessToken :: !(Maybe Text)
, _padUploadType :: !(Maybe Text)
, _padName :: !Text
, _padCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAttestorsDelete
:: Text
-> ProjectsAttestorsDelete
projectsAttestorsDelete pPadName_ =
ProjectsAttestorsDelete'
{ _padXgafv = Nothing
, _padUploadProtocol = Nothing
, _padAccessToken = Nothing
, _padUploadType = Nothing
, _padName = pPadName_
, _padCallback = Nothing
}
padXgafv :: Lens' ProjectsAttestorsDelete (Maybe Xgafv)
padXgafv = lens _padXgafv (\ s a -> s{_padXgafv = a})
padUploadProtocol :: Lens' ProjectsAttestorsDelete (Maybe Text)
padUploadProtocol
= lens _padUploadProtocol
(\ s a -> s{_padUploadProtocol = a})
padAccessToken :: Lens' ProjectsAttestorsDelete (Maybe Text)
padAccessToken
= lens _padAccessToken
(\ s a -> s{_padAccessToken = a})
padUploadType :: Lens' ProjectsAttestorsDelete (Maybe Text)
padUploadType
= lens _padUploadType
(\ s a -> s{_padUploadType = a})
padName :: Lens' ProjectsAttestorsDelete Text
padName = lens _padName (\ s a -> s{_padName = a})
padCallback :: Lens' ProjectsAttestorsDelete (Maybe Text)
padCallback
= lens _padCallback (\ s a -> s{_padCallback = a})
instance GoogleRequest ProjectsAttestorsDelete where
type Rs ProjectsAttestorsDelete = Empty
type Scopes ProjectsAttestorsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsAttestorsDelete'{..}
= go _padName _padXgafv _padUploadProtocol
_padAccessToken
_padUploadType
_padCallback
(Just AltJSON)
binaryAuthorizationService
where go
= buildClient
(Proxy :: Proxy ProjectsAttestorsDeleteResource)
mempty