{-# 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.AccessContextManager.AccessPolicies.ServicePerimeters.Delete
(
AccessPoliciesServicePerimetersDeleteResource
, accessPoliciesServicePerimetersDelete
, AccessPoliciesServicePerimetersDelete
, apspdXgafv
, apspdUploadProtocol
, apspdAccessToken
, apspdUploadType
, apspdName
, apspdCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesServicePerimetersDeleteResource =
"v1beta" :>
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 AccessPoliciesServicePerimetersDelete = AccessPoliciesServicePerimetersDelete'
{ _apspdXgafv :: !(Maybe Xgafv)
, _apspdUploadProtocol :: !(Maybe Text)
, _apspdAccessToken :: !(Maybe Text)
, _apspdUploadType :: !(Maybe Text)
, _apspdName :: !Text
, _apspdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesServicePerimetersDelete
:: Text
-> AccessPoliciesServicePerimetersDelete
accessPoliciesServicePerimetersDelete pApspdName_ =
AccessPoliciesServicePerimetersDelete'
{ _apspdXgafv = Nothing
, _apspdUploadProtocol = Nothing
, _apspdAccessToken = Nothing
, _apspdUploadType = Nothing
, _apspdName = pApspdName_
, _apspdCallback = Nothing
}
apspdXgafv :: Lens' AccessPoliciesServicePerimetersDelete (Maybe Xgafv)
apspdXgafv
= lens _apspdXgafv (\ s a -> s{_apspdXgafv = a})
apspdUploadProtocol :: Lens' AccessPoliciesServicePerimetersDelete (Maybe Text)
apspdUploadProtocol
= lens _apspdUploadProtocol
(\ s a -> s{_apspdUploadProtocol = a})
apspdAccessToken :: Lens' AccessPoliciesServicePerimetersDelete (Maybe Text)
apspdAccessToken
= lens _apspdAccessToken
(\ s a -> s{_apspdAccessToken = a})
apspdUploadType :: Lens' AccessPoliciesServicePerimetersDelete (Maybe Text)
apspdUploadType
= lens _apspdUploadType
(\ s a -> s{_apspdUploadType = a})
apspdName :: Lens' AccessPoliciesServicePerimetersDelete Text
apspdName
= lens _apspdName (\ s a -> s{_apspdName = a})
apspdCallback :: Lens' AccessPoliciesServicePerimetersDelete (Maybe Text)
apspdCallback
= lens _apspdCallback
(\ s a -> s{_apspdCallback = a})
instance GoogleRequest
AccessPoliciesServicePerimetersDelete where
type Rs AccessPoliciesServicePerimetersDelete =
Operation
type Scopes AccessPoliciesServicePerimetersDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
AccessPoliciesServicePerimetersDelete'{..}
= go _apspdName _apspdXgafv _apspdUploadProtocol
_apspdAccessToken
_apspdUploadType
_apspdCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesServicePerimetersDeleteResource)
mempty