{-# 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.Storage.BucketAccessControls.Delete
(
BucketAccessControlsDeleteResource
, bucketAccessControlsDelete
, BucketAccessControlsDelete
, bacdBucket
, bacdUserProject
, bacdEntity
) where
import Network.Google.Prelude
import Network.Google.Storage.Types
type BucketAccessControlsDeleteResource =
"storage" :>
"v1" :>
"b" :>
Capture "bucket" Text :>
"acl" :>
Capture "entity" Text :>
QueryParam "userProject" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data BucketAccessControlsDelete = BucketAccessControlsDelete'
{ _bacdBucket :: !Text
, _bacdUserProject :: !(Maybe Text)
, _bacdEntity :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
bucketAccessControlsDelete
:: Text
-> Text
-> BucketAccessControlsDelete
bucketAccessControlsDelete pBacdBucket_ pBacdEntity_ =
BucketAccessControlsDelete'
{ _bacdBucket = pBacdBucket_
, _bacdUserProject = Nothing
, _bacdEntity = pBacdEntity_
}
bacdBucket :: Lens' BucketAccessControlsDelete Text
bacdBucket
= lens _bacdBucket (\ s a -> s{_bacdBucket = a})
bacdUserProject :: Lens' BucketAccessControlsDelete (Maybe Text)
bacdUserProject
= lens _bacdUserProject
(\ s a -> s{_bacdUserProject = a})
bacdEntity :: Lens' BucketAccessControlsDelete Text
bacdEntity
= lens _bacdEntity (\ s a -> s{_bacdEntity = a})
instance GoogleRequest BucketAccessControlsDelete
where
type Rs BucketAccessControlsDelete = ()
type Scopes BucketAccessControlsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control"]
requestClient BucketAccessControlsDelete'{..}
= go _bacdBucket _bacdEntity _bacdUserProject
(Just AltJSON)
storageService
where go
= buildClient
(Proxy :: Proxy BucketAccessControlsDeleteResource)
mempty