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 |
Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.
See: Google Classroom API Reference for classroom.courses.announcements.modifyAssignees
.
Synopsis
- type CoursesAnnouncementsModifyAssigneesResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (CaptureMode "id" "modifyAssignees" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyAnnouncementAssigneesRequest :> Post '[JSON] Announcement)))))))))))
- coursesAnnouncementsModifyAssignees :: Text -> ModifyAnnouncementAssigneesRequest -> Text -> CoursesAnnouncementsModifyAssignees
- data CoursesAnnouncementsModifyAssignees
- camaXgafv :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Xgafv)
- camaUploadProtocol :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
- camaCourseId :: Lens' CoursesAnnouncementsModifyAssignees Text
- camaAccessToken :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
- camaUploadType :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
- camaPayload :: Lens' CoursesAnnouncementsModifyAssignees ModifyAnnouncementAssigneesRequest
- camaId :: Lens' CoursesAnnouncementsModifyAssignees Text
- camaCallback :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
REST Resource
type CoursesAnnouncementsModifyAssigneesResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (CaptureMode "id" "modifyAssignees" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyAnnouncementAssigneesRequest :> Post '[JSON] Announcement))))))))))) Source #
A resource alias for classroom.courses.announcements.modifyAssignees
method which the
CoursesAnnouncementsModifyAssignees
request conforms to.
Creating a Request
coursesAnnouncementsModifyAssignees Source #
Creates a value of CoursesAnnouncementsModifyAssignees
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesAnnouncementsModifyAssignees Source #
Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.
See: coursesAnnouncementsModifyAssignees
smart constructor.
Instances
Request Lenses
camaUploadProtocol :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
camaCourseId :: Lens' CoursesAnnouncementsModifyAssignees Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
camaAccessToken :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text) Source #
OAuth access token.
camaUploadType :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
camaPayload :: Lens' CoursesAnnouncementsModifyAssignees ModifyAnnouncementAssigneesRequest Source #
Multipart request metadata.