{-# 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.Directory.Resources.Calendars.List
(
ResourcesCalendarsListResource
, resourcesCalendarsList
, ResourcesCalendarsList
, rclOrderBy
, rclCustomer
, rclQuery
, rclPageToken
, rclMaxResults
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ResourcesCalendarsListResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"resources" :>
"calendars" :>
QueryParam "orderBy" Text :>
QueryParam "query" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] CalendarResources
data ResourcesCalendarsList = ResourcesCalendarsList'
{ _rclOrderBy :: !(Maybe Text)
, _rclCustomer :: !Text
, _rclQuery :: !(Maybe Text)
, _rclPageToken :: !(Maybe Text)
, _rclMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
resourcesCalendarsList
:: Text
-> ResourcesCalendarsList
resourcesCalendarsList pRclCustomer_ =
ResourcesCalendarsList'
{ _rclOrderBy = Nothing
, _rclCustomer = pRclCustomer_
, _rclQuery = Nothing
, _rclPageToken = Nothing
, _rclMaxResults = Nothing
}
rclOrderBy :: Lens' ResourcesCalendarsList (Maybe Text)
rclOrderBy
= lens _rclOrderBy (\ s a -> s{_rclOrderBy = a})
rclCustomer :: Lens' ResourcesCalendarsList Text
rclCustomer
= lens _rclCustomer (\ s a -> s{_rclCustomer = a})
rclQuery :: Lens' ResourcesCalendarsList (Maybe Text)
rclQuery = lens _rclQuery (\ s a -> s{_rclQuery = a})
rclPageToken :: Lens' ResourcesCalendarsList (Maybe Text)
rclPageToken
= lens _rclPageToken (\ s a -> s{_rclPageToken = a})
rclMaxResults :: Lens' ResourcesCalendarsList (Maybe Int32)
rclMaxResults
= lens _rclMaxResults
(\ s a -> s{_rclMaxResults = a})
. mapping _Coerce
instance GoogleRequest ResourcesCalendarsList where
type Rs ResourcesCalendarsList = CalendarResources
type Scopes ResourcesCalendarsList =
'["https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"]
requestClient ResourcesCalendarsList'{..}
= go _rclCustomer _rclOrderBy _rclQuery _rclPageToken
_rclMaxResults
(Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy ResourcesCalendarsListResource)
mempty