1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18/**
19 * Service definition for Classroom (v1).
20 *
21 * <p>
22 * Manages classes, rosters, and invitations in Google Classroom.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/classroom/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_Classroom extends Google_Service
32{
33  /** View and manage announcements in Google Classroom. */
34  const CLASSROOM_ANNOUNCEMENTS =
35      "https://www.googleapis.com/auth/classroom.announcements";
36  /** View announcements in Google Classroom. */
37  const CLASSROOM_ANNOUNCEMENTS_READONLY =
38      "https://www.googleapis.com/auth/classroom.announcements.readonly";
39  /** Manage your Google Classroom classes. */
40  const CLASSROOM_COURSES =
41      "https://www.googleapis.com/auth/classroom.courses";
42  /** View your Google Classroom classes. */
43  const CLASSROOM_COURSES_READONLY =
44      "https://www.googleapis.com/auth/classroom.courses.readonly";
45  /** Manage your course work and view your grades in Google Classroom. */
46  const CLASSROOM_COURSEWORK_ME =
47      "https://www.googleapis.com/auth/classroom.coursework.me";
48  /** View your course work and grades in Google Classroom. */
49  const CLASSROOM_COURSEWORK_ME_READONLY =
50      "https://www.googleapis.com/auth/classroom.coursework.me.readonly";
51  /** Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer. */
52  const CLASSROOM_COURSEWORK_STUDENTS =
53      "https://www.googleapis.com/auth/classroom.coursework.students";
54  /** View course work and grades for students in the Google Classroom classes you teach or administer. */
55  const CLASSROOM_COURSEWORK_STUDENTS_READONLY =
56      "https://www.googleapis.com/auth/classroom.coursework.students.readonly";
57  /** View your Google Classroom guardians. */
58  const CLASSROOM_GUARDIANLINKS_ME_READONLY =
59      "https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly";
60  /** View and manage guardians for students in your Google Classroom classes. */
61  const CLASSROOM_GUARDIANLINKS_STUDENTS =
62      "https://www.googleapis.com/auth/classroom.guardianlinks.students";
63  /** View guardians for students in your Google Classroom classes. */
64  const CLASSROOM_GUARDIANLINKS_STUDENTS_READONLY =
65      "https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly";
66  /** View the email addresses of people in your classes. */
67  const CLASSROOM_PROFILE_EMAILS =
68      "https://www.googleapis.com/auth/classroom.profile.emails";
69  /** View the profile photos of people in your classes. */
70  const CLASSROOM_PROFILE_PHOTOS =
71      "https://www.googleapis.com/auth/classroom.profile.photos";
72  /** Receive notifications about your Google Classroom data. */
73  const CLASSROOM_PUSH_NOTIFICATIONS =
74      "https://www.googleapis.com/auth/classroom.push-notifications";
75  /** Manage your Google Classroom class rosters. */
76  const CLASSROOM_ROSTERS =
77      "https://www.googleapis.com/auth/classroom.rosters";
78  /** View your Google Classroom class rosters. */
79  const CLASSROOM_ROSTERS_READONLY =
80      "https://www.googleapis.com/auth/classroom.rosters.readonly";
81  /** View your course work and grades in Google Classroom. */
82  const CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY =
83      "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly";
84  /** View course work and grades for students in the Google Classroom classes you teach or administer. */
85  const CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY =
86      "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly";
87  /** See, create, and edit topics in Google Classroom. */
88  const CLASSROOM_TOPICS =
89      "https://www.googleapis.com/auth/classroom.topics";
90  /** View topics in Google Classroom. */
91  const CLASSROOM_TOPICS_READONLY =
92      "https://www.googleapis.com/auth/classroom.topics.readonly";
93
94  public $courses;
95  public $courses_aliases;
96  public $courses_announcements;
97  public $courses_courseWork;
98  public $courses_courseWork_studentSubmissions;
99  public $courses_students;
100  public $courses_teachers;
101  public $courses_topics;
102  public $invitations;
103  public $registrations;
104  public $userProfiles;
105  public $userProfiles_guardianInvitations;
106  public $userProfiles_guardians;
107
108  /**
109   * Constructs the internal representation of the Classroom service.
110   *
111   * @param Google_Client $client
112   */
113  public function __construct(Google_Client $client)
114  {
115    parent::__construct($client);
116    $this->rootUrl = 'https://classroom.googleapis.com/';
117    $this->servicePath = '';
118    $this->batchPath = 'batch';
119    $this->version = 'v1';
120    $this->serviceName = 'classroom';
121
122    $this->courses = new Google_Service_Classroom_Resource_Courses(
123        $this,
124        $this->serviceName,
125        'courses',
126        array(
127          'methods' => array(
128            'create' => array(
129              'path' => 'v1/courses',
130              'httpMethod' => 'POST',
131              'parameters' => array(),
132            ),'delete' => array(
133              'path' => 'v1/courses/{id}',
134              'httpMethod' => 'DELETE',
135              'parameters' => array(
136                'id' => array(
137                  'location' => 'path',
138                  'type' => 'string',
139                  'required' => true,
140                ),
141              ),
142            ),'get' => array(
143              'path' => 'v1/courses/{id}',
144              'httpMethod' => 'GET',
145              'parameters' => array(
146                'id' => array(
147                  'location' => 'path',
148                  'type' => 'string',
149                  'required' => true,
150                ),
151              ),
152            ),'list' => array(
153              'path' => 'v1/courses',
154              'httpMethod' => 'GET',
155              'parameters' => array(
156                'studentId' => array(
157                  'location' => 'query',
158                  'type' => 'string',
159                ),
160                'pageToken' => array(
161                  'location' => 'query',
162                  'type' => 'string',
163                ),
164                'pageSize' => array(
165                  'location' => 'query',
166                  'type' => 'integer',
167                ),
168                'teacherId' => array(
169                  'location' => 'query',
170                  'type' => 'string',
171                ),
172                'courseStates' => array(
173                  'location' => 'query',
174                  'type' => 'string',
175                  'repeated' => true,
176                ),
177              ),
178            ),'patch' => array(
179              'path' => 'v1/courses/{id}',
180              'httpMethod' => 'PATCH',
181              'parameters' => array(
182                'id' => array(
183                  'location' => 'path',
184                  'type' => 'string',
185                  'required' => true,
186                ),
187                'updateMask' => array(
188                  'location' => 'query',
189                  'type' => 'string',
190                ),
191              ),
192            ),'update' => array(
193              'path' => 'v1/courses/{id}',
194              'httpMethod' => 'PUT',
195              'parameters' => array(
196                'id' => array(
197                  'location' => 'path',
198                  'type' => 'string',
199                  'required' => true,
200                ),
201              ),
202            ),
203          )
204        )
205    );
206    $this->courses_aliases = new Google_Service_Classroom_Resource_CoursesAliases(
207        $this,
208        $this->serviceName,
209        'aliases',
210        array(
211          'methods' => array(
212            'create' => array(
213              'path' => 'v1/courses/{courseId}/aliases',
214              'httpMethod' => 'POST',
215              'parameters' => array(
216                'courseId' => array(
217                  'location' => 'path',
218                  'type' => 'string',
219                  'required' => true,
220                ),
221              ),
222            ),'delete' => array(
223              'path' => 'v1/courses/{courseId}/aliases/{alias}',
224              'httpMethod' => 'DELETE',
225              'parameters' => array(
226                'courseId' => array(
227                  'location' => 'path',
228                  'type' => 'string',
229                  'required' => true,
230                ),
231                'alias' => array(
232                  'location' => 'path',
233                  'type' => 'string',
234                  'required' => true,
235                ),
236              ),
237            ),'list' => array(
238              'path' => 'v1/courses/{courseId}/aliases',
239              'httpMethod' => 'GET',
240              'parameters' => array(
241                'courseId' => array(
242                  'location' => 'path',
243                  'type' => 'string',
244                  'required' => true,
245                ),
246                'pageToken' => array(
247                  'location' => 'query',
248                  'type' => 'string',
249                ),
250                'pageSize' => array(
251                  'location' => 'query',
252                  'type' => 'integer',
253                ),
254              ),
255            ),
256          )
257        )
258    );
259    $this->courses_announcements = new Google_Service_Classroom_Resource_CoursesAnnouncements(
260        $this,
261        $this->serviceName,
262        'announcements',
263        array(
264          'methods' => array(
265            'create' => array(
266              'path' => 'v1/courses/{courseId}/announcements',
267              'httpMethod' => 'POST',
268              'parameters' => array(
269                'courseId' => array(
270                  'location' => 'path',
271                  'type' => 'string',
272                  'required' => true,
273                ),
274              ),
275            ),'delete' => array(
276              'path' => 'v1/courses/{courseId}/announcements/{id}',
277              'httpMethod' => 'DELETE',
278              'parameters' => array(
279                'courseId' => array(
280                  'location' => 'path',
281                  'type' => 'string',
282                  'required' => true,
283                ),
284                'id' => array(
285                  'location' => 'path',
286                  'type' => 'string',
287                  'required' => true,
288                ),
289              ),
290            ),'get' => array(
291              'path' => 'v1/courses/{courseId}/announcements/{id}',
292              'httpMethod' => 'GET',
293              'parameters' => array(
294                'courseId' => array(
295                  'location' => 'path',
296                  'type' => 'string',
297                  'required' => true,
298                ),
299                'id' => array(
300                  'location' => 'path',
301                  'type' => 'string',
302                  'required' => true,
303                ),
304              ),
305            ),'list' => array(
306              'path' => 'v1/courses/{courseId}/announcements',
307              'httpMethod' => 'GET',
308              'parameters' => array(
309                'courseId' => array(
310                  'location' => 'path',
311                  'type' => 'string',
312                  'required' => true,
313                ),
314                'announcementStates' => array(
315                  'location' => 'query',
316                  'type' => 'string',
317                  'repeated' => true,
318                ),
319                'orderBy' => array(
320                  'location' => 'query',
321                  'type' => 'string',
322                ),
323                'pageToken' => array(
324                  'location' => 'query',
325                  'type' => 'string',
326                ),
327                'pageSize' => array(
328                  'location' => 'query',
329                  'type' => 'integer',
330                ),
331              ),
332            ),'modifyAssignees' => array(
333              'path' => 'v1/courses/{courseId}/announcements/{id}:modifyAssignees',
334              'httpMethod' => 'POST',
335              'parameters' => array(
336                'courseId' => array(
337                  'location' => 'path',
338                  'type' => 'string',
339                  'required' => true,
340                ),
341                'id' => array(
342                  'location' => 'path',
343                  'type' => 'string',
344                  'required' => true,
345                ),
346              ),
347            ),'patch' => array(
348              'path' => 'v1/courses/{courseId}/announcements/{id}',
349              'httpMethod' => 'PATCH',
350              'parameters' => array(
351                'courseId' => array(
352                  'location' => 'path',
353                  'type' => 'string',
354                  'required' => true,
355                ),
356                'id' => array(
357                  'location' => 'path',
358                  'type' => 'string',
359                  'required' => true,
360                ),
361                'updateMask' => array(
362                  'location' => 'query',
363                  'type' => 'string',
364                ),
365              ),
366            ),
367          )
368        )
369    );
370    $this->courses_courseWork = new Google_Service_Classroom_Resource_CoursesCourseWork(
371        $this,
372        $this->serviceName,
373        'courseWork',
374        array(
375          'methods' => array(
376            'create' => array(
377              'path' => 'v1/courses/{courseId}/courseWork',
378              'httpMethod' => 'POST',
379              'parameters' => array(
380                'courseId' => array(
381                  'location' => 'path',
382                  'type' => 'string',
383                  'required' => true,
384                ),
385              ),
386            ),'delete' => array(
387              'path' => 'v1/courses/{courseId}/courseWork/{id}',
388              'httpMethod' => 'DELETE',
389              'parameters' => array(
390                'courseId' => array(
391                  'location' => 'path',
392                  'type' => 'string',
393                  'required' => true,
394                ),
395                'id' => array(
396                  'location' => 'path',
397                  'type' => 'string',
398                  'required' => true,
399                ),
400              ),
401            ),'get' => array(
402              'path' => 'v1/courses/{courseId}/courseWork/{id}',
403              'httpMethod' => 'GET',
404              'parameters' => array(
405                'courseId' => array(
406                  'location' => 'path',
407                  'type' => 'string',
408                  'required' => true,
409                ),
410                'id' => array(
411                  'location' => 'path',
412                  'type' => 'string',
413                  'required' => true,
414                ),
415              ),
416            ),'list' => array(
417              'path' => 'v1/courses/{courseId}/courseWork',
418              'httpMethod' => 'GET',
419              'parameters' => array(
420                'courseId' => array(
421                  'location' => 'path',
422                  'type' => 'string',
423                  'required' => true,
424                ),
425                'pageSize' => array(
426                  'location' => 'query',
427                  'type' => 'integer',
428                ),
429                'courseWorkStates' => array(
430                  'location' => 'query',
431                  'type' => 'string',
432                  'repeated' => true,
433                ),
434                'orderBy' => array(
435                  'location' => 'query',
436                  'type' => 'string',
437                ),
438                'pageToken' => array(
439                  'location' => 'query',
440                  'type' => 'string',
441                ),
442              ),
443            ),'modifyAssignees' => array(
444              'path' => 'v1/courses/{courseId}/courseWork/{id}:modifyAssignees',
445              'httpMethod' => 'POST',
446              'parameters' => array(
447                'courseId' => array(
448                  'location' => 'path',
449                  'type' => 'string',
450                  'required' => true,
451                ),
452                'id' => array(
453                  'location' => 'path',
454                  'type' => 'string',
455                  'required' => true,
456                ),
457              ),
458            ),'patch' => array(
459              'path' => 'v1/courses/{courseId}/courseWork/{id}',
460              'httpMethod' => 'PATCH',
461              'parameters' => array(
462                'courseId' => array(
463                  'location' => 'path',
464                  'type' => 'string',
465                  'required' => true,
466                ),
467                'id' => array(
468                  'location' => 'path',
469                  'type' => 'string',
470                  'required' => true,
471                ),
472                'updateMask' => array(
473                  'location' => 'query',
474                  'type' => 'string',
475                ),
476              ),
477            ),
478          )
479        )
480    );
481    $this->courses_courseWork_studentSubmissions = new Google_Service_Classroom_Resource_CoursesCourseWorkStudentSubmissions(
482        $this,
483        $this->serviceName,
484        'studentSubmissions',
485        array(
486          'methods' => array(
487            'get' => array(
488              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
489              'httpMethod' => 'GET',
490              'parameters' => array(
491                'courseId' => array(
492                  'location' => 'path',
493                  'type' => 'string',
494                  'required' => true,
495                ),
496                'courseWorkId' => array(
497                  'location' => 'path',
498                  'type' => 'string',
499                  'required' => true,
500                ),
501                'id' => array(
502                  'location' => 'path',
503                  'type' => 'string',
504                  'required' => true,
505                ),
506              ),
507            ),'list' => array(
508              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions',
509              'httpMethod' => 'GET',
510              'parameters' => array(
511                'courseId' => array(
512                  'location' => 'path',
513                  'type' => 'string',
514                  'required' => true,
515                ),
516                'courseWorkId' => array(
517                  'location' => 'path',
518                  'type' => 'string',
519                  'required' => true,
520                ),
521                'pageToken' => array(
522                  'location' => 'query',
523                  'type' => 'string',
524                ),
525                'pageSize' => array(
526                  'location' => 'query',
527                  'type' => 'integer',
528                ),
529                'states' => array(
530                  'location' => 'query',
531                  'type' => 'string',
532                  'repeated' => true,
533                ),
534                'userId' => array(
535                  'location' => 'query',
536                  'type' => 'string',
537                ),
538                'late' => array(
539                  'location' => 'query',
540                  'type' => 'string',
541                ),
542              ),
543            ),'modifyAttachments' => array(
544              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments',
545              'httpMethod' => 'POST',
546              'parameters' => array(
547                'courseId' => array(
548                  'location' => 'path',
549                  'type' => 'string',
550                  'required' => true,
551                ),
552                'courseWorkId' => array(
553                  'location' => 'path',
554                  'type' => 'string',
555                  'required' => true,
556                ),
557                'id' => array(
558                  'location' => 'path',
559                  'type' => 'string',
560                  'required' => true,
561                ),
562              ),
563            ),'patch' => array(
564              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
565              'httpMethod' => 'PATCH',
566              'parameters' => array(
567                'courseId' => array(
568                  'location' => 'path',
569                  'type' => 'string',
570                  'required' => true,
571                ),
572                'courseWorkId' => array(
573                  'location' => 'path',
574                  'type' => 'string',
575                  'required' => true,
576                ),
577                'id' => array(
578                  'location' => 'path',
579                  'type' => 'string',
580                  'required' => true,
581                ),
582                'updateMask' => array(
583                  'location' => 'query',
584                  'type' => 'string',
585                ),
586              ),
587            ),'reclaim' => array(
588              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim',
589              'httpMethod' => 'POST',
590              'parameters' => array(
591                'courseId' => array(
592                  'location' => 'path',
593                  'type' => 'string',
594                  'required' => true,
595                ),
596                'courseWorkId' => array(
597                  'location' => 'path',
598                  'type' => 'string',
599                  'required' => true,
600                ),
601                'id' => array(
602                  'location' => 'path',
603                  'type' => 'string',
604                  'required' => true,
605                ),
606              ),
607            ),'return' => array(
608              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return',
609              'httpMethod' => 'POST',
610              'parameters' => array(
611                'courseId' => array(
612                  'location' => 'path',
613                  'type' => 'string',
614                  'required' => true,
615                ),
616                'courseWorkId' => array(
617                  'location' => 'path',
618                  'type' => 'string',
619                  'required' => true,
620                ),
621                'id' => array(
622                  'location' => 'path',
623                  'type' => 'string',
624                  'required' => true,
625                ),
626              ),
627            ),'turnIn' => array(
628              'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn',
629              'httpMethod' => 'POST',
630              'parameters' => array(
631                'courseId' => array(
632                  'location' => 'path',
633                  'type' => 'string',
634                  'required' => true,
635                ),
636                'courseWorkId' => array(
637                  'location' => 'path',
638                  'type' => 'string',
639                  'required' => true,
640                ),
641                'id' => array(
642                  'location' => 'path',
643                  'type' => 'string',
644                  'required' => true,
645                ),
646              ),
647            ),
648          )
649        )
650    );
651    $this->courses_students = new Google_Service_Classroom_Resource_CoursesStudents(
652        $this,
653        $this->serviceName,
654        'students',
655        array(
656          'methods' => array(
657            'create' => array(
658              'path' => 'v1/courses/{courseId}/students',
659              'httpMethod' => 'POST',
660              'parameters' => array(
661                'courseId' => array(
662                  'location' => 'path',
663                  'type' => 'string',
664                  'required' => true,
665                ),
666                'enrollmentCode' => array(
667                  'location' => 'query',
668                  'type' => 'string',
669                ),
670              ),
671            ),'delete' => array(
672              'path' => 'v1/courses/{courseId}/students/{userId}',
673              'httpMethod' => 'DELETE',
674              'parameters' => array(
675                'courseId' => array(
676                  'location' => 'path',
677                  'type' => 'string',
678                  'required' => true,
679                ),
680                'userId' => array(
681                  'location' => 'path',
682                  'type' => 'string',
683                  'required' => true,
684                ),
685              ),
686            ),'get' => array(
687              'path' => 'v1/courses/{courseId}/students/{userId}',
688              'httpMethod' => 'GET',
689              'parameters' => array(
690                'courseId' => array(
691                  'location' => 'path',
692                  'type' => 'string',
693                  'required' => true,
694                ),
695                'userId' => array(
696                  'location' => 'path',
697                  'type' => 'string',
698                  'required' => true,
699                ),
700              ),
701            ),'list' => array(
702              'path' => 'v1/courses/{courseId}/students',
703              'httpMethod' => 'GET',
704              'parameters' => array(
705                'courseId' => array(
706                  'location' => 'path',
707                  'type' => 'string',
708                  'required' => true,
709                ),
710                'pageToken' => array(
711                  'location' => 'query',
712                  'type' => 'string',
713                ),
714                'pageSize' => array(
715                  'location' => 'query',
716                  'type' => 'integer',
717                ),
718              ),
719            ),
720          )
721        )
722    );
723    $this->courses_teachers = new Google_Service_Classroom_Resource_CoursesTeachers(
724        $this,
725        $this->serviceName,
726        'teachers',
727        array(
728          'methods' => array(
729            'create' => array(
730              'path' => 'v1/courses/{courseId}/teachers',
731              'httpMethod' => 'POST',
732              'parameters' => array(
733                'courseId' => array(
734                  'location' => 'path',
735                  'type' => 'string',
736                  'required' => true,
737                ),
738              ),
739            ),'delete' => array(
740              'path' => 'v1/courses/{courseId}/teachers/{userId}',
741              'httpMethod' => 'DELETE',
742              'parameters' => array(
743                'courseId' => array(
744                  'location' => 'path',
745                  'type' => 'string',
746                  'required' => true,
747                ),
748                'userId' => array(
749                  'location' => 'path',
750                  'type' => 'string',
751                  'required' => true,
752                ),
753              ),
754            ),'get' => array(
755              'path' => 'v1/courses/{courseId}/teachers/{userId}',
756              'httpMethod' => 'GET',
757              'parameters' => array(
758                'courseId' => array(
759                  'location' => 'path',
760                  'type' => 'string',
761                  'required' => true,
762                ),
763                'userId' => array(
764                  'location' => 'path',
765                  'type' => 'string',
766                  'required' => true,
767                ),
768              ),
769            ),'list' => array(
770              'path' => 'v1/courses/{courseId}/teachers',
771              'httpMethod' => 'GET',
772              'parameters' => array(
773                'courseId' => array(
774                  'location' => 'path',
775                  'type' => 'string',
776                  'required' => true,
777                ),
778                'pageToken' => array(
779                  'location' => 'query',
780                  'type' => 'string',
781                ),
782                'pageSize' => array(
783                  'location' => 'query',
784                  'type' => 'integer',
785                ),
786              ),
787            ),
788          )
789        )
790    );
791    $this->courses_topics = new Google_Service_Classroom_Resource_CoursesTopics(
792        $this,
793        $this->serviceName,
794        'topics',
795        array(
796          'methods' => array(
797            'create' => array(
798              'path' => 'v1/courses/{courseId}/topics',
799              'httpMethod' => 'POST',
800              'parameters' => array(
801                'courseId' => array(
802                  'location' => 'path',
803                  'type' => 'string',
804                  'required' => true,
805                ),
806              ),
807            ),'delete' => array(
808              'path' => 'v1/courses/{courseId}/topics/{id}',
809              'httpMethod' => 'DELETE',
810              'parameters' => array(
811                'courseId' => array(
812                  'location' => 'path',
813                  'type' => 'string',
814                  'required' => true,
815                ),
816                'id' => array(
817                  'location' => 'path',
818                  'type' => 'string',
819                  'required' => true,
820                ),
821              ),
822            ),'get' => array(
823              'path' => 'v1/courses/{courseId}/topics/{id}',
824              'httpMethod' => 'GET',
825              'parameters' => array(
826                'courseId' => array(
827                  'location' => 'path',
828                  'type' => 'string',
829                  'required' => true,
830                ),
831                'id' => array(
832                  'location' => 'path',
833                  'type' => 'string',
834                  'required' => true,
835                ),
836              ),
837            ),'list' => array(
838              'path' => 'v1/courses/{courseId}/topics',
839              'httpMethod' => 'GET',
840              'parameters' => array(
841                'courseId' => array(
842                  'location' => 'path',
843                  'type' => 'string',
844                  'required' => true,
845                ),
846                'pageToken' => array(
847                  'location' => 'query',
848                  'type' => 'string',
849                ),
850                'pageSize' => array(
851                  'location' => 'query',
852                  'type' => 'integer',
853                ),
854              ),
855            ),'patch' => array(
856              'path' => 'v1/courses/{courseId}/topics/{id}',
857              'httpMethod' => 'PATCH',
858              'parameters' => array(
859                'courseId' => array(
860                  'location' => 'path',
861                  'type' => 'string',
862                  'required' => true,
863                ),
864                'id' => array(
865                  'location' => 'path',
866                  'type' => 'string',
867                  'required' => true,
868                ),
869                'updateMask' => array(
870                  'location' => 'query',
871                  'type' => 'string',
872                ),
873              ),
874            ),
875          )
876        )
877    );
878    $this->invitations = new Google_Service_Classroom_Resource_Invitations(
879        $this,
880        $this->serviceName,
881        'invitations',
882        array(
883          'methods' => array(
884            'accept' => array(
885              'path' => 'v1/invitations/{id}:accept',
886              'httpMethod' => 'POST',
887              'parameters' => array(
888                'id' => array(
889                  'location' => 'path',
890                  'type' => 'string',
891                  'required' => true,
892                ),
893              ),
894            ),'create' => array(
895              'path' => 'v1/invitations',
896              'httpMethod' => 'POST',
897              'parameters' => array(),
898            ),'delete' => array(
899              'path' => 'v1/invitations/{id}',
900              'httpMethod' => 'DELETE',
901              'parameters' => array(
902                'id' => array(
903                  'location' => 'path',
904                  'type' => 'string',
905                  'required' => true,
906                ),
907              ),
908            ),'get' => array(
909              'path' => 'v1/invitations/{id}',
910              'httpMethod' => 'GET',
911              'parameters' => array(
912                'id' => array(
913                  'location' => 'path',
914                  'type' => 'string',
915                  'required' => true,
916                ),
917              ),
918            ),'list' => array(
919              'path' => 'v1/invitations',
920              'httpMethod' => 'GET',
921              'parameters' => array(
922                'courseId' => array(
923                  'location' => 'query',
924                  'type' => 'string',
925                ),
926                'userId' => array(
927                  'location' => 'query',
928                  'type' => 'string',
929                ),
930                'pageToken' => array(
931                  'location' => 'query',
932                  'type' => 'string',
933                ),
934                'pageSize' => array(
935                  'location' => 'query',
936                  'type' => 'integer',
937                ),
938              ),
939            ),
940          )
941        )
942    );
943    $this->registrations = new Google_Service_Classroom_Resource_Registrations(
944        $this,
945        $this->serviceName,
946        'registrations',
947        array(
948          'methods' => array(
949            'create' => array(
950              'path' => 'v1/registrations',
951              'httpMethod' => 'POST',
952              'parameters' => array(),
953            ),'delete' => array(
954              'path' => 'v1/registrations/{registrationId}',
955              'httpMethod' => 'DELETE',
956              'parameters' => array(
957                'registrationId' => array(
958                  'location' => 'path',
959                  'type' => 'string',
960                  'required' => true,
961                ),
962              ),
963            ),
964          )
965        )
966    );
967    $this->userProfiles = new Google_Service_Classroom_Resource_UserProfiles(
968        $this,
969        $this->serviceName,
970        'userProfiles',
971        array(
972          'methods' => array(
973            'get' => array(
974              'path' => 'v1/userProfiles/{userId}',
975              'httpMethod' => 'GET',
976              'parameters' => array(
977                'userId' => array(
978                  'location' => 'path',
979                  'type' => 'string',
980                  'required' => true,
981                ),
982              ),
983            ),
984          )
985        )
986    );
987    $this->userProfiles_guardianInvitations = new Google_Service_Classroom_Resource_UserProfilesGuardianInvitations(
988        $this,
989        $this->serviceName,
990        'guardianInvitations',
991        array(
992          'methods' => array(
993            'create' => array(
994              'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
995              'httpMethod' => 'POST',
996              'parameters' => array(
997                'studentId' => array(
998                  'location' => 'path',
999                  'type' => 'string',
1000                  'required' => true,
1001                ),
1002              ),
1003            ),'get' => array(
1004              'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
1005              'httpMethod' => 'GET',
1006              'parameters' => array(
1007                'studentId' => array(
1008                  'location' => 'path',
1009                  'type' => 'string',
1010                  'required' => true,
1011                ),
1012                'invitationId' => array(
1013                  'location' => 'path',
1014                  'type' => 'string',
1015                  'required' => true,
1016                ),
1017              ),
1018            ),'list' => array(
1019              'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
1020              'httpMethod' => 'GET',
1021              'parameters' => array(
1022                'studentId' => array(
1023                  'location' => 'path',
1024                  'type' => 'string',
1025                  'required' => true,
1026                ),
1027                'pageToken' => array(
1028                  'location' => 'query',
1029                  'type' => 'string',
1030                ),
1031                'invitedEmailAddress' => array(
1032                  'location' => 'query',
1033                  'type' => 'string',
1034                ),
1035                'states' => array(
1036                  'location' => 'query',
1037                  'type' => 'string',
1038                  'repeated' => true,
1039                ),
1040                'pageSize' => array(
1041                  'location' => 'query',
1042                  'type' => 'integer',
1043                ),
1044              ),
1045            ),'patch' => array(
1046              'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
1047              'httpMethod' => 'PATCH',
1048              'parameters' => array(
1049                'studentId' => array(
1050                  'location' => 'path',
1051                  'type' => 'string',
1052                  'required' => true,
1053                ),
1054                'invitationId' => array(
1055                  'location' => 'path',
1056                  'type' => 'string',
1057                  'required' => true,
1058                ),
1059                'updateMask' => array(
1060                  'location' => 'query',
1061                  'type' => 'string',
1062                ),
1063              ),
1064            ),
1065          )
1066        )
1067    );
1068    $this->userProfiles_guardians = new Google_Service_Classroom_Resource_UserProfilesGuardians(
1069        $this,
1070        $this->serviceName,
1071        'guardians',
1072        array(
1073          'methods' => array(
1074            'delete' => array(
1075              'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
1076              'httpMethod' => 'DELETE',
1077              'parameters' => array(
1078                'studentId' => array(
1079                  'location' => 'path',
1080                  'type' => 'string',
1081                  'required' => true,
1082                ),
1083                'guardianId' => array(
1084                  'location' => 'path',
1085                  'type' => 'string',
1086                  'required' => true,
1087                ),
1088              ),
1089            ),'get' => array(
1090              'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
1091              'httpMethod' => 'GET',
1092              'parameters' => array(
1093                'studentId' => array(
1094                  'location' => 'path',
1095                  'type' => 'string',
1096                  'required' => true,
1097                ),
1098                'guardianId' => array(
1099                  'location' => 'path',
1100                  'type' => 'string',
1101                  'required' => true,
1102                ),
1103              ),
1104            ),'list' => array(
1105              'path' => 'v1/userProfiles/{studentId}/guardians',
1106              'httpMethod' => 'GET',
1107              'parameters' => array(
1108                'studentId' => array(
1109                  'location' => 'path',
1110                  'type' => 'string',
1111                  'required' => true,
1112                ),
1113                'pageToken' => array(
1114                  'location' => 'query',
1115                  'type' => 'string',
1116                ),
1117                'invitedEmailAddress' => array(
1118                  'location' => 'query',
1119                  'type' => 'string',
1120                ),
1121                'pageSize' => array(
1122                  'location' => 'query',
1123                  'type' => 'integer',
1124                ),
1125              ),
1126            ),
1127          )
1128        )
1129    );
1130  }
1131}
1132