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 alias of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to remove the alias or for access errors. * `NOT_FOUND` if the alias does not exist. * `FAILED_PRECONDITION` if the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to delete a domain-scoped alias).
See: Google Classroom API Reference for classroom.courses.aliases.delete
.
Synopsis
- type CoursesAliasesDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (Capture "alias" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))))
- coursesAliasesDelete :: Text -> Text -> CoursesAliasesDelete
- data CoursesAliasesDelete
- cadXgafv :: Lens' CoursesAliasesDelete (Maybe Xgafv)
- cadUploadProtocol :: Lens' CoursesAliasesDelete (Maybe Text)
- cadCourseId :: Lens' CoursesAliasesDelete Text
- cadAccessToken :: Lens' CoursesAliasesDelete (Maybe Text)
- cadUploadType :: Lens' CoursesAliasesDelete (Maybe Text)
- cadAlias :: Lens' CoursesAliasesDelete Text
- cadCallback :: Lens' CoursesAliasesDelete (Maybe Text)
REST Resource
type CoursesAliasesDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (Capture "alias" 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.courses.aliases.delete
method which the
CoursesAliasesDelete
request conforms to.
Creating a Request
Creates a value of CoursesAliasesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesAliasesDelete Source #
Deletes an alias of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to remove the alias or for access errors. * `NOT_FOUND` if the alias does not exist. * `FAILED_PRECONDITION` if the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to delete a domain-scoped alias).
See: coursesAliasesDelete
smart constructor.
Instances
Request Lenses
cadUploadProtocol :: Lens' CoursesAliasesDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cadCourseId :: Lens' CoursesAliasesDelete Text Source #
Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias.
cadAccessToken :: Lens' CoursesAliasesDelete (Maybe Text) Source #
OAuth access token.
cadUploadType :: Lens' CoursesAliasesDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cadAlias :: Lens' CoursesAliasesDelete Text Source #
Alias to delete. This may not be the Classroom-assigned identifier.
cadCallback :: Lens' CoursesAliasesDelete (Maybe Text) Source #
JSONP