{-# 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.Delete
(
AccessPoliciesDeleteResource
, accessPoliciesDelete
, AccessPoliciesDelete
, apdXgafv
, apdUploadProtocol
, apdAccessToken
, apdUploadType
, apdName
, apdCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesDeleteResource =
"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 AccessPoliciesDelete = AccessPoliciesDelete'
{ _apdXgafv :: !(Maybe Xgafv)
, _apdUploadProtocol :: !(Maybe Text)
, _apdAccessToken :: !(Maybe Text)
, _apdUploadType :: !(Maybe Text)
, _apdName :: !Text
, _apdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesDelete
:: Text
-> AccessPoliciesDelete
accessPoliciesDelete pApdName_ =
AccessPoliciesDelete'
{ _apdXgafv = Nothing
, _apdUploadProtocol = Nothing
, _apdAccessToken = Nothing
, _apdUploadType = Nothing
, _apdName = pApdName_
, _apdCallback = Nothing
}
apdXgafv :: Lens' AccessPoliciesDelete (Maybe Xgafv)
apdXgafv = lens _apdXgafv (\ s a -> s{_apdXgafv = a})
apdUploadProtocol :: Lens' AccessPoliciesDelete (Maybe Text)
apdUploadProtocol
= lens _apdUploadProtocol
(\ s a -> s{_apdUploadProtocol = a})
apdAccessToken :: Lens' AccessPoliciesDelete (Maybe Text)
apdAccessToken
= lens _apdAccessToken
(\ s a -> s{_apdAccessToken = a})
apdUploadType :: Lens' AccessPoliciesDelete (Maybe Text)
apdUploadType
= lens _apdUploadType
(\ s a -> s{_apdUploadType = a})
apdName :: Lens' AccessPoliciesDelete Text
apdName = lens _apdName (\ s a -> s{_apdName = a})
apdCallback :: Lens' AccessPoliciesDelete (Maybe Text)
apdCallback
= lens _apdCallback (\ s a -> s{_apdCallback = a})
instance GoogleRequest AccessPoliciesDelete where
type Rs AccessPoliciesDelete = Operation
type Scopes AccessPoliciesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesDelete'{..}
= go _apdName _apdXgafv _apdUploadProtocol
_apdAccessToken
_apdUploadType
_apdCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy :: Proxy AccessPoliciesDeleteResource)
mempty