{-# 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.List
(
BucketAccessControlsListResource
, bucketAccessControlsList
, BucketAccessControlsList
, baclBucket
, baclUserProject
) where
import Network.Google.Prelude
import Network.Google.Storage.Types
type BucketAccessControlsListResource =
"storage" :>
"v1" :>
"b" :>
Capture "bucket" Text :>
"acl" :>
QueryParam "userProject" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] BucketAccessControls
data BucketAccessControlsList = BucketAccessControlsList'
{ _baclBucket :: !Text
, _baclUserProject :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
bucketAccessControlsList
:: Text
-> BucketAccessControlsList
bucketAccessControlsList pBaclBucket_ =
BucketAccessControlsList'
{ _baclBucket = pBaclBucket_
, _baclUserProject = Nothing
}
baclBucket :: Lens' BucketAccessControlsList Text
baclBucket
= lens _baclBucket (\ s a -> s{_baclBucket = a})
baclUserProject :: Lens' BucketAccessControlsList (Maybe Text)
baclUserProject
= lens _baclUserProject
(\ s a -> s{_baclUserProject = a})
instance GoogleRequest BucketAccessControlsList where
type Rs BucketAccessControlsList =
BucketAccessControls
type Scopes BucketAccessControlsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.full_control"]
requestClient BucketAccessControlsList'{..}
= go _baclBucket _baclUserProject (Just AltJSON)
storageService
where go
= buildClient
(Proxy :: Proxy BucketAccessControlsListResource)
mempty