{-# 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.Delete
(
TimelineAttachmentsDeleteResource
, timelineAttachmentsDelete
, TimelineAttachmentsDelete
, tadItemId
, tadAttachmentId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type TimelineAttachmentsDeleteResource =
"mirror" :>
"v1" :>
"timeline" :>
Capture "itemId" Text :>
"attachments" :>
Capture "attachmentId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data TimelineAttachmentsDelete =
TimelineAttachmentsDelete'
{ _tadItemId :: !Text
, _tadAttachmentId :: !Text
}
deriving (Eq, Show, Data, Typeable, Generic)
timelineAttachmentsDelete
:: Text
-> Text
-> TimelineAttachmentsDelete
timelineAttachmentsDelete pTadItemId_ pTadAttachmentId_ =
TimelineAttachmentsDelete'
{_tadItemId = pTadItemId_, _tadAttachmentId = pTadAttachmentId_}
tadItemId :: Lens' TimelineAttachmentsDelete Text
tadItemId
= lens _tadItemId (\ s a -> s{_tadItemId = a})
tadAttachmentId :: Lens' TimelineAttachmentsDelete Text
tadAttachmentId
= lens _tadAttachmentId
(\ s a -> s{_tadAttachmentId = a})
instance GoogleRequest TimelineAttachmentsDelete
where
type Rs TimelineAttachmentsDelete = ()
type Scopes TimelineAttachmentsDelete =
'["https://www.googleapis.com/auth/glass.timeline"]
requestClient TimelineAttachmentsDelete'{..}
= go _tadItemId _tadAttachmentId (Just AltJSON)
mirrorService
where go
= buildClient
(Proxy :: Proxy TimelineAttachmentsDeleteResource)
mempty