{-# 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.Subscriptions.Delete
(
SubscriptionsDeleteResource
, subscriptionsDelete
, SubscriptionsDelete
, sdId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type SubscriptionsDeleteResource =
"mirror" :>
"v1" :>
"subscriptions" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype SubscriptionsDelete = SubscriptionsDelete'
{ _sdId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
subscriptionsDelete
:: Text
-> SubscriptionsDelete
subscriptionsDelete pSdId_ =
SubscriptionsDelete'
{ _sdId = pSdId_
}
sdId :: Lens' SubscriptionsDelete Text
sdId = lens _sdId (\ s a -> s{_sdId = a})
instance GoogleRequest SubscriptionsDelete where
type Rs SubscriptionsDelete = ()
type Scopes SubscriptionsDelete =
'["https://www.googleapis.com/auth/glass.timeline"]
requestClient SubscriptionsDelete'{..}
= go _sdId (Just AltJSON) mirrorService
where go
= buildClient
(Proxy :: Proxy SubscriptionsDeleteResource)
mempty