{-# 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] ()
-- | Deletes a subscription.
--
-- /See:/ 'subscriptionsDelete' smart constructor.
newtype SubscriptionsDelete = SubscriptionsDelete'
{ _sdId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'SubscriptionsDelete' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sdId'
subscriptionsDelete
:: Text -- ^ 'sdId'
-> SubscriptionsDelete
subscriptionsDelete pSdId_ =
SubscriptionsDelete'
{ _sdId = pSdId_
}
-- | The ID of the subscription.
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