{-# 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.CloudResourceManager.Folders.List
(
FoldersListResource
, foldersList
, FoldersList
, flParent
, flXgafv
, flUploadProtocol
, flAccessToken
, flUploadType
, flShowDeleted
, flPageToken
, flPageSize
, flCallback
) where
import Network.Google.Prelude
import Network.Google.ResourceManager.Types
type FoldersListResource =
"v2" :>
"folders" :>
QueryParam "parent" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "showDeleted" Bool :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListFoldersResponse
data FoldersList = FoldersList'
{ _flParent :: !(Maybe Text)
, _flXgafv :: !(Maybe Xgafv)
, _flUploadProtocol :: !(Maybe Text)
, _flAccessToken :: !(Maybe Text)
, _flUploadType :: !(Maybe Text)
, _flShowDeleted :: !(Maybe Bool)
, _flPageToken :: !(Maybe Text)
, _flPageSize :: !(Maybe (Textual Int32))
, _flCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersList
:: FoldersList
foldersList =
FoldersList'
{ _flParent = Nothing
, _flXgafv = Nothing
, _flUploadProtocol = Nothing
, _flAccessToken = Nothing
, _flUploadType = Nothing
, _flShowDeleted = Nothing
, _flPageToken = Nothing
, _flPageSize = Nothing
, _flCallback = Nothing
}
flParent :: Lens' FoldersList (Maybe Text)
flParent = lens _flParent (\ s a -> s{_flParent = a})
flXgafv :: Lens' FoldersList (Maybe Xgafv)
flXgafv = lens _flXgafv (\ s a -> s{_flXgafv = a})
flUploadProtocol :: Lens' FoldersList (Maybe Text)
flUploadProtocol
= lens _flUploadProtocol
(\ s a -> s{_flUploadProtocol = a})
flAccessToken :: Lens' FoldersList (Maybe Text)
flAccessToken
= lens _flAccessToken
(\ s a -> s{_flAccessToken = a})
flUploadType :: Lens' FoldersList (Maybe Text)
flUploadType
= lens _flUploadType (\ s a -> s{_flUploadType = a})
flShowDeleted :: Lens' FoldersList (Maybe Bool)
flShowDeleted
= lens _flShowDeleted
(\ s a -> s{_flShowDeleted = a})
flPageToken :: Lens' FoldersList (Maybe Text)
flPageToken
= lens _flPageToken (\ s a -> s{_flPageToken = a})
flPageSize :: Lens' FoldersList (Maybe Int32)
flPageSize
= lens _flPageSize (\ s a -> s{_flPageSize = a}) .
mapping _Coerce
flCallback :: Lens' FoldersList (Maybe Text)
flCallback
= lens _flCallback (\ s a -> s{_flCallback = a})
instance GoogleRequest FoldersList where
type Rs FoldersList = ListFoldersResponse
type Scopes FoldersList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient FoldersList'{..}
= go _flParent _flXgafv _flUploadProtocol
_flAccessToken
_flUploadType
_flShowDeleted
_flPageToken
_flPageSize
_flCallback
(Just AltJSON)
resourceManagerService
where go
= buildClient (Proxy :: Proxy FoldersListResource)
mempty