{-# 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.Attachments.List
(
TimelineAttachmentsListResource
, timelineAttachmentsList
, TimelineAttachmentsList
, talItemId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type TimelineAttachmentsListResource =
"mirror" :>
"v1" :>
"timeline" :>
Capture "itemId" Text :>
"attachments" :>
QueryParam "alt" AltJSON :>
Get '[JSON] AttachmentsListResponse
newtype TimelineAttachmentsList = TimelineAttachmentsList'
{ _talItemId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
timelineAttachmentsList
:: Text
-> TimelineAttachmentsList
timelineAttachmentsList pTalItemId_ =
TimelineAttachmentsList'
{ _talItemId = pTalItemId_
}
talItemId :: Lens' TimelineAttachmentsList Text
talItemId
= lens _talItemId (\ s a -> s{_talItemId = a})
instance GoogleRequest TimelineAttachmentsList where
type Rs TimelineAttachmentsList =
AttachmentsListResponse
type Scopes TimelineAttachmentsList =
'["https://www.googleapis.com/auth/glass.timeline"]
requestClient TimelineAttachmentsList'{..}
= go _talItemId (Just AltJSON) mirrorService
where go
= buildClient
(Proxy :: Proxy TimelineAttachmentsListResource)
mempty