{-# 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.ServiceConsumerManagement.Services.TenancyUnits.RemoveProject
(
ServicesTenancyUnitsRemoveProjectResource
, servicesTenancyUnitsRemoveProject
, ServicesTenancyUnitsRemoveProject
, sturpXgafv
, sturpUploadProtocol
, sturpAccessToken
, sturpUploadType
, sturpPayload
, sturpName
, sturpCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceConsumerManagement.Types
type ServicesTenancyUnitsRemoveProjectResource =
"v1" :>
CaptureMode "name" "removeProject" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RemoveTenantProjectRequest :>
Post '[JSON] Operation
data ServicesTenancyUnitsRemoveProject = ServicesTenancyUnitsRemoveProject'
{ _sturpXgafv :: !(Maybe Xgafv)
, _sturpUploadProtocol :: !(Maybe Text)
, _sturpAccessToken :: !(Maybe Text)
, _sturpUploadType :: !(Maybe Text)
, _sturpPayload :: !RemoveTenantProjectRequest
, _sturpName :: !Text
, _sturpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
servicesTenancyUnitsRemoveProject
:: RemoveTenantProjectRequest
-> Text
-> ServicesTenancyUnitsRemoveProject
servicesTenancyUnitsRemoveProject pSturpPayload_ pSturpName_ =
ServicesTenancyUnitsRemoveProject'
{ _sturpXgafv = Nothing
, _sturpUploadProtocol = Nothing
, _sturpAccessToken = Nothing
, _sturpUploadType = Nothing
, _sturpPayload = pSturpPayload_
, _sturpName = pSturpName_
, _sturpCallback = Nothing
}
sturpXgafv :: Lens' ServicesTenancyUnitsRemoveProject (Maybe Xgafv)
sturpXgafv
= lens _sturpXgafv (\ s a -> s{_sturpXgafv = a})
sturpUploadProtocol :: Lens' ServicesTenancyUnitsRemoveProject (Maybe Text)
sturpUploadProtocol
= lens _sturpUploadProtocol
(\ s a -> s{_sturpUploadProtocol = a})
sturpAccessToken :: Lens' ServicesTenancyUnitsRemoveProject (Maybe Text)
sturpAccessToken
= lens _sturpAccessToken
(\ s a -> s{_sturpAccessToken = a})
sturpUploadType :: Lens' ServicesTenancyUnitsRemoveProject (Maybe Text)
sturpUploadType
= lens _sturpUploadType
(\ s a -> s{_sturpUploadType = a})
sturpPayload :: Lens' ServicesTenancyUnitsRemoveProject RemoveTenantProjectRequest
sturpPayload
= lens _sturpPayload (\ s a -> s{_sturpPayload = a})
sturpName :: Lens' ServicesTenancyUnitsRemoveProject Text
sturpName
= lens _sturpName (\ s a -> s{_sturpName = a})
sturpCallback :: Lens' ServicesTenancyUnitsRemoveProject (Maybe Text)
sturpCallback
= lens _sturpCallback
(\ s a -> s{_sturpCallback = a})
instance GoogleRequest
ServicesTenancyUnitsRemoveProject where
type Rs ServicesTenancyUnitsRemoveProject = Operation
type Scopes ServicesTenancyUnitsRemoveProject =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ServicesTenancyUnitsRemoveProject'{..}
= go _sturpName _sturpXgafv _sturpUploadProtocol
_sturpAccessToken
_sturpUploadType
_sturpCallback
(Just AltJSON)
_sturpPayload
serviceConsumerManagementService
where go
= buildClient
(Proxy ::
Proxy ServicesTenancyUnitsRemoveProjectResource)
mempty