[e3d4e0a] | 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 | namespace Google\Service;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for Classroom (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Manages classes, rosters, and invitations in Google Classroom.</p>
|
---|
| 27 | *
|
---|
| 28 | * <p>
|
---|
| 29 | * For more information about this service, see the API
|
---|
| 30 | * <a href="https://developers.google.com/classroom/" target="_blank">Documentation</a>
|
---|
| 31 | * </p>
|
---|
| 32 | *
|
---|
| 33 | * @author Google, Inc.
|
---|
| 34 | */
|
---|
| 35 | class Classroom extends \Google\Service
|
---|
| 36 | {
|
---|
| 37 | /** View and manage announcements in Google Classroom. */
|
---|
| 38 | const CLASSROOM_ANNOUNCEMENTS =
|
---|
| 39 | "https://www.googleapis.com/auth/classroom.announcements";
|
---|
| 40 | /** View announcements in Google Classroom. */
|
---|
| 41 | const CLASSROOM_ANNOUNCEMENTS_READONLY =
|
---|
| 42 | "https://www.googleapis.com/auth/classroom.announcements.readonly";
|
---|
| 43 | /** See, edit, create, and permanently delete your Google Classroom classes. */
|
---|
| 44 | const CLASSROOM_COURSES =
|
---|
| 45 | "https://www.googleapis.com/auth/classroom.courses";
|
---|
| 46 | /** View your Google Classroom classes. */
|
---|
| 47 | const CLASSROOM_COURSES_READONLY =
|
---|
| 48 | "https://www.googleapis.com/auth/classroom.courses.readonly";
|
---|
| 49 | /** See, create and edit coursework items including assignments, questions, and grades. */
|
---|
| 50 | const CLASSROOM_COURSEWORK_ME =
|
---|
| 51 | "https://www.googleapis.com/auth/classroom.coursework.me";
|
---|
| 52 | /** View your course work and grades in Google Classroom. */
|
---|
| 53 | const CLASSROOM_COURSEWORK_ME_READONLY =
|
---|
| 54 | "https://www.googleapis.com/auth/classroom.coursework.me.readonly";
|
---|
| 55 | /** 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. */
|
---|
| 56 | const CLASSROOM_COURSEWORK_STUDENTS =
|
---|
| 57 | "https://www.googleapis.com/auth/classroom.coursework.students";
|
---|
| 58 | /** View course work and grades for students in the Google Classroom classes you teach or administer. */
|
---|
| 59 | const CLASSROOM_COURSEWORK_STUDENTS_READONLY =
|
---|
| 60 | "https://www.googleapis.com/auth/classroom.coursework.students.readonly";
|
---|
| 61 | /** See, edit, and create classwork materials in Google Classroom. */
|
---|
| 62 | const CLASSROOM_COURSEWORKMATERIALS =
|
---|
| 63 | "https://www.googleapis.com/auth/classroom.courseworkmaterials";
|
---|
| 64 | /** See all classwork materials for your Google Classroom classes. */
|
---|
| 65 | const CLASSROOM_COURSEWORKMATERIALS_READONLY =
|
---|
| 66 | "https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly";
|
---|
| 67 | /** View your Google Classroom guardians. */
|
---|
| 68 | const CLASSROOM_GUARDIANLINKS_ME_READONLY =
|
---|
| 69 | "https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly";
|
---|
| 70 | /** View and manage guardians for students in your Google Classroom classes. */
|
---|
| 71 | const CLASSROOM_GUARDIANLINKS_STUDENTS =
|
---|
| 72 | "https://www.googleapis.com/auth/classroom.guardianlinks.students";
|
---|
| 73 | /** View guardians for students in your Google Classroom classes. */
|
---|
| 74 | const CLASSROOM_GUARDIANLINKS_STUDENTS_READONLY =
|
---|
| 75 | "https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly";
|
---|
| 76 | /** View the email addresses of people in your classes. */
|
---|
| 77 | const CLASSROOM_PROFILE_EMAILS =
|
---|
| 78 | "https://www.googleapis.com/auth/classroom.profile.emails";
|
---|
| 79 | /** View the profile photos of people in your classes. */
|
---|
| 80 | const CLASSROOM_PROFILE_PHOTOS =
|
---|
| 81 | "https://www.googleapis.com/auth/classroom.profile.photos";
|
---|
| 82 | /** Receive notifications about your Google Classroom data. */
|
---|
| 83 | const CLASSROOM_PUSH_NOTIFICATIONS =
|
---|
| 84 | "https://www.googleapis.com/auth/classroom.push-notifications";
|
---|
| 85 | /** Manage your Google Classroom class rosters. */
|
---|
| 86 | const CLASSROOM_ROSTERS =
|
---|
| 87 | "https://www.googleapis.com/auth/classroom.rosters";
|
---|
| 88 | /** View your Google Classroom class rosters. */
|
---|
| 89 | const CLASSROOM_ROSTERS_READONLY =
|
---|
| 90 | "https://www.googleapis.com/auth/classroom.rosters.readonly";
|
---|
| 91 | /** View your course work and grades in Google Classroom. */
|
---|
| 92 | const CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY =
|
---|
| 93 | "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly";
|
---|
| 94 | /** View course work and grades for students in the Google Classroom classes you teach or administer. */
|
---|
| 95 | const CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY =
|
---|
| 96 | "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly";
|
---|
| 97 | /** See, create, and edit topics in Google Classroom. */
|
---|
| 98 | const CLASSROOM_TOPICS =
|
---|
| 99 | "https://www.googleapis.com/auth/classroom.topics";
|
---|
| 100 | /** View topics in Google Classroom. */
|
---|
| 101 | const CLASSROOM_TOPICS_READONLY =
|
---|
| 102 | "https://www.googleapis.com/auth/classroom.topics.readonly";
|
---|
| 103 |
|
---|
| 104 | public $courses;
|
---|
| 105 | public $courses_aliases;
|
---|
| 106 | public $courses_announcements;
|
---|
| 107 | public $courses_announcements_addOnAttachments;
|
---|
| 108 | public $courses_courseWork;
|
---|
| 109 | public $courses_courseWork_addOnAttachments;
|
---|
| 110 | public $courses_courseWork_addOnAttachments_studentSubmissions;
|
---|
| 111 | public $courses_courseWork_rubrics;
|
---|
| 112 | public $courses_courseWork_studentSubmissions;
|
---|
| 113 | public $courses_courseWorkMaterials;
|
---|
| 114 | public $courses_courseWorkMaterials_addOnAttachments;
|
---|
| 115 | public $courses_posts;
|
---|
| 116 | public $courses_posts_addOnAttachments;
|
---|
| 117 | public $courses_posts_addOnAttachments_studentSubmissions;
|
---|
| 118 | public $courses_students;
|
---|
| 119 | public $courses_teachers;
|
---|
| 120 | public $courses_topics;
|
---|
| 121 | public $invitations;
|
---|
| 122 | public $registrations;
|
---|
| 123 | public $userProfiles;
|
---|
| 124 | public $userProfiles_guardianInvitations;
|
---|
| 125 | public $userProfiles_guardians;
|
---|
| 126 | public $rootUrlTemplate;
|
---|
| 127 |
|
---|
| 128 | /**
|
---|
| 129 | * Constructs the internal representation of the Classroom service.
|
---|
| 130 | *
|
---|
| 131 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 132 | * config array to pass to a new Client instance.
|
---|
| 133 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 134 | */
|
---|
| 135 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 136 | {
|
---|
| 137 | parent::__construct($clientOrConfig);
|
---|
| 138 | $this->rootUrl = $rootUrl ?: 'https://classroom.googleapis.com/';
|
---|
| 139 | $this->rootUrlTemplate = $rootUrl ?: 'https://classroom.UNIVERSE_DOMAIN/';
|
---|
| 140 | $this->servicePath = '';
|
---|
| 141 | $this->batchPath = 'batch';
|
---|
| 142 | $this->version = 'v1';
|
---|
| 143 | $this->serviceName = 'classroom';
|
---|
| 144 |
|
---|
| 145 | $this->courses = new Classroom\Resource\Courses(
|
---|
| 146 | $this,
|
---|
| 147 | $this->serviceName,
|
---|
| 148 | 'courses',
|
---|
| 149 | [
|
---|
| 150 | 'methods' => [
|
---|
| 151 | 'create' => [
|
---|
| 152 | 'path' => 'v1/courses',
|
---|
| 153 | 'httpMethod' => 'POST',
|
---|
| 154 | 'parameters' => [],
|
---|
| 155 | ],'delete' => [
|
---|
| 156 | 'path' => 'v1/courses/{id}',
|
---|
| 157 | 'httpMethod' => 'DELETE',
|
---|
| 158 | 'parameters' => [
|
---|
| 159 | 'id' => [
|
---|
| 160 | 'location' => 'path',
|
---|
| 161 | 'type' => 'string',
|
---|
| 162 | 'required' => true,
|
---|
| 163 | ],
|
---|
| 164 | ],
|
---|
| 165 | ],'get' => [
|
---|
| 166 | 'path' => 'v1/courses/{id}',
|
---|
| 167 | 'httpMethod' => 'GET',
|
---|
| 168 | 'parameters' => [
|
---|
| 169 | 'id' => [
|
---|
| 170 | 'location' => 'path',
|
---|
| 171 | 'type' => 'string',
|
---|
| 172 | 'required' => true,
|
---|
| 173 | ],
|
---|
| 174 | ],
|
---|
| 175 | ],'list' => [
|
---|
| 176 | 'path' => 'v1/courses',
|
---|
| 177 | 'httpMethod' => 'GET',
|
---|
| 178 | 'parameters' => [
|
---|
| 179 | 'courseStates' => [
|
---|
| 180 | 'location' => 'query',
|
---|
| 181 | 'type' => 'string',
|
---|
| 182 | 'repeated' => true,
|
---|
| 183 | ],
|
---|
| 184 | 'pageSize' => [
|
---|
| 185 | 'location' => 'query',
|
---|
| 186 | 'type' => 'integer',
|
---|
| 187 | ],
|
---|
| 188 | 'pageToken' => [
|
---|
| 189 | 'location' => 'query',
|
---|
| 190 | 'type' => 'string',
|
---|
| 191 | ],
|
---|
| 192 | 'studentId' => [
|
---|
| 193 | 'location' => 'query',
|
---|
| 194 | 'type' => 'string',
|
---|
| 195 | ],
|
---|
| 196 | 'teacherId' => [
|
---|
| 197 | 'location' => 'query',
|
---|
| 198 | 'type' => 'string',
|
---|
| 199 | ],
|
---|
| 200 | ],
|
---|
| 201 | ],'patch' => [
|
---|
| 202 | 'path' => 'v1/courses/{id}',
|
---|
| 203 | 'httpMethod' => 'PATCH',
|
---|
| 204 | 'parameters' => [
|
---|
| 205 | 'id' => [
|
---|
| 206 | 'location' => 'path',
|
---|
| 207 | 'type' => 'string',
|
---|
| 208 | 'required' => true,
|
---|
| 209 | ],
|
---|
| 210 | 'updateMask' => [
|
---|
| 211 | 'location' => 'query',
|
---|
| 212 | 'type' => 'string',
|
---|
| 213 | ],
|
---|
| 214 | ],
|
---|
| 215 | ],'update' => [
|
---|
| 216 | 'path' => 'v1/courses/{id}',
|
---|
| 217 | 'httpMethod' => 'PUT',
|
---|
| 218 | 'parameters' => [
|
---|
| 219 | 'id' => [
|
---|
| 220 | 'location' => 'path',
|
---|
| 221 | 'type' => 'string',
|
---|
| 222 | 'required' => true,
|
---|
| 223 | ],
|
---|
| 224 | ],
|
---|
| 225 | ],
|
---|
| 226 | ]
|
---|
| 227 | ]
|
---|
| 228 | );
|
---|
| 229 | $this->courses_aliases = new Classroom\Resource\CoursesAliases(
|
---|
| 230 | $this,
|
---|
| 231 | $this->serviceName,
|
---|
| 232 | 'aliases',
|
---|
| 233 | [
|
---|
| 234 | 'methods' => [
|
---|
| 235 | 'create' => [
|
---|
| 236 | 'path' => 'v1/courses/{courseId}/aliases',
|
---|
| 237 | 'httpMethod' => 'POST',
|
---|
| 238 | 'parameters' => [
|
---|
| 239 | 'courseId' => [
|
---|
| 240 | 'location' => 'path',
|
---|
| 241 | 'type' => 'string',
|
---|
| 242 | 'required' => true,
|
---|
| 243 | ],
|
---|
| 244 | ],
|
---|
| 245 | ],'delete' => [
|
---|
| 246 | 'path' => 'v1/courses/{courseId}/aliases/{alias}',
|
---|
| 247 | 'httpMethod' => 'DELETE',
|
---|
| 248 | 'parameters' => [
|
---|
| 249 | 'courseId' => [
|
---|
| 250 | 'location' => 'path',
|
---|
| 251 | 'type' => 'string',
|
---|
| 252 | 'required' => true,
|
---|
| 253 | ],
|
---|
| 254 | 'alias' => [
|
---|
| 255 | 'location' => 'path',
|
---|
| 256 | 'type' => 'string',
|
---|
| 257 | 'required' => true,
|
---|
| 258 | ],
|
---|
| 259 | ],
|
---|
| 260 | ],'list' => [
|
---|
| 261 | 'path' => 'v1/courses/{courseId}/aliases',
|
---|
| 262 | 'httpMethod' => 'GET',
|
---|
| 263 | 'parameters' => [
|
---|
| 264 | 'courseId' => [
|
---|
| 265 | 'location' => 'path',
|
---|
| 266 | 'type' => 'string',
|
---|
| 267 | 'required' => true,
|
---|
| 268 | ],
|
---|
| 269 | 'pageSize' => [
|
---|
| 270 | 'location' => 'query',
|
---|
| 271 | 'type' => 'integer',
|
---|
| 272 | ],
|
---|
| 273 | 'pageToken' => [
|
---|
| 274 | 'location' => 'query',
|
---|
| 275 | 'type' => 'string',
|
---|
| 276 | ],
|
---|
| 277 | ],
|
---|
| 278 | ],
|
---|
| 279 | ]
|
---|
| 280 | ]
|
---|
| 281 | );
|
---|
| 282 | $this->courses_announcements = new Classroom\Resource\CoursesAnnouncements(
|
---|
| 283 | $this,
|
---|
| 284 | $this->serviceName,
|
---|
| 285 | 'announcements',
|
---|
| 286 | [
|
---|
| 287 | 'methods' => [
|
---|
| 288 | 'create' => [
|
---|
| 289 | 'path' => 'v1/courses/{courseId}/announcements',
|
---|
| 290 | 'httpMethod' => 'POST',
|
---|
| 291 | 'parameters' => [
|
---|
| 292 | 'courseId' => [
|
---|
| 293 | 'location' => 'path',
|
---|
| 294 | 'type' => 'string',
|
---|
| 295 | 'required' => true,
|
---|
| 296 | ],
|
---|
| 297 | ],
|
---|
| 298 | ],'delete' => [
|
---|
| 299 | 'path' => 'v1/courses/{courseId}/announcements/{id}',
|
---|
| 300 | 'httpMethod' => 'DELETE',
|
---|
| 301 | 'parameters' => [
|
---|
| 302 | 'courseId' => [
|
---|
| 303 | 'location' => 'path',
|
---|
| 304 | 'type' => 'string',
|
---|
| 305 | 'required' => true,
|
---|
| 306 | ],
|
---|
| 307 | 'id' => [
|
---|
| 308 | 'location' => 'path',
|
---|
| 309 | 'type' => 'string',
|
---|
| 310 | 'required' => true,
|
---|
| 311 | ],
|
---|
| 312 | ],
|
---|
| 313 | ],'get' => [
|
---|
| 314 | 'path' => 'v1/courses/{courseId}/announcements/{id}',
|
---|
| 315 | 'httpMethod' => 'GET',
|
---|
| 316 | 'parameters' => [
|
---|
| 317 | 'courseId' => [
|
---|
| 318 | 'location' => 'path',
|
---|
| 319 | 'type' => 'string',
|
---|
| 320 | 'required' => true,
|
---|
| 321 | ],
|
---|
| 322 | 'id' => [
|
---|
| 323 | 'location' => 'path',
|
---|
| 324 | 'type' => 'string',
|
---|
| 325 | 'required' => true,
|
---|
| 326 | ],
|
---|
| 327 | ],
|
---|
| 328 | ],'getAddOnContext' => [
|
---|
| 329 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnContext',
|
---|
| 330 | 'httpMethod' => 'GET',
|
---|
| 331 | 'parameters' => [
|
---|
| 332 | 'courseId' => [
|
---|
| 333 | 'location' => 'path',
|
---|
| 334 | 'type' => 'string',
|
---|
| 335 | 'required' => true,
|
---|
| 336 | ],
|
---|
| 337 | 'itemId' => [
|
---|
| 338 | 'location' => 'path',
|
---|
| 339 | 'type' => 'string',
|
---|
| 340 | 'required' => true,
|
---|
| 341 | ],
|
---|
| 342 | 'addOnToken' => [
|
---|
| 343 | 'location' => 'query',
|
---|
| 344 | 'type' => 'string',
|
---|
| 345 | ],
|
---|
| 346 | 'attachmentId' => [
|
---|
| 347 | 'location' => 'query',
|
---|
| 348 | 'type' => 'string',
|
---|
| 349 | ],
|
---|
| 350 | 'postId' => [
|
---|
| 351 | 'location' => 'query',
|
---|
| 352 | 'type' => 'string',
|
---|
| 353 | ],
|
---|
| 354 | ],
|
---|
| 355 | ],'list' => [
|
---|
| 356 | 'path' => 'v1/courses/{courseId}/announcements',
|
---|
| 357 | 'httpMethod' => 'GET',
|
---|
| 358 | 'parameters' => [
|
---|
| 359 | 'courseId' => [
|
---|
| 360 | 'location' => 'path',
|
---|
| 361 | 'type' => 'string',
|
---|
| 362 | 'required' => true,
|
---|
| 363 | ],
|
---|
| 364 | 'announcementStates' => [
|
---|
| 365 | 'location' => 'query',
|
---|
| 366 | 'type' => 'string',
|
---|
| 367 | 'repeated' => true,
|
---|
| 368 | ],
|
---|
| 369 | 'orderBy' => [
|
---|
| 370 | 'location' => 'query',
|
---|
| 371 | 'type' => 'string',
|
---|
| 372 | ],
|
---|
| 373 | 'pageSize' => [
|
---|
| 374 | 'location' => 'query',
|
---|
| 375 | 'type' => 'integer',
|
---|
| 376 | ],
|
---|
| 377 | 'pageToken' => [
|
---|
| 378 | 'location' => 'query',
|
---|
| 379 | 'type' => 'string',
|
---|
| 380 | ],
|
---|
| 381 | ],
|
---|
| 382 | ],'modifyAssignees' => [
|
---|
| 383 | 'path' => 'v1/courses/{courseId}/announcements/{id}:modifyAssignees',
|
---|
| 384 | 'httpMethod' => 'POST',
|
---|
| 385 | 'parameters' => [
|
---|
| 386 | 'courseId' => [
|
---|
| 387 | 'location' => 'path',
|
---|
| 388 | 'type' => 'string',
|
---|
| 389 | 'required' => true,
|
---|
| 390 | ],
|
---|
| 391 | 'id' => [
|
---|
| 392 | 'location' => 'path',
|
---|
| 393 | 'type' => 'string',
|
---|
| 394 | 'required' => true,
|
---|
| 395 | ],
|
---|
| 396 | ],
|
---|
| 397 | ],'patch' => [
|
---|
| 398 | 'path' => 'v1/courses/{courseId}/announcements/{id}',
|
---|
| 399 | 'httpMethod' => 'PATCH',
|
---|
| 400 | 'parameters' => [
|
---|
| 401 | 'courseId' => [
|
---|
| 402 | 'location' => 'path',
|
---|
| 403 | 'type' => 'string',
|
---|
| 404 | 'required' => true,
|
---|
| 405 | ],
|
---|
| 406 | 'id' => [
|
---|
| 407 | 'location' => 'path',
|
---|
| 408 | 'type' => 'string',
|
---|
| 409 | 'required' => true,
|
---|
| 410 | ],
|
---|
| 411 | 'updateMask' => [
|
---|
| 412 | 'location' => 'query',
|
---|
| 413 | 'type' => 'string',
|
---|
| 414 | ],
|
---|
| 415 | ],
|
---|
| 416 | ],
|
---|
| 417 | ]
|
---|
| 418 | ]
|
---|
| 419 | );
|
---|
| 420 | $this->courses_announcements_addOnAttachments = new Classroom\Resource\CoursesAnnouncementsAddOnAttachments(
|
---|
| 421 | $this,
|
---|
| 422 | $this->serviceName,
|
---|
| 423 | 'addOnAttachments',
|
---|
| 424 | [
|
---|
| 425 | 'methods' => [
|
---|
| 426 | 'create' => [
|
---|
| 427 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnAttachments',
|
---|
| 428 | 'httpMethod' => 'POST',
|
---|
| 429 | 'parameters' => [
|
---|
| 430 | 'courseId' => [
|
---|
| 431 | 'location' => 'path',
|
---|
| 432 | 'type' => 'string',
|
---|
| 433 | 'required' => true,
|
---|
| 434 | ],
|
---|
| 435 | 'itemId' => [
|
---|
| 436 | 'location' => 'path',
|
---|
| 437 | 'type' => 'string',
|
---|
| 438 | 'required' => true,
|
---|
| 439 | ],
|
---|
| 440 | 'addOnToken' => [
|
---|
| 441 | 'location' => 'query',
|
---|
| 442 | 'type' => 'string',
|
---|
| 443 | ],
|
---|
| 444 | 'postId' => [
|
---|
| 445 | 'location' => 'query',
|
---|
| 446 | 'type' => 'string',
|
---|
| 447 | ],
|
---|
| 448 | ],
|
---|
| 449 | ],'delete' => [
|
---|
| 450 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 451 | 'httpMethod' => 'DELETE',
|
---|
| 452 | 'parameters' => [
|
---|
| 453 | 'courseId' => [
|
---|
| 454 | 'location' => 'path',
|
---|
| 455 | 'type' => 'string',
|
---|
| 456 | 'required' => true,
|
---|
| 457 | ],
|
---|
| 458 | 'itemId' => [
|
---|
| 459 | 'location' => 'path',
|
---|
| 460 | 'type' => 'string',
|
---|
| 461 | 'required' => true,
|
---|
| 462 | ],
|
---|
| 463 | 'attachmentId' => [
|
---|
| 464 | 'location' => 'path',
|
---|
| 465 | 'type' => 'string',
|
---|
| 466 | 'required' => true,
|
---|
| 467 | ],
|
---|
| 468 | 'postId' => [
|
---|
| 469 | 'location' => 'query',
|
---|
| 470 | 'type' => 'string',
|
---|
| 471 | ],
|
---|
| 472 | ],
|
---|
| 473 | ],'get' => [
|
---|
| 474 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 475 | 'httpMethod' => 'GET',
|
---|
| 476 | 'parameters' => [
|
---|
| 477 | 'courseId' => [
|
---|
| 478 | 'location' => 'path',
|
---|
| 479 | 'type' => 'string',
|
---|
| 480 | 'required' => true,
|
---|
| 481 | ],
|
---|
| 482 | 'itemId' => [
|
---|
| 483 | 'location' => 'path',
|
---|
| 484 | 'type' => 'string',
|
---|
| 485 | 'required' => true,
|
---|
| 486 | ],
|
---|
| 487 | 'attachmentId' => [
|
---|
| 488 | 'location' => 'path',
|
---|
| 489 | 'type' => 'string',
|
---|
| 490 | 'required' => true,
|
---|
| 491 | ],
|
---|
| 492 | 'postId' => [
|
---|
| 493 | 'location' => 'query',
|
---|
| 494 | 'type' => 'string',
|
---|
| 495 | ],
|
---|
| 496 | ],
|
---|
| 497 | ],'list' => [
|
---|
| 498 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnAttachments',
|
---|
| 499 | 'httpMethod' => 'GET',
|
---|
| 500 | 'parameters' => [
|
---|
| 501 | 'courseId' => [
|
---|
| 502 | 'location' => 'path',
|
---|
| 503 | 'type' => 'string',
|
---|
| 504 | 'required' => true,
|
---|
| 505 | ],
|
---|
| 506 | 'itemId' => [
|
---|
| 507 | 'location' => 'path',
|
---|
| 508 | 'type' => 'string',
|
---|
| 509 | 'required' => true,
|
---|
| 510 | ],
|
---|
| 511 | 'pageSize' => [
|
---|
| 512 | 'location' => 'query',
|
---|
| 513 | 'type' => 'integer',
|
---|
| 514 | ],
|
---|
| 515 | 'pageToken' => [
|
---|
| 516 | 'location' => 'query',
|
---|
| 517 | 'type' => 'string',
|
---|
| 518 | ],
|
---|
| 519 | 'postId' => [
|
---|
| 520 | 'location' => 'query',
|
---|
| 521 | 'type' => 'string',
|
---|
| 522 | ],
|
---|
| 523 | ],
|
---|
| 524 | ],'patch' => [
|
---|
| 525 | 'path' => 'v1/courses/{courseId}/announcements/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 526 | 'httpMethod' => 'PATCH',
|
---|
| 527 | 'parameters' => [
|
---|
| 528 | 'courseId' => [
|
---|
| 529 | 'location' => 'path',
|
---|
| 530 | 'type' => 'string',
|
---|
| 531 | 'required' => true,
|
---|
| 532 | ],
|
---|
| 533 | 'itemId' => [
|
---|
| 534 | 'location' => 'path',
|
---|
| 535 | 'type' => 'string',
|
---|
| 536 | 'required' => true,
|
---|
| 537 | ],
|
---|
| 538 | 'attachmentId' => [
|
---|
| 539 | 'location' => 'path',
|
---|
| 540 | 'type' => 'string',
|
---|
| 541 | 'required' => true,
|
---|
| 542 | ],
|
---|
| 543 | 'postId' => [
|
---|
| 544 | 'location' => 'query',
|
---|
| 545 | 'type' => 'string',
|
---|
| 546 | ],
|
---|
| 547 | 'updateMask' => [
|
---|
| 548 | 'location' => 'query',
|
---|
| 549 | 'type' => 'string',
|
---|
| 550 | ],
|
---|
| 551 | ],
|
---|
| 552 | ],
|
---|
| 553 | ]
|
---|
| 554 | ]
|
---|
| 555 | );
|
---|
| 556 | $this->courses_courseWork = new Classroom\Resource\CoursesCourseWork(
|
---|
| 557 | $this,
|
---|
| 558 | $this->serviceName,
|
---|
| 559 | 'courseWork',
|
---|
| 560 | [
|
---|
| 561 | 'methods' => [
|
---|
| 562 | 'create' => [
|
---|
| 563 | 'path' => 'v1/courses/{courseId}/courseWork',
|
---|
| 564 | 'httpMethod' => 'POST',
|
---|
| 565 | 'parameters' => [
|
---|
| 566 | 'courseId' => [
|
---|
| 567 | 'location' => 'path',
|
---|
| 568 | 'type' => 'string',
|
---|
| 569 | 'required' => true,
|
---|
| 570 | ],
|
---|
| 571 | ],
|
---|
| 572 | ],'delete' => [
|
---|
| 573 | 'path' => 'v1/courses/{courseId}/courseWork/{id}',
|
---|
| 574 | 'httpMethod' => 'DELETE',
|
---|
| 575 | 'parameters' => [
|
---|
| 576 | 'courseId' => [
|
---|
| 577 | 'location' => 'path',
|
---|
| 578 | 'type' => 'string',
|
---|
| 579 | 'required' => true,
|
---|
| 580 | ],
|
---|
| 581 | 'id' => [
|
---|
| 582 | 'location' => 'path',
|
---|
| 583 | 'type' => 'string',
|
---|
| 584 | 'required' => true,
|
---|
| 585 | ],
|
---|
| 586 | ],
|
---|
| 587 | ],'get' => [
|
---|
| 588 | 'path' => 'v1/courses/{courseId}/courseWork/{id}',
|
---|
| 589 | 'httpMethod' => 'GET',
|
---|
| 590 | 'parameters' => [
|
---|
| 591 | 'courseId' => [
|
---|
| 592 | 'location' => 'path',
|
---|
| 593 | 'type' => 'string',
|
---|
| 594 | 'required' => true,
|
---|
| 595 | ],
|
---|
| 596 | 'id' => [
|
---|
| 597 | 'location' => 'path',
|
---|
| 598 | 'type' => 'string',
|
---|
| 599 | 'required' => true,
|
---|
| 600 | ],
|
---|
| 601 | ],
|
---|
| 602 | ],'getAddOnContext' => [
|
---|
| 603 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnContext',
|
---|
| 604 | 'httpMethod' => 'GET',
|
---|
| 605 | 'parameters' => [
|
---|
| 606 | 'courseId' => [
|
---|
| 607 | 'location' => 'path',
|
---|
| 608 | 'type' => 'string',
|
---|
| 609 | 'required' => true,
|
---|
| 610 | ],
|
---|
| 611 | 'itemId' => [
|
---|
| 612 | 'location' => 'path',
|
---|
| 613 | 'type' => 'string',
|
---|
| 614 | 'required' => true,
|
---|
| 615 | ],
|
---|
| 616 | 'addOnToken' => [
|
---|
| 617 | 'location' => 'query',
|
---|
| 618 | 'type' => 'string',
|
---|
| 619 | ],
|
---|
| 620 | 'attachmentId' => [
|
---|
| 621 | 'location' => 'query',
|
---|
| 622 | 'type' => 'string',
|
---|
| 623 | ],
|
---|
| 624 | 'postId' => [
|
---|
| 625 | 'location' => 'query',
|
---|
| 626 | 'type' => 'string',
|
---|
| 627 | ],
|
---|
| 628 | ],
|
---|
| 629 | ],'list' => [
|
---|
| 630 | 'path' => 'v1/courses/{courseId}/courseWork',
|
---|
| 631 | 'httpMethod' => 'GET',
|
---|
| 632 | 'parameters' => [
|
---|
| 633 | 'courseId' => [
|
---|
| 634 | 'location' => 'path',
|
---|
| 635 | 'type' => 'string',
|
---|
| 636 | 'required' => true,
|
---|
| 637 | ],
|
---|
| 638 | 'courseWorkStates' => [
|
---|
| 639 | 'location' => 'query',
|
---|
| 640 | 'type' => 'string',
|
---|
| 641 | 'repeated' => true,
|
---|
| 642 | ],
|
---|
| 643 | 'orderBy' => [
|
---|
| 644 | 'location' => 'query',
|
---|
| 645 | 'type' => 'string',
|
---|
| 646 | ],
|
---|
| 647 | 'pageSize' => [
|
---|
| 648 | 'location' => 'query',
|
---|
| 649 | 'type' => 'integer',
|
---|
| 650 | ],
|
---|
| 651 | 'pageToken' => [
|
---|
| 652 | 'location' => 'query',
|
---|
| 653 | 'type' => 'string',
|
---|
| 654 | ],
|
---|
| 655 | ],
|
---|
| 656 | ],'modifyAssignees' => [
|
---|
| 657 | 'path' => 'v1/courses/{courseId}/courseWork/{id}:modifyAssignees',
|
---|
| 658 | 'httpMethod' => 'POST',
|
---|
| 659 | 'parameters' => [
|
---|
| 660 | 'courseId' => [
|
---|
| 661 | 'location' => 'path',
|
---|
| 662 | 'type' => 'string',
|
---|
| 663 | 'required' => true,
|
---|
| 664 | ],
|
---|
| 665 | 'id' => [
|
---|
| 666 | 'location' => 'path',
|
---|
| 667 | 'type' => 'string',
|
---|
| 668 | 'required' => true,
|
---|
| 669 | ],
|
---|
| 670 | ],
|
---|
| 671 | ],'patch' => [
|
---|
| 672 | 'path' => 'v1/courses/{courseId}/courseWork/{id}',
|
---|
| 673 | 'httpMethod' => 'PATCH',
|
---|
| 674 | 'parameters' => [
|
---|
| 675 | 'courseId' => [
|
---|
| 676 | 'location' => 'path',
|
---|
| 677 | 'type' => 'string',
|
---|
| 678 | 'required' => true,
|
---|
| 679 | ],
|
---|
| 680 | 'id' => [
|
---|
| 681 | 'location' => 'path',
|
---|
| 682 | 'type' => 'string',
|
---|
| 683 | 'required' => true,
|
---|
| 684 | ],
|
---|
| 685 | 'updateMask' => [
|
---|
| 686 | 'location' => 'query',
|
---|
| 687 | 'type' => 'string',
|
---|
| 688 | ],
|
---|
| 689 | ],
|
---|
| 690 | ],'updateRubric' => [
|
---|
| 691 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubric',
|
---|
| 692 | 'httpMethod' => 'PATCH',
|
---|
| 693 | 'parameters' => [
|
---|
| 694 | 'courseId' => [
|
---|
| 695 | 'location' => 'path',
|
---|
| 696 | 'type' => 'string',
|
---|
| 697 | 'required' => true,
|
---|
| 698 | ],
|
---|
| 699 | 'courseWorkId' => [
|
---|
| 700 | 'location' => 'path',
|
---|
| 701 | 'type' => 'string',
|
---|
| 702 | 'required' => true,
|
---|
| 703 | ],
|
---|
| 704 | 'id' => [
|
---|
| 705 | 'location' => 'query',
|
---|
| 706 | 'type' => 'string',
|
---|
| 707 | ],
|
---|
| 708 | 'updateMask' => [
|
---|
| 709 | 'location' => 'query',
|
---|
| 710 | 'type' => 'string',
|
---|
| 711 | ],
|
---|
| 712 | ],
|
---|
| 713 | ],
|
---|
| 714 | ]
|
---|
| 715 | ]
|
---|
| 716 | );
|
---|
| 717 | $this->courses_courseWork_addOnAttachments = new Classroom\Resource\CoursesCourseWorkAddOnAttachments(
|
---|
| 718 | $this,
|
---|
| 719 | $this->serviceName,
|
---|
| 720 | 'addOnAttachments',
|
---|
| 721 | [
|
---|
| 722 | 'methods' => [
|
---|
| 723 | 'create' => [
|
---|
| 724 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments',
|
---|
| 725 | 'httpMethod' => 'POST',
|
---|
| 726 | 'parameters' => [
|
---|
| 727 | 'courseId' => [
|
---|
| 728 | 'location' => 'path',
|
---|
| 729 | 'type' => 'string',
|
---|
| 730 | 'required' => true,
|
---|
| 731 | ],
|
---|
| 732 | 'itemId' => [
|
---|
| 733 | 'location' => 'path',
|
---|
| 734 | 'type' => 'string',
|
---|
| 735 | 'required' => true,
|
---|
| 736 | ],
|
---|
| 737 | 'addOnToken' => [
|
---|
| 738 | 'location' => 'query',
|
---|
| 739 | 'type' => 'string',
|
---|
| 740 | ],
|
---|
| 741 | 'postId' => [
|
---|
| 742 | 'location' => 'query',
|
---|
| 743 | 'type' => 'string',
|
---|
| 744 | ],
|
---|
| 745 | ],
|
---|
| 746 | ],'delete' => [
|
---|
| 747 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 748 | 'httpMethod' => 'DELETE',
|
---|
| 749 | 'parameters' => [
|
---|
| 750 | 'courseId' => [
|
---|
| 751 | 'location' => 'path',
|
---|
| 752 | 'type' => 'string',
|
---|
| 753 | 'required' => true,
|
---|
| 754 | ],
|
---|
| 755 | 'itemId' => [
|
---|
| 756 | 'location' => 'path',
|
---|
| 757 | 'type' => 'string',
|
---|
| 758 | 'required' => true,
|
---|
| 759 | ],
|
---|
| 760 | 'attachmentId' => [
|
---|
| 761 | 'location' => 'path',
|
---|
| 762 | 'type' => 'string',
|
---|
| 763 | 'required' => true,
|
---|
| 764 | ],
|
---|
| 765 | 'postId' => [
|
---|
| 766 | 'location' => 'query',
|
---|
| 767 | 'type' => 'string',
|
---|
| 768 | ],
|
---|
| 769 | ],
|
---|
| 770 | ],'get' => [
|
---|
| 771 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 772 | 'httpMethod' => 'GET',
|
---|
| 773 | 'parameters' => [
|
---|
| 774 | 'courseId' => [
|
---|
| 775 | 'location' => 'path',
|
---|
| 776 | 'type' => 'string',
|
---|
| 777 | 'required' => true,
|
---|
| 778 | ],
|
---|
| 779 | 'itemId' => [
|
---|
| 780 | 'location' => 'path',
|
---|
| 781 | 'type' => 'string',
|
---|
| 782 | 'required' => true,
|
---|
| 783 | ],
|
---|
| 784 | 'attachmentId' => [
|
---|
| 785 | 'location' => 'path',
|
---|
| 786 | 'type' => 'string',
|
---|
| 787 | 'required' => true,
|
---|
| 788 | ],
|
---|
| 789 | 'postId' => [
|
---|
| 790 | 'location' => 'query',
|
---|
| 791 | 'type' => 'string',
|
---|
| 792 | ],
|
---|
| 793 | ],
|
---|
| 794 | ],'list' => [
|
---|
| 795 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments',
|
---|
| 796 | 'httpMethod' => 'GET',
|
---|
| 797 | 'parameters' => [
|
---|
| 798 | 'courseId' => [
|
---|
| 799 | 'location' => 'path',
|
---|
| 800 | 'type' => 'string',
|
---|
| 801 | 'required' => true,
|
---|
| 802 | ],
|
---|
| 803 | 'itemId' => [
|
---|
| 804 | 'location' => 'path',
|
---|
| 805 | 'type' => 'string',
|
---|
| 806 | 'required' => true,
|
---|
| 807 | ],
|
---|
| 808 | 'pageSize' => [
|
---|
| 809 | 'location' => 'query',
|
---|
| 810 | 'type' => 'integer',
|
---|
| 811 | ],
|
---|
| 812 | 'pageToken' => [
|
---|
| 813 | 'location' => 'query',
|
---|
| 814 | 'type' => 'string',
|
---|
| 815 | ],
|
---|
| 816 | 'postId' => [
|
---|
| 817 | 'location' => 'query',
|
---|
| 818 | 'type' => 'string',
|
---|
| 819 | ],
|
---|
| 820 | ],
|
---|
| 821 | ],'patch' => [
|
---|
| 822 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 823 | 'httpMethod' => 'PATCH',
|
---|
| 824 | 'parameters' => [
|
---|
| 825 | 'courseId' => [
|
---|
| 826 | 'location' => 'path',
|
---|
| 827 | 'type' => 'string',
|
---|
| 828 | 'required' => true,
|
---|
| 829 | ],
|
---|
| 830 | 'itemId' => [
|
---|
| 831 | 'location' => 'path',
|
---|
| 832 | 'type' => 'string',
|
---|
| 833 | 'required' => true,
|
---|
| 834 | ],
|
---|
| 835 | 'attachmentId' => [
|
---|
| 836 | 'location' => 'path',
|
---|
| 837 | 'type' => 'string',
|
---|
| 838 | 'required' => true,
|
---|
| 839 | ],
|
---|
| 840 | 'postId' => [
|
---|
| 841 | 'location' => 'query',
|
---|
| 842 | 'type' => 'string',
|
---|
| 843 | ],
|
---|
| 844 | 'updateMask' => [
|
---|
| 845 | 'location' => 'query',
|
---|
| 846 | 'type' => 'string',
|
---|
| 847 | ],
|
---|
| 848 | ],
|
---|
| 849 | ],
|
---|
| 850 | ]
|
---|
| 851 | ]
|
---|
| 852 | );
|
---|
| 853 | $this->courses_courseWork_addOnAttachments_studentSubmissions = new Classroom\Resource\CoursesCourseWorkAddOnAttachmentsStudentSubmissions(
|
---|
| 854 | $this,
|
---|
| 855 | $this->serviceName,
|
---|
| 856 | 'studentSubmissions',
|
---|
| 857 | [
|
---|
| 858 | 'methods' => [
|
---|
| 859 | 'get' => [
|
---|
| 860 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}',
|
---|
| 861 | 'httpMethod' => 'GET',
|
---|
| 862 | 'parameters' => [
|
---|
| 863 | 'courseId' => [
|
---|
| 864 | 'location' => 'path',
|
---|
| 865 | 'type' => 'string',
|
---|
| 866 | 'required' => true,
|
---|
| 867 | ],
|
---|
| 868 | 'itemId' => [
|
---|
| 869 | 'location' => 'path',
|
---|
| 870 | 'type' => 'string',
|
---|
| 871 | 'required' => true,
|
---|
| 872 | ],
|
---|
| 873 | 'attachmentId' => [
|
---|
| 874 | 'location' => 'path',
|
---|
| 875 | 'type' => 'string',
|
---|
| 876 | 'required' => true,
|
---|
| 877 | ],
|
---|
| 878 | 'submissionId' => [
|
---|
| 879 | 'location' => 'path',
|
---|
| 880 | 'type' => 'string',
|
---|
| 881 | 'required' => true,
|
---|
| 882 | ],
|
---|
| 883 | 'postId' => [
|
---|
| 884 | 'location' => 'query',
|
---|
| 885 | 'type' => 'string',
|
---|
| 886 | ],
|
---|
| 887 | ],
|
---|
| 888 | ],'patch' => [
|
---|
| 889 | 'path' => 'v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}',
|
---|
| 890 | 'httpMethod' => 'PATCH',
|
---|
| 891 | 'parameters' => [
|
---|
| 892 | 'courseId' => [
|
---|
| 893 | 'location' => 'path',
|
---|
| 894 | 'type' => 'string',
|
---|
| 895 | 'required' => true,
|
---|
| 896 | ],
|
---|
| 897 | 'itemId' => [
|
---|
| 898 | 'location' => 'path',
|
---|
| 899 | 'type' => 'string',
|
---|
| 900 | 'required' => true,
|
---|
| 901 | ],
|
---|
| 902 | 'attachmentId' => [
|
---|
| 903 | 'location' => 'path',
|
---|
| 904 | 'type' => 'string',
|
---|
| 905 | 'required' => true,
|
---|
| 906 | ],
|
---|
| 907 | 'submissionId' => [
|
---|
| 908 | 'location' => 'path',
|
---|
| 909 | 'type' => 'string',
|
---|
| 910 | 'required' => true,
|
---|
| 911 | ],
|
---|
| 912 | 'postId' => [
|
---|
| 913 | 'location' => 'query',
|
---|
| 914 | 'type' => 'string',
|
---|
| 915 | ],
|
---|
| 916 | 'updateMask' => [
|
---|
| 917 | 'location' => 'query',
|
---|
| 918 | 'type' => 'string',
|
---|
| 919 | ],
|
---|
| 920 | ],
|
---|
| 921 | ],
|
---|
| 922 | ]
|
---|
| 923 | ]
|
---|
| 924 | );
|
---|
| 925 | $this->courses_courseWork_rubrics = new Classroom\Resource\CoursesCourseWorkRubrics(
|
---|
| 926 | $this,
|
---|
| 927 | $this->serviceName,
|
---|
| 928 | 'rubrics',
|
---|
| 929 | [
|
---|
| 930 | 'methods' => [
|
---|
| 931 | 'create' => [
|
---|
| 932 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics',
|
---|
| 933 | 'httpMethod' => 'POST',
|
---|
| 934 | 'parameters' => [
|
---|
| 935 | 'courseId' => [
|
---|
| 936 | 'location' => 'path',
|
---|
| 937 | 'type' => 'string',
|
---|
| 938 | 'required' => true,
|
---|
| 939 | ],
|
---|
| 940 | 'courseWorkId' => [
|
---|
| 941 | 'location' => 'path',
|
---|
| 942 | 'type' => 'string',
|
---|
| 943 | 'required' => true,
|
---|
| 944 | ],
|
---|
| 945 | ],
|
---|
| 946 | ],'delete' => [
|
---|
| 947 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}',
|
---|
| 948 | 'httpMethod' => 'DELETE',
|
---|
| 949 | 'parameters' => [
|
---|
| 950 | 'courseId' => [
|
---|
| 951 | 'location' => 'path',
|
---|
| 952 | 'type' => 'string',
|
---|
| 953 | 'required' => true,
|
---|
| 954 | ],
|
---|
| 955 | 'courseWorkId' => [
|
---|
| 956 | 'location' => 'path',
|
---|
| 957 | 'type' => 'string',
|
---|
| 958 | 'required' => true,
|
---|
| 959 | ],
|
---|
| 960 | 'id' => [
|
---|
| 961 | 'location' => 'path',
|
---|
| 962 | 'type' => 'string',
|
---|
| 963 | 'required' => true,
|
---|
| 964 | ],
|
---|
| 965 | ],
|
---|
| 966 | ],'get' => [
|
---|
| 967 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}',
|
---|
| 968 | 'httpMethod' => 'GET',
|
---|
| 969 | 'parameters' => [
|
---|
| 970 | 'courseId' => [
|
---|
| 971 | 'location' => 'path',
|
---|
| 972 | 'type' => 'string',
|
---|
| 973 | 'required' => true,
|
---|
| 974 | ],
|
---|
| 975 | 'courseWorkId' => [
|
---|
| 976 | 'location' => 'path',
|
---|
| 977 | 'type' => 'string',
|
---|
| 978 | 'required' => true,
|
---|
| 979 | ],
|
---|
| 980 | 'id' => [
|
---|
| 981 | 'location' => 'path',
|
---|
| 982 | 'type' => 'string',
|
---|
| 983 | 'required' => true,
|
---|
| 984 | ],
|
---|
| 985 | ],
|
---|
| 986 | ],'list' => [
|
---|
| 987 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics',
|
---|
| 988 | 'httpMethod' => 'GET',
|
---|
| 989 | 'parameters' => [
|
---|
| 990 | 'courseId' => [
|
---|
| 991 | 'location' => 'path',
|
---|
| 992 | 'type' => 'string',
|
---|
| 993 | 'required' => true,
|
---|
| 994 | ],
|
---|
| 995 | 'courseWorkId' => [
|
---|
| 996 | 'location' => 'path',
|
---|
| 997 | 'type' => 'string',
|
---|
| 998 | 'required' => true,
|
---|
| 999 | ],
|
---|
| 1000 | 'pageSize' => [
|
---|
| 1001 | 'location' => 'query',
|
---|
| 1002 | 'type' => 'integer',
|
---|
| 1003 | ],
|
---|
| 1004 | 'pageToken' => [
|
---|
| 1005 | 'location' => 'query',
|
---|
| 1006 | 'type' => 'string',
|
---|
| 1007 | ],
|
---|
| 1008 | ],
|
---|
| 1009 | ],'patch' => [
|
---|
| 1010 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}',
|
---|
| 1011 | 'httpMethod' => 'PATCH',
|
---|
| 1012 | 'parameters' => [
|
---|
| 1013 | 'courseId' => [
|
---|
| 1014 | 'location' => 'path',
|
---|
| 1015 | 'type' => 'string',
|
---|
| 1016 | 'required' => true,
|
---|
| 1017 | ],
|
---|
| 1018 | 'courseWorkId' => [
|
---|
| 1019 | 'location' => 'path',
|
---|
| 1020 | 'type' => 'string',
|
---|
| 1021 | 'required' => true,
|
---|
| 1022 | ],
|
---|
| 1023 | 'id' => [
|
---|
| 1024 | 'location' => 'path',
|
---|
| 1025 | 'type' => 'string',
|
---|
| 1026 | 'required' => true,
|
---|
| 1027 | ],
|
---|
| 1028 | 'updateMask' => [
|
---|
| 1029 | 'location' => 'query',
|
---|
| 1030 | 'type' => 'string',
|
---|
| 1031 | ],
|
---|
| 1032 | ],
|
---|
| 1033 | ],
|
---|
| 1034 | ]
|
---|
| 1035 | ]
|
---|
| 1036 | );
|
---|
| 1037 | $this->courses_courseWork_studentSubmissions = new Classroom\Resource\CoursesCourseWorkStudentSubmissions(
|
---|
| 1038 | $this,
|
---|
| 1039 | $this->serviceName,
|
---|
| 1040 | 'studentSubmissions',
|
---|
| 1041 | [
|
---|
| 1042 | 'methods' => [
|
---|
| 1043 | 'get' => [
|
---|
| 1044 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
|
---|
| 1045 | 'httpMethod' => 'GET',
|
---|
| 1046 | 'parameters' => [
|
---|
| 1047 | 'courseId' => [
|
---|
| 1048 | 'location' => 'path',
|
---|
| 1049 | 'type' => 'string',
|
---|
| 1050 | 'required' => true,
|
---|
| 1051 | ],
|
---|
| 1052 | 'courseWorkId' => [
|
---|
| 1053 | 'location' => 'path',
|
---|
| 1054 | 'type' => 'string',
|
---|
| 1055 | 'required' => true,
|
---|
| 1056 | ],
|
---|
| 1057 | 'id' => [
|
---|
| 1058 | 'location' => 'path',
|
---|
| 1059 | 'type' => 'string',
|
---|
| 1060 | 'required' => true,
|
---|
| 1061 | ],
|
---|
| 1062 | ],
|
---|
| 1063 | ],'list' => [
|
---|
| 1064 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions',
|
---|
| 1065 | 'httpMethod' => 'GET',
|
---|
| 1066 | 'parameters' => [
|
---|
| 1067 | 'courseId' => [
|
---|
| 1068 | 'location' => 'path',
|
---|
| 1069 | 'type' => 'string',
|
---|
| 1070 | 'required' => true,
|
---|
| 1071 | ],
|
---|
| 1072 | 'courseWorkId' => [
|
---|
| 1073 | 'location' => 'path',
|
---|
| 1074 | 'type' => 'string',
|
---|
| 1075 | 'required' => true,
|
---|
| 1076 | ],
|
---|
| 1077 | 'late' => [
|
---|
| 1078 | 'location' => 'query',
|
---|
| 1079 | 'type' => 'string',
|
---|
| 1080 | ],
|
---|
| 1081 | 'pageSize' => [
|
---|
| 1082 | 'location' => 'query',
|
---|
| 1083 | 'type' => 'integer',
|
---|
| 1084 | ],
|
---|
| 1085 | 'pageToken' => [
|
---|
| 1086 | 'location' => 'query',
|
---|
| 1087 | 'type' => 'string',
|
---|
| 1088 | ],
|
---|
| 1089 | 'states' => [
|
---|
| 1090 | 'location' => 'query',
|
---|
| 1091 | 'type' => 'string',
|
---|
| 1092 | 'repeated' => true,
|
---|
| 1093 | ],
|
---|
| 1094 | 'userId' => [
|
---|
| 1095 | 'location' => 'query',
|
---|
| 1096 | 'type' => 'string',
|
---|
| 1097 | ],
|
---|
| 1098 | ],
|
---|
| 1099 | ],'modifyAttachments' => [
|
---|
| 1100 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments',
|
---|
| 1101 | 'httpMethod' => 'POST',
|
---|
| 1102 | 'parameters' => [
|
---|
| 1103 | 'courseId' => [
|
---|
| 1104 | 'location' => 'path',
|
---|
| 1105 | 'type' => 'string',
|
---|
| 1106 | 'required' => true,
|
---|
| 1107 | ],
|
---|
| 1108 | 'courseWorkId' => [
|
---|
| 1109 | 'location' => 'path',
|
---|
| 1110 | 'type' => 'string',
|
---|
| 1111 | 'required' => true,
|
---|
| 1112 | ],
|
---|
| 1113 | 'id' => [
|
---|
| 1114 | 'location' => 'path',
|
---|
| 1115 | 'type' => 'string',
|
---|
| 1116 | 'required' => true,
|
---|
| 1117 | ],
|
---|
| 1118 | ],
|
---|
| 1119 | ],'patch' => [
|
---|
| 1120 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
|
---|
| 1121 | 'httpMethod' => 'PATCH',
|
---|
| 1122 | 'parameters' => [
|
---|
| 1123 | 'courseId' => [
|
---|
| 1124 | 'location' => 'path',
|
---|
| 1125 | 'type' => 'string',
|
---|
| 1126 | 'required' => true,
|
---|
| 1127 | ],
|
---|
| 1128 | 'courseWorkId' => [
|
---|
| 1129 | 'location' => 'path',
|
---|
| 1130 | 'type' => 'string',
|
---|
| 1131 | 'required' => true,
|
---|
| 1132 | ],
|
---|
| 1133 | 'id' => [
|
---|
| 1134 | 'location' => 'path',
|
---|
| 1135 | 'type' => 'string',
|
---|
| 1136 | 'required' => true,
|
---|
| 1137 | ],
|
---|
| 1138 | 'updateMask' => [
|
---|
| 1139 | 'location' => 'query',
|
---|
| 1140 | 'type' => 'string',
|
---|
| 1141 | ],
|
---|
| 1142 | ],
|
---|
| 1143 | ],'reclaim' => [
|
---|
| 1144 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim',
|
---|
| 1145 | 'httpMethod' => 'POST',
|
---|
| 1146 | 'parameters' => [
|
---|
| 1147 | 'courseId' => [
|
---|
| 1148 | 'location' => 'path',
|
---|
| 1149 | 'type' => 'string',
|
---|
| 1150 | 'required' => true,
|
---|
| 1151 | ],
|
---|
| 1152 | 'courseWorkId' => [
|
---|
| 1153 | 'location' => 'path',
|
---|
| 1154 | 'type' => 'string',
|
---|
| 1155 | 'required' => true,
|
---|
| 1156 | ],
|
---|
| 1157 | 'id' => [
|
---|
| 1158 | 'location' => 'path',
|
---|
| 1159 | 'type' => 'string',
|
---|
| 1160 | 'required' => true,
|
---|
| 1161 | ],
|
---|
| 1162 | ],
|
---|
| 1163 | ],'return' => [
|
---|
| 1164 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return',
|
---|
| 1165 | 'httpMethod' => 'POST',
|
---|
| 1166 | 'parameters' => [
|
---|
| 1167 | 'courseId' => [
|
---|
| 1168 | 'location' => 'path',
|
---|
| 1169 | 'type' => 'string',
|
---|
| 1170 | 'required' => true,
|
---|
| 1171 | ],
|
---|
| 1172 | 'courseWorkId' => [
|
---|
| 1173 | 'location' => 'path',
|
---|
| 1174 | 'type' => 'string',
|
---|
| 1175 | 'required' => true,
|
---|
| 1176 | ],
|
---|
| 1177 | 'id' => [
|
---|
| 1178 | 'location' => 'path',
|
---|
| 1179 | 'type' => 'string',
|
---|
| 1180 | 'required' => true,
|
---|
| 1181 | ],
|
---|
| 1182 | ],
|
---|
| 1183 | ],'turnIn' => [
|
---|
| 1184 | 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn',
|
---|
| 1185 | 'httpMethod' => 'POST',
|
---|
| 1186 | 'parameters' => [
|
---|
| 1187 | 'courseId' => [
|
---|
| 1188 | 'location' => 'path',
|
---|
| 1189 | 'type' => 'string',
|
---|
| 1190 | 'required' => true,
|
---|
| 1191 | ],
|
---|
| 1192 | 'courseWorkId' => [
|
---|
| 1193 | 'location' => 'path',
|
---|
| 1194 | 'type' => 'string',
|
---|
| 1195 | 'required' => true,
|
---|
| 1196 | ],
|
---|
| 1197 | 'id' => [
|
---|
| 1198 | 'location' => 'path',
|
---|
| 1199 | 'type' => 'string',
|
---|
| 1200 | 'required' => true,
|
---|
| 1201 | ],
|
---|
| 1202 | ],
|
---|
| 1203 | ],
|
---|
| 1204 | ]
|
---|
| 1205 | ]
|
---|
| 1206 | );
|
---|
| 1207 | $this->courses_courseWorkMaterials = new Classroom\Resource\CoursesCourseWorkMaterials(
|
---|
| 1208 | $this,
|
---|
| 1209 | $this->serviceName,
|
---|
| 1210 | 'courseWorkMaterials',
|
---|
| 1211 | [
|
---|
| 1212 | 'methods' => [
|
---|
| 1213 | 'create' => [
|
---|
| 1214 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials',
|
---|
| 1215 | 'httpMethod' => 'POST',
|
---|
| 1216 | 'parameters' => [
|
---|
| 1217 | 'courseId' => [
|
---|
| 1218 | 'location' => 'path',
|
---|
| 1219 | 'type' => 'string',
|
---|
| 1220 | 'required' => true,
|
---|
| 1221 | ],
|
---|
| 1222 | ],
|
---|
| 1223 | ],'delete' => [
|
---|
| 1224 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{id}',
|
---|
| 1225 | 'httpMethod' => 'DELETE',
|
---|
| 1226 | 'parameters' => [
|
---|
| 1227 | 'courseId' => [
|
---|
| 1228 | 'location' => 'path',
|
---|
| 1229 | 'type' => 'string',
|
---|
| 1230 | 'required' => true,
|
---|
| 1231 | ],
|
---|
| 1232 | 'id' => [
|
---|
| 1233 | 'location' => 'path',
|
---|
| 1234 | 'type' => 'string',
|
---|
| 1235 | 'required' => true,
|
---|
| 1236 | ],
|
---|
| 1237 | ],
|
---|
| 1238 | ],'get' => [
|
---|
| 1239 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{id}',
|
---|
| 1240 | 'httpMethod' => 'GET',
|
---|
| 1241 | 'parameters' => [
|
---|
| 1242 | 'courseId' => [
|
---|
| 1243 | 'location' => 'path',
|
---|
| 1244 | 'type' => 'string',
|
---|
| 1245 | 'required' => true,
|
---|
| 1246 | ],
|
---|
| 1247 | 'id' => [
|
---|
| 1248 | 'location' => 'path',
|
---|
| 1249 | 'type' => 'string',
|
---|
| 1250 | 'required' => true,
|
---|
| 1251 | ],
|
---|
| 1252 | ],
|
---|
| 1253 | ],'getAddOnContext' => [
|
---|
| 1254 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnContext',
|
---|
| 1255 | 'httpMethod' => 'GET',
|
---|
| 1256 | 'parameters' => [
|
---|
| 1257 | 'courseId' => [
|
---|
| 1258 | 'location' => 'path',
|
---|
| 1259 | 'type' => 'string',
|
---|
| 1260 | 'required' => true,
|
---|
| 1261 | ],
|
---|
| 1262 | 'itemId' => [
|
---|
| 1263 | 'location' => 'path',
|
---|
| 1264 | 'type' => 'string',
|
---|
| 1265 | 'required' => true,
|
---|
| 1266 | ],
|
---|
| 1267 | 'addOnToken' => [
|
---|
| 1268 | 'location' => 'query',
|
---|
| 1269 | 'type' => 'string',
|
---|
| 1270 | ],
|
---|
| 1271 | 'attachmentId' => [
|
---|
| 1272 | 'location' => 'query',
|
---|
| 1273 | 'type' => 'string',
|
---|
| 1274 | ],
|
---|
| 1275 | 'postId' => [
|
---|
| 1276 | 'location' => 'query',
|
---|
| 1277 | 'type' => 'string',
|
---|
| 1278 | ],
|
---|
| 1279 | ],
|
---|
| 1280 | ],'list' => [
|
---|
| 1281 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials',
|
---|
| 1282 | 'httpMethod' => 'GET',
|
---|
| 1283 | 'parameters' => [
|
---|
| 1284 | 'courseId' => [
|
---|
| 1285 | 'location' => 'path',
|
---|
| 1286 | 'type' => 'string',
|
---|
| 1287 | 'required' => true,
|
---|
| 1288 | ],
|
---|
| 1289 | 'courseWorkMaterialStates' => [
|
---|
| 1290 | 'location' => 'query',
|
---|
| 1291 | 'type' => 'string',
|
---|
| 1292 | 'repeated' => true,
|
---|
| 1293 | ],
|
---|
| 1294 | 'materialDriveId' => [
|
---|
| 1295 | 'location' => 'query',
|
---|
| 1296 | 'type' => 'string',
|
---|
| 1297 | ],
|
---|
| 1298 | 'materialLink' => [
|
---|
| 1299 | 'location' => 'query',
|
---|
| 1300 | 'type' => 'string',
|
---|
| 1301 | ],
|
---|
| 1302 | 'orderBy' => [
|
---|
| 1303 | 'location' => 'query',
|
---|
| 1304 | 'type' => 'string',
|
---|
| 1305 | ],
|
---|
| 1306 | 'pageSize' => [
|
---|
| 1307 | 'location' => 'query',
|
---|
| 1308 | 'type' => 'integer',
|
---|
| 1309 | ],
|
---|
| 1310 | 'pageToken' => [
|
---|
| 1311 | 'location' => 'query',
|
---|
| 1312 | 'type' => 'string',
|
---|
| 1313 | ],
|
---|
| 1314 | ],
|
---|
| 1315 | ],'patch' => [
|
---|
| 1316 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{id}',
|
---|
| 1317 | 'httpMethod' => 'PATCH',
|
---|
| 1318 | 'parameters' => [
|
---|
| 1319 | 'courseId' => [
|
---|
| 1320 | 'location' => 'path',
|
---|
| 1321 | 'type' => 'string',
|
---|
| 1322 | 'required' => true,
|
---|
| 1323 | ],
|
---|
| 1324 | 'id' => [
|
---|
| 1325 | 'location' => 'path',
|
---|
| 1326 | 'type' => 'string',
|
---|
| 1327 | 'required' => true,
|
---|
| 1328 | ],
|
---|
| 1329 | 'updateMask' => [
|
---|
| 1330 | 'location' => 'query',
|
---|
| 1331 | 'type' => 'string',
|
---|
| 1332 | ],
|
---|
| 1333 | ],
|
---|
| 1334 | ],
|
---|
| 1335 | ]
|
---|
| 1336 | ]
|
---|
| 1337 | );
|
---|
| 1338 | $this->courses_courseWorkMaterials_addOnAttachments = new Classroom\Resource\CoursesCourseWorkMaterialsAddOnAttachments(
|
---|
| 1339 | $this,
|
---|
| 1340 | $this->serviceName,
|
---|
| 1341 | 'addOnAttachments',
|
---|
| 1342 | [
|
---|
| 1343 | 'methods' => [
|
---|
| 1344 | 'create' => [
|
---|
| 1345 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments',
|
---|
| 1346 | 'httpMethod' => 'POST',
|
---|
| 1347 | 'parameters' => [
|
---|
| 1348 | 'courseId' => [
|
---|
| 1349 | 'location' => 'path',
|
---|
| 1350 | 'type' => 'string',
|
---|
| 1351 | 'required' => true,
|
---|
| 1352 | ],
|
---|
| 1353 | 'itemId' => [
|
---|
| 1354 | 'location' => 'path',
|
---|
| 1355 | 'type' => 'string',
|
---|
| 1356 | 'required' => true,
|
---|
| 1357 | ],
|
---|
| 1358 | 'addOnToken' => [
|
---|
| 1359 | 'location' => 'query',
|
---|
| 1360 | 'type' => 'string',
|
---|
| 1361 | ],
|
---|
| 1362 | 'postId' => [
|
---|
| 1363 | 'location' => 'query',
|
---|
| 1364 | 'type' => 'string',
|
---|
| 1365 | ],
|
---|
| 1366 | ],
|
---|
| 1367 | ],'delete' => [
|
---|
| 1368 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 1369 | 'httpMethod' => 'DELETE',
|
---|
| 1370 | 'parameters' => [
|
---|
| 1371 | 'courseId' => [
|
---|
| 1372 | 'location' => 'path',
|
---|
| 1373 | 'type' => 'string',
|
---|
| 1374 | 'required' => true,
|
---|
| 1375 | ],
|
---|
| 1376 | 'itemId' => [
|
---|
| 1377 | 'location' => 'path',
|
---|
| 1378 | 'type' => 'string',
|
---|
| 1379 | 'required' => true,
|
---|
| 1380 | ],
|
---|
| 1381 | 'attachmentId' => [
|
---|
| 1382 | 'location' => 'path',
|
---|
| 1383 | 'type' => 'string',
|
---|
| 1384 | 'required' => true,
|
---|
| 1385 | ],
|
---|
| 1386 | 'postId' => [
|
---|
| 1387 | 'location' => 'query',
|
---|
| 1388 | 'type' => 'string',
|
---|
| 1389 | ],
|
---|
| 1390 | ],
|
---|
| 1391 | ],'get' => [
|
---|
| 1392 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 1393 | 'httpMethod' => 'GET',
|
---|
| 1394 | 'parameters' => [
|
---|
| 1395 | 'courseId' => [
|
---|
| 1396 | 'location' => 'path',
|
---|
| 1397 | 'type' => 'string',
|
---|
| 1398 | 'required' => true,
|
---|
| 1399 | ],
|
---|
| 1400 | 'itemId' => [
|
---|
| 1401 | 'location' => 'path',
|
---|
| 1402 | 'type' => 'string',
|
---|
| 1403 | 'required' => true,
|
---|
| 1404 | ],
|
---|
| 1405 | 'attachmentId' => [
|
---|
| 1406 | 'location' => 'path',
|
---|
| 1407 | 'type' => 'string',
|
---|
| 1408 | 'required' => true,
|
---|
| 1409 | ],
|
---|
| 1410 | 'postId' => [
|
---|
| 1411 | 'location' => 'query',
|
---|
| 1412 | 'type' => 'string',
|
---|
| 1413 | ],
|
---|
| 1414 | ],
|
---|
| 1415 | ],'list' => [
|
---|
| 1416 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments',
|
---|
| 1417 | 'httpMethod' => 'GET',
|
---|
| 1418 | 'parameters' => [
|
---|
| 1419 | 'courseId' => [
|
---|
| 1420 | 'location' => 'path',
|
---|
| 1421 | 'type' => 'string',
|
---|
| 1422 | 'required' => true,
|
---|
| 1423 | ],
|
---|
| 1424 | 'itemId' => [
|
---|
| 1425 | 'location' => 'path',
|
---|
| 1426 | 'type' => 'string',
|
---|
| 1427 | 'required' => true,
|
---|
| 1428 | ],
|
---|
| 1429 | 'pageSize' => [
|
---|
| 1430 | 'location' => 'query',
|
---|
| 1431 | 'type' => 'integer',
|
---|
| 1432 | ],
|
---|
| 1433 | 'pageToken' => [
|
---|
| 1434 | 'location' => 'query',
|
---|
| 1435 | 'type' => 'string',
|
---|
| 1436 | ],
|
---|
| 1437 | 'postId' => [
|
---|
| 1438 | 'location' => 'query',
|
---|
| 1439 | 'type' => 'string',
|
---|
| 1440 | ],
|
---|
| 1441 | ],
|
---|
| 1442 | ],'patch' => [
|
---|
| 1443 | 'path' => 'v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnAttachments/{attachmentId}',
|
---|
| 1444 | 'httpMethod' => 'PATCH',
|
---|
| 1445 | 'parameters' => [
|
---|
| 1446 | 'courseId' => [
|
---|
| 1447 | 'location' => 'path',
|
---|
| 1448 | 'type' => 'string',
|
---|
| 1449 | 'required' => true,
|
---|
| 1450 | ],
|
---|
| 1451 | 'itemId' => [
|
---|
| 1452 | 'location' => 'path',
|
---|
| 1453 | 'type' => 'string',
|
---|
| 1454 | 'required' => true,
|
---|
| 1455 | ],
|
---|
| 1456 | 'attachmentId' => [
|
---|
| 1457 | 'location' => 'path',
|
---|
| 1458 | 'type' => 'string',
|
---|
| 1459 | 'required' => true,
|
---|
| 1460 | ],
|
---|
| 1461 | 'postId' => [
|
---|
| 1462 | 'location' => 'query',
|
---|
| 1463 | 'type' => 'string',
|
---|
| 1464 | ],
|
---|
| 1465 | 'updateMask' => [
|
---|
| 1466 | 'location' => 'query',
|
---|
| 1467 | 'type' => 'string',
|
---|
| 1468 | ],
|
---|
| 1469 | ],
|
---|
| 1470 | ],
|
---|
| 1471 | ]
|
---|
| 1472 | ]
|
---|
| 1473 | );
|
---|
| 1474 | $this->courses_posts = new Classroom\Resource\CoursesPosts(
|
---|
| 1475 | $this,
|
---|
| 1476 | $this->serviceName,
|
---|
| 1477 | 'posts',
|
---|
| 1478 | [
|
---|
| 1479 | 'methods' => [
|
---|
| 1480 | 'getAddOnContext' => [
|
---|
| 1481 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnContext',
|
---|
| 1482 | 'httpMethod' => 'GET',
|
---|
| 1483 | 'parameters' => [
|
---|
| 1484 | 'courseId' => [
|
---|
| 1485 | 'location' => 'path',
|
---|
| 1486 | 'type' => 'string',
|
---|
| 1487 | 'required' => true,
|
---|
| 1488 | ],
|
---|
| 1489 | 'postId' => [
|
---|
| 1490 | 'location' => 'path',
|
---|
| 1491 | 'type' => 'string',
|
---|
| 1492 | 'required' => true,
|
---|
| 1493 | ],
|
---|
| 1494 | 'addOnToken' => [
|
---|
| 1495 | 'location' => 'query',
|
---|
| 1496 | 'type' => 'string',
|
---|
| 1497 | ],
|
---|
| 1498 | 'attachmentId' => [
|
---|
| 1499 | 'location' => 'query',
|
---|
| 1500 | 'type' => 'string',
|
---|
| 1501 | ],
|
---|
| 1502 | 'itemId' => [
|
---|
| 1503 | 'location' => 'query',
|
---|
| 1504 | 'type' => 'string',
|
---|
| 1505 | ],
|
---|
| 1506 | ],
|
---|
| 1507 | ],
|
---|
| 1508 | ]
|
---|
| 1509 | ]
|
---|
| 1510 | );
|
---|
| 1511 | $this->courses_posts_addOnAttachments = new Classroom\Resource\CoursesPostsAddOnAttachments(
|
---|
| 1512 | $this,
|
---|
| 1513 | $this->serviceName,
|
---|
| 1514 | 'addOnAttachments',
|
---|
| 1515 | [
|
---|
| 1516 | 'methods' => [
|
---|
| 1517 | 'create' => [
|
---|
| 1518 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments',
|
---|
| 1519 | 'httpMethod' => 'POST',
|
---|
| 1520 | 'parameters' => [
|
---|
| 1521 | 'courseId' => [
|
---|
| 1522 | 'location' => 'path',
|
---|
| 1523 | 'type' => 'string',
|
---|
| 1524 | 'required' => true,
|
---|
| 1525 | ],
|
---|
| 1526 | 'postId' => [
|
---|
| 1527 | 'location' => 'path',
|
---|
| 1528 | 'type' => 'string',
|
---|
| 1529 | 'required' => true,
|
---|
| 1530 | ],
|
---|
| 1531 | 'addOnToken' => [
|
---|
| 1532 | 'location' => 'query',
|
---|
| 1533 | 'type' => 'string',
|
---|
| 1534 | ],
|
---|
| 1535 | 'itemId' => [
|
---|
| 1536 | 'location' => 'query',
|
---|
| 1537 | 'type' => 'string',
|
---|
| 1538 | ],
|
---|
| 1539 | ],
|
---|
| 1540 | ],'delete' => [
|
---|
| 1541 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}',
|
---|
| 1542 | 'httpMethod' => 'DELETE',
|
---|
| 1543 | 'parameters' => [
|
---|
| 1544 | 'courseId' => [
|
---|
| 1545 | 'location' => 'path',
|
---|
| 1546 | 'type' => 'string',
|
---|
| 1547 | 'required' => true,
|
---|
| 1548 | ],
|
---|
| 1549 | 'postId' => [
|
---|
| 1550 | 'location' => 'path',
|
---|
| 1551 | 'type' => 'string',
|
---|
| 1552 | 'required' => true,
|
---|
| 1553 | ],
|
---|
| 1554 | 'attachmentId' => [
|
---|
| 1555 | 'location' => 'path',
|
---|
| 1556 | 'type' => 'string',
|
---|
| 1557 | 'required' => true,
|
---|
| 1558 | ],
|
---|
| 1559 | 'itemId' => [
|
---|
| 1560 | 'location' => 'query',
|
---|
| 1561 | 'type' => 'string',
|
---|
| 1562 | ],
|
---|
| 1563 | ],
|
---|
| 1564 | ],'get' => [
|
---|
| 1565 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}',
|
---|
| 1566 | 'httpMethod' => 'GET',
|
---|
| 1567 | 'parameters' => [
|
---|
| 1568 | 'courseId' => [
|
---|
| 1569 | 'location' => 'path',
|
---|
| 1570 | 'type' => 'string',
|
---|
| 1571 | 'required' => true,
|
---|
| 1572 | ],
|
---|
| 1573 | 'postId' => [
|
---|
| 1574 | 'location' => 'path',
|
---|
| 1575 | 'type' => 'string',
|
---|
| 1576 | 'required' => true,
|
---|
| 1577 | ],
|
---|
| 1578 | 'attachmentId' => [
|
---|
| 1579 | 'location' => 'path',
|
---|
| 1580 | 'type' => 'string',
|
---|
| 1581 | 'required' => true,
|
---|
| 1582 | ],
|
---|
| 1583 | 'itemId' => [
|
---|
| 1584 | 'location' => 'query',
|
---|
| 1585 | 'type' => 'string',
|
---|
| 1586 | ],
|
---|
| 1587 | ],
|
---|
| 1588 | ],'list' => [
|
---|
| 1589 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments',
|
---|
| 1590 | 'httpMethod' => 'GET',
|
---|
| 1591 | 'parameters' => [
|
---|
| 1592 | 'courseId' => [
|
---|
| 1593 | 'location' => 'path',
|
---|
| 1594 | 'type' => 'string',
|
---|
| 1595 | 'required' => true,
|
---|
| 1596 | ],
|
---|
| 1597 | 'postId' => [
|
---|
| 1598 | 'location' => 'path',
|
---|
| 1599 | 'type' => 'string',
|
---|
| 1600 | 'required' => true,
|
---|
| 1601 | ],
|
---|
| 1602 | 'itemId' => [
|
---|
| 1603 | 'location' => 'query',
|
---|
| 1604 | 'type' => 'string',
|
---|
| 1605 | ],
|
---|
| 1606 | 'pageSize' => [
|
---|
| 1607 | 'location' => 'query',
|
---|
| 1608 | 'type' => 'integer',
|
---|
| 1609 | ],
|
---|
| 1610 | 'pageToken' => [
|
---|
| 1611 | 'location' => 'query',
|
---|
| 1612 | 'type' => 'string',
|
---|
| 1613 | ],
|
---|
| 1614 | ],
|
---|
| 1615 | ],'patch' => [
|
---|
| 1616 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}',
|
---|
| 1617 | 'httpMethod' => 'PATCH',
|
---|
| 1618 | 'parameters' => [
|
---|
| 1619 | 'courseId' => [
|
---|
| 1620 | 'location' => 'path',
|
---|
| 1621 | 'type' => 'string',
|
---|
| 1622 | 'required' => true,
|
---|
| 1623 | ],
|
---|
| 1624 | 'postId' => [
|
---|
| 1625 | 'location' => 'path',
|
---|
| 1626 | 'type' => 'string',
|
---|
| 1627 | 'required' => true,
|
---|
| 1628 | ],
|
---|
| 1629 | 'attachmentId' => [
|
---|
| 1630 | 'location' => 'path',
|
---|
| 1631 | 'type' => 'string',
|
---|
| 1632 | 'required' => true,
|
---|
| 1633 | ],
|
---|
| 1634 | 'itemId' => [
|
---|
| 1635 | 'location' => 'query',
|
---|
| 1636 | 'type' => 'string',
|
---|
| 1637 | ],
|
---|
| 1638 | 'updateMask' => [
|
---|
| 1639 | 'location' => 'query',
|
---|
| 1640 | 'type' => 'string',
|
---|
| 1641 | ],
|
---|
| 1642 | ],
|
---|
| 1643 | ],
|
---|
| 1644 | ]
|
---|
| 1645 | ]
|
---|
| 1646 | );
|
---|
| 1647 | $this->courses_posts_addOnAttachments_studentSubmissions = new Classroom\Resource\CoursesPostsAddOnAttachmentsStudentSubmissions(
|
---|
| 1648 | $this,
|
---|
| 1649 | $this->serviceName,
|
---|
| 1650 | 'studentSubmissions',
|
---|
| 1651 | [
|
---|
| 1652 | 'methods' => [
|
---|
| 1653 | 'get' => [
|
---|
| 1654 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}',
|
---|
| 1655 | 'httpMethod' => 'GET',
|
---|
| 1656 | 'parameters' => [
|
---|
| 1657 | 'courseId' => [
|
---|
| 1658 | 'location' => 'path',
|
---|
| 1659 | 'type' => 'string',
|
---|
| 1660 | 'required' => true,
|
---|
| 1661 | ],
|
---|
| 1662 | 'postId' => [
|
---|
| 1663 | 'location' => 'path',
|
---|
| 1664 | 'type' => 'string',
|
---|
| 1665 | 'required' => true,
|
---|
| 1666 | ],
|
---|
| 1667 | 'attachmentId' => [
|
---|
| 1668 | 'location' => 'path',
|
---|
| 1669 | 'type' => 'string',
|
---|
| 1670 | 'required' => true,
|
---|
| 1671 | ],
|
---|
| 1672 | 'submissionId' => [
|
---|
| 1673 | 'location' => 'path',
|
---|
| 1674 | 'type' => 'string',
|
---|
| 1675 | 'required' => true,
|
---|
| 1676 | ],
|
---|
| 1677 | 'itemId' => [
|
---|
| 1678 | 'location' => 'query',
|
---|
| 1679 | 'type' => 'string',
|
---|
| 1680 | ],
|
---|
| 1681 | ],
|
---|
| 1682 | ],'patch' => [
|
---|
| 1683 | 'path' => 'v1/courses/{courseId}/posts/{postId}/addOnAttachments/{attachmentId}/studentSubmissions/{submissionId}',
|
---|
| 1684 | 'httpMethod' => 'PATCH',
|
---|
| 1685 | 'parameters' => [
|
---|
| 1686 | 'courseId' => [
|
---|
| 1687 | 'location' => 'path',
|
---|
| 1688 | 'type' => 'string',
|
---|
| 1689 | 'required' => true,
|
---|
| 1690 | ],
|
---|
| 1691 | 'postId' => [
|
---|
| 1692 | 'location' => 'path',
|
---|
| 1693 | 'type' => 'string',
|
---|
| 1694 | 'required' => true,
|
---|
| 1695 | ],
|
---|
| 1696 | 'attachmentId' => [
|
---|
| 1697 | 'location' => 'path',
|
---|
| 1698 | 'type' => 'string',
|
---|
| 1699 | 'required' => true,
|
---|
| 1700 | ],
|
---|
| 1701 | 'submissionId' => [
|
---|
| 1702 | 'location' => 'path',
|
---|
| 1703 | 'type' => 'string',
|
---|
| 1704 | 'required' => true,
|
---|
| 1705 | ],
|
---|
| 1706 | 'itemId' => [
|
---|
| 1707 | 'location' => 'query',
|
---|
| 1708 | 'type' => 'string',
|
---|
| 1709 | ],
|
---|
| 1710 | 'updateMask' => [
|
---|
| 1711 | 'location' => 'query',
|
---|
| 1712 | 'type' => 'string',
|
---|
| 1713 | ],
|
---|
| 1714 | ],
|
---|
| 1715 | ],
|
---|
| 1716 | ]
|
---|
| 1717 | ]
|
---|
| 1718 | );
|
---|
| 1719 | $this->courses_students = new Classroom\Resource\CoursesStudents(
|
---|
| 1720 | $this,
|
---|
| 1721 | $this->serviceName,
|
---|
| 1722 | 'students',
|
---|
| 1723 | [
|
---|
| 1724 | 'methods' => [
|
---|
| 1725 | 'create' => [
|
---|
| 1726 | 'path' => 'v1/courses/{courseId}/students',
|
---|
| 1727 | 'httpMethod' => 'POST',
|
---|
| 1728 | 'parameters' => [
|
---|
| 1729 | 'courseId' => [
|
---|
| 1730 | 'location' => 'path',
|
---|
| 1731 | 'type' => 'string',
|
---|
| 1732 | 'required' => true,
|
---|
| 1733 | ],
|
---|
| 1734 | 'enrollmentCode' => [
|
---|
| 1735 | 'location' => 'query',
|
---|
| 1736 | 'type' => 'string',
|
---|
| 1737 | ],
|
---|
| 1738 | ],
|
---|
| 1739 | ],'delete' => [
|
---|
| 1740 | 'path' => 'v1/courses/{courseId}/students/{userId}',
|
---|
| 1741 | 'httpMethod' => 'DELETE',
|
---|
| 1742 | 'parameters' => [
|
---|
| 1743 | 'courseId' => [
|
---|
| 1744 | 'location' => 'path',
|
---|
| 1745 | 'type' => 'string',
|
---|
| 1746 | 'required' => true,
|
---|
| 1747 | ],
|
---|
| 1748 | 'userId' => [
|
---|
| 1749 | 'location' => 'path',
|
---|
| 1750 | 'type' => 'string',
|
---|
| 1751 | 'required' => true,
|
---|
| 1752 | ],
|
---|
| 1753 | ],
|
---|
| 1754 | ],'get' => [
|
---|
| 1755 | 'path' => 'v1/courses/{courseId}/students/{userId}',
|
---|
| 1756 | 'httpMethod' => 'GET',
|
---|
| 1757 | 'parameters' => [
|
---|
| 1758 | 'courseId' => [
|
---|
| 1759 | 'location' => 'path',
|
---|
| 1760 | 'type' => 'string',
|
---|
| 1761 | 'required' => true,
|
---|
| 1762 | ],
|
---|
| 1763 | 'userId' => [
|
---|
| 1764 | 'location' => 'path',
|
---|
| 1765 | 'type' => 'string',
|
---|
| 1766 | 'required' => true,
|
---|
| 1767 | ],
|
---|
| 1768 | ],
|
---|
| 1769 | ],'list' => [
|
---|
| 1770 | 'path' => 'v1/courses/{courseId}/students',
|
---|
| 1771 | 'httpMethod' => 'GET',
|
---|
| 1772 | 'parameters' => [
|
---|
| 1773 | 'courseId' => [
|
---|
| 1774 | 'location' => 'path',
|
---|
| 1775 | 'type' => 'string',
|
---|
| 1776 | 'required' => true,
|
---|
| 1777 | ],
|
---|
| 1778 | 'pageSize' => [
|
---|
| 1779 | 'location' => 'query',
|
---|
| 1780 | 'type' => 'integer',
|
---|
| 1781 | ],
|
---|
| 1782 | 'pageToken' => [
|
---|
| 1783 | 'location' => 'query',
|
---|
| 1784 | 'type' => 'string',
|
---|
| 1785 | ],
|
---|
| 1786 | ],
|
---|
| 1787 | ],
|
---|
| 1788 | ]
|
---|
| 1789 | ]
|
---|
| 1790 | );
|
---|
| 1791 | $this->courses_teachers = new Classroom\Resource\CoursesTeachers(
|
---|
| 1792 | $this,
|
---|
| 1793 | $this->serviceName,
|
---|
| 1794 | 'teachers',
|
---|
| 1795 | [
|
---|
| 1796 | 'methods' => [
|
---|
| 1797 | 'create' => [
|
---|
| 1798 | 'path' => 'v1/courses/{courseId}/teachers',
|
---|
| 1799 | 'httpMethod' => 'POST',
|
---|
| 1800 | 'parameters' => [
|
---|
| 1801 | 'courseId' => [
|
---|
| 1802 | 'location' => 'path',
|
---|
| 1803 | 'type' => 'string',
|
---|
| 1804 | 'required' => true,
|
---|
| 1805 | ],
|
---|
| 1806 | ],
|
---|
| 1807 | ],'delete' => [
|
---|
| 1808 | 'path' => 'v1/courses/{courseId}/teachers/{userId}',
|
---|
| 1809 | 'httpMethod' => 'DELETE',
|
---|
| 1810 | 'parameters' => [
|
---|
| 1811 | 'courseId' => [
|
---|
| 1812 | 'location' => 'path',
|
---|
| 1813 | 'type' => 'string',
|
---|
| 1814 | 'required' => true,
|
---|
| 1815 | ],
|
---|
| 1816 | 'userId' => [
|
---|
| 1817 | 'location' => 'path',
|
---|
| 1818 | 'type' => 'string',
|
---|
| 1819 | 'required' => true,
|
---|
| 1820 | ],
|
---|
| 1821 | ],
|
---|
| 1822 | ],'get' => [
|
---|
| 1823 | 'path' => 'v1/courses/{courseId}/teachers/{userId}',
|
---|
| 1824 | 'httpMethod' => 'GET',
|
---|
| 1825 | 'parameters' => [
|
---|
| 1826 | 'courseId' => [
|
---|
| 1827 | 'location' => 'path',
|
---|
| 1828 | 'type' => 'string',
|
---|
| 1829 | 'required' => true,
|
---|
| 1830 | ],
|
---|
| 1831 | 'userId' => [
|
---|
| 1832 | 'location' => 'path',
|
---|
| 1833 | 'type' => 'string',
|
---|
| 1834 | 'required' => true,
|
---|
| 1835 | ],
|
---|
| 1836 | ],
|
---|
| 1837 | ],'list' => [
|
---|
| 1838 | 'path' => 'v1/courses/{courseId}/teachers',
|
---|
| 1839 | 'httpMethod' => 'GET',
|
---|
| 1840 | 'parameters' => [
|
---|
| 1841 | 'courseId' => [
|
---|
| 1842 | 'location' => 'path',
|
---|
| 1843 | 'type' => 'string',
|
---|
| 1844 | 'required' => true,
|
---|
| 1845 | ],
|
---|
| 1846 | 'pageSize' => [
|
---|
| 1847 | 'location' => 'query',
|
---|
| 1848 | 'type' => 'integer',
|
---|
| 1849 | ],
|
---|
| 1850 | 'pageToken' => [
|
---|
| 1851 | 'location' => 'query',
|
---|
| 1852 | 'type' => 'string',
|
---|
| 1853 | ],
|
---|
| 1854 | ],
|
---|
| 1855 | ],
|
---|
| 1856 | ]
|
---|
| 1857 | ]
|
---|
| 1858 | );
|
---|
| 1859 | $this->courses_topics = new Classroom\Resource\CoursesTopics(
|
---|
| 1860 | $this,
|
---|
| 1861 | $this->serviceName,
|
---|
| 1862 | 'topics',
|
---|
| 1863 | [
|
---|
| 1864 | 'methods' => [
|
---|
| 1865 | 'create' => [
|
---|
| 1866 | 'path' => 'v1/courses/{courseId}/topics',
|
---|
| 1867 | 'httpMethod' => 'POST',
|
---|
| 1868 | 'parameters' => [
|
---|
| 1869 | 'courseId' => [
|
---|
| 1870 | 'location' => 'path',
|
---|
| 1871 | 'type' => 'string',
|
---|
| 1872 | 'required' => true,
|
---|
| 1873 | ],
|
---|
| 1874 | ],
|
---|
| 1875 | ],'delete' => [
|
---|
| 1876 | 'path' => 'v1/courses/{courseId}/topics/{id}',
|
---|
| 1877 | 'httpMethod' => 'DELETE',
|
---|
| 1878 | 'parameters' => [
|
---|
| 1879 | 'courseId' => [
|
---|
| 1880 | 'location' => 'path',
|
---|
| 1881 | 'type' => 'string',
|
---|
| 1882 | 'required' => true,
|
---|
| 1883 | ],
|
---|
| 1884 | 'id' => [
|
---|
| 1885 | 'location' => 'path',
|
---|
| 1886 | 'type' => 'string',
|
---|
| 1887 | 'required' => true,
|
---|
| 1888 | ],
|
---|
| 1889 | ],
|
---|
| 1890 | ],'get' => [
|
---|
| 1891 | 'path' => 'v1/courses/{courseId}/topics/{id}',
|
---|
| 1892 | 'httpMethod' => 'GET',
|
---|
| 1893 | 'parameters' => [
|
---|
| 1894 | 'courseId' => [
|
---|
| 1895 | 'location' => 'path',
|
---|
| 1896 | 'type' => 'string',
|
---|
| 1897 | 'required' => true,
|
---|
| 1898 | ],
|
---|
| 1899 | 'id' => [
|
---|
| 1900 | 'location' => 'path',
|
---|
| 1901 | 'type' => 'string',
|
---|
| 1902 | 'required' => true,
|
---|
| 1903 | ],
|
---|
| 1904 | ],
|
---|
| 1905 | ],'list' => [
|
---|
| 1906 | 'path' => 'v1/courses/{courseId}/topics',
|
---|
| 1907 | 'httpMethod' => 'GET',
|
---|
| 1908 | 'parameters' => [
|
---|
| 1909 | 'courseId' => [
|
---|
| 1910 | 'location' => 'path',
|
---|
| 1911 | 'type' => 'string',
|
---|
| 1912 | 'required' => true,
|
---|
| 1913 | ],
|
---|
| 1914 | 'pageSize' => [
|
---|
| 1915 | 'location' => 'query',
|
---|
| 1916 | 'type' => 'integer',
|
---|
| 1917 | ],
|
---|
| 1918 | 'pageToken' => [
|
---|
| 1919 | 'location' => 'query',
|
---|
| 1920 | 'type' => 'string',
|
---|
| 1921 | ],
|
---|
| 1922 | ],
|
---|
| 1923 | ],'patch' => [
|
---|
| 1924 | 'path' => 'v1/courses/{courseId}/topics/{id}',
|
---|
| 1925 | 'httpMethod' => 'PATCH',
|
---|
| 1926 | 'parameters' => [
|
---|
| 1927 | 'courseId' => [
|
---|
| 1928 | 'location' => 'path',
|
---|
| 1929 | 'type' => 'string',
|
---|
| 1930 | 'required' => true,
|
---|
| 1931 | ],
|
---|
| 1932 | 'id' => [
|
---|
| 1933 | 'location' => 'path',
|
---|
| 1934 | 'type' => 'string',
|
---|
| 1935 | 'required' => true,
|
---|
| 1936 | ],
|
---|
| 1937 | 'updateMask' => [
|
---|
| 1938 | 'location' => 'query',
|
---|
| 1939 | 'type' => 'string',
|
---|
| 1940 | ],
|
---|
| 1941 | ],
|
---|
| 1942 | ],
|
---|
| 1943 | ]
|
---|
| 1944 | ]
|
---|
| 1945 | );
|
---|
| 1946 | $this->invitations = new Classroom\Resource\Invitations(
|
---|
| 1947 | $this,
|
---|
| 1948 | $this->serviceName,
|
---|
| 1949 | 'invitations',
|
---|
| 1950 | [
|
---|
| 1951 | 'methods' => [
|
---|
| 1952 | 'accept' => [
|
---|
| 1953 | 'path' => 'v1/invitations/{id}:accept',
|
---|
| 1954 | 'httpMethod' => 'POST',
|
---|
| 1955 | 'parameters' => [
|
---|
| 1956 | 'id' => [
|
---|
| 1957 | 'location' => 'path',
|
---|
| 1958 | 'type' => 'string',
|
---|
| 1959 | 'required' => true,
|
---|
| 1960 | ],
|
---|
| 1961 | ],
|
---|
| 1962 | ],'create' => [
|
---|
| 1963 | 'path' => 'v1/invitations',
|
---|
| 1964 | 'httpMethod' => 'POST',
|
---|
| 1965 | 'parameters' => [],
|
---|
| 1966 | ],'delete' => [
|
---|
| 1967 | 'path' => 'v1/invitations/{id}',
|
---|
| 1968 | 'httpMethod' => 'DELETE',
|
---|
| 1969 | 'parameters' => [
|
---|
| 1970 | 'id' => [
|
---|
| 1971 | 'location' => 'path',
|
---|
| 1972 | 'type' => 'string',
|
---|
| 1973 | 'required' => true,
|
---|
| 1974 | ],
|
---|
| 1975 | ],
|
---|
| 1976 | ],'get' => [
|
---|
| 1977 | 'path' => 'v1/invitations/{id}',
|
---|
| 1978 | 'httpMethod' => 'GET',
|
---|
| 1979 | 'parameters' => [
|
---|
| 1980 | 'id' => [
|
---|
| 1981 | 'location' => 'path',
|
---|
| 1982 | 'type' => 'string',
|
---|
| 1983 | 'required' => true,
|
---|
| 1984 | ],
|
---|
| 1985 | ],
|
---|
| 1986 | ],'list' => [
|
---|
| 1987 | 'path' => 'v1/invitations',
|
---|
| 1988 | 'httpMethod' => 'GET',
|
---|
| 1989 | 'parameters' => [
|
---|
| 1990 | 'courseId' => [
|
---|
| 1991 | 'location' => 'query',
|
---|
| 1992 | 'type' => 'string',
|
---|
| 1993 | ],
|
---|
| 1994 | 'pageSize' => [
|
---|
| 1995 | 'location' => 'query',
|
---|
| 1996 | 'type' => 'integer',
|
---|
| 1997 | ],
|
---|
| 1998 | 'pageToken' => [
|
---|
| 1999 | 'location' => 'query',
|
---|
| 2000 | 'type' => 'string',
|
---|
| 2001 | ],
|
---|
| 2002 | 'userId' => [
|
---|
| 2003 | 'location' => 'query',
|
---|
| 2004 | 'type' => 'string',
|
---|
| 2005 | ],
|
---|
| 2006 | ],
|
---|
| 2007 | ],
|
---|
| 2008 | ]
|
---|
| 2009 | ]
|
---|
| 2010 | );
|
---|
| 2011 | $this->registrations = new Classroom\Resource\Registrations(
|
---|
| 2012 | $this,
|
---|
| 2013 | $this->serviceName,
|
---|
| 2014 | 'registrations',
|
---|
| 2015 | [
|
---|
| 2016 | 'methods' => [
|
---|
| 2017 | 'create' => [
|
---|
| 2018 | 'path' => 'v1/registrations',
|
---|
| 2019 | 'httpMethod' => 'POST',
|
---|
| 2020 | 'parameters' => [],
|
---|
| 2021 | ],'delete' => [
|
---|
| 2022 | 'path' => 'v1/registrations/{registrationId}',
|
---|
| 2023 | 'httpMethod' => 'DELETE',
|
---|
| 2024 | 'parameters' => [
|
---|
| 2025 | 'registrationId' => [
|
---|
| 2026 | 'location' => 'path',
|
---|
| 2027 | 'type' => 'string',
|
---|
| 2028 | 'required' => true,
|
---|
| 2029 | ],
|
---|
| 2030 | ],
|
---|
| 2031 | ],
|
---|
| 2032 | ]
|
---|
| 2033 | ]
|
---|
| 2034 | );
|
---|
| 2035 | $this->userProfiles = new Classroom\Resource\UserProfiles(
|
---|
| 2036 | $this,
|
---|
| 2037 | $this->serviceName,
|
---|
| 2038 | 'userProfiles',
|
---|
| 2039 | [
|
---|
| 2040 | 'methods' => [
|
---|
| 2041 | 'get' => [
|
---|
| 2042 | 'path' => 'v1/userProfiles/{userId}',
|
---|
| 2043 | 'httpMethod' => 'GET',
|
---|
| 2044 | 'parameters' => [
|
---|
| 2045 | 'userId' => [
|
---|
| 2046 | 'location' => 'path',
|
---|
| 2047 | 'type' => 'string',
|
---|
| 2048 | 'required' => true,
|
---|
| 2049 | ],
|
---|
| 2050 | ],
|
---|
| 2051 | ],
|
---|
| 2052 | ]
|
---|
| 2053 | ]
|
---|
| 2054 | );
|
---|
| 2055 | $this->userProfiles_guardianInvitations = new Classroom\Resource\UserProfilesGuardianInvitations(
|
---|
| 2056 | $this,
|
---|
| 2057 | $this->serviceName,
|
---|
| 2058 | 'guardianInvitations',
|
---|
| 2059 | [
|
---|
| 2060 | 'methods' => [
|
---|
| 2061 | 'create' => [
|
---|
| 2062 | 'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
|
---|
| 2063 | 'httpMethod' => 'POST',
|
---|
| 2064 | 'parameters' => [
|
---|
| 2065 | 'studentId' => [
|
---|
| 2066 | 'location' => 'path',
|
---|
| 2067 | 'type' => 'string',
|
---|
| 2068 | 'required' => true,
|
---|
| 2069 | ],
|
---|
| 2070 | ],
|
---|
| 2071 | ],'get' => [
|
---|
| 2072 | 'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
|
---|
| 2073 | 'httpMethod' => 'GET',
|
---|
| 2074 | 'parameters' => [
|
---|
| 2075 | 'studentId' => [
|
---|
| 2076 | 'location' => 'path',
|
---|
| 2077 | 'type' => 'string',
|
---|
| 2078 | 'required' => true,
|
---|
| 2079 | ],
|
---|
| 2080 | 'invitationId' => [
|
---|
| 2081 | 'location' => 'path',
|
---|
| 2082 | 'type' => 'string',
|
---|
| 2083 | 'required' => true,
|
---|
| 2084 | ],
|
---|
| 2085 | ],
|
---|
| 2086 | ],'list' => [
|
---|
| 2087 | 'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
|
---|
| 2088 | 'httpMethod' => 'GET',
|
---|
| 2089 | 'parameters' => [
|
---|
| 2090 | 'studentId' => [
|
---|
| 2091 | 'location' => 'path',
|
---|
| 2092 | 'type' => 'string',
|
---|
| 2093 | 'required' => true,
|
---|
| 2094 | ],
|
---|
| 2095 | 'invitedEmailAddress' => [
|
---|
| 2096 | 'location' => 'query',
|
---|
| 2097 | 'type' => 'string',
|
---|
| 2098 | ],
|
---|
| 2099 | 'pageSize' => [
|
---|
| 2100 | 'location' => 'query',
|
---|
| 2101 | 'type' => 'integer',
|
---|
| 2102 | ],
|
---|
| 2103 | 'pageToken' => [
|
---|
| 2104 | 'location' => 'query',
|
---|
| 2105 | 'type' => 'string',
|
---|
| 2106 | ],
|
---|
| 2107 | 'states' => [
|
---|
| 2108 | 'location' => 'query',
|
---|
| 2109 | 'type' => 'string',
|
---|
| 2110 | 'repeated' => true,
|
---|
| 2111 | ],
|
---|
| 2112 | ],
|
---|
| 2113 | ],'patch' => [
|
---|
| 2114 | 'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
|
---|
| 2115 | 'httpMethod' => 'PATCH',
|
---|
| 2116 | 'parameters' => [
|
---|
| 2117 | 'studentId' => [
|
---|
| 2118 | 'location' => 'path',
|
---|
| 2119 | 'type' => 'string',
|
---|
| 2120 | 'required' => true,
|
---|
| 2121 | ],
|
---|
| 2122 | 'invitationId' => [
|
---|
| 2123 | 'location' => 'path',
|
---|
| 2124 | 'type' => 'string',
|
---|
| 2125 | 'required' => true,
|
---|
| 2126 | ],
|
---|
| 2127 | 'updateMask' => [
|
---|
| 2128 | 'location' => 'query',
|
---|
| 2129 | 'type' => 'string',
|
---|
| 2130 | ],
|
---|
| 2131 | ],
|
---|
| 2132 | ],
|
---|
| 2133 | ]
|
---|
| 2134 | ]
|
---|
| 2135 | );
|
---|
| 2136 | $this->userProfiles_guardians = new Classroom\Resource\UserProfilesGuardians(
|
---|
| 2137 | $this,
|
---|
| 2138 | $this->serviceName,
|
---|
| 2139 | 'guardians',
|
---|
| 2140 | [
|
---|
| 2141 | 'methods' => [
|
---|
| 2142 | 'delete' => [
|
---|
| 2143 | 'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
|
---|
| 2144 | 'httpMethod' => 'DELETE',
|
---|
| 2145 | 'parameters' => [
|
---|
| 2146 | 'studentId' => [
|
---|
| 2147 | 'location' => 'path',
|
---|
| 2148 | 'type' => 'string',
|
---|
| 2149 | 'required' => true,
|
---|
| 2150 | ],
|
---|
| 2151 | 'guardianId' => [
|
---|
| 2152 | 'location' => 'path',
|
---|
| 2153 | 'type' => 'string',
|
---|
| 2154 | 'required' => true,
|
---|
| 2155 | ],
|
---|
| 2156 | ],
|
---|
| 2157 | ],'get' => [
|
---|
| 2158 | 'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
|
---|
| 2159 | 'httpMethod' => 'GET',
|
---|
| 2160 | 'parameters' => [
|
---|
| 2161 | 'studentId' => [
|
---|
| 2162 | 'location' => 'path',
|
---|
| 2163 | 'type' => 'string',
|
---|
| 2164 | 'required' => true,
|
---|
| 2165 | ],
|
---|
| 2166 | 'guardianId' => [
|
---|
| 2167 | 'location' => 'path',
|
---|
| 2168 | 'type' => 'string',
|
---|
| 2169 | 'required' => true,
|
---|
| 2170 | ],
|
---|
| 2171 | ],
|
---|
| 2172 | ],'list' => [
|
---|
| 2173 | 'path' => 'v1/userProfiles/{studentId}/guardians',
|
---|
| 2174 | 'httpMethod' => 'GET',
|
---|
| 2175 | 'parameters' => [
|
---|
| 2176 | 'studentId' => [
|
---|
| 2177 | 'location' => 'path',
|
---|
| 2178 | 'type' => 'string',
|
---|
| 2179 | 'required' => true,
|
---|
| 2180 | ],
|
---|
| 2181 | 'invitedEmailAddress' => [
|
---|
| 2182 | 'location' => 'query',
|
---|
| 2183 | 'type' => 'string',
|
---|
| 2184 | ],
|
---|
| 2185 | 'pageSize' => [
|
---|
| 2186 | 'location' => 'query',
|
---|
| 2187 | 'type' => 'integer',
|
---|
| 2188 | ],
|
---|
| 2189 | 'pageToken' => [
|
---|
| 2190 | 'location' => 'query',
|
---|
| 2191 | 'type' => 'string',
|
---|
| 2192 | ],
|
---|
| 2193 | ],
|
---|
| 2194 | ],
|
---|
| 2195 | ]
|
---|
| 2196 | ]
|
---|
| 2197 | );
|
---|
| 2198 | }
|
---|
| 2199 | }
|
---|
| 2200 |
|
---|
| 2201 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 2202 | class_alias(Classroom::class, 'Google_Service_Classroom');
|
---|