あなたは正しい、文書に基づいて:
Course metadata and aliases
- A Course resource例えばM.」と、クラスを表します。スミスの第四期の数学、」およびそれに割り当てられた教師、学生名簿、およびメタデータは、各コースは、サーバーによって割り当てられた一意のIDで識別され
。また、名前はもちろん、関連付けられたとして使用することができる 。ユニークIDの代わりそれぞれの名前は、それを作成し、閲覧できるユーザー制限の名前空間に存在する、Aliasと呼ば
サンプルJavaコードの基本:。
Course course = new Course()
.setName("10th Grade Biology")
.setSection("Period 2")
.setDescriptionHeading("Welcome to 10th Grade Biology")
.setDescription("We'll be learning about about the structure of living creatures "
+ "from a combination of textbooks, guest lectures, and lab work. Expect "
+ "to be excited!")
.setRoom("301")
.setOwnerId("me")
.setCourseState("PROVISIONED");
course = service.courses().create(course).execute();
System.out.printf("Course created: %s (%s)\n", course.getName(), course.getId());
これはサーバーによって生成されます。それが役に立てば幸い!
Google Classroomサポートでも確認済みです。割り当てられたIDはドメイン間で一意であり、別名は異なりません。 –