{-# 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.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet
(
EnterprisesAcknowledgeNotificationSetResource
, enterprisesAcknowledgeNotificationSet
, EnterprisesAcknowledgeNotificationSet
, eansNotificationSetId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EnterprisesAcknowledgeNotificationSetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
"acknowledgeNotificationSet" :>
QueryParam "notificationSetId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype EnterprisesAcknowledgeNotificationSet = EnterprisesAcknowledgeNotificationSet'
{ _eansNotificationSetId :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesAcknowledgeNotificationSet
:: EnterprisesAcknowledgeNotificationSet
enterprisesAcknowledgeNotificationSet =
EnterprisesAcknowledgeNotificationSet'
{ _eansNotificationSetId = Nothing
}
eansNotificationSetId :: Lens' EnterprisesAcknowledgeNotificationSet (Maybe Text)
eansNotificationSetId
= lens _eansNotificationSetId
(\ s a -> s{_eansNotificationSetId = a})
instance GoogleRequest
EnterprisesAcknowledgeNotificationSet where
type Rs EnterprisesAcknowledgeNotificationSet = ()
type Scopes EnterprisesAcknowledgeNotificationSet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient
EnterprisesAcknowledgeNotificationSet'{..}
= go _eansNotificationSetId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy EnterprisesAcknowledgeNotificationSetResource)
mempty