{-# 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.Jobs.Projects.Companies.Delete
(
ProjectsCompaniesDeleteResource
, projectsCompaniesDelete
, ProjectsCompaniesDelete
, pcdXgafv
, pcdUploadProtocol
, pcdAccessToken
, pcdUploadType
, pcdName
, pcdCallback
) where
import Network.Google.Jobs.Types
import Network.Google.Prelude
type ProjectsCompaniesDeleteResource =
"v3p1beta1" :>
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 ProjectsCompaniesDelete = ProjectsCompaniesDelete'
{ _pcdXgafv :: !(Maybe Xgafv)
, _pcdUploadProtocol :: !(Maybe Text)
, _pcdAccessToken :: !(Maybe Text)
, _pcdUploadType :: !(Maybe Text)
, _pcdName :: !Text
, _pcdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsCompaniesDelete
:: Text
-> ProjectsCompaniesDelete
projectsCompaniesDelete pPcdName_ =
ProjectsCompaniesDelete'
{ _pcdXgafv = Nothing
, _pcdUploadProtocol = Nothing
, _pcdAccessToken = Nothing
, _pcdUploadType = Nothing
, _pcdName = pPcdName_
, _pcdCallback = Nothing
}
pcdXgafv :: Lens' ProjectsCompaniesDelete (Maybe Xgafv)
pcdXgafv = lens _pcdXgafv (\ s a -> s{_pcdXgafv = a})
pcdUploadProtocol :: Lens' ProjectsCompaniesDelete (Maybe Text)
pcdUploadProtocol
= lens _pcdUploadProtocol
(\ s a -> s{_pcdUploadProtocol = a})
pcdAccessToken :: Lens' ProjectsCompaniesDelete (Maybe Text)
pcdAccessToken
= lens _pcdAccessToken
(\ s a -> s{_pcdAccessToken = a})
pcdUploadType :: Lens' ProjectsCompaniesDelete (Maybe Text)
pcdUploadType
= lens _pcdUploadType
(\ s a -> s{_pcdUploadType = a})
pcdName :: Lens' ProjectsCompaniesDelete Text
pcdName = lens _pcdName (\ s a -> s{_pcdName = a})
pcdCallback :: Lens' ProjectsCompaniesDelete (Maybe Text)
pcdCallback
= lens _pcdCallback (\ s a -> s{_pcdCallback = a})
instance GoogleRequest ProjectsCompaniesDelete where
type Rs ProjectsCompaniesDelete = Empty
type Scopes ProjectsCompaniesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs"]
requestClient ProjectsCompaniesDelete'{..}
= go _pcdName _pcdXgafv _pcdUploadProtocol
_pcdAccessToken
_pcdUploadType
_pcdCallback
(Just AltJSON)
jobsService
where go
= buildClient
(Proxy :: Proxy ProjectsCompaniesDeleteResource)
mempty