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.
See: Google Classroom API Reference for classroom.courses.aliases.delete
.
- type CoursesAliasesDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (Capture "alias" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))))))
- coursesAliasesDelete :: Text -> Text -> CoursesAliasesDelete
- data CoursesAliasesDelete
- cadXgafv :: Lens' CoursesAliasesDelete (Maybe Text)
- cadUploadProtocol :: Lens' CoursesAliasesDelete (Maybe Text)
- cadPp :: Lens' CoursesAliasesDelete Bool
- cadCourseId :: Lens' CoursesAliasesDelete Text
- cadAccessToken :: Lens' CoursesAliasesDelete (Maybe Text)
- cadUploadType :: Lens' CoursesAliasesDelete (Maybe Text)
- cadAlias :: Lens' CoursesAliasesDelete Text
- cadBearerToken :: Lens' CoursesAliasesDelete (Maybe Text)
- cadCallback :: Lens' CoursesAliasesDelete (Maybe Text)
REST Resource
type CoursesAliasesDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (Capture "alias" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
See: coursesAliasesDelete
smart constructor.
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.
cadBearerToken :: Lens' CoursesAliasesDelete (Maybe Text) Source #
OAuth bearer token.
cadCallback :: Lens' CoursesAliasesDelete (Maybe Text) Source #
JSONP