CoursesAliases
class CoursesAliases extends Resource (View source)
The "aliases" collection of methods.
Typical usage is:
$classroomService = new Google\Service\Classroom(...);
$aliases = $classroomService->courses_aliases; Methods
Creates an alias for a course. This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to create the alias or for access errors.NOT_FOUNDif the course does not exist.ALREADY_EXISTSif the alias already exists. *FAILED_PRECONDITIONif the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to access a domain-scoped alias).
Deletes an alias of a course. This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to remove the alias or for access errors.NOT_FOUNDif the alias does not exist.FAILED_PRECONDITIONif 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). (aliases.delete)
Returns a list of aliases for a course. This method returns the following
error codes: PERMISSION_DENIED if the requesting user is not permitted to
access the course or for access errors. NOT_FOUND if the course does not
exist. (aliases.listCoursesAliases)
Details
CourseAlias
create(string $courseId, CourseAlias $postBody, array $optParams = [])
Creates an alias for a course. This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to create the alias or for access errors.NOT_FOUNDif the course does not exist.ALREADY_EXISTSif the alias already exists. *FAILED_PRECONDITIONif the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to access a domain-scoped alias).
(aliases.create)
ClassroomEmpty
delete(string $courseId, string $alias, array $optParams = [])
Deletes an alias of a course. This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to remove the alias or for access errors.NOT_FOUNDif the alias does not exist.FAILED_PRECONDITIONif 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). (aliases.delete)
ListCourseAliasesResponse
listCoursesAliases(string $courseId, array $optParams = [])
Returns a list of aliases for a course. This method returns the following
error codes: PERMISSION_DENIED if the requesting user is not permitted to
access the course or for access errors. NOT_FOUND if the course does not
exist. (aliases.listCoursesAliases)