class Google::Apis::ClassroomV1::Invitation
An invitation to join a course.
Attributes
course_id[RW]
Identifier of the course to invite the user to. Corresponds to the JSON property `courseId` @return [String]
id[RW]
Identifier assigned by Classroom. Read-only. Corresponds to the JSON property `id` @return [String]
role[RW]
Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`. Corresponds to the JSON property `role` @return [String]
user_id[RW]
Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: * the numeric identifier for the user * the email address of the user * the string literal `“me”`, indicating the requesting user Corresponds to the JSON property `userId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/classroom_v1/classes.rb, line 258 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/classroom_v1/classes.rb, line 263 def update!(**args) @id = args[:id] if args.key?(:id) @user_id = args[:user_id] if args.key?(:user_id) @course_id = args[:course_id] if args.key?(:course_id) @role = args[:role] if args.key?(:role) end