{-# 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.Classroom.Registrations.Delete
(
RegistrationsDeleteResource
, registrationsDelete
, RegistrationsDelete
, rdRegistrationId
, rdXgafv
, rdUploadProtocol
, rdAccessToken
, rdUploadType
, rdCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type RegistrationsDeleteResource =
"v1" :>
"registrations" :>
Capture "registrationId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data RegistrationsDelete = RegistrationsDelete'
{ _rdRegistrationId :: !Text
, _rdXgafv :: !(Maybe Xgafv)
, _rdUploadProtocol :: !(Maybe Text)
, _rdAccessToken :: !(Maybe Text)
, _rdUploadType :: !(Maybe Text)
, _rdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
registrationsDelete
:: Text
-> RegistrationsDelete
registrationsDelete pRdRegistrationId_ =
RegistrationsDelete'
{ _rdRegistrationId = pRdRegistrationId_
, _rdXgafv = Nothing
, _rdUploadProtocol = Nothing
, _rdAccessToken = Nothing
, _rdUploadType = Nothing
, _rdCallback = Nothing
}
rdRegistrationId :: Lens' RegistrationsDelete Text
rdRegistrationId
= lens _rdRegistrationId
(\ s a -> s{_rdRegistrationId = a})
rdXgafv :: Lens' RegistrationsDelete (Maybe Xgafv)
rdXgafv = lens _rdXgafv (\ s a -> s{_rdXgafv = a})
rdUploadProtocol :: Lens' RegistrationsDelete (Maybe Text)
rdUploadProtocol
= lens _rdUploadProtocol
(\ s a -> s{_rdUploadProtocol = a})
rdAccessToken :: Lens' RegistrationsDelete (Maybe Text)
rdAccessToken
= lens _rdAccessToken
(\ s a -> s{_rdAccessToken = a})
rdUploadType :: Lens' RegistrationsDelete (Maybe Text)
rdUploadType
= lens _rdUploadType (\ s a -> s{_rdUploadType = a})
rdCallback :: Lens' RegistrationsDelete (Maybe Text)
rdCallback
= lens _rdCallback (\ s a -> s{_rdCallback = a})
instance GoogleRequest RegistrationsDelete where
type Rs RegistrationsDelete = Empty
type Scopes RegistrationsDelete =
'["https://www.googleapis.com/auth/classroom.push-notifications"]
requestClient RegistrationsDelete'{..}
= go _rdRegistrationId _rdXgafv _rdUploadProtocol
_rdAccessToken
_rdUploadType
_rdCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy RegistrationsDeleteResource)
mempty