Class: Google::Apis::ClassroomV1::Course
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Course
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
A Course in Classroom.
Instance Attribute Summary collapse
-
#alternate_link ⇒ String
Absolute link to this course in the Classroom web UI.
-
#course_group_email ⇒ String
The email address of a Google group containing all members of the course.
-
#course_material_sets ⇒ Array<Google::Apis::ClassroomV1::CourseMaterialSet>
Sets of materials that appear on the "about" page of this course.
-
#course_state ⇒ String
State of the course.
-
#creation_time ⇒ String
Creation time of the course.
-
#description ⇒ String
Optional description.
-
#description_heading ⇒ String
Optional heading for the description.
-
#enrollment_code ⇒ String
Enrollment code to use when joining this course.
-
#guardians_enabled ⇒ Boolean
(also: #guardians_enabled?)
Whether or not guardian notifications are enabled for this course.
-
#id ⇒ String
Identifier for this course assigned by Classroom.
-
#name ⇒ String
Name of the course.
-
#owner_id ⇒ String
The identifier of the owner of a course.
-
#room ⇒ String
Optional room location.
-
#section ⇒ String
Section of the course.
-
#teacher_folder ⇒ Google::Apis::ClassroomV1::DriveFolder
Representation of a Google Drive folder.
-
#teacher_group_email ⇒ String
The email address of a Google group containing all teachers of the course.
-
#update_time ⇒ String
Time of the most recent update to this course.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Course
constructor
A new instance of Course.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Course
Returns a new instance of Course
1451 1452 1453 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_link ⇒ String
Absolute link to this course in the Classroom web UI.
Read-only.
Corresponds to the JSON property alternateLink
1385 1386 1387 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1385 def alternate_link @alternate_link end |
#course_group_email ⇒ String
The email address of a Google group containing all members of the course.
This group does not accept email and can only be used for permissions.
Read-only.
Corresponds to the JSON property courseGroupEmail
1351 1352 1353 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1351 def course_group_email @course_group_email end |
#course_material_sets ⇒ Array<Google::Apis::ClassroomV1::CourseMaterialSet>
Sets of materials that appear on the "about" page of this course.
Read-only.
Corresponds to the JSON property courseMaterialSets
1364 1365 1366 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1364 def course_material_sets @course_material_sets end |
#course_state ⇒ String
State of the course.
If unspecified, the default state is PROVISIONED
.
Corresponds to the JSON property courseState
1412 1413 1414 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1412 def course_state @course_state end |
#creation_time ⇒ String
Creation time of the course.
Specifying this field in a course update mask results in an error.
Read-only.
Corresponds to the JSON property creationTime
1436 1437 1438 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1436 def creation_time @creation_time end |
#description ⇒ String
Optional description.
For example, "We'll be learning about the structure of living
creatures from a combination of textbooks, guest lectures, and lab work.
Expect to be excited!"
If set, this field must be a valid UTF-8 string and no longer than 30,000
characters.
Corresponds to the JSON property description
1422 1423 1424 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1422 def description @description end |
#description_heading ⇒ String
Optional heading for the description.
For example, "Welcome to 10th Grade Biology."
If set, this field must be a valid UTF-8 string and no longer than 3600
characters.
Corresponds to the JSON property descriptionHeading
1372 1373 1374 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1372 def description_heading @description_heading end |
#enrollment_code ⇒ String
Enrollment code to use when joining this course.
Specifying this field in a course update mask results in an error.
Read-only.
Corresponds to the JSON property enrollmentCode
1358 1359 1360 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1358 def enrollment_code @enrollment_code end |
#guardians_enabled ⇒ Boolean Also known as: guardians_enabled?
Whether or not guardian notifications are enabled for this course.
Read-only.
Corresponds to the JSON property guardiansEnabled
1391 1392 1393 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1391 def guardians_enabled @guardians_enabled end |
#id ⇒ String
Identifier for this course assigned by Classroom.
When
creating a course,
you may optionally set this identifier to an
alias string in the
request to create a corresponding alias. The id
is still assigned by
Classroom and cannot be updated after the course is created.
Specifying this field in a course update mask results in an error.
Corresponds to the JSON property id
1336 1337 1338 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1336 def id @id end |
#name ⇒ String
Name of the course.
For example, "10th Grade Biology".
The name is required. It must be between 1 and 750 characters and a valid
UTF-8 string.
Corresponds to the JSON property name
1444 1445 1446 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1444 def name @name end |
#owner_id ⇒ String
The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following:
- the numeric identifier for the user
- the email address of the user
- the string literal
"me"
, indicating the requesting user This must be set in a create request. Specifying this field in a course update mask results in anINVALID_ARGUMENT
error. Corresponds to the JSON propertyownerId
1406 1407 1408 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1406 def owner_id @owner_id end |
#room ⇒ String
Optional room location.
For example, "301".
If set, this field must be a valid UTF-8 string and no longer than 650
characters.
Corresponds to the JSON property room
1344 1345 1346 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1344 def room @room end |
#section ⇒ String
Section of the course.
For example, "Period 2".
If set, this field must be a valid UTF-8 string and no longer than 2800
characters.
Corresponds to the JSON property section
1324 1325 1326 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1324 def section @section end |
#teacher_folder ⇒ Google::Apis::ClassroomV1::DriveFolder
Representation of a Google Drive folder.
Corresponds to the JSON property teacherFolder
1449 1450 1451 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1449 def teacher_folder @teacher_folder end |
#teacher_group_email ⇒ String
The email address of a Google group containing all teachers of the course.
This group does not accept email and can only be used for permissions.
Read-only.
Corresponds to the JSON property teacherGroupEmail
1429 1430 1431 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1429 def teacher_group_email @teacher_group_email end |
#update_time ⇒ String
Time of the most recent update to this course.
Specifying this field in a course update mask results in an error.
Read-only.
Corresponds to the JSON property updateTime
1379 1380 1381 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1379 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1456 def update!(**args) @section = args[:section] if args.key?(:section) @id = args[:id] if args.key?(:id) @room = args[:room] if args.key?(:room) @course_group_email = args[:course_group_email] if args.key?(:course_group_email) @enrollment_code = args[:enrollment_code] if args.key?(:enrollment_code) @course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets) @description_heading = args[:description_heading] if args.key?(:description_heading) @update_time = args[:update_time] if args.key?(:update_time) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled) @owner_id = args[:owner_id] if args.key?(:owner_id) @course_state = args[:course_state] if args.key?(:course_state) @description = args[:description] if args.key?(:description) @teacher_group_email = args[:teacher_group_email] if args.key?(:teacher_group_email) @creation_time = args[:creation_time] if args.key?(:creation_time) @name = args[:name] if args.key?(:name) @teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder) end |