{-# 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.Invitations.Delete
(
InvitationsDeleteResource
, invitationsDelete
, InvitationsDelete
, idXgafv
, idUploadProtocol
, idAccessToken
, idUploadType
, idId
, idCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type InvitationsDeleteResource =
"v1" :>
"invitations" :>
Capture "id" 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 InvitationsDelete = InvitationsDelete'
{ _idXgafv :: !(Maybe Xgafv)
, _idUploadProtocol :: !(Maybe Text)
, _idAccessToken :: !(Maybe Text)
, _idUploadType :: !(Maybe Text)
, _idId :: !Text
, _idCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
invitationsDelete
:: Text
-> InvitationsDelete
invitationsDelete pIdId_ =
InvitationsDelete'
{ _idXgafv = Nothing
, _idUploadProtocol = Nothing
, _idAccessToken = Nothing
, _idUploadType = Nothing
, _idId = pIdId_
, _idCallback = Nothing
}
idXgafv :: Lens' InvitationsDelete (Maybe Xgafv)
idXgafv = lens _idXgafv (\ s a -> s{_idXgafv = a})
idUploadProtocol :: Lens' InvitationsDelete (Maybe Text)
idUploadProtocol
= lens _idUploadProtocol
(\ s a -> s{_idUploadProtocol = a})
idAccessToken :: Lens' InvitationsDelete (Maybe Text)
idAccessToken
= lens _idAccessToken
(\ s a -> s{_idAccessToken = a})
idUploadType :: Lens' InvitationsDelete (Maybe Text)
idUploadType
= lens _idUploadType (\ s a -> s{_idUploadType = a})
idId :: Lens' InvitationsDelete Text
idId = lens _idId (\ s a -> s{_idId = a})
idCallback :: Lens' InvitationsDelete (Maybe Text)
idCallback
= lens _idCallback (\ s a -> s{_idCallback = a})
instance GoogleRequest InvitationsDelete where
type Rs InvitationsDelete = Empty
type Scopes InvitationsDelete =
'["https://www.googleapis.com/auth/classroom.rosters"]
requestClient InvitationsDelete'{..}
= go _idId _idXgafv _idUploadProtocol _idAccessToken
_idUploadType
_idCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy InvitationsDeleteResource)
mempty