{-# 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.AccessLevels.Delete
(
AccessPoliciesAccessLevelsDeleteResource
, accessPoliciesAccessLevelsDelete
, AccessPoliciesAccessLevelsDelete
, apaldXgafv
, apaldUploadProtocol
, apaldAccessToken
, apaldUploadType
, apaldName
, apaldCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesAccessLevelsDeleteResource =
"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 AccessPoliciesAccessLevelsDelete = AccessPoliciesAccessLevelsDelete'
{ _apaldXgafv :: !(Maybe Xgafv)
, _apaldUploadProtocol :: !(Maybe Text)
, _apaldAccessToken :: !(Maybe Text)
, _apaldUploadType :: !(Maybe Text)
, _apaldName :: !Text
, _apaldCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesAccessLevelsDelete
:: Text
-> AccessPoliciesAccessLevelsDelete
accessPoliciesAccessLevelsDelete pApaldName_ =
AccessPoliciesAccessLevelsDelete'
{ _apaldXgafv = Nothing
, _apaldUploadProtocol = Nothing
, _apaldAccessToken = Nothing
, _apaldUploadType = Nothing
, _apaldName = pApaldName_
, _apaldCallback = Nothing
}
apaldXgafv :: Lens' AccessPoliciesAccessLevelsDelete (Maybe Xgafv)
apaldXgafv
= lens _apaldXgafv (\ s a -> s{_apaldXgafv = a})
apaldUploadProtocol :: Lens' AccessPoliciesAccessLevelsDelete (Maybe Text)
apaldUploadProtocol
= lens _apaldUploadProtocol
(\ s a -> s{_apaldUploadProtocol = a})
apaldAccessToken :: Lens' AccessPoliciesAccessLevelsDelete (Maybe Text)
apaldAccessToken
= lens _apaldAccessToken
(\ s a -> s{_apaldAccessToken = a})
apaldUploadType :: Lens' AccessPoliciesAccessLevelsDelete (Maybe Text)
apaldUploadType
= lens _apaldUploadType
(\ s a -> s{_apaldUploadType = a})
apaldName :: Lens' AccessPoliciesAccessLevelsDelete Text
apaldName
= lens _apaldName (\ s a -> s{_apaldName = a})
apaldCallback :: Lens' AccessPoliciesAccessLevelsDelete (Maybe Text)
apaldCallback
= lens _apaldCallback
(\ s a -> s{_apaldCallback = a})
instance GoogleRequest
AccessPoliciesAccessLevelsDelete where
type Rs AccessPoliciesAccessLevelsDelete = Operation
type Scopes AccessPoliciesAccessLevelsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesAccessLevelsDelete'{..}
= go _apaldName _apaldXgafv _apaldUploadProtocol
_apaldAccessToken
_apaldUploadType
_apaldCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesAccessLevelsDeleteResource)
mempty