{-# 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.Calendar.CalendarList.List
(
CalendarListListResource
, calendarListList
, CalendarListList
, cllSyncToken
, cllMinAccessRole
, cllShowDeleted
, cllShowHidden
, cllPageToken
, cllMaxResults
) where
import Network.Google.AppsCalendar.Types
import Network.Google.Prelude
type CalendarListListResource =
"calendar" :>
"v3" :>
"users" :>
"me" :>
"calendarList" :>
QueryParam "syncToken" Text :>
QueryParam "minAccessRole"
CalendarListListMinAccessRole
:>
QueryParam "showDeleted" Bool :>
QueryParam "showHidden" Bool :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] CalendarList
data CalendarListList = CalendarListList'
{ _cllSyncToken :: !(Maybe Text)
, _cllMinAccessRole :: !(Maybe CalendarListListMinAccessRole)
, _cllShowDeleted :: !(Maybe Bool)
, _cllShowHidden :: !(Maybe Bool)
, _cllPageToken :: !(Maybe Text)
, _cllMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
calendarListList
:: CalendarListList
calendarListList =
CalendarListList'
{ _cllSyncToken = Nothing
, _cllMinAccessRole = Nothing
, _cllShowDeleted = Nothing
, _cllShowHidden = Nothing
, _cllPageToken = Nothing
, _cllMaxResults = Nothing
}
cllSyncToken :: Lens' CalendarListList (Maybe Text)
cllSyncToken
= lens _cllSyncToken (\ s a -> s{_cllSyncToken = a})
cllMinAccessRole :: Lens' CalendarListList (Maybe CalendarListListMinAccessRole)
cllMinAccessRole
= lens _cllMinAccessRole
(\ s a -> s{_cllMinAccessRole = a})
cllShowDeleted :: Lens' CalendarListList (Maybe Bool)
cllShowDeleted
= lens _cllShowDeleted
(\ s a -> s{_cllShowDeleted = a})
cllShowHidden :: Lens' CalendarListList (Maybe Bool)
cllShowHidden
= lens _cllShowHidden
(\ s a -> s{_cllShowHidden = a})
cllPageToken :: Lens' CalendarListList (Maybe Text)
cllPageToken
= lens _cllPageToken (\ s a -> s{_cllPageToken = a})
cllMaxResults :: Lens' CalendarListList (Maybe Int32)
cllMaxResults
= lens _cllMaxResults
(\ s a -> s{_cllMaxResults = a})
. mapping _Coerce
instance GoogleRequest CalendarListList where
type Rs CalendarListList = CalendarList
type Scopes CalendarListList =
'["https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/calendar.readonly"]
requestClient CalendarListList'{..}
= go _cllSyncToken _cllMinAccessRole _cllShowDeleted
_cllShowHidden
_cllPageToken
_cllMaxResults
(Just AltJSON)
appsCalendarService
where go
= buildClient
(Proxy :: Proxy CalendarListListResource)
mempty