install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/googleworkspace/cli/gws-classroom" ~/.claude/skills/comeonoliver-skillshub-gws-classroom && rm -rf "$T"
manifest:
skills/googleworkspace/cli/gws-classroom/SKILL.mdsource content
classroom (v1)
PREREQUISITE: Read
for auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
gws classroom <resource> <method> [flags]
API Resources
courses
— Creates a course. The user specified increate
is the owner of the created course and added as a teacher. A non-admin requesting user can only create a course with themselves as the owner. Domain admins can create courses owned by any user within their domain. This method returns the following error codes: *ownerId
if the requesting user is not permitted to create courses or for access errors. *PERMISSION_DENIED
if the primary teacher is not a valid user.NOT_FOUND
— Deletes a course. This method returns the following error codes: *delete
if the requesting user is not permitted to delete the requested course or for access errors. *PERMISSION_DENIED
if no course exists with the requested ID.NOT_FOUND
— Returns a course. This method returns the following error codes: *get
if the requesting user is not permitted to access the requested course or for access errors. *PERMISSION_DENIED
if no course exists with the requested ID.NOT_FOUND
— Returns the grading period settings in a course. This method returns the following error codes: *getGradingPeriodSettings
if the requesting user isn't permitted to access the grading period settings in the requested course or for access errors. *PERMISSION_DENIED
if the requested course does not exist.NOT_FOUND
— Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: *list
for access errors. *PERMISSION_DENIED
if the query argument is malformed. *INVALID_ARGUMENT
if any users specified in the query arguments do not exist.NOT_FOUND
— Updates one or more fields in a course. This method returns the following error codes: *patch
if the requesting user is not permitted to modify the requested course or for access errors. *PERMISSION_DENIED
if no course exists with the requested ID. *NOT_FOUND
if invalid fields are specified in the update mask or if no update mask is supplied.INVALID_ARGUMENT
— Updates a course. This method returns the following error codes: *update
if the requesting user is not permitted to modify the requested course or for access errors. *PERMISSION_DENIED
if no course exists with the requested ID. *NOT_FOUND
for the following request errors: * CourseNotModifiable * CourseTitleCannotContainUrlFAILED_PRECONDITION
— Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see licensing requirements.updateGradingPeriodSettings
— Operations on the 'aliases' resourcealiases
— Operations on the 'announcements' resourceannouncements
— Operations on the 'courseWork' resourcecourseWork
— Operations on the 'courseWorkMaterials' resourcecourseWorkMaterials
— Operations on the 'posts' resourceposts
— Operations on the 'studentGroups' resourcestudentGroups
— Operations on the 'students' resourcestudents
— Operations on the 'teachers' resourceteachers
— Operations on the 'topics' resourcetopics
invitations
— Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. Only the invited user may accept an invitation. This method returns the following error codes: *accept
if the requesting user is not permitted to accept the requested invitation or for access errors.PERMISSION_DENIED
— Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: *create
if the requesting user is not permitted to create invitations for this course or for access errors. *PERMISSION_DENIED
if the course or the user does not exist. *NOT_FOUND
: * if the requested user's account is disabled.FAILED_PRECONDITION
— Deletes an invitation. This method returns the following error codes: *delete
if the requesting user is not permitted to delete the requested invitation or for access errors. *PERMISSION_DENIED
if no invitation exists with the requested ID.NOT_FOUND
— Returns an invitation. This method returns the following error codes: *get
if the requesting user is not permitted to view the requested invitation or for access errors. *PERMISSION_DENIED
if no invitation exists with the requested ID.NOT_FOUND
— Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. Note: At least one oflist
oruser_id
must be supplied. Both fields can be supplied. This method returns the following error codes: *course_id
for access errors.PERMISSION_DENIED
registrations
— Creates acreate
, causing Classroom to start sending notifications from the providedRegistration
to the destination provided infeed
. Returns the createdcloudPubSubTopic
. Currently, this will be the same as the argument, but with server-assigned fields such asRegistration
andexpiry_time
filled in. Note that any value specified for theid
orexpiry_time
fields will be ignored.id
— Deletes adelete
, causing Classroom to stop sending notifications for thatRegistration
.Registration
userProfiles
— Returns a user profile. This method returns the following error codes: *get
if the requesting user is not permitted to access this user profile, if no profile exists with the requested ID, or for access errors.PERMISSION_DENIED
— Operations on the 'guardianInvitations' resourceguardianInvitations
— Operations on the 'guardians' resourceguardians
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods gws classroom --help # Inspect a method's required params, types, and defaults gws schema classroom.<resource>.<method>
Use
gws schema output to build your --params and --json flags.