{-# 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.ObjectAccessControls.Delete
(
ObjectAccessControlsDeleteResource
, objectAccessControlsDelete
, ObjectAccessControlsDelete
, oacdBucket
, oacdUserProject
, oacdObject
, oacdEntity
, oacdGeneration
) where
import Network.Google.Prelude
import Network.Google.Storage.Types
type ObjectAccessControlsDeleteResource =
"storage" :>
"v1" :>
"b" :>
Capture "bucket" Text :>
"o" :>
Capture "object" Text :>
"acl" :>
Capture "entity" Text :>
QueryParam "userProject" Text :>
QueryParam "generation" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ObjectAccessControlsDelete = ObjectAccessControlsDelete'
{ _oacdBucket :: !Text
, _oacdUserProject :: !(Maybe Text)
, _oacdObject :: !Text
, _oacdEntity :: !Text
, _oacdGeneration :: !(Maybe (Textual Int64))
} deriving (Eq,Show,Data,Typeable,Generic)
objectAccessControlsDelete
:: Text
-> Text
-> Text
-> ObjectAccessControlsDelete
objectAccessControlsDelete pOacdBucket_ pOacdObject_ pOacdEntity_ =
ObjectAccessControlsDelete'
{ _oacdBucket = pOacdBucket_
, _oacdUserProject = Nothing
, _oacdObject = pOacdObject_
, _oacdEntity = pOacdEntity_
, _oacdGeneration = Nothing
}
oacdBucket :: Lens' ObjectAccessControlsDelete Text
oacdBucket
= lens _oacdBucket (\ s a -> s{_oacdBucket = a})
oacdUserProject :: Lens' ObjectAccessControlsDelete (Maybe Text)
oacdUserProject
= lens _oacdUserProject
(\ s a -> s{_oacdUserProject = a})
oacdObject :: Lens' ObjectAccessControlsDelete Text
oacdObject
= lens _oacdObject (\ s a -> s{_oacdObject = a})
oacdEntity :: Lens' ObjectAccessControlsDelete Text
oacdEntity
= lens _oacdEntity (\ s a -> s{_oacdEntity = a})
oacdGeneration :: Lens' ObjectAccessControlsDelete (Maybe Int64)
oacdGeneration
= lens _oacdGeneration
(\ s a -> s{_oacdGeneration = a})
. mapping _Coerce
instance GoogleRequest ObjectAccessControlsDelete
where
type Rs ObjectAccessControlsDelete = ()
type Scopes ObjectAccessControlsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control"]
requestClient ObjectAccessControlsDelete'{..}
= go _oacdBucket _oacdObject _oacdEntity
_oacdUserProject
_oacdGeneration
(Just AltJSON)
storageService
where go
= buildClient
(Proxy :: Proxy ObjectAccessControlsDeleteResource)
mempty