{-# 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.Mirror.Timeline.List
(
TimelineListResource
, timelineList
, TimelineList
, tlPinnedOnly
, tlOrderBy
, tlBundleId
, tlSourceItemId
, tlPageToken
, tlMaxResults
, tlIncludeDeleted
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type TimelineListResource =
"mirror" :>
"v1" :>
"timeline" :>
QueryParam "pinnedOnly" Bool :>
QueryParam "orderBy" TimelineListOrderBy :>
QueryParam "bundleId" Text :>
QueryParam "sourceItemId" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "includeDeleted" Bool :>
QueryParam "alt" AltJSON :>
Get '[JSON] TimelineListResponse
data TimelineList = TimelineList'
{ _tlPinnedOnly :: !(Maybe Bool)
, _tlOrderBy :: !(Maybe TimelineListOrderBy)
, _tlBundleId :: !(Maybe Text)
, _tlSourceItemId :: !(Maybe Text)
, _tlPageToken :: !(Maybe Text)
, _tlMaxResults :: !(Maybe (Textual Word32))
, _tlIncludeDeleted :: !(Maybe Bool)
} deriving (Eq,Show,Data,Typeable,Generic)
timelineList
:: TimelineList
timelineList =
TimelineList'
{ _tlPinnedOnly = Nothing
, _tlOrderBy = Nothing
, _tlBundleId = Nothing
, _tlSourceItemId = Nothing
, _tlPageToken = Nothing
, _tlMaxResults = Nothing
, _tlIncludeDeleted = Nothing
}
tlPinnedOnly :: Lens' TimelineList (Maybe Bool)
tlPinnedOnly
= lens _tlPinnedOnly (\ s a -> s{_tlPinnedOnly = a})
tlOrderBy :: Lens' TimelineList (Maybe TimelineListOrderBy)
tlOrderBy
= lens _tlOrderBy (\ s a -> s{_tlOrderBy = a})
tlBundleId :: Lens' TimelineList (Maybe Text)
tlBundleId
= lens _tlBundleId (\ s a -> s{_tlBundleId = a})
tlSourceItemId :: Lens' TimelineList (Maybe Text)
tlSourceItemId
= lens _tlSourceItemId
(\ s a -> s{_tlSourceItemId = a})
tlPageToken :: Lens' TimelineList (Maybe Text)
tlPageToken
= lens _tlPageToken (\ s a -> s{_tlPageToken = a})
tlMaxResults :: Lens' TimelineList (Maybe Word32)
tlMaxResults
= lens _tlMaxResults (\ s a -> s{_tlMaxResults = a})
. mapping _Coerce
tlIncludeDeleted :: Lens' TimelineList (Maybe Bool)
tlIncludeDeleted
= lens _tlIncludeDeleted
(\ s a -> s{_tlIncludeDeleted = a})
instance GoogleRequest TimelineList where
type Rs TimelineList = TimelineListResponse
type Scopes TimelineList =
'["https://www.googleapis.com/auth/glass.location",
"https://www.googleapis.com/auth/glass.timeline"]
requestClient TimelineList'{..}
= go _tlPinnedOnly _tlOrderBy _tlBundleId
_tlSourceItemId
_tlPageToken
_tlMaxResults
_tlIncludeDeleted
(Just AltJSON)
mirrorService
where go
= buildClient (Proxy :: Proxy TimelineListResource)
mempty