Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
See: Google Classroom API Reference for classroom.invitations.delete
.
Synopsis
- 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))))))))
- invitationsDelete :: Text -> InvitationsDelete
- data InvitationsDelete
- idXgafv :: Lens' InvitationsDelete (Maybe Xgafv)
- idUploadProtocol :: Lens' InvitationsDelete (Maybe Text)
- idAccessToken :: Lens' InvitationsDelete (Maybe Text)
- idUploadType :: Lens' InvitationsDelete (Maybe Text)
- idId :: Lens' InvitationsDelete Text
- idCallback :: Lens' InvitationsDelete (Maybe Text)
REST Resource
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)))))))) Source #
A resource alias for classroom.invitations.delete
method which the
InvitationsDelete
request conforms to.
Creating a Request
Creates a value of InvitationsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InvitationsDelete Source #
Deletes an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID.
See: invitationsDelete
smart constructor.
Instances
Request Lenses
idUploadProtocol :: Lens' InvitationsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
idAccessToken :: Lens' InvitationsDelete (Maybe Text) Source #
OAuth access token.
idUploadType :: Lens' InvitationsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
idCallback :: Lens' InvitationsDelete (Maybe Text) Source #
JSONP