{-# 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.DefaultObjectAccessControls.Delete
(
DefaultObjectAccessControlsDeleteResource
, defaultObjectAccessControlsDelete
, DefaultObjectAccessControlsDelete
, doacdBucket
, doacdUserProject
, doacdEntity
) where
import Network.Google.Prelude
import Network.Google.Storage.Types
type DefaultObjectAccessControlsDeleteResource =
"storage" :>
"v1" :>
"b" :>
Capture "bucket" Text :>
"defaultObjectAcl" :>
Capture "entity" Text :>
QueryParam "userProject" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data DefaultObjectAccessControlsDelete = DefaultObjectAccessControlsDelete'
{ _doacdBucket :: !Text
, _doacdUserProject :: !(Maybe Text)
, _doacdEntity :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
defaultObjectAccessControlsDelete
:: Text
-> Text
-> DefaultObjectAccessControlsDelete
defaultObjectAccessControlsDelete pDoacdBucket_ pDoacdEntity_ =
DefaultObjectAccessControlsDelete'
{ _doacdBucket = pDoacdBucket_
, _doacdUserProject = Nothing
, _doacdEntity = pDoacdEntity_
}
doacdBucket :: Lens' DefaultObjectAccessControlsDelete Text
doacdBucket
= lens _doacdBucket (\ s a -> s{_doacdBucket = a})
doacdUserProject :: Lens' DefaultObjectAccessControlsDelete (Maybe Text)
doacdUserProject
= lens _doacdUserProject
(\ s a -> s{_doacdUserProject = a})
doacdEntity :: Lens' DefaultObjectAccessControlsDelete Text
doacdEntity
= lens _doacdEntity (\ s a -> s{_doacdEntity = a})
instance GoogleRequest
DefaultObjectAccessControlsDelete where
type Rs DefaultObjectAccessControlsDelete = ()
type Scopes DefaultObjectAccessControlsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control"]
requestClient DefaultObjectAccessControlsDelete'{..}
= go _doacdBucket _doacdEntity _doacdUserProject
(Just AltJSON)
storageService
where go
= buildClient
(Proxy ::
Proxy DefaultObjectAccessControlsDeleteResource)
mempty