{-# 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.Delete
(
ServicesTenancyUnitsDeleteResource
, servicesTenancyUnitsDelete
, ServicesTenancyUnitsDelete
, studXgafv
, studUploadProtocol
, studAccessToken
, studUploadType
, studName
, studCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceConsumerManagement.Types
type ServicesTenancyUnitsDeleteResource =
"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] Operation
data ServicesTenancyUnitsDelete = ServicesTenancyUnitsDelete'
{ _studXgafv :: !(Maybe Xgafv)
, _studUploadProtocol :: !(Maybe Text)
, _studAccessToken :: !(Maybe Text)
, _studUploadType :: !(Maybe Text)
, _studName :: !Text
, _studCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
servicesTenancyUnitsDelete
:: Text
-> ServicesTenancyUnitsDelete
servicesTenancyUnitsDelete pStudName_ =
ServicesTenancyUnitsDelete'
{ _studXgafv = Nothing
, _studUploadProtocol = Nothing
, _studAccessToken = Nothing
, _studUploadType = Nothing
, _studName = pStudName_
, _studCallback = Nothing
}
studXgafv :: Lens' ServicesTenancyUnitsDelete (Maybe Xgafv)
studXgafv
= lens _studXgafv (\ s a -> s{_studXgafv = a})
studUploadProtocol :: Lens' ServicesTenancyUnitsDelete (Maybe Text)
studUploadProtocol
= lens _studUploadProtocol
(\ s a -> s{_studUploadProtocol = a})
studAccessToken :: Lens' ServicesTenancyUnitsDelete (Maybe Text)
studAccessToken
= lens _studAccessToken
(\ s a -> s{_studAccessToken = a})
studUploadType :: Lens' ServicesTenancyUnitsDelete (Maybe Text)
studUploadType
= lens _studUploadType
(\ s a -> s{_studUploadType = a})
studName :: Lens' ServicesTenancyUnitsDelete Text
studName = lens _studName (\ s a -> s{_studName = a})
studCallback :: Lens' ServicesTenancyUnitsDelete (Maybe Text)
studCallback
= lens _studCallback (\ s a -> s{_studCallback = a})
instance GoogleRequest ServicesTenancyUnitsDelete
where
type Rs ServicesTenancyUnitsDelete = Operation
type Scopes ServicesTenancyUnitsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ServicesTenancyUnitsDelete'{..}
= go _studName _studXgafv _studUploadProtocol
_studAccessToken
_studUploadType
_studCallback
(Just AltJSON)
serviceConsumerManagementService
where go
= buildClient
(Proxy :: Proxy ServicesTenancyUnitsDeleteResource)
mempty