| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for Classroom (v1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* Manages classes, rosters, and invitations in Google Classroom.</p> |
| 21 |
* |
| 22 |
* <p> |
| 23 |
* For more information about this service, see the API |
| 24 |
* <a href="https://developers.google.com/classroom/" target="_blank">Documentation</a> |
| 25 |
* </p> |
| 26 |
* |
| 27 |
* @author Google, Inc. |
| 28 |
*/ |
| 29 |
class Google_Service_Classroom extends Google_Service |
| 30 |
{ |
| 31 |
/** View instructions for teacher-assigned work in your Google Classroom classes. */ |
| 32 |
const CLASSROOM_COURSE_WORK_READONLY = |
| 33 |
"https://www.googleapis.com/auth/classroom.course-work.readonly"; |
| 34 |
/** Manage your Google Classroom classes. */ |
| 35 |
const CLASSROOM_COURSES = |
| 36 |
"https://www.googleapis.com/auth/classroom.courses"; |
| 37 |
/** View your Google Classroom classes. */ |
| 38 |
const CLASSROOM_COURSES_READONLY = |
| 39 |
"https://www.googleapis.com/auth/classroom.courses.readonly"; |
| 40 |
/** Manage your course work and view your grades in Google Classroom. */ |
| 41 |
const CLASSROOM_COURSEWORK_ME = |
| 42 |
"https://www.googleapis.com/auth/classroom.coursework.me"; |
| 43 |
/** View your course work and grades in Google Classroom. */ |
| 44 |
const CLASSROOM_COURSEWORK_ME_READONLY = |
| 45 |
"https://www.googleapis.com/auth/classroom.coursework.me.readonly"; |
| 46 |
/** 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. */ |
| 47 |
const CLASSROOM_COURSEWORK_STUDENTS = |
| 48 |
"https://www.googleapis.com/auth/classroom.coursework.students"; |
| 49 |
/** View course work and grades for students in the Google Classroom classes you teach or administer. */ |
| 50 |
const CLASSROOM_COURSEWORK_STUDENTS_READONLY = |
| 51 |
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"; |
| 52 |
/** View the email addresses of people in your classes. */ |
| 53 |
const CLASSROOM_PROFILE_EMAILS = |
| 54 |
"https://www.googleapis.com/auth/classroom.profile.emails"; |
| 55 |
/** View the profile photos of people in your classes. */ |
| 56 |
const CLASSROOM_PROFILE_PHOTOS = |
| 57 |
"https://www.googleapis.com/auth/classroom.profile.photos"; |
| 58 |
/** Manage your Google Classroom class rosters. */ |
| 59 |
const CLASSROOM_ROSTERS = |
| 60 |
"https://www.googleapis.com/auth/classroom.rosters"; |
| 61 |
/** View your Google Classroom class rosters. */ |
| 62 |
const CLASSROOM_ROSTERS_READONLY = |
| 63 |
"https://www.googleapis.com/auth/classroom.rosters.readonly"; |
| 64 |
/** View your course work and grades in Google Classroom. */ |
| 65 |
const CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = |
| 66 |
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly"; |
| 67 |
/** View course work and grades for students in the Google Classroom classes you teach or administer. */ |
| 68 |
const CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = |
| 69 |
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"; |
| 70 |
|
| 71 |
public $courses; |
| 72 |
public $courses_aliases; |
| 73 |
public $courses_courseWork; |
| 74 |
public $courses_courseWork_studentSubmissions; |
| 75 |
public $courses_students; |
| 76 |
public $courses_teachers; |
| 77 |
public $invitations; |
| 78 |
public $userProfiles; |
| 79 |
|
| 80 |
|
| 81 |
/** |
| 82 |
* Constructs the internal representation of the Classroom service. |
| 83 |
* |
| 84 |
* @param Google_Client $client |
| 85 |
*/ |
| 86 |
public function __construct(Google_Client $client) |
| 87 |
{ |
| 88 |
parent::__construct($client); |
| 89 |
$this->rootUrl = 'https://classroom.googleapis.com/'; |
| 90 |
$this->servicePath = ''; |
| 91 |
$this->version = 'v1'; |
| 92 |
$this->serviceName = 'classroom'; |
| 93 |
|
| 94 |
$this->courses = new Google_Service_Classroom_Courses_Resource( |
| 95 |
$this, |
| 96 |
$this->serviceName, |
| 97 |
'courses', |
| 98 |
array( |
| 99 |
'methods' => array( |
| 100 |
'create' => array( |
| 101 |
'path' => 'v1/courses', |
| 102 |
'httpMethod' => 'POST', |
| 103 |
'parameters' => array(), |
| 104 |
),'delete' => array( |
| 105 |
'path' => 'v1/courses/{id}', |
| 106 |
'httpMethod' => 'DELETE', |
| 107 |
'parameters' => array( |
| 108 |
'id' => array( |
| 109 |
'location' => 'path', |
| 110 |
'type' => 'string', |
| 111 |
'required' => true, |
| 112 |
), |
| 113 |
), |
| 114 |
),'get' => array( |
| 115 |
'path' => 'v1/courses/{id}', |
| 116 |
'httpMethod' => 'GET', |
| 117 |
'parameters' => array( |
| 118 |
'id' => array( |
| 119 |
'location' => 'path', |
| 120 |
'type' => 'string', |
| 121 |
'required' => true, |
| 122 |
), |
| 123 |
), |
| 124 |
),'list' => array( |
| 125 |
'path' => 'v1/courses', |
| 126 |
'httpMethod' => 'GET', |
| 127 |
'parameters' => array( |
| 128 |
'studentId' => array( |
| 129 |
'location' => 'query', |
| 130 |
'type' => 'string', |
| 131 |
), |
| 132 |
'teacherId' => array( |
| 133 |
'location' => 'query', |
| 134 |
'type' => 'string', |
| 135 |
), |
| 136 |
'pageSize' => array( |
| 137 |
'location' => 'query', |
| 138 |
'type' => 'integer', |
| 139 |
), |
| 140 |
'pageToken' => array( |
| 141 |
'location' => 'query', |
| 142 |
'type' => 'string', |
| 143 |
), |
| 144 |
), |
| 145 |
),'patch' => array( |
| 146 |
'path' => 'v1/courses/{id}', |
| 147 |
'httpMethod' => 'PATCH', |
| 148 |
'parameters' => array( |
| 149 |
'id' => array( |
| 150 |
'location' => 'path', |
| 151 |
'type' => 'string', |
| 152 |
'required' => true, |
| 153 |
), |
| 154 |
'updateMask' => array( |
| 155 |
'location' => 'query', |
| 156 |
'type' => 'string', |
| 157 |
), |
| 158 |
), |
| 159 |
),'update' => array( |
| 160 |
'path' => 'v1/courses/{id}', |
| 161 |
'httpMethod' => 'PUT', |
| 162 |
'parameters' => array( |
| 163 |
'id' => array( |
| 164 |
'location' => 'path', |
| 165 |
'type' => 'string', |
| 166 |
'required' => true, |
| 167 |
), |
| 168 |
), |
| 169 |
), |
| 170 |
) |
| 171 |
) |
| 172 |
); |
| 173 |
$this->courses_aliases = new Google_Service_Classroom_CoursesAliases_Resource( |
| 174 |
$this, |
| 175 |
$this->serviceName, |
| 176 |
'aliases', |
| 177 |
array( |
| 178 |
'methods' => array( |
| 179 |
'create' => array( |
| 180 |
'path' => 'v1/courses/{courseId}/aliases', |
| 181 |
'httpMethod' => 'POST', |
| 182 |
'parameters' => array( |
| 183 |
'courseId' => array( |
| 184 |
'location' => 'path', |
| 185 |
'type' => 'string', |
| 186 |
'required' => true, |
| 187 |
), |
| 188 |
), |
| 189 |
),'delete' => array( |
| 190 |
'path' => 'v1/courses/{courseId}/aliases/{alias}', |
| 191 |
'httpMethod' => 'DELETE', |
| 192 |
'parameters' => array( |
| 193 |
'courseId' => array( |
| 194 |
'location' => 'path', |
| 195 |
'type' => 'string', |
| 196 |
'required' => true, |
| 197 |
), |
| 198 |
'alias' => array( |
| 199 |
'location' => 'path', |
| 200 |
'type' => 'string', |
| 201 |
'required' => true, |
| 202 |
), |
| 203 |
), |
| 204 |
),'list' => array( |
| 205 |
'path' => 'v1/courses/{courseId}/aliases', |
| 206 |
'httpMethod' => 'GET', |
| 207 |
'parameters' => array( |
| 208 |
'courseId' => array( |
| 209 |
'location' => 'path', |
| 210 |
'type' => 'string', |
| 211 |
'required' => true, |
| 212 |
), |
| 213 |
'pageSize' => array( |
| 214 |
'location' => 'query', |
| 215 |
'type' => 'integer', |
| 216 |
), |
| 217 |
'pageToken' => array( |
| 218 |
'location' => 'query', |
| 219 |
'type' => 'string', |
| 220 |
), |
| 221 |
), |
| 222 |
), |
| 223 |
) |
| 224 |
) |
| 225 |
); |
| 226 |
$this->courses_courseWork = new Google_Service_Classroom_CoursesCourseWork_Resource( |
| 227 |
$this, |
| 228 |
$this->serviceName, |
| 229 |
'courseWork', |
| 230 |
array( |
| 231 |
'methods' => array( |
| 232 |
'create' => array( |
| 233 |
'path' => 'v1/courses/{courseId}/courseWork', |
| 234 |
'httpMethod' => 'POST', |
| 235 |
'parameters' => array( |
| 236 |
'courseId' => array( |
| 237 |
'location' => 'path', |
| 238 |
'type' => 'string', |
| 239 |
'required' => true, |
| 240 |
), |
| 241 |
), |
| 242 |
),'get' => array( |
| 243 |
'path' => 'v1/courses/{courseId}/courseWork/{id}', |
| 244 |
'httpMethod' => 'GET', |
| 245 |
'parameters' => array( |
| 246 |
'courseId' => array( |
| 247 |
'location' => 'path', |
| 248 |
'type' => 'string', |
| 249 |
'required' => true, |
| 250 |
), |
| 251 |
'id' => array( |
| 252 |
'location' => 'path', |
| 253 |
'type' => 'string', |
| 254 |
'required' => true, |
| 255 |
), |
| 256 |
), |
| 257 |
),'list' => array( |
| 258 |
'path' => 'v1/courses/{courseId}/courseWork', |
| 259 |
'httpMethod' => 'GET', |
| 260 |
'parameters' => array( |
| 261 |
'courseId' => array( |
| 262 |
'location' => 'path', |
| 263 |
'type' => 'string', |
| 264 |
'required' => true, |
| 265 |
), |
| 266 |
'courseWorkStates' => array( |
| 267 |
'location' => 'query', |
| 268 |
'type' => 'string', |
| 269 |
'repeated' => true, |
| 270 |
), |
| 271 |
'orderBy' => array( |
| 272 |
'location' => 'query', |
| 273 |
'type' => 'string', |
| 274 |
), |
| 275 |
'pageSize' => array( |
| 276 |
'location' => 'query', |
| 277 |
'type' => 'integer', |
| 278 |
), |
| 279 |
'pageToken' => array( |
| 280 |
'location' => 'query', |
| 281 |
'type' => 'string', |
| 282 |
), |
| 283 |
), |
| 284 |
), |
| 285 |
) |
| 286 |
) |
| 287 |
); |
| 288 |
$this->courses_courseWork_studentSubmissions = new Google_Service_Classroom_CoursesCourseWorkStudentSubmissions_Resource( |
| 289 |
$this, |
| 290 |
$this->serviceName, |
| 291 |
'studentSubmissions', |
| 292 |
array( |
| 293 |
'methods' => array( |
| 294 |
'get' => array( |
| 295 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', |
| 296 |
'httpMethod' => 'GET', |
| 297 |
'parameters' => array( |
| 298 |
'courseId' => array( |
| 299 |
'location' => 'path', |
| 300 |
'type' => 'string', |
| 301 |
'required' => true, |
| 302 |
), |
| 303 |
'courseWorkId' => array( |
| 304 |
'location' => 'path', |
| 305 |
'type' => 'string', |
| 306 |
'required' => true, |
| 307 |
), |
| 308 |
'id' => array( |
| 309 |
'location' => 'path', |
| 310 |
'type' => 'string', |
| 311 |
'required' => true, |
| 312 |
), |
| 313 |
), |
| 314 |
),'list' => array( |
| 315 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions', |
| 316 |
'httpMethod' => 'GET', |
| 317 |
'parameters' => array( |
| 318 |
'courseId' => array( |
| 319 |
'location' => 'path', |
| 320 |
'type' => 'string', |
| 321 |
'required' => true, |
| 322 |
), |
| 323 |
'courseWorkId' => array( |
| 324 |
'location' => 'path', |
| 325 |
'type' => 'string', |
| 326 |
'required' => true, |
| 327 |
), |
| 328 |
'userId' => array( |
| 329 |
'location' => 'query', |
| 330 |
'type' => 'string', |
| 331 |
), |
| 332 |
'states' => array( |
| 333 |
'location' => 'query', |
| 334 |
'type' => 'string', |
| 335 |
'repeated' => true, |
| 336 |
), |
| 337 |
'late' => array( |
| 338 |
'location' => 'query', |
| 339 |
'type' => 'string', |
| 340 |
), |
| 341 |
'pageSize' => array( |
| 342 |
'location' => 'query', |
| 343 |
'type' => 'integer', |
| 344 |
), |
| 345 |
'pageToken' => array( |
| 346 |
'location' => 'query', |
| 347 |
'type' => 'string', |
| 348 |
), |
| 349 |
), |
| 350 |
),'modifyAttachments' => array( |
| 351 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments', |
| 352 |
'httpMethod' => 'POST', |
| 353 |
'parameters' => array( |
| 354 |
'courseId' => array( |
| 355 |
'location' => 'path', |
| 356 |
'type' => 'string', |
| 357 |
'required' => true, |
| 358 |
), |
| 359 |
'courseWorkId' => array( |
| 360 |
'location' => 'path', |
| 361 |
'type' => 'string', |
| 362 |
'required' => true, |
| 363 |
), |
| 364 |
'id' => array( |
| 365 |
'location' => 'path', |
| 366 |
'type' => 'string', |
| 367 |
'required' => true, |
| 368 |
), |
| 369 |
), |
| 370 |
),'patch' => array( |
| 371 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', |
| 372 |
'httpMethod' => 'PATCH', |
| 373 |
'parameters' => array( |
| 374 |
'courseId' => array( |
| 375 |
'location' => 'path', |
| 376 |
'type' => 'string', |
| 377 |
'required' => true, |
| 378 |
), |
| 379 |
'courseWorkId' => array( |
| 380 |
'location' => 'path', |
| 381 |
'type' => 'string', |
| 382 |
'required' => true, |
| 383 |
), |
| 384 |
'id' => array( |
| 385 |
'location' => 'path', |
| 386 |
'type' => 'string', |
| 387 |
'required' => true, |
| 388 |
), |
| 389 |
'updateMask' => array( |
| 390 |
'location' => 'query', |
| 391 |
'type' => 'string', |
| 392 |
), |
| 393 |
), |
| 394 |
),'reclaim' => array( |
| 395 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim', |
| 396 |
'httpMethod' => 'POST', |
| 397 |
'parameters' => array( |
| 398 |
'courseId' => array( |
| 399 |
'location' => 'path', |
| 400 |
'type' => 'string', |
| 401 |
'required' => true, |
| 402 |
), |
| 403 |
'courseWorkId' => array( |
| 404 |
'location' => 'path', |
| 405 |
'type' => 'string', |
| 406 |
'required' => true, |
| 407 |
), |
| 408 |
'id' => array( |
| 409 |
'location' => 'path', |
| 410 |
'type' => 'string', |
| 411 |
'required' => true, |
| 412 |
), |
| 413 |
), |
| 414 |
),'return' => array( |
| 415 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return', |
| 416 |
'httpMethod' => 'POST', |
| 417 |
'parameters' => array( |
| 418 |
'courseId' => array( |
| 419 |
'location' => 'path', |
| 420 |
'type' => 'string', |
| 421 |
'required' => true, |
| 422 |
), |
| 423 |
'courseWorkId' => array( |
| 424 |
'location' => 'path', |
| 425 |
'type' => 'string', |
| 426 |
'required' => true, |
| 427 |
), |
| 428 |
'id' => array( |
| 429 |
'location' => 'path', |
| 430 |
'type' => 'string', |
| 431 |
'required' => true, |
| 432 |
), |
| 433 |
), |
| 434 |
),'turnIn' => array( |
| 435 |
'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn', |
| 436 |
'httpMethod' => 'POST', |
| 437 |
'parameters' => array( |
| 438 |
'courseId' => array( |
| 439 |
'location' => 'path', |
| 440 |
'type' => 'string', |
| 441 |
'required' => true, |
| 442 |
), |
| 443 |
'courseWorkId' => array( |
| 444 |
'location' => 'path', |
| 445 |
'type' => 'string', |
| 446 |
'required' => true, |
| 447 |
), |
| 448 |
'id' => array( |
| 449 |
'location' => 'path', |
| 450 |
'type' => 'string', |
| 451 |
'required' => true, |
| 452 |
), |
| 453 |
), |
| 454 |
), |
| 455 |
) |
| 456 |
) |
| 457 |
); |
| 458 |
$this->courses_students = new Google_Service_Classroom_CoursesStudents_Resource( |
| 459 |
$this, |
| 460 |
$this->serviceName, |
| 461 |
'students', |
| 462 |
array( |
| 463 |
'methods' => array( |
| 464 |
'create' => array( |
| 465 |
'path' => 'v1/courses/{courseId}/students', |
| 466 |
'httpMethod' => 'POST', |
| 467 |
'parameters' => array( |
| 468 |
'courseId' => array( |
| 469 |
'location' => 'path', |
| 470 |
'type' => 'string', |
| 471 |
'required' => true, |
| 472 |
), |
| 473 |
'enrollmentCode' => array( |
| 474 |
'location' => 'query', |
| 475 |
'type' => 'string', |
| 476 |
), |
| 477 |
), |
| 478 |
),'delete' => array( |
| 479 |
'path' => 'v1/courses/{courseId}/students/{userId}', |
| 480 |
'httpMethod' => 'DELETE', |
| 481 |
'parameters' => array( |
| 482 |
'courseId' => array( |
| 483 |
'location' => 'path', |
| 484 |
'type' => 'string', |
| 485 |
'required' => true, |
| 486 |
), |
| 487 |
'userId' => array( |
| 488 |
'location' => 'path', |
| 489 |
'type' => 'string', |
| 490 |
'required' => true, |
| 491 |
), |
| 492 |
), |
| 493 |
),'get' => array( |
| 494 |
'path' => 'v1/courses/{courseId}/students/{userId}', |
| 495 |
'httpMethod' => 'GET', |
| 496 |
'parameters' => array( |
| 497 |
'courseId' => array( |
| 498 |
'location' => 'path', |
| 499 |
'type' => 'string', |
| 500 |
'required' => true, |
| 501 |
), |
| 502 |
'userId' => array( |
| 503 |
'location' => 'path', |
| 504 |
'type' => 'string', |
| 505 |
'required' => true, |
| 506 |
), |
| 507 |
), |
| 508 |
),'list' => array( |
| 509 |
'path' => 'v1/courses/{courseId}/students', |
| 510 |
'httpMethod' => 'GET', |
| 511 |
'parameters' => array( |
| 512 |
'courseId' => array( |
| 513 |
'location' => 'path', |
| 514 |
'type' => 'string', |
| 515 |
'required' => true, |
| 516 |
), |
| 517 |
'pageSize' => array( |
| 518 |
'location' => 'query', |
| 519 |
'type' => 'integer', |
| 520 |
), |
| 521 |
'pageToken' => array( |
| 522 |
'location' => 'query', |
| 523 |
'type' => 'string', |
| 524 |
), |
| 525 |
), |
| 526 |
), |
| 527 |
) |
| 528 |
) |
| 529 |
); |
| 530 |
$this->courses_teachers = new Google_Service_Classroom_CoursesTeachers_Resource( |
| 531 |
$this, |
| 532 |
$this->serviceName, |
| 533 |
'teachers', |
| 534 |
array( |
| 535 |
'methods' => array( |
| 536 |
'create' => array( |
| 537 |
'path' => 'v1/courses/{courseId}/teachers', |
| 538 |
'httpMethod' => 'POST', |
| 539 |
'parameters' => array( |
| 540 |
'courseId' => array( |
| 541 |
'location' => 'path', |
| 542 |
'type' => 'string', |
| 543 |
'required' => true, |
| 544 |
), |
| 545 |
), |
| 546 |
),'delete' => array( |
| 547 |
'path' => 'v1/courses/{courseId}/teachers/{userId}', |
| 548 |
'httpMethod' => 'DELETE', |
| 549 |
'parameters' => array( |
| 550 |
'courseId' => array( |
| 551 |
'location' => 'path', |
| 552 |
'type' => 'string', |
| 553 |
'required' => true, |
| 554 |
), |
| 555 |
'userId' => array( |
| 556 |
'location' => 'path', |
| 557 |
'type' => 'string', |
| 558 |
'required' => true, |
| 559 |
), |
| 560 |
), |
| 561 |
),'get' => array( |
| 562 |
'path' => 'v1/courses/{courseId}/teachers/{userId}', |
| 563 |
'httpMethod' => 'GET', |
| 564 |
'parameters' => array( |
| 565 |
'courseId' => array( |
| 566 |
'location' => 'path', |
| 567 |
'type' => 'string', |
| 568 |
'required' => true, |
| 569 |
), |
| 570 |
'userId' => array( |
| 571 |
'location' => 'path', |
| 572 |
'type' => 'string', |
| 573 |
'required' => true, |
| 574 |
), |
| 575 |
), |
| 576 |
),'list' => array( |
| 577 |
'path' => 'v1/courses/{courseId}/teachers', |
| 578 |
'httpMethod' => 'GET', |
| 579 |
'parameters' => array( |
| 580 |
'courseId' => array( |
| 581 |
'location' => 'path', |
| 582 |
'type' => 'string', |
| 583 |
'required' => true, |
| 584 |
), |
| 585 |
'pageSize' => array( |
| 586 |
'location' => 'query', |
| 587 |
'type' => 'integer', |
| 588 |
), |
| 589 |
'pageToken' => array( |
| 590 |
'location' => 'query', |
| 591 |
'type' => 'string', |
| 592 |
), |
| 593 |
), |
| 594 |
), |
| 595 |
) |
| 596 |
) |
| 597 |
); |
| 598 |
$this->invitations = new Google_Service_Classroom_Invitations_Resource( |
| 599 |
$this, |
| 600 |
$this->serviceName, |
| 601 |
'invitations', |
| 602 |
array( |
| 603 |
'methods' => array( |
| 604 |
'accept' => array( |
| 605 |
'path' => 'v1/invitations/{id}:accept', |
| 606 |
'httpMethod' => 'POST', |
| 607 |
'parameters' => array( |
| 608 |
'id' => array( |
| 609 |
'location' => 'path', |
| 610 |
'type' => 'string', |
| 611 |
'required' => true, |
| 612 |
), |
| 613 |
), |
| 614 |
),'create' => array( |
| 615 |
'path' => 'v1/invitations', |
| 616 |
'httpMethod' => 'POST', |
| 617 |
'parameters' => array(), |
| 618 |
),'delete' => array( |
| 619 |
'path' => 'v1/invitations/{id}', |
| 620 |
'httpMethod' => 'DELETE', |
| 621 |
'parameters' => array( |
| 622 |
'id' => array( |
| 623 |
'location' => 'path', |
| 624 |
'type' => 'string', |
| 625 |
'required' => true, |
| 626 |
), |
| 627 |
), |
| 628 |
),'get' => array( |
| 629 |
'path' => 'v1/invitations/{id}', |
| 630 |
'httpMethod' => 'GET', |
| 631 |
'parameters' => array( |
| 632 |
'id' => array( |
| 633 |
'location' => 'path', |
| 634 |
'type' => 'string', |
| 635 |
'required' => true, |
| 636 |
), |
| 637 |
), |
| 638 |
),'list' => array( |
| 639 |
'path' => 'v1/invitations', |
| 640 |
'httpMethod' => 'GET', |
| 641 |
'parameters' => array( |
| 642 |
'userId' => array( |
| 643 |
'location' => 'query', |
| 644 |
'type' => 'string', |
| 645 |
), |
| 646 |
'courseId' => array( |
| 647 |
'location' => 'query', |
| 648 |
'type' => 'string', |
| 649 |
), |
| 650 |
'pageSize' => array( |
| 651 |
'location' => 'query', |
| 652 |
'type' => 'integer', |
| 653 |
), |
| 654 |
'pageToken' => array( |
| 655 |
'location' => 'query', |
| 656 |
'type' => 'string', |
| 657 |
), |
| 658 |
), |
| 659 |
), |
| 660 |
) |
| 661 |
) |
| 662 |
); |
| 663 |
$this->userProfiles = new Google_Service_Classroom_UserProfiles_Resource( |
| 664 |
$this, |
| 665 |
$this->serviceName, |
| 666 |
'userProfiles', |
| 667 |
array( |
| 668 |
'methods' => array( |
| 669 |
'get' => array( |
| 670 |
'path' => 'v1/userProfiles/{userId}', |
| 671 |
'httpMethod' => 'GET', |
| 672 |
'parameters' => array( |
| 673 |
'userId' => array( |
| 674 |
'location' => 'path', |
| 675 |
'type' => 'string', |
| 676 |
'required' => true, |
| 677 |
), |
| 678 |
), |
| 679 |
), |
| 680 |
) |
| 681 |
) |
| 682 |
); |
| 683 |
} |
| 684 |
} |
| 685 |
|
| 686 |
|
| 687 |
/** |
| 688 |
* The "courses" collection of methods. |
| 689 |
* Typical usage is: |
| 690 |
* <code> |
| 691 |
* $classroomService = new Google_Service_Classroom(...); |
| 692 |
* $courses = $classroomService->courses; |
| 693 |
* </code> |
| 694 |
*/ |
| 695 |
class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource |
| 696 |
{ |
| 697 |
|
| 698 |
/** |
| 699 |
* Creates a course. The user specified in `ownerId` is the owner of the created |
| 700 |
* course and added as a teacher. This method returns the following error codes: |
| 701 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to create |
| 702 |
* courses or for access errors. * `NOT_FOUND` if the primary teacher is not a |
| 703 |
* valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled |
| 704 |
* or for the following request errors: * UserGroupsMembershipLimitReached * |
| 705 |
* `ALREADY_EXISTS` if an alias was specified in the `id` and already exists. |
| 706 |
* (courses.create) |
| 707 |
* |
| 708 |
* @param Google_Course $postBody |
| 709 |
* @param array $optParams Optional parameters. |
| 710 |
* @return Google_Service_Classroom_Course |
| 711 |
*/ |
| 712 |
public function create(Google_Service_Classroom_Course $postBody, $optParams = array()) |
| 713 |
{ |
| 714 |
$params = array('postBody' => $postBody); |
| 715 |
$params = array_merge($params, $optParams); |
| 716 |
return $this->call('create', array($params), "Google_Service_Classroom_Course"); |
| 717 |
} |
| 718 |
|
| 719 |
/** |
| 720 |
* Deletes a course. This method returns the following error codes: * |
| 721 |
* `PERMISSION_DENIED` if the requesting user is not permitted to delete the |
| 722 |
* requested course or for access errors. * `NOT_FOUND` if no course exists with |
| 723 |
* the requested ID. (courses.delete) |
| 724 |
* |
| 725 |
* @param string $id Identifier of the course to delete. This identifier can be |
| 726 |
* either the Classroom-assigned identifier or an alias. |
| 727 |
* @param array $optParams Optional parameters. |
| 728 |
* @return Google_Service_Classroom_Empty |
| 729 |
*/ |
| 730 |
public function delete($id, $optParams = array()) |
| 731 |
{ |
| 732 |
$params = array('id' => $id); |
| 733 |
$params = array_merge($params, $optParams); |
| 734 |
return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); |
| 735 |
} |
| 736 |
|
| 737 |
/** |
| 738 |
* Returns a course. This method returns the following error codes: * |
| 739 |
* `PERMISSION_DENIED` if the requesting user is not permitted to access the |
| 740 |
* requested course or for access errors. * `NOT_FOUND` if no course exists with |
| 741 |
* the requested ID. (courses.get) |
| 742 |
* |
| 743 |
* @param string $id Identifier of the course to return. This identifier can be |
| 744 |
* either the Classroom-assigned identifier or an alias. |
| 745 |
* @param array $optParams Optional parameters. |
| 746 |
* @return Google_Service_Classroom_Course |
| 747 |
*/ |
| 748 |
public function get($id, $optParams = array()) |
| 749 |
{ |
| 750 |
$params = array('id' => $id); |
| 751 |
$params = array_merge($params, $optParams); |
| 752 |
return $this->call('get', array($params), "Google_Service_Classroom_Course"); |
| 753 |
} |
| 754 |
|
| 755 |
/** |
| 756 |
* Returns a list of courses that the requesting user is permitted to view, |
| 757 |
* restricted to those that match the request. This method returns the following |
| 758 |
* error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if |
| 759 |
* the query argument is malformed. * `NOT_FOUND` if any users specified in the |
| 760 |
* query arguments do not exist. (courses.listCourses) |
| 761 |
* |
| 762 |
* @param array $optParams Optional parameters. |
| 763 |
* |
| 764 |
* @opt_param string studentId Restricts returned courses to those having a |
| 765 |
* student with the specified identifier. The identifier can be one of the |
| 766 |
* following: * the numeric identifier for the user * the email address of the |
| 767 |
* user * the string literal `"me"`, indicating the requesting user |
| 768 |
* @opt_param string teacherId Restricts returned courses to those having a |
| 769 |
* teacher with the specified identifier. The identifier can be one of the |
| 770 |
* following: * the numeric identifier for the user * the email address of the |
| 771 |
* user * the string literal `"me"`, indicating the requesting user |
| 772 |
* @opt_param int pageSize Maximum number of items to return. Zero or |
| 773 |
* unspecified indicates that the server may assign a maximum. The server may |
| 774 |
* return fewer than the specified number of results. |
| 775 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 776 |
* call, indicating that the subsequent page of results should be returned. The |
| 777 |
* list request must be otherwise identical to the one that resulted in this |
| 778 |
* token. |
| 779 |
* @return Google_Service_Classroom_ListCoursesResponse |
| 780 |
*/ |
| 781 |
public function listCourses($optParams = array()) |
| 782 |
{ |
| 783 |
$params = array(); |
| 784 |
$params = array_merge($params, $optParams); |
| 785 |
return $this->call('list', array($params), "Google_Service_Classroom_ListCoursesResponse"); |
| 786 |
} |
| 787 |
|
| 788 |
/** |
| 789 |
* Updates one or more fields in a course. This method returns the following |
| 790 |
* error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 791 |
* modify the requested course or for access errors. * `NOT_FOUND` if no course |
| 792 |
* exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are |
| 793 |
* specified in the update mask or if no update mask is supplied. * |
| 794 |
* `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable |
| 795 |
* (courses.patch) |
| 796 |
* |
| 797 |
* @param string $id Identifier of the course to update. This identifier can be |
| 798 |
* either the Classroom-assigned identifier or an alias. |
| 799 |
* @param Google_Course $postBody |
| 800 |
* @param array $optParams Optional parameters. |
| 801 |
* |
| 802 |
* @opt_param string updateMask Mask that identifies which fields on the course |
| 803 |
* to update. This field is required to do an update. The update will fail if |
| 804 |
* invalid fields are specified. The following fields are valid: * `name` * |
| 805 |
* `section` * `descriptionHeading` * `description` * `room` * `courseState` |
| 806 |
* When set in a query parameter, this field should be specified as |
| 807 |
* `updateMask=,,...` |
| 808 |
* @return Google_Service_Classroom_Course |
| 809 |
*/ |
| 810 |
public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array()) |
| 811 |
{ |
| 812 |
$params = array('id' => $id, 'postBody' => $postBody); |
| 813 |
$params = array_merge($params, $optParams); |
| 814 |
return $this->call('patch', array($params), "Google_Service_Classroom_Course"); |
| 815 |
} |
| 816 |
|
| 817 |
/** |
| 818 |
* Updates a course. This method returns the following error codes: * |
| 819 |
* `PERMISSION_DENIED` if the requesting user is not permitted to modify the |
| 820 |
* requested course or for access errors. * `NOT_FOUND` if no course exists with |
| 821 |
* the requested ID. * `FAILED_PRECONDITION` for the following request errors: * |
| 822 |
* CourseNotModifiable (courses.update) |
| 823 |
* |
| 824 |
* @param string $id Identifier of the course to update. This identifier can be |
| 825 |
* either the Classroom-assigned identifier or an alias. |
| 826 |
* @param Google_Course $postBody |
| 827 |
* @param array $optParams Optional parameters. |
| 828 |
* @return Google_Service_Classroom_Course |
| 829 |
*/ |
| 830 |
public function update($id, Google_Service_Classroom_Course $postBody, $optParams = array()) |
| 831 |
{ |
| 832 |
$params = array('id' => $id, 'postBody' => $postBody); |
| 833 |
$params = array_merge($params, $optParams); |
| 834 |
return $this->call('update', array($params), "Google_Service_Classroom_Course"); |
| 835 |
} |
| 836 |
} |
| 837 |
|
| 838 |
/** |
| 839 |
* The "aliases" collection of methods. |
| 840 |
* Typical usage is: |
| 841 |
* <code> |
| 842 |
* $classroomService = new Google_Service_Classroom(...); |
| 843 |
* $aliases = $classroomService->aliases; |
| 844 |
* </code> |
| 845 |
*/ |
| 846 |
class Google_Service_Classroom_CoursesAliases_Resource extends Google_Service_Resource |
| 847 |
{ |
| 848 |
|
| 849 |
/** |
| 850 |
* Creates an alias for a course. This method returns the following error codes: |
| 851 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to create the |
| 852 |
* alias or for access errors. * `NOT_FOUND` if the course does not exist. * |
| 853 |
* `ALREADY_EXISTS` if the alias already exists. (aliases.create) |
| 854 |
* |
| 855 |
* @param string $courseId Identifier of the course to alias. This identifier |
| 856 |
* can be either the Classroom-assigned identifier or an alias. |
| 857 |
* @param Google_CourseAlias $postBody |
| 858 |
* @param array $optParams Optional parameters. |
| 859 |
* @return Google_Service_Classroom_CourseAlias |
| 860 |
*/ |
| 861 |
public function create($courseId, Google_Service_Classroom_CourseAlias $postBody, $optParams = array()) |
| 862 |
{ |
| 863 |
$params = array('courseId' => $courseId, 'postBody' => $postBody); |
| 864 |
$params = array_merge($params, $optParams); |
| 865 |
return $this->call('create', array($params), "Google_Service_Classroom_CourseAlias"); |
| 866 |
} |
| 867 |
|
| 868 |
/** |
| 869 |
* Deletes an alias of a course. This method returns the following error codes: |
| 870 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to remove the |
| 871 |
* alias or for access errors. * `NOT_FOUND` if the alias does not exist. |
| 872 |
* (aliases.delete) |
| 873 |
* |
| 874 |
* @param string $courseId Identifier of the course whose alias should be |
| 875 |
* deleted. This identifier can be either the Classroom-assigned identifier or |
| 876 |
* an alias. |
| 877 |
* @param string $alias Alias to delete. This may not be the Classroom-assigned |
| 878 |
* identifier. |
| 879 |
* @param array $optParams Optional parameters. |
| 880 |
* @return Google_Service_Classroom_Empty |
| 881 |
*/ |
| 882 |
public function delete($courseId, $alias, $optParams = array()) |
| 883 |
{ |
| 884 |
$params = array('courseId' => $courseId, 'alias' => $alias); |
| 885 |
$params = array_merge($params, $optParams); |
| 886 |
return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); |
| 887 |
} |
| 888 |
|
| 889 |
/** |
| 890 |
* Returns a list of aliases for a course. This method returns the following |
| 891 |
* error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 892 |
* access the course or for access errors. * `NOT_FOUND` if the course does not |
| 893 |
* exist. (aliases.listCoursesAliases) |
| 894 |
* |
| 895 |
* @param string $courseId The identifier of the course. This identifier can be |
| 896 |
* either the Classroom-assigned identifier or an alias. |
| 897 |
* @param array $optParams Optional parameters. |
| 898 |
* |
| 899 |
* @opt_param int pageSize Maximum number of items to return. Zero or |
| 900 |
* unspecified indicates that the server may assign a maximum. The server may |
| 901 |
* return fewer than the specified number of results. |
| 902 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 903 |
* call, indicating that the subsequent page of results should be returned. The |
| 904 |
* list request must be otherwise identical to the one that resulted in this |
| 905 |
* token. |
| 906 |
* @return Google_Service_Classroom_ListCourseAliasesResponse |
| 907 |
*/ |
| 908 |
public function listCoursesAliases($courseId, $optParams = array()) |
| 909 |
{ |
| 910 |
$params = array('courseId' => $courseId); |
| 911 |
$params = array_merge($params, $optParams); |
| 912 |
return $this->call('list', array($params), "Google_Service_Classroom_ListCourseAliasesResponse"); |
| 913 |
} |
| 914 |
} |
| 915 |
/** |
| 916 |
* The "courseWork" collection of methods. |
| 917 |
* Typical usage is: |
| 918 |
* <code> |
| 919 |
* $classroomService = new Google_Service_Classroom(...); |
| 920 |
* $courseWork = $classroomService->courseWork; |
| 921 |
* </code> |
| 922 |
*/ |
| 923 |
class Google_Service_Classroom_CoursesCourseWork_Resource extends Google_Service_Resource |
| 924 |
{ |
| 925 |
|
| 926 |
/** |
| 927 |
* Creates course work. The resulting course work (and corresponding student |
| 928 |
* submissions) are associated with the Developer Console project of the [OAuth |
| 929 |
* client ID](https://support.google.com/cloud/answer/6158849) used to make the |
| 930 |
* request. Classroom API requests to modify course work and student submissions |
| 931 |
* must be made with an OAuth client ID from the associated Developer Console |
| 932 |
* project. This method returns the following error codes: * `PERMISSION_DENIED` |
| 933 |
* if the requesting user is not permitted to access the requested course, |
| 934 |
* create course work in the requested course, or for access errors. * |
| 935 |
* `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the |
| 936 |
* requested course does not exist. (courseWork.create) |
| 937 |
* |
| 938 |
* @param string $courseId Identifier of the course. This identifier can be |
| 939 |
* either the Classroom-assigned identifier or an alias. |
| 940 |
* @param Google_CourseWork $postBody |
| 941 |
* @param array $optParams Optional parameters. |
| 942 |
* @return Google_Service_Classroom_CourseWork |
| 943 |
*/ |
| 944 |
public function create($courseId, Google_Service_Classroom_CourseWork $postBody, $optParams = array()) |
| 945 |
{ |
| 946 |
$params = array('courseId' => $courseId, 'postBody' => $postBody); |
| 947 |
$params = array_merge($params, $optParams); |
| 948 |
return $this->call('create', array($params), "Google_Service_Classroom_CourseWork"); |
| 949 |
} |
| 950 |
|
| 951 |
/** |
| 952 |
* Returns course work. This method returns the following error codes: * |
| 953 |
* `PERMISSION_DENIED` if the requesting user is not permitted to access the |
| 954 |
* requested course or course work, or for access errors. * `INVALID_ARGUMENT` |
| 955 |
* if the request is malformed. * `NOT_FOUND` if the requested course or course |
| 956 |
* work does not exist. (courseWork.get) |
| 957 |
* |
| 958 |
* @param string $courseId Identifier of the course. This identifier can be |
| 959 |
* either the Classroom-assigned identifier or an alias. |
| 960 |
* @param string $id Identifier of the course work. |
| 961 |
* @param array $optParams Optional parameters. |
| 962 |
* @return Google_Service_Classroom_CourseWork |
| 963 |
*/ |
| 964 |
public function get($courseId, $id, $optParams = array()) |
| 965 |
{ |
| 966 |
$params = array('courseId' => $courseId, 'id' => $id); |
| 967 |
$params = array_merge($params, $optParams); |
| 968 |
return $this->call('get', array($params), "Google_Service_Classroom_CourseWork"); |
| 969 |
} |
| 970 |
|
| 971 |
/** |
| 972 |
* Returns a list of course work that the requester is permitted to view. Course |
| 973 |
* students may only view `PUBLISHED` course work. Course teachers and domain |
| 974 |
* administrators may view all course work. This method returns the following |
| 975 |
* error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 976 |
* access the requested course or for access errors. * `INVALID_ARGUMENT` if the |
| 977 |
* request is malformed. * `NOT_FOUND` if the requested course does not exist. |
| 978 |
* (courseWork.listCoursesCourseWork) |
| 979 |
* |
| 980 |
* @param string $courseId Identifier of the course. This identifier can be |
| 981 |
* either the Classroom-assigned identifier or an alias. |
| 982 |
* @param array $optParams Optional parameters. |
| 983 |
* |
| 984 |
* @opt_param string courseWorkStates Restriction on the work status to return. |
| 985 |
* Only courseWork that matches is returned. If unspecified, items with a work |
| 986 |
* status of `PUBLISHED` is returned. |
| 987 |
* @opt_param string orderBy Optional sort ordering for results. A comma- |
| 988 |
* separated list of fields with an optional sort direction keyword. Supported |
| 989 |
* fields are `updateTime` and `dueDate`. Supported direction keywords are `asc` |
| 990 |
* and `desc`. If not specified, `updateTime desc` is the default behavior. |
| 991 |
* Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` |
| 992 |
* @opt_param int pageSize Maximum number of items to return. Zero or |
| 993 |
* unspecified indicates that the server may assign a maximum. The server may |
| 994 |
* return fewer than the specified number of results. |
| 995 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 996 |
* call, indicating that the subsequent page of results should be returned. The |
| 997 |
* list request must be otherwise identical to the one that resulted in this |
| 998 |
* token. |
| 999 |
* @return Google_Service_Classroom_ListCourseWorkResponse |
| 1000 |
*/ |
| 1001 |
public function listCoursesCourseWork($courseId, $optParams = array()) |
| 1002 |
{ |
| 1003 |
$params = array('courseId' => $courseId); |
| 1004 |
$params = array_merge($params, $optParams); |
| 1005 |
return $this->call('list', array($params), "Google_Service_Classroom_ListCourseWorkResponse"); |
| 1006 |
} |
| 1007 |
} |
| 1008 |
|
| 1009 |
/** |
| 1010 |
* The "studentSubmissions" collection of methods. |
| 1011 |
* Typical usage is: |
| 1012 |
* <code> |
| 1013 |
* $classroomService = new Google_Service_Classroom(...); |
| 1014 |
* $studentSubmissions = $classroomService->studentSubmissions; |
| 1015 |
* </code> |
| 1016 |
*/ |
| 1017 |
class Google_Service_Classroom_CoursesCourseWorkStudentSubmissions_Resource extends Google_Service_Resource |
| 1018 |
{ |
| 1019 |
|
| 1020 |
/** |
| 1021 |
* Returns a student submission. * `PERMISSION_DENIED` if the requesting user is |
| 1022 |
* not permitted to access the requested course, course work, or student |
| 1023 |
* submission or for access errors. * `INVALID_ARGUMENT` if the request is |
| 1024 |
* malformed. * `NOT_FOUND` if the requested course, course work, or student |
| 1025 |
* submission does not exist. (studentSubmissions.get) |
| 1026 |
* |
| 1027 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1028 |
* either the Classroom-assigned identifier or an alias. |
| 1029 |
* @param string $courseWorkId Identifier of the course work. |
| 1030 |
* @param string $id Identifier of the student submission. |
| 1031 |
* @param array $optParams Optional parameters. |
| 1032 |
* @return Google_Service_Classroom_StudentSubmission |
| 1033 |
*/ |
| 1034 |
public function get($courseId, $courseWorkId, $id, $optParams = array()) |
| 1035 |
{ |
| 1036 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id); |
| 1037 |
$params = array_merge($params, $optParams); |
| 1038 |
return $this->call('get', array($params), "Google_Service_Classroom_StudentSubmission"); |
| 1039 |
} |
| 1040 |
|
| 1041 |
/** |
| 1042 |
* Returns a list of student submissions that the requester is permitted to |
| 1043 |
* view, factoring in the OAuth scopes of the request. `-` may be specified as |
| 1044 |
* the `course_work_id` to include student submissions for multiple course work |
| 1045 |
* items. Course students may only view their own work. Course teachers and |
| 1046 |
* domain administrators may view all student submissions. This method returns |
| 1047 |
* the following error codes: * `PERMISSION_DENIED` if the requesting user is |
| 1048 |
* not permitted to access the requested course or course work, or for access |
| 1049 |
* errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if |
| 1050 |
* the requested course does not exist. |
| 1051 |
* (studentSubmissions.listCoursesCourseWorkStudentSubmissions) |
| 1052 |
* |
| 1053 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1054 |
* either the Classroom-assigned identifier or an alias. |
| 1055 |
* @param string $courseWorkId Identifer of the student work to request. If |
| 1056 |
* `user_id` is specified, this may be set to the string literal `"-"` to |
| 1057 |
* request student work for all course work in the specified course. |
| 1058 |
* @param array $optParams Optional parameters. |
| 1059 |
* |
| 1060 |
* @opt_param string userId Optional argument to restrict returned student work |
| 1061 |
* to those owned by the student with the specified identifier. The identifier |
| 1062 |
* can be one of the following: * the numeric identifier for the user * the |
| 1063 |
* email address of the user * the string literal `"me"`, indicating the |
| 1064 |
* requesting user |
| 1065 |
* @opt_param string states Requested submission states. If specified, returned |
| 1066 |
* student submissions match one of the specified submission states. |
| 1067 |
* @opt_param string late Requested lateness value. If specified, returned |
| 1068 |
* student submissions are restricted by the requested value. If unspecified, |
| 1069 |
* submissions are returned regardless of `late` value. |
| 1070 |
* @opt_param int pageSize Maximum number of items to return. Zero or |
| 1071 |
* unspecified indicates that the server may assign a maximum. The server may |
| 1072 |
* return fewer than the specified number of results. |
| 1073 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 1074 |
* call, indicating that the subsequent page of results should be returned. The |
| 1075 |
* list request must be otherwise identical to the one that resulted in this |
| 1076 |
* token. |
| 1077 |
* @return Google_Service_Classroom_ListStudentSubmissionsResponse |
| 1078 |
*/ |
| 1079 |
public function listCoursesCourseWorkStudentSubmissions($courseId, $courseWorkId, $optParams = array()) |
| 1080 |
{ |
| 1081 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId); |
| 1082 |
$params = array_merge($params, $optParams); |
| 1083 |
return $this->call('list', array($params), "Google_Service_Classroom_ListStudentSubmissionsResponse"); |
| 1084 |
} |
| 1085 |
|
| 1086 |
/** |
| 1087 |
* Modifies attachments of student submission. Attachments may only be added to |
| 1088 |
* student submissions whose type is `ASSIGNMENT`. This request must be made by |
| 1089 |
* the Developer Console project of the [OAuth client |
| 1090 |
* ID](https://support.google.com/cloud/answer/6158849) used to create the |
| 1091 |
* corresponding course work item. This method returns the following error |
| 1092 |
* codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1093 |
* access the requested course or course work, if the user is not permitted to |
| 1094 |
* modify attachments on the requested student submission, or for access errors. |
| 1095 |
* * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the |
| 1096 |
* requested course, course work, or student submission does not exist. |
| 1097 |
* (studentSubmissions.modifyAttachments) |
| 1098 |
* |
| 1099 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1100 |
* either the Classroom-assigned identifier or an alias. |
| 1101 |
* @param string $courseWorkId Identifier of the course work. |
| 1102 |
* @param string $id Identifier of the student submission. |
| 1103 |
* @param Google_ModifyAttachmentsRequest $postBody |
| 1104 |
* @param array $optParams Optional parameters. |
| 1105 |
* @return Google_Service_Classroom_StudentSubmission |
| 1106 |
*/ |
| 1107 |
public function modifyAttachments($courseId, $courseWorkId, $id, Google_Service_Classroom_ModifyAttachmentsRequest $postBody, $optParams = array()) |
| 1108 |
{ |
| 1109 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody); |
| 1110 |
$params = array_merge($params, $optParams); |
| 1111 |
return $this->call('modifyAttachments', array($params), "Google_Service_Classroom_StudentSubmission"); |
| 1112 |
} |
| 1113 |
|
| 1114 |
/** |
| 1115 |
* Updates one or more fields of a student submission. See |
| 1116 |
* google.classroom.v1.StudentSubmission for details of which fields may be |
| 1117 |
* updated and who may change them. This request must be made by the Developer |
| 1118 |
* Console project of the [OAuth client |
| 1119 |
* ID](https://support.google.com/cloud/answer/6158849) used to create the |
| 1120 |
* corresponding course work item. This method returns the following error |
| 1121 |
* codes: * `PERMISSION_DENIED` if the requesting developer project did not |
| 1122 |
* create the corresponding course work, if the user is not permitted to make |
| 1123 |
* the requested modification to the student submission, or for access errors. * |
| 1124 |
* `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the |
| 1125 |
* requested course, course work, or student submission does not exist. |
| 1126 |
* (studentSubmissions.patch) |
| 1127 |
* |
| 1128 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1129 |
* either the Classroom-assigned identifier or an alias. |
| 1130 |
* @param string $courseWorkId Identifier of the course work. |
| 1131 |
* @param string $id Identifier of the student submission. |
| 1132 |
* @param Google_StudentSubmission $postBody |
| 1133 |
* @param array $optParams Optional parameters. |
| 1134 |
* |
| 1135 |
* @opt_param string updateMask Mask that identifies which fields on the student |
| 1136 |
* submission to update. This field is required to do an update. The update |
| 1137 |
* fails if invalid fields are specified. The following fields may be specified |
| 1138 |
* by teachers: * `draft_grade` * `assigned_grade` |
| 1139 |
* @return Google_Service_Classroom_StudentSubmission |
| 1140 |
*/ |
| 1141 |
public function patch($courseId, $courseWorkId, $id, Google_Service_Classroom_StudentSubmission $postBody, $optParams = array()) |
| 1142 |
{ |
| 1143 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody); |
| 1144 |
$params = array_merge($params, $optParams); |
| 1145 |
return $this->call('patch', array($params), "Google_Service_Classroom_StudentSubmission"); |
| 1146 |
} |
| 1147 |
|
| 1148 |
/** |
| 1149 |
* Reclaims a student submission on behalf of the student that owns it. |
| 1150 |
* Reclaiming a student submission transfers ownership of attached Drive files |
| 1151 |
* to the student and update the submission state. Only the student that ownes |
| 1152 |
* the requested student submission may call this method, and only for a student |
| 1153 |
* submission that has been turned in. This request must be made by the |
| 1154 |
* Developer Console project of the [OAuth client |
| 1155 |
* ID](https://support.google.com/cloud/answer/6158849) used to create the |
| 1156 |
* corresponding course work item. This method returns the following error |
| 1157 |
* codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1158 |
* access the requested course or course work, unsubmit the requested student |
| 1159 |
* submission, or for access errors. * `FAILED_PRECONDITION` if the student |
| 1160 |
* submission has not been turned in. * `INVALID_ARGUMENT` if the request is |
| 1161 |
* malformed. * `NOT_FOUND` if the requested course, course work, or student |
| 1162 |
* submission does not exist. (studentSubmissions.reclaim) |
| 1163 |
* |
| 1164 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1165 |
* either the Classroom-assigned identifier or an alias. |
| 1166 |
* @param string $courseWorkId Identifier of the course work. |
| 1167 |
* @param string $id Identifier of the student submission. |
| 1168 |
* @param Google_ReclaimStudentSubmissionRequest $postBody |
| 1169 |
* @param array $optParams Optional parameters. |
| 1170 |
* @return Google_Service_Classroom_Empty |
| 1171 |
*/ |
| 1172 |
public function reclaim($courseId, $courseWorkId, $id, Google_Service_Classroom_ReclaimStudentSubmissionRequest $postBody, $optParams = array()) |
| 1173 |
{ |
| 1174 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody); |
| 1175 |
$params = array_merge($params, $optParams); |
| 1176 |
return $this->call('reclaim', array($params), "Google_Service_Classroom_Empty"); |
| 1177 |
} |
| 1178 |
|
| 1179 |
/** |
| 1180 |
* Returns a student submission. Returning a student submission transfers |
| 1181 |
* ownership of attached Drive files to the student and may also update the |
| 1182 |
* submission state. Unlike the Classroom application, returning a student |
| 1183 |
* submission does not set assignedGrade to the draftGrade value. Only a teacher |
| 1184 |
* of the course that contains the requested student submission may call this |
| 1185 |
* method. This request must be made by the Developer Console project of the |
| 1186 |
* [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to |
| 1187 |
* create the corresponding course work item. This method returns the following |
| 1188 |
* error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1189 |
* access the requested course or course work, return the requested student |
| 1190 |
* submission, or for access errors. * `INVALID_ARGUMENT` if the request is |
| 1191 |
* malformed. * `NOT_FOUND` if the requested course, course work, or student |
| 1192 |
* submission does not exist. |
| 1193 |
* (studentSubmissions.returnCoursesCourseWorkStudentSubmissions) |
| 1194 |
* |
| 1195 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1196 |
* either the Classroom-assigned identifier or an alias. |
| 1197 |
* @param string $courseWorkId Identifier of the course work. |
| 1198 |
* @param string $id Identifier of the student submission. |
| 1199 |
* @param Google_ReturnStudentSubmissionRequest $postBody |
| 1200 |
* @param array $optParams Optional parameters. |
| 1201 |
* @return Google_Service_Classroom_Empty |
| 1202 |
*/ |
| 1203 |
public function returnCoursesCourseWorkStudentSubmissions($courseId, $courseWorkId, $id, Google_Service_Classroom_ReturnStudentSubmissionRequest $postBody, $optParams = array()) |
| 1204 |
{ |
| 1205 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody); |
| 1206 |
$params = array_merge($params, $optParams); |
| 1207 |
return $this->call('return', array($params), "Google_Service_Classroom_Empty"); |
| 1208 |
} |
| 1209 |
|
| 1210 |
/** |
| 1211 |
* Turns in a student submission. Turning in a student submission transfers |
| 1212 |
* ownership of attached Drive files to the teacher and may also update the |
| 1213 |
* submission state. This may only be called by the student that owns the |
| 1214 |
* specified student submission. This request must be made by the Developer |
| 1215 |
* Console project of the [OAuth client |
| 1216 |
* ID](https://support.google.com/cloud/answer/6158849) used to create the |
| 1217 |
* corresponding course work item. This method returns the following error |
| 1218 |
* codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1219 |
* access the requested course or course work, turn in the requested student |
| 1220 |
* submission, or for access errors. * `INVALID_ARGUMENT` if the request is |
| 1221 |
* malformed. * `NOT_FOUND` if the requested course, course work, or student |
| 1222 |
* submission does not exist. (studentSubmissions.turnIn) |
| 1223 |
* |
| 1224 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1225 |
* either the Classroom-assigned identifier or an alias. |
| 1226 |
* @param string $courseWorkId Identifier of the course work. |
| 1227 |
* @param string $id Identifier of the student submission. |
| 1228 |
* @param Google_TurnInStudentSubmissionRequest $postBody |
| 1229 |
* @param array $optParams Optional parameters. |
| 1230 |
* @return Google_Service_Classroom_Empty |
| 1231 |
*/ |
| 1232 |
public function turnIn($courseId, $courseWorkId, $id, Google_Service_Classroom_TurnInStudentSubmissionRequest $postBody, $optParams = array()) |
| 1233 |
{ |
| 1234 |
$params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody); |
| 1235 |
$params = array_merge($params, $optParams); |
| 1236 |
return $this->call('turnIn', array($params), "Google_Service_Classroom_Empty"); |
| 1237 |
} |
| 1238 |
} |
| 1239 |
/** |
| 1240 |
* The "students" collection of methods. |
| 1241 |
* Typical usage is: |
| 1242 |
* <code> |
| 1243 |
* $classroomService = new Google_Service_Classroom(...); |
| 1244 |
* $students = $classroomService->students; |
| 1245 |
* </code> |
| 1246 |
*/ |
| 1247 |
class Google_Service_Classroom_CoursesStudents_Resource extends Google_Service_Resource |
| 1248 |
{ |
| 1249 |
|
| 1250 |
/** |
| 1251 |
* Adds a user as a student of a course. This method returns the following error |
| 1252 |
* codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1253 |
* create students in this course or for access errors. * `NOT_FOUND` if the |
| 1254 |
* requested course ID does not exist. * `FAILED_PRECONDITION` if the requested |
| 1255 |
* user's account is disabled, for the following request errors: * |
| 1256 |
* CourseMemberLimitReached * CourseNotModifiable * |
| 1257 |
* UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a |
| 1258 |
* student or teacher in the course. (students.create) |
| 1259 |
* |
| 1260 |
* @param string $courseId Identifier of the course to create the student in. |
| 1261 |
* This identifier can be either the Classroom-assigned identifier or an alias. |
| 1262 |
* @param Google_Student $postBody |
| 1263 |
* @param array $optParams Optional parameters. |
| 1264 |
* |
| 1265 |
* @opt_param string enrollmentCode Enrollment code of the course to create the |
| 1266 |
* student in. This code is required if userId corresponds to the requesting |
| 1267 |
* user; it may be omitted if the requesting user has administrative permissions |
| 1268 |
* to create students for any user. |
| 1269 |
* @return Google_Service_Classroom_Student |
| 1270 |
*/ |
| 1271 |
public function create($courseId, Google_Service_Classroom_Student $postBody, $optParams = array()) |
| 1272 |
{ |
| 1273 |
$params = array('courseId' => $courseId, 'postBody' => $postBody); |
| 1274 |
$params = array_merge($params, $optParams); |
| 1275 |
return $this->call('create', array($params), "Google_Service_Classroom_Student"); |
| 1276 |
} |
| 1277 |
|
| 1278 |
/** |
| 1279 |
* Deletes a student of a course. This method returns the following error codes: |
| 1280 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to delete |
| 1281 |
* students of this course or for access errors. * `NOT_FOUND` if no student of |
| 1282 |
* this course has the requested ID or if the course does not exist. |
| 1283 |
* (students.delete) |
| 1284 |
* |
| 1285 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1286 |
* either the Classroom-assigned identifier or an alias. |
| 1287 |
* @param string $userId Identifier of the student to delete. The identifier can |
| 1288 |
* be one of the following: * the numeric identifier for the user * the email |
| 1289 |
* address of the user * the string literal `"me"`, indicating the requesting |
| 1290 |
* user |
| 1291 |
* @param array $optParams Optional parameters. |
| 1292 |
* @return Google_Service_Classroom_Empty |
| 1293 |
*/ |
| 1294 |
public function delete($courseId, $userId, $optParams = array()) |
| 1295 |
{ |
| 1296 |
$params = array('courseId' => $courseId, 'userId' => $userId); |
| 1297 |
$params = array_merge($params, $optParams); |
| 1298 |
return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); |
| 1299 |
} |
| 1300 |
|
| 1301 |
/** |
| 1302 |
* Returns a student of a course. This method returns the following error codes: |
| 1303 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to view |
| 1304 |
* students of this course or for access errors. * `NOT_FOUND` if no student of |
| 1305 |
* this course has the requested ID or if the course does not exist. |
| 1306 |
* (students.get) |
| 1307 |
* |
| 1308 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1309 |
* either the Classroom-assigned identifier or an alias. |
| 1310 |
* @param string $userId Identifier of the student to return. The identifier can |
| 1311 |
* be one of the following: * the numeric identifier for the user * the email |
| 1312 |
* address of the user * the string literal `"me"`, indicating the requesting |
| 1313 |
* user |
| 1314 |
* @param array $optParams Optional parameters. |
| 1315 |
* @return Google_Service_Classroom_Student |
| 1316 |
*/ |
| 1317 |
public function get($courseId, $userId, $optParams = array()) |
| 1318 |
{ |
| 1319 |
$params = array('courseId' => $courseId, 'userId' => $userId); |
| 1320 |
$params = array_merge($params, $optParams); |
| 1321 |
return $this->call('get', array($params), "Google_Service_Classroom_Student"); |
| 1322 |
} |
| 1323 |
|
| 1324 |
/** |
| 1325 |
* Returns a list of students of this course that the requester is permitted to |
| 1326 |
* view. This method returns the following error codes: * `NOT_FOUND` if the |
| 1327 |
* course does not exist. * `PERMISSION_DENIED` for access errors. |
| 1328 |
* (students.listCoursesStudents) |
| 1329 |
* |
| 1330 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1331 |
* either the Classroom-assigned identifier or an alias. |
| 1332 |
* @param array $optParams Optional parameters. |
| 1333 |
* |
| 1334 |
* @opt_param int pageSize Maximum number of items to return. Zero means no |
| 1335 |
* maximum. The server may return fewer than the specified number of results. |
| 1336 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 1337 |
* call, indicating that the subsequent page of results should be returned. The |
| 1338 |
* list request must be otherwise identical to the one that resulted in this |
| 1339 |
* token. |
| 1340 |
* @return Google_Service_Classroom_ListStudentsResponse |
| 1341 |
*/ |
| 1342 |
public function listCoursesStudents($courseId, $optParams = array()) |
| 1343 |
{ |
| 1344 |
$params = array('courseId' => $courseId); |
| 1345 |
$params = array_merge($params, $optParams); |
| 1346 |
return $this->call('list', array($params), "Google_Service_Classroom_ListStudentsResponse"); |
| 1347 |
} |
| 1348 |
} |
| 1349 |
/** |
| 1350 |
* The "teachers" collection of methods. |
| 1351 |
* Typical usage is: |
| 1352 |
* <code> |
| 1353 |
* $classroomService = new Google_Service_Classroom(...); |
| 1354 |
* $teachers = $classroomService->teachers; |
| 1355 |
* </code> |
| 1356 |
*/ |
| 1357 |
class Google_Service_Classroom_CoursesTeachers_Resource extends Google_Service_Resource |
| 1358 |
{ |
| 1359 |
|
| 1360 |
/** |
| 1361 |
* Creates a teacher of a course. This method returns the following error codes: |
| 1362 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to create |
| 1363 |
* teachers in this course or for access errors. * `NOT_FOUND` if the requested |
| 1364 |
* course ID does not exist. * `FAILED_PRECONDITION` if the requested user's |
| 1365 |
* account is disabled, for the following request errors: * |
| 1366 |
* CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * |
| 1367 |
* UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a |
| 1368 |
* teacher or student in the course. (teachers.create) |
| 1369 |
* |
| 1370 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1371 |
* either the Classroom-assigned identifier or an alias. |
| 1372 |
* @param Google_Teacher $postBody |
| 1373 |
* @param array $optParams Optional parameters. |
| 1374 |
* @return Google_Service_Classroom_Teacher |
| 1375 |
*/ |
| 1376 |
public function create($courseId, Google_Service_Classroom_Teacher $postBody, $optParams = array()) |
| 1377 |
{ |
| 1378 |
$params = array('courseId' => $courseId, 'postBody' => $postBody); |
| 1379 |
$params = array_merge($params, $optParams); |
| 1380 |
return $this->call('create', array($params), "Google_Service_Classroom_Teacher"); |
| 1381 |
} |
| 1382 |
|
| 1383 |
/** |
| 1384 |
* Deletes a teacher of a course. This method returns the following error codes: |
| 1385 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to delete |
| 1386 |
* teachers of this course or for access errors. * `NOT_FOUND` if no teacher of |
| 1387 |
* this course has the requested ID or if the course does not exist. * |
| 1388 |
* `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of |
| 1389 |
* this course. (teachers.delete) |
| 1390 |
* |
| 1391 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1392 |
* either the Classroom-assigned identifier or an alias. |
| 1393 |
* @param string $userId Identifier of the teacher to delete. The identifier can |
| 1394 |
* be one of the following: * the numeric identifier for the user * the email |
| 1395 |
* address of the user * the string literal `"me"`, indicating the requesting |
| 1396 |
* user |
| 1397 |
* @param array $optParams Optional parameters. |
| 1398 |
* @return Google_Service_Classroom_Empty |
| 1399 |
*/ |
| 1400 |
public function delete($courseId, $userId, $optParams = array()) |
| 1401 |
{ |
| 1402 |
$params = array('courseId' => $courseId, 'userId' => $userId); |
| 1403 |
$params = array_merge($params, $optParams); |
| 1404 |
return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); |
| 1405 |
} |
| 1406 |
|
| 1407 |
/** |
| 1408 |
* Returns a teacher of a course. This method returns the following error codes: |
| 1409 |
* * `PERMISSION_DENIED` if the requesting user is not permitted to view |
| 1410 |
* teachers of this course or for access errors. * `NOT_FOUND` if no teacher of |
| 1411 |
* this course has the requested ID or if the course does not exist. |
| 1412 |
* (teachers.get) |
| 1413 |
* |
| 1414 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1415 |
* either the Classroom-assigned identifier or an alias. |
| 1416 |
* @param string $userId Identifier of the teacher to return. The identifier can |
| 1417 |
* be one of the following: * the numeric identifier for the user * the email |
| 1418 |
* address of the user * the string literal `"me"`, indicating the requesting |
| 1419 |
* user |
| 1420 |
* @param array $optParams Optional parameters. |
| 1421 |
* @return Google_Service_Classroom_Teacher |
| 1422 |
*/ |
| 1423 |
public function get($courseId, $userId, $optParams = array()) |
| 1424 |
{ |
| 1425 |
$params = array('courseId' => $courseId, 'userId' => $userId); |
| 1426 |
$params = array_merge($params, $optParams); |
| 1427 |
return $this->call('get', array($params), "Google_Service_Classroom_Teacher"); |
| 1428 |
} |
| 1429 |
|
| 1430 |
/** |
| 1431 |
* Returns a list of teachers of this course that the requester is permitted to |
| 1432 |
* view. This method returns the following error codes: * `NOT_FOUND` if the |
| 1433 |
* course does not exist. * `PERMISSION_DENIED` for access errors. |
| 1434 |
* (teachers.listCoursesTeachers) |
| 1435 |
* |
| 1436 |
* @param string $courseId Identifier of the course. This identifier can be |
| 1437 |
* either the Classroom-assigned identifier or an alias. |
| 1438 |
* @param array $optParams Optional parameters. |
| 1439 |
* |
| 1440 |
* @opt_param int pageSize Maximum number of items to return. Zero means no |
| 1441 |
* maximum. The server may return fewer than the specified number of results. |
| 1442 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 1443 |
* call, indicating that the subsequent page of results should be returned. The |
| 1444 |
* list request must be otherwise identical to the one that resulted in this |
| 1445 |
* token. |
| 1446 |
* @return Google_Service_Classroom_ListTeachersResponse |
| 1447 |
*/ |
| 1448 |
public function listCoursesTeachers($courseId, $optParams = array()) |
| 1449 |
{ |
| 1450 |
$params = array('courseId' => $courseId); |
| 1451 |
$params = array_merge($params, $optParams); |
| 1452 |
return $this->call('list', array($params), "Google_Service_Classroom_ListTeachersResponse"); |
| 1453 |
} |
| 1454 |
} |
| 1455 |
|
| 1456 |
/** |
| 1457 |
* The "invitations" collection of methods. |
| 1458 |
* Typical usage is: |
| 1459 |
* <code> |
| 1460 |
* $classroomService = new Google_Service_Classroom(...); |
| 1461 |
* $invitations = $classroomService->invitations; |
| 1462 |
* </code> |
| 1463 |
*/ |
| 1464 |
class Google_Service_Classroom_Invitations_Resource extends Google_Service_Resource |
| 1465 |
{ |
| 1466 |
|
| 1467 |
/** |
| 1468 |
* Accepts an invitation, removing it and adding the invited user to the |
| 1469 |
* teachers or students (as appropriate) of the specified course. Only the |
| 1470 |
* invited user may accept an invitation. This method returns the following |
| 1471 |
* error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to |
| 1472 |
* accept the requested invitation or for access errors. * `FAILED_PRECONDITION` |
| 1473 |
* for the following request errors: * CourseMemberLimitReached * |
| 1474 |
* CourseNotModifiable * CourseTeacherLimitReached * |
| 1475 |
* UserGroupsMembershipLimitReached * `NOT_FOUND` if no invitation exists with |
| 1476 |
* the requested ID. (invitations.accept) |
| 1477 |
* |
| 1478 |
* @param string $id Identifier of the invitation to accept. |
| 1479 |
* @param array $optParams Optional parameters. |
| 1480 |
* @return Google_Service_Classroom_Empty |
| 1481 |
*/ |
| 1482 |
public function accept($id, $optParams = array()) |
| 1483 |
{ |
| 1484 |
$params = array('id' => $id); |
| 1485 |
$params = array_merge($params, $optParams); |
| 1486 |
return $this->call('accept', array($params), "Google_Service_Classroom_Empty"); |
| 1487 |
} |
| 1488 |
|
| 1489 |
/** |
| 1490 |
* Creates an invitation. Only one invitation for a user and course may exist at |
| 1491 |
* a time. Delete and re-create an invitation to make changes. This method |
| 1492 |
* returns the following error codes: * `PERMISSION_DENIED` if the requesting |
| 1493 |
* user is not permitted to create invitations for this course or for access |
| 1494 |
* errors. * `NOT_FOUND` if the course or the user does not exist. * |
| 1495 |
* `FAILED_PRECONDITION` if the requested user's account is disabled or if the |
| 1496 |
* user already has this role or a role with greater permissions. * |
| 1497 |
* `ALREADY_EXISTS` if an invitation for the specified user and course already |
| 1498 |
* exists. (invitations.create) |
| 1499 |
* |
| 1500 |
* @param Google_Invitation $postBody |
| 1501 |
* @param array $optParams Optional parameters. |
| 1502 |
* @return Google_Service_Classroom_Invitation |
| 1503 |
*/ |
| 1504 |
public function create(Google_Service_Classroom_Invitation $postBody, $optParams = array()) |
| 1505 |
{ |
| 1506 |
$params = array('postBody' => $postBody); |
| 1507 |
$params = array_merge($params, $optParams); |
| 1508 |
return $this->call('create', array($params), "Google_Service_Classroom_Invitation"); |
| 1509 |
} |
| 1510 |
|
| 1511 |
/** |
| 1512 |
* Deletes an invitation. This method returns the following error codes: * |
| 1513 |
* `PERMISSION_DENIED` if the requesting user is not permitted to delete the |
| 1514 |
* requested invitation or for access errors. * `NOT_FOUND` if no invitation |
| 1515 |
* exists with the requested ID. (invitations.delete) |
| 1516 |
* |
| 1517 |
* @param string $id Identifier of the invitation to delete. |
| 1518 |
* @param array $optParams Optional parameters. |
| 1519 |
* @return Google_Service_Classroom_Empty |
| 1520 |
*/ |
| 1521 |
public function delete($id, $optParams = array()) |
| 1522 |
{ |
| 1523 |
$params = array('id' => $id); |
| 1524 |
$params = array_merge($params, $optParams); |
| 1525 |
return $this->call('delete', array($params), "Google_Service_Classroom_Empty"); |
| 1526 |
} |
| 1527 |
|
| 1528 |
/** |
| 1529 |
* Returns an invitation. This method returns the following error codes: * |
| 1530 |
* `PERMISSION_DENIED` if the requesting user is not permitted to view the |
| 1531 |
* requested invitation or for access errors. * `NOT_FOUND` if no invitation |
| 1532 |
* exists with the requested ID. (invitations.get) |
| 1533 |
* |
| 1534 |
* @param string $id Identifier of the invitation to return. |
| 1535 |
* @param array $optParams Optional parameters. |
| 1536 |
* @return Google_Service_Classroom_Invitation |
| 1537 |
*/ |
| 1538 |
public function get($id, $optParams = array()) |
| 1539 |
{ |
| 1540 |
$params = array('id' => $id); |
| 1541 |
$params = array_merge($params, $optParams); |
| 1542 |
return $this->call('get', array($params), "Google_Service_Classroom_Invitation"); |
| 1543 |
} |
| 1544 |
|
| 1545 |
/** |
| 1546 |
* Returns a list of invitations that the requesting user is permitted to view, |
| 1547 |
* restricted to those that match the list request. *Note:* At least one of |
| 1548 |
* `user_id` or `course_id` must be supplied. Both fields can be supplied. This |
| 1549 |
* method returns the following error codes: * `PERMISSION_DENIED` for access |
| 1550 |
* errors. (invitations.listInvitations) |
| 1551 |
* |
| 1552 |
* @param array $optParams Optional parameters. |
| 1553 |
* |
| 1554 |
* @opt_param string userId Restricts returned invitations to those for a |
| 1555 |
* specific user. The identifier can be one of the following: * the numeric |
| 1556 |
* identifier for the user * the email address of the user * the string literal |
| 1557 |
* `"me"`, indicating the requesting user |
| 1558 |
* @opt_param string courseId Restricts returned invitations to those for a |
| 1559 |
* course with the specified identifier. |
| 1560 |
* @opt_param int pageSize Maximum number of items to return. Zero means no |
| 1561 |
* maximum. The server may return fewer than the specified number of results. |
| 1562 |
* @opt_param string pageToken nextPageToken value returned from a previous list |
| 1563 |
* call, indicating that the subsequent page of results should be returned. The |
| 1564 |
* list request must be otherwise identical to the one that resulted in this |
| 1565 |
* token. |
| 1566 |
* @return Google_Service_Classroom_ListInvitationsResponse |
| 1567 |
*/ |
| 1568 |
public function listInvitations($optParams = array()) |
| 1569 |
{ |
| 1570 |
$params = array(); |
| 1571 |
$params = array_merge($params, $optParams); |
| 1572 |
return $this->call('list', array($params), "Google_Service_Classroom_ListInvitationsResponse"); |
| 1573 |
} |
| 1574 |
} |
| 1575 |
|
| 1576 |
/** |
| 1577 |
* The "userProfiles" collection of methods. |
| 1578 |
* Typical usage is: |
| 1579 |
* <code> |
| 1580 |
* $classroomService = new Google_Service_Classroom(...); |
| 1581 |
* $userProfiles = $classroomService->userProfiles; |
| 1582 |
* </code> |
| 1583 |
*/ |
| 1584 |
class Google_Service_Classroom_UserProfiles_Resource extends Google_Service_Resource |
| 1585 |
{ |
| 1586 |
|
| 1587 |
/** |
| 1588 |
* Returns a user profile. This method returns the following error codes: * |
| 1589 |
* `PERMISSION_DENIED` if the requesting user is not permitted to access this |
| 1590 |
* user profile or if no profile exists with the requested ID or for access |
| 1591 |
* errors. (userProfiles.get) |
| 1592 |
* |
| 1593 |
* @param string $userId Identifier of the profile to return. The identifier can |
| 1594 |
* be one of the following: * the numeric identifier for the user * the email |
| 1595 |
* address of the user * the string literal `"me"`, indicating the requesting |
| 1596 |
* user |
| 1597 |
* @param array $optParams Optional parameters. |
| 1598 |
* @return Google_Service_Classroom_UserProfile |
| 1599 |
*/ |
| 1600 |
public function get($userId, $optParams = array()) |
| 1601 |
{ |
| 1602 |
$params = array('userId' => $userId); |
| 1603 |
$params = array_merge($params, $optParams); |
| 1604 |
return $this->call('get', array($params), "Google_Service_Classroom_UserProfile"); |
| 1605 |
} |
| 1606 |
} |
| 1607 |
|
| 1608 |
|
| 1609 |
|
| 1610 |
|
| 1611 |
class Google_Service_Classroom_Assignment extends Google_Model |
| 1612 |
{ |
| 1613 |
protected $internal_gapi_mappings = array( |
| 1614 |
); |
| 1615 |
protected $studentWorkFolderType = 'Google_Service_Classroom_DriveFolder'; |
| 1616 |
protected $studentWorkFolderDataType = ''; |
| 1617 |
|
| 1618 |
|
| 1619 |
public function setStudentWorkFolder(Google_Service_Classroom_DriveFolder $studentWorkFolder) |
| 1620 |
{ |
| 1621 |
$this->studentWorkFolder = $studentWorkFolder; |
| 1622 |
} |
| 1623 |
public function getStudentWorkFolder() |
| 1624 |
{ |
| 1625 |
return $this->studentWorkFolder; |
| 1626 |
} |
| 1627 |
} |
| 1628 |
|
| 1629 |
class Google_Service_Classroom_AssignmentSubmission extends Google_Collection |
| 1630 |
{ |
| 1631 |
protected $collection_key = 'attachments'; |
| 1632 |
protected $internal_gapi_mappings = array( |
| 1633 |
); |
| 1634 |
protected $attachmentsType = 'Google_Service_Classroom_Attachment'; |
| 1635 |
protected $attachmentsDataType = 'array'; |
| 1636 |
|
| 1637 |
|
| 1638 |
public function setAttachments($attachments) |
| 1639 |
{ |
| 1640 |
$this->attachments = $attachments; |
| 1641 |
} |
| 1642 |
public function getAttachments() |
| 1643 |
{ |
| 1644 |
return $this->attachments; |
| 1645 |
} |
| 1646 |
} |
| 1647 |
|
| 1648 |
class Google_Service_Classroom_Attachment extends Google_Model |
| 1649 |
{ |
| 1650 |
protected $internal_gapi_mappings = array( |
| 1651 |
); |
| 1652 |
protected $driveFileType = 'Google_Service_Classroom_DriveFile'; |
| 1653 |
protected $driveFileDataType = ''; |
| 1654 |
protected $formType = 'Google_Service_Classroom_Form'; |
| 1655 |
protected $formDataType = ''; |
| 1656 |
protected $linkType = 'Google_Service_Classroom_Link'; |
| 1657 |
protected $linkDataType = ''; |
| 1658 |
protected $youTubeVideoType = 'Google_Service_Classroom_YouTubeVideo'; |
| 1659 |
protected $youTubeVideoDataType = ''; |
| 1660 |
|
| 1661 |
|
| 1662 |
public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile) |
| 1663 |
{ |
| 1664 |
$this->driveFile = $driveFile; |
| 1665 |
} |
| 1666 |
public function getDriveFile() |
| 1667 |
{ |
| 1668 |
return $this->driveFile; |
| 1669 |
} |
| 1670 |
public function setForm(Google_Service_Classroom_Form $form) |
| 1671 |
{ |
| 1672 |
$this->form = $form; |
| 1673 |
} |
| 1674 |
public function getForm() |
| 1675 |
{ |
| 1676 |
return $this->form; |
| 1677 |
} |
| 1678 |
public function setLink(Google_Service_Classroom_Link $link) |
| 1679 |
{ |
| 1680 |
$this->link = $link; |
| 1681 |
} |
| 1682 |
public function getLink() |
| 1683 |
{ |
| 1684 |
return $this->link; |
| 1685 |
} |
| 1686 |
public function setYouTubeVideo(Google_Service_Classroom_YouTubeVideo $youTubeVideo) |
| 1687 |
{ |
| 1688 |
$this->youTubeVideo = $youTubeVideo; |
| 1689 |
} |
| 1690 |
public function getYouTubeVideo() |
| 1691 |
{ |
| 1692 |
return $this->youTubeVideo; |
| 1693 |
} |
| 1694 |
} |
| 1695 |
|
| 1696 |
class Google_Service_Classroom_Course extends Google_Collection |
| 1697 |
{ |
| 1698 |
protected $collection_key = 'courseMaterialSets'; |
| 1699 |
protected $internal_gapi_mappings = array( |
| 1700 |
); |
| 1701 |
public $alternateLink; |
| 1702 |
public $courseGroupEmail; |
| 1703 |
protected $courseMaterialSetsType = 'Google_Service_Classroom_CourseMaterialSet'; |
| 1704 |
protected $courseMaterialSetsDataType = 'array'; |
| 1705 |
public $courseState; |
| 1706 |
public $creationTime; |
| 1707 |
public $description; |
| 1708 |
public $descriptionHeading; |
| 1709 |
public $enrollmentCode; |
| 1710 |
public $id; |
| 1711 |
public $name; |
| 1712 |
public $ownerId; |
| 1713 |
public $room; |
| 1714 |
public $section; |
| 1715 |
protected $teacherFolderType = 'Google_Service_Classroom_DriveFolder'; |
| 1716 |
protected $teacherFolderDataType = ''; |
| 1717 |
public $teacherGroupEmail; |
| 1718 |
public $updateTime; |
| 1719 |
|
| 1720 |
|
| 1721 |
public function setAlternateLink($alternateLink) |
| 1722 |
{ |
| 1723 |
$this->alternateLink = $alternateLink; |
| 1724 |
} |
| 1725 |
public function getAlternateLink() |
| 1726 |
{ |
| 1727 |
return $this->alternateLink; |
| 1728 |
} |
| 1729 |
public function setCourseGroupEmail($courseGroupEmail) |
| 1730 |
{ |
| 1731 |
$this->courseGroupEmail = $courseGroupEmail; |
| 1732 |
} |
| 1733 |
public function getCourseGroupEmail() |
| 1734 |
{ |
| 1735 |
return $this->courseGroupEmail; |
| 1736 |
} |
| 1737 |
public function setCourseMaterialSets($courseMaterialSets) |
| 1738 |
{ |
| 1739 |
$this->courseMaterialSets = $courseMaterialSets; |
| 1740 |
} |
| 1741 |
public function getCourseMaterialSets() |
| 1742 |
{ |
| 1743 |
return $this->courseMaterialSets; |
| 1744 |
} |
| 1745 |
public function setCourseState($courseState) |
| 1746 |
{ |
| 1747 |
$this->courseState = $courseState; |
| 1748 |
} |
| 1749 |
public function getCourseState() |
| 1750 |
{ |
| 1751 |
return $this->courseState; |
| 1752 |
} |
| 1753 |
public function setCreationTime($creationTime) |
| 1754 |
{ |
| 1755 |
$this->creationTime = $creationTime; |
| 1756 |
} |
| 1757 |
public function getCreationTime() |
| 1758 |
{ |
| 1759 |
return $this->creationTime; |
| 1760 |
} |
| 1761 |
public function setDescription($description) |
| 1762 |
{ |
| 1763 |
$this->description = $description; |
| 1764 |
} |
| 1765 |
public function getDescription() |
| 1766 |
{ |
| 1767 |
return $this->description; |
| 1768 |
} |
| 1769 |
public function setDescriptionHeading($descriptionHeading) |
| 1770 |
{ |
| 1771 |
$this->descriptionHeading = $descriptionHeading; |
| 1772 |
} |
| 1773 |
public function getDescriptionHeading() |
| 1774 |
{ |
| 1775 |
return $this->descriptionHeading; |
| 1776 |
} |
| 1777 |
public function setEnrollmentCode($enrollmentCode) |
| 1778 |
{ |
| 1779 |
$this->enrollmentCode = $enrollmentCode; |
| 1780 |
} |
| 1781 |
public function getEnrollmentCode() |
| 1782 |
{ |
| 1783 |
return $this->enrollmentCode; |
| 1784 |
} |
| 1785 |
public function setId($id) |
| 1786 |
{ |
| 1787 |
$this->id = $id; |
| 1788 |
} |
| 1789 |
public function getId() |
| 1790 |
{ |
| 1791 |
return $this->id; |
| 1792 |
} |
| 1793 |
public function setName($name) |
| 1794 |
{ |
| 1795 |
$this->name = $name; |
| 1796 |
} |
| 1797 |
public function getName() |
| 1798 |
{ |
| 1799 |
return $this->name; |
| 1800 |
} |
| 1801 |
public function setOwnerId($ownerId) |
| 1802 |
{ |
| 1803 |
$this->ownerId = $ownerId; |
| 1804 |
} |
| 1805 |
public function getOwnerId() |
| 1806 |
{ |
| 1807 |
return $this->ownerId; |
| 1808 |
} |
| 1809 |
public function setRoom($room) |
| 1810 |
{ |
| 1811 |
$this->room = $room; |
| 1812 |
} |
| 1813 |
public function getRoom() |
| 1814 |
{ |
| 1815 |
return $this->room; |
| 1816 |
} |
| 1817 |
public function setSection($section) |
| 1818 |
{ |
| 1819 |
$this->section = $section; |
| 1820 |
} |
| 1821 |
public function getSection() |
| 1822 |
{ |
| 1823 |
return $this->section; |
| 1824 |
} |
| 1825 |
public function setTeacherFolder(Google_Service_Classroom_DriveFolder $teacherFolder) |
| 1826 |
{ |
| 1827 |
$this->teacherFolder = $teacherFolder; |
| 1828 |
} |
| 1829 |
public function getTeacherFolder() |
| 1830 |
{ |
| 1831 |
return $this->teacherFolder; |
| 1832 |
} |
| 1833 |
public function setTeacherGroupEmail($teacherGroupEmail) |
| 1834 |
{ |
| 1835 |
$this->teacherGroupEmail = $teacherGroupEmail; |
| 1836 |
} |
| 1837 |
public function getTeacherGroupEmail() |
| 1838 |
{ |
| 1839 |
return $this->teacherGroupEmail; |
| 1840 |
} |
| 1841 |
public function setUpdateTime($updateTime) |
| 1842 |
{ |
| 1843 |
$this->updateTime = $updateTime; |
| 1844 |
} |
| 1845 |
public function getUpdateTime() |
| 1846 |
{ |
| 1847 |
return $this->updateTime; |
| 1848 |
} |
| 1849 |
} |
| 1850 |
|
| 1851 |
class Google_Service_Classroom_CourseAlias extends Google_Model |
| 1852 |
{ |
| 1853 |
protected $internal_gapi_mappings = array( |
| 1854 |
); |
| 1855 |
public $alias; |
| 1856 |
|
| 1857 |
|
| 1858 |
public function setAlias($alias) |
| 1859 |
{ |
| 1860 |
$this->alias = $alias; |
| 1861 |
} |
| 1862 |
public function getAlias() |
| 1863 |
{ |
| 1864 |
return $this->alias; |
| 1865 |
} |
| 1866 |
} |
| 1867 |
|
| 1868 |
class Google_Service_Classroom_CourseMaterial extends Google_Model |
| 1869 |
{ |
| 1870 |
protected $internal_gapi_mappings = array( |
| 1871 |
); |
| 1872 |
protected $driveFileType = 'Google_Service_Classroom_DriveFile'; |
| 1873 |
protected $driveFileDataType = ''; |
| 1874 |
protected $formType = 'Google_Service_Classroom_Form'; |
| 1875 |
protected $formDataType = ''; |
| 1876 |
protected $linkType = 'Google_Service_Classroom_Link'; |
| 1877 |
protected $linkDataType = ''; |
| 1878 |
protected $youTubeVideoType = 'Google_Service_Classroom_YouTubeVideo'; |
| 1879 |
protected $youTubeVideoDataType = ''; |
| 1880 |
|
| 1881 |
|
| 1882 |
public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile) |
| 1883 |
{ |
| 1884 |
$this->driveFile = $driveFile; |
| 1885 |
} |
| 1886 |
public function getDriveFile() |
| 1887 |
{ |
| 1888 |
return $this->driveFile; |
| 1889 |
} |
| 1890 |
public function setForm(Google_Service_Classroom_Form $form) |
| 1891 |
{ |
| 1892 |
$this->form = $form; |
| 1893 |
} |
| 1894 |
public function getForm() |
| 1895 |
{ |
| 1896 |
return $this->form; |
| 1897 |
} |
| 1898 |
public function setLink(Google_Service_Classroom_Link $link) |
| 1899 |
{ |
| 1900 |
$this->link = $link; |
| 1901 |
} |
| 1902 |
public function getLink() |
| 1903 |
{ |
| 1904 |
return $this->link; |
| 1905 |
} |
| 1906 |
public function setYouTubeVideo(Google_Service_Classroom_YouTubeVideo $youTubeVideo) |
| 1907 |
{ |
| 1908 |
$this->youTubeVideo = $youTubeVideo; |
| 1909 |
} |
| 1910 |
public function getYouTubeVideo() |
| 1911 |
{ |
| 1912 |
return $this->youTubeVideo; |
| 1913 |
} |
| 1914 |
} |
| 1915 |
|
| 1916 |
class Google_Service_Classroom_CourseMaterialSet extends Google_Collection |
| 1917 |
{ |
| 1918 |
protected $collection_key = 'materials'; |
| 1919 |
protected $internal_gapi_mappings = array( |
| 1920 |
); |
| 1921 |
protected $materialsType = 'Google_Service_Classroom_CourseMaterial'; |
| 1922 |
protected $materialsDataType = 'array'; |
| 1923 |
public $title; |
| 1924 |
|
| 1925 |
|
| 1926 |
public function setMaterials($materials) |
| 1927 |
{ |
| 1928 |
$this->materials = $materials; |
| 1929 |
} |
| 1930 |
public function getMaterials() |
| 1931 |
{ |
| 1932 |
return $this->materials; |
| 1933 |
} |
| 1934 |
public function setTitle($title) |
| 1935 |
{ |
| 1936 |
$this->title = $title; |
| 1937 |
} |
| 1938 |
public function getTitle() |
| 1939 |
{ |
| 1940 |
return $this->title; |
| 1941 |
} |
| 1942 |
} |
| 1943 |
|
| 1944 |
class Google_Service_Classroom_CourseWork extends Google_Collection |
| 1945 |
{ |
| 1946 |
protected $collection_key = 'materials'; |
| 1947 |
protected $internal_gapi_mappings = array( |
| 1948 |
); |
| 1949 |
public $alternateLink; |
| 1950 |
protected $assignmentType = 'Google_Service_Classroom_Assignment'; |
| 1951 |
protected $assignmentDataType = ''; |
| 1952 |
public $associatedWithDeveloper; |
| 1953 |
public $courseId; |
| 1954 |
public $creationTime; |
| 1955 |
public $description; |
| 1956 |
protected $dueDateType = 'Google_Service_Classroom_Date'; |
| 1957 |
protected $dueDateDataType = ''; |
| 1958 |
protected $dueTimeType = 'Google_Service_Classroom_TimeOfDay'; |
| 1959 |
protected $dueTimeDataType = ''; |
| 1960 |
public $id; |
| 1961 |
protected $materialsType = 'Google_Service_Classroom_Material'; |
| 1962 |
protected $materialsDataType = 'array'; |
| 1963 |
public $maxPoints; |
| 1964 |
protected $multipleChoiceQuestionType = 'Google_Service_Classroom_MultipleChoiceQuestion'; |
| 1965 |
protected $multipleChoiceQuestionDataType = ''; |
| 1966 |
public $state; |
| 1967 |
public $submissionModificationMode; |
| 1968 |
public $title; |
| 1969 |
public $updateTime; |
| 1970 |
public $workType; |
| 1971 |
|
| 1972 |
|
| 1973 |
public function setAlternateLink($alternateLink) |
| 1974 |
{ |
| 1975 |
$this->alternateLink = $alternateLink; |
| 1976 |
} |
| 1977 |
public function getAlternateLink() |
| 1978 |
{ |
| 1979 |
return $this->alternateLink; |
| 1980 |
} |
| 1981 |
public function setAssignment(Google_Service_Classroom_Assignment $assignment) |
| 1982 |
{ |
| 1983 |
$this->assignment = $assignment; |
| 1984 |
} |
| 1985 |
public function getAssignment() |
| 1986 |
{ |
| 1987 |
return $this->assignment; |
| 1988 |
} |
| 1989 |
public function setAssociatedWithDeveloper($associatedWithDeveloper) |
| 1990 |
{ |
| 1991 |
$this->associatedWithDeveloper = $associatedWithDeveloper; |
| 1992 |
} |
| 1993 |
public function getAssociatedWithDeveloper() |
| 1994 |
{ |
| 1995 |
return $this->associatedWithDeveloper; |
| 1996 |
} |
| 1997 |
public function setCourseId($courseId) |
| 1998 |
{ |
| 1999 |
$this->courseId = $courseId; |
| 2000 |
} |
| 2001 |
public function getCourseId() |
| 2002 |
{ |
| 2003 |
return $this->courseId; |
| 2004 |
} |
| 2005 |
public function setCreationTime($creationTime) |
| 2006 |
{ |
| 2007 |
$this->creationTime = $creationTime; |
| 2008 |
} |
| 2009 |
public function getCreationTime() |
| 2010 |
{ |
| 2011 |
return $this->creationTime; |
| 2012 |
} |
| 2013 |
public function setDescription($description) |
| 2014 |
{ |
| 2015 |
$this->description = $description; |
| 2016 |
} |
| 2017 |
public function getDescription() |
| 2018 |
{ |
| 2019 |
return $this->description; |
| 2020 |
} |
| 2021 |
public function setDueDate(Google_Service_Classroom_Date $dueDate) |
| 2022 |
{ |
| 2023 |
$this->dueDate = $dueDate; |
| 2024 |
} |
| 2025 |
public function getDueDate() |
| 2026 |
{ |
| 2027 |
return $this->dueDate; |
| 2028 |
} |
| 2029 |
public function setDueTime(Google_Service_Classroom_TimeOfDay $dueTime) |
| 2030 |
{ |
| 2031 |
$this->dueTime = $dueTime; |
| 2032 |
} |
| 2033 |
public function getDueTime() |
| 2034 |
{ |
| 2035 |
return $this->dueTime; |
| 2036 |
} |
| 2037 |
public function setId($id) |
| 2038 |
{ |
| 2039 |
$this->id = $id; |
| 2040 |
} |
| 2041 |
public function getId() |
| 2042 |
{ |
| 2043 |
return $this->id; |
| 2044 |
} |
| 2045 |
public function setMaterials($materials) |
| 2046 |
{ |
| 2047 |
$this->materials = $materials; |
| 2048 |
} |
| 2049 |
public function getMaterials() |
| 2050 |
{ |
| 2051 |
return $this->materials; |
| 2052 |
} |
| 2053 |
public function setMaxPoints($maxPoints) |
| 2054 |
{ |
| 2055 |
$this->maxPoints = $maxPoints; |
| 2056 |
} |
| 2057 |
public function getMaxPoints() |
| 2058 |
{ |
| 2059 |
return $this->maxPoints; |
| 2060 |
} |
| 2061 |
public function setMultipleChoiceQuestion(Google_Service_Classroom_MultipleChoiceQuestion $multipleChoiceQuestion) |
| 2062 |
{ |
| 2063 |
$this->multipleChoiceQuestion = $multipleChoiceQuestion; |
| 2064 |
} |
| 2065 |
public function getMultipleChoiceQuestion() |
| 2066 |
{ |
| 2067 |
return $this->multipleChoiceQuestion; |
| 2068 |
} |
| 2069 |
public function setState($state) |
| 2070 |
{ |
| 2071 |
$this->state = $state; |
| 2072 |
} |
| 2073 |
public function getState() |
| 2074 |
{ |
| 2075 |
return $this->state; |
| 2076 |
} |
| 2077 |
public function setSubmissionModificationMode($submissionModificationMode) |
| 2078 |
{ |
| 2079 |
$this->submissionModificationMode = $submissionModificationMode; |
| 2080 |
} |
| 2081 |
public function getSubmissionModificationMode() |
| 2082 |
{ |
| 2083 |
return $this->submissionModificationMode; |
| 2084 |
} |
| 2085 |
public function setTitle($title) |
| 2086 |
{ |
| 2087 |
$this->title = $title; |
| 2088 |
} |
| 2089 |
public function getTitle() |
| 2090 |
{ |
| 2091 |
return $this->title; |
| 2092 |
} |
| 2093 |
public function setUpdateTime($updateTime) |
| 2094 |
{ |
| 2095 |
$this->updateTime = $updateTime; |
| 2096 |
} |
| 2097 |
public function getUpdateTime() |
| 2098 |
{ |
| 2099 |
return $this->updateTime; |
| 2100 |
} |
| 2101 |
public function setWorkType($workType) |
| 2102 |
{ |
| 2103 |
$this->workType = $workType; |
| 2104 |
} |
| 2105 |
public function getWorkType() |
| 2106 |
{ |
| 2107 |
return $this->workType; |
| 2108 |
} |
| 2109 |
} |
| 2110 |
|
| 2111 |
class Google_Service_Classroom_Date extends Google_Model |
| 2112 |
{ |
| 2113 |
protected $internal_gapi_mappings = array( |
| 2114 |
); |
| 2115 |
public $day; |
| 2116 |
public $month; |
| 2117 |
public $year; |
| 2118 |
|
| 2119 |
|
| 2120 |
public function setDay($day) |
| 2121 |
{ |
| 2122 |
$this->day = $day; |
| 2123 |
} |
| 2124 |
public function getDay() |
| 2125 |
{ |
| 2126 |
return $this->day; |
| 2127 |
} |
| 2128 |
public function setMonth($month) |
| 2129 |
{ |
| 2130 |
$this->month = $month; |
| 2131 |
} |
| 2132 |
public function getMonth() |
| 2133 |
{ |
| 2134 |
return $this->month; |
| 2135 |
} |
| 2136 |
public function setYear($year) |
| 2137 |
{ |
| 2138 |
$this->year = $year; |
| 2139 |
} |
| 2140 |
public function getYear() |
| 2141 |
{ |
| 2142 |
return $this->year; |
| 2143 |
} |
| 2144 |
} |
| 2145 |
|
| 2146 |
class Google_Service_Classroom_DriveFile extends Google_Model |
| 2147 |
{ |
| 2148 |
protected $internal_gapi_mappings = array( |
| 2149 |
); |
| 2150 |
public $alternateLink; |
| 2151 |
public $id; |
| 2152 |
public $thumbnailUrl; |
| 2153 |
public $title; |
| 2154 |
|
| 2155 |
|
| 2156 |
public function setAlternateLink($alternateLink) |
| 2157 |
{ |
| 2158 |
$this->alternateLink = $alternateLink; |
| 2159 |
} |
| 2160 |
public function getAlternateLink() |
| 2161 |
{ |
| 2162 |
return $this->alternateLink; |
| 2163 |
} |
| 2164 |
public function setId($id) |
| 2165 |
{ |
| 2166 |
$this->id = $id; |
| 2167 |
} |
| 2168 |
public function getId() |
| 2169 |
{ |
| 2170 |
return $this->id; |
| 2171 |
} |
| 2172 |
public function setThumbnailUrl($thumbnailUrl) |
| 2173 |
{ |
| 2174 |
$this->thumbnailUrl = $thumbnailUrl; |
| 2175 |
} |
| 2176 |
public function getThumbnailUrl() |
| 2177 |
{ |
| 2178 |
return $this->thumbnailUrl; |
| 2179 |
} |
| 2180 |
public function setTitle($title) |
| 2181 |
{ |
| 2182 |
$this->title = $title; |
| 2183 |
} |
| 2184 |
public function getTitle() |
| 2185 |
{ |
| 2186 |
return $this->title; |
| 2187 |
} |
| 2188 |
} |
| 2189 |
|
| 2190 |
class Google_Service_Classroom_DriveFolder extends Google_Model |
| 2191 |
{ |
| 2192 |
protected $internal_gapi_mappings = array( |
| 2193 |
); |
| 2194 |
public $alternateLink; |
| 2195 |
public $id; |
| 2196 |
public $title; |
| 2197 |
|
| 2198 |
|
| 2199 |
public function setAlternateLink($alternateLink) |
| 2200 |
{ |
| 2201 |
$this->alternateLink = $alternateLink; |
| 2202 |
} |
| 2203 |
public function getAlternateLink() |
| 2204 |
{ |
| 2205 |
return $this->alternateLink; |
| 2206 |
} |
| 2207 |
public function setId($id) |
| 2208 |
{ |
| 2209 |
$this->id = $id; |
| 2210 |
} |
| 2211 |
public function getId() |
| 2212 |
{ |
| 2213 |
return $this->id; |
| 2214 |
} |
| 2215 |
public function setTitle($title) |
| 2216 |
{ |
| 2217 |
$this->title = $title; |
| 2218 |
} |
| 2219 |
public function getTitle() |
| 2220 |
{ |
| 2221 |
return $this->title; |
| 2222 |
} |
| 2223 |
} |
| 2224 |
|
| 2225 |
class Google_Service_Classroom_Empty extends Google_Model |
| 2226 |
{ |
| 2227 |
} |
| 2228 |
|
| 2229 |
class Google_Service_Classroom_Form extends Google_Model |
| 2230 |
{ |
| 2231 |
protected $internal_gapi_mappings = array( |
| 2232 |
); |
| 2233 |
public $formUrl; |
| 2234 |
public $responseUrl; |
| 2235 |
public $thumbnailUrl; |
| 2236 |
public $title; |
| 2237 |
|
| 2238 |
|
| 2239 |
public function setFormUrl($formUrl) |
| 2240 |
{ |
| 2241 |
$this->formUrl = $formUrl; |
| 2242 |
} |
| 2243 |
public function getFormUrl() |
| 2244 |
{ |
| 2245 |
return $this->formUrl; |
| 2246 |
} |
| 2247 |
public function setResponseUrl($responseUrl) |
| 2248 |
{ |
| 2249 |
$this->responseUrl = $responseUrl; |
| 2250 |
} |
| 2251 |
public function getResponseUrl() |
| 2252 |
{ |
| 2253 |
return $this->responseUrl; |
| 2254 |
} |
| 2255 |
public function setThumbnailUrl($thumbnailUrl) |
| 2256 |
{ |
| 2257 |
$this->thumbnailUrl = $thumbnailUrl; |
| 2258 |
} |
| 2259 |
public function getThumbnailUrl() |
| 2260 |
{ |
| 2261 |
return $this->thumbnailUrl; |
| 2262 |
} |
| 2263 |
public function setTitle($title) |
| 2264 |
{ |
| 2265 |
$this->title = $title; |
| 2266 |
} |
| 2267 |
public function getTitle() |
| 2268 |
{ |
| 2269 |
return $this->title; |
| 2270 |
} |
| 2271 |
} |
| 2272 |
|
| 2273 |
class Google_Service_Classroom_GlobalPermission extends Google_Model |
| 2274 |
{ |
| 2275 |
protected $internal_gapi_mappings = array( |
| 2276 |
); |
| 2277 |
public $permission; |
| 2278 |
|
| 2279 |
|
| 2280 |
public function setPermission($permission) |
| 2281 |
{ |
| 2282 |
$this->permission = $permission; |
| 2283 |
} |
| 2284 |
public function getPermission() |
| 2285 |
{ |
| 2286 |
return $this->permission; |
| 2287 |
} |
| 2288 |
} |
| 2289 |
|
| 2290 |
class Google_Service_Classroom_Invitation extends Google_Model |
| 2291 |
{ |
| 2292 |
protected $internal_gapi_mappings = array( |
| 2293 |
); |
| 2294 |
public $courseId; |
| 2295 |
public $id; |
| 2296 |
public $role; |
| 2297 |
public $userId; |
| 2298 |
|
| 2299 |
|
| 2300 |
public function setCourseId($courseId) |
| 2301 |
{ |
| 2302 |
$this->courseId = $courseId; |
| 2303 |
} |
| 2304 |
public function getCourseId() |
| 2305 |
{ |
| 2306 |
return $this->courseId; |
| 2307 |
} |
| 2308 |
public function setId($id) |
| 2309 |
{ |
| 2310 |
$this->id = $id; |
| 2311 |
} |
| 2312 |
public function getId() |
| 2313 |
{ |
| 2314 |
return $this->id; |
| 2315 |
} |
| 2316 |
public function setRole($role) |
| 2317 |
{ |
| 2318 |
$this->role = $role; |
| 2319 |
} |
| 2320 |
public function getRole() |
| 2321 |
{ |
| 2322 |
return $this->role; |
| 2323 |
} |
| 2324 |
public function setUserId($userId) |
| 2325 |
{ |
| 2326 |
$this->userId = $userId; |
| 2327 |
} |
| 2328 |
public function getUserId() |
| 2329 |
{ |
| 2330 |
return $this->userId; |
| 2331 |
} |
| 2332 |
} |
| 2333 |
|
| 2334 |
class Google_Service_Classroom_Link extends Google_Model |
| 2335 |
{ |
| 2336 |
protected $internal_gapi_mappings = array( |
| 2337 |
); |
| 2338 |
public $thumbnailUrl; |
| 2339 |
public $title; |
| 2340 |
public $url; |
| 2341 |
|
| 2342 |
|
| 2343 |
public function setThumbnailUrl($thumbnailUrl) |
| 2344 |
{ |
| 2345 |
$this->thumbnailUrl = $thumbnailUrl; |
| 2346 |
} |
| 2347 |
public function getThumbnailUrl() |
| 2348 |
{ |
| 2349 |
return $this->thumbnailUrl; |
| 2350 |
} |
| 2351 |
public function setTitle($title) |
| 2352 |
{ |
| 2353 |
$this->title = $title; |
| 2354 |
} |
| 2355 |
public function getTitle() |
| 2356 |
{ |
| 2357 |
return $this->title; |
| 2358 |
} |
| 2359 |
public function setUrl($url) |
| 2360 |
{ |
| 2361 |
$this->url = $url; |
| 2362 |
} |
| 2363 |
public function getUrl() |
| 2364 |
{ |
| 2365 |
return $this->url; |
| 2366 |
} |
| 2367 |
} |
| 2368 |
|
| 2369 |
class Google_Service_Classroom_ListCourseAliasesResponse extends Google_Collection |
| 2370 |
{ |
| 2371 |
protected $collection_key = 'aliases'; |
| 2372 |
protected $internal_gapi_mappings = array( |
| 2373 |
); |
| 2374 |
protected $aliasesType = 'Google_Service_Classroom_CourseAlias'; |
| 2375 |
protected $aliasesDataType = 'array'; |
| 2376 |
public $nextPageToken; |
| 2377 |
|
| 2378 |
|
| 2379 |
public function setAliases($aliases) |
| 2380 |
{ |
| 2381 |
$this->aliases = $aliases; |
| 2382 |
} |
| 2383 |
public function getAliases() |
| 2384 |
{ |
| 2385 |
return $this->aliases; |
| 2386 |
} |
| 2387 |
public function setNextPageToken($nextPageToken) |
| 2388 |
{ |
| 2389 |
$this->nextPageToken = $nextPageToken; |
| 2390 |
} |
| 2391 |
public function getNextPageToken() |
| 2392 |
{ |
| 2393 |
return $this->nextPageToken; |
| 2394 |
} |
| 2395 |
} |
| 2396 |
|
| 2397 |
class Google_Service_Classroom_ListCourseWorkResponse extends Google_Collection |
| 2398 |
{ |
| 2399 |
protected $collection_key = 'courseWork'; |
| 2400 |
protected $internal_gapi_mappings = array( |
| 2401 |
); |
| 2402 |
protected $courseWorkType = 'Google_Service_Classroom_CourseWork'; |
| 2403 |
protected $courseWorkDataType = 'array'; |
| 2404 |
public $nextPageToken; |
| 2405 |
|
| 2406 |
|
| 2407 |
public function setCourseWork($courseWork) |
| 2408 |
{ |
| 2409 |
$this->courseWork = $courseWork; |
| 2410 |
} |
| 2411 |
public function getCourseWork() |
| 2412 |
{ |
| 2413 |
return $this->courseWork; |
| 2414 |
} |
| 2415 |
public function setNextPageToken($nextPageToken) |
| 2416 |
{ |
| 2417 |
$this->nextPageToken = $nextPageToken; |
| 2418 |
} |
| 2419 |
public function getNextPageToken() |
| 2420 |
{ |
| 2421 |
return $this->nextPageToken; |
| 2422 |
} |
| 2423 |
} |
| 2424 |
|
| 2425 |
class Google_Service_Classroom_ListCoursesResponse extends Google_Collection |
| 2426 |
{ |
| 2427 |
protected $collection_key = 'courses'; |
| 2428 |
protected $internal_gapi_mappings = array( |
| 2429 |
); |
| 2430 |
protected $coursesType = 'Google_Service_Classroom_Course'; |
| 2431 |
protected $coursesDataType = 'array'; |
| 2432 |
public $nextPageToken; |
| 2433 |
|
| 2434 |
|
| 2435 |
public function setCourses($courses) |
| 2436 |
{ |
| 2437 |
$this->courses = $courses; |
| 2438 |
} |
| 2439 |
public function getCourses() |
| 2440 |
{ |
| 2441 |
return $this->courses; |
| 2442 |
} |
| 2443 |
public function setNextPageToken($nextPageToken) |
| 2444 |
{ |
| 2445 |
$this->nextPageToken = $nextPageToken; |
| 2446 |
} |
| 2447 |
public function getNextPageToken() |
| 2448 |
{ |
| 2449 |
return $this->nextPageToken; |
| 2450 |
} |
| 2451 |
} |
| 2452 |
|
| 2453 |
class Google_Service_Classroom_ListInvitationsResponse extends Google_Collection |
| 2454 |
{ |
| 2455 |
protected $collection_key = 'invitations'; |
| 2456 |
protected $internal_gapi_mappings = array( |
| 2457 |
); |
| 2458 |
protected $invitationsType = 'Google_Service_Classroom_Invitation'; |
| 2459 |
protected $invitationsDataType = 'array'; |
| 2460 |
public $nextPageToken; |
| 2461 |
|
| 2462 |
|
| 2463 |
public function setInvitations($invitations) |
| 2464 |
{ |
| 2465 |
$this->invitations = $invitations; |
| 2466 |
} |
| 2467 |
public function getInvitations() |
| 2468 |
{ |
| 2469 |
return $this->invitations; |
| 2470 |
} |
| 2471 |
public function setNextPageToken($nextPageToken) |
| 2472 |
{ |
| 2473 |
$this->nextPageToken = $nextPageToken; |
| 2474 |
} |
| 2475 |
public function getNextPageToken() |
| 2476 |
{ |
| 2477 |
return $this->nextPageToken; |
| 2478 |
} |
| 2479 |
} |
| 2480 |
|
| 2481 |
class Google_Service_Classroom_ListStudentSubmissionsResponse extends Google_Collection |
| 2482 |
{ |
| 2483 |
protected $collection_key = 'studentSubmissions'; |
| 2484 |
protected $internal_gapi_mappings = array( |
| 2485 |
); |
| 2486 |
public $nextPageToken; |
| 2487 |
protected $studentSubmissionsType = 'Google_Service_Classroom_StudentSubmission'; |
| 2488 |
protected $studentSubmissionsDataType = 'array'; |
| 2489 |
|
| 2490 |
|
| 2491 |
public function setNextPageToken($nextPageToken) |
| 2492 |
{ |
| 2493 |
$this->nextPageToken = $nextPageToken; |
| 2494 |
} |
| 2495 |
public function getNextPageToken() |
| 2496 |
{ |
| 2497 |
return $this->nextPageToken; |
| 2498 |
} |
| 2499 |
public function setStudentSubmissions($studentSubmissions) |
| 2500 |
{ |
| 2501 |
$this->studentSubmissions = $studentSubmissions; |
| 2502 |
} |
| 2503 |
public function getStudentSubmissions() |
| 2504 |
{ |
| 2505 |
return $this->studentSubmissions; |
| 2506 |
} |
| 2507 |
} |
| 2508 |
|
| 2509 |
class Google_Service_Classroom_ListStudentsResponse extends Google_Collection |
| 2510 |
{ |
| 2511 |
protected $collection_key = 'students'; |
| 2512 |
protected $internal_gapi_mappings = array( |
| 2513 |
); |
| 2514 |
public $nextPageToken; |
| 2515 |
protected $studentsType = 'Google_Service_Classroom_Student'; |
| 2516 |
protected $studentsDataType = 'array'; |
| 2517 |
|
| 2518 |
|
| 2519 |
public function setNextPageToken($nextPageToken) |
| 2520 |
{ |
| 2521 |
$this->nextPageToken = $nextPageToken; |
| 2522 |
} |
| 2523 |
public function getNextPageToken() |
| 2524 |
{ |
| 2525 |
return $this->nextPageToken; |
| 2526 |
} |
| 2527 |
public function setStudents($students) |
| 2528 |
{ |
| 2529 |
$this->students = $students; |
| 2530 |
} |
| 2531 |
public function getStudents() |
| 2532 |
{ |
| 2533 |
return $this->students; |
| 2534 |
} |
| 2535 |
} |
| 2536 |
|
| 2537 |
class Google_Service_Classroom_ListTeachersResponse extends Google_Collection |
| 2538 |
{ |
| 2539 |
protected $collection_key = 'teachers'; |
| 2540 |
protected $internal_gapi_mappings = array( |
| 2541 |
); |
| 2542 |
public $nextPageToken; |
| 2543 |
protected $teachersType = 'Google_Service_Classroom_Teacher'; |
| 2544 |
protected $teachersDataType = 'array'; |
| 2545 |
|
| 2546 |
|
| 2547 |
public function setNextPageToken($nextPageToken) |
| 2548 |
{ |
| 2549 |
$this->nextPageToken = $nextPageToken; |
| 2550 |
} |
| 2551 |
public function getNextPageToken() |
| 2552 |
{ |
| 2553 |
return $this->nextPageToken; |
| 2554 |
} |
| 2555 |
public function setTeachers($teachers) |
| 2556 |
{ |
| 2557 |
$this->teachers = $teachers; |
| 2558 |
} |
| 2559 |
public function getTeachers() |
| 2560 |
{ |
| 2561 |
return $this->teachers; |
| 2562 |
} |
| 2563 |
} |
| 2564 |
|
| 2565 |
class Google_Service_Classroom_Material extends Google_Model |
| 2566 |
{ |
| 2567 |
protected $internal_gapi_mappings = array( |
| 2568 |
); |
| 2569 |
protected $driveFileType = 'Google_Service_Classroom_SharedDriveFile'; |
| 2570 |
protected $driveFileDataType = ''; |
| 2571 |
protected $formType = 'Google_Service_Classroom_Form'; |
| 2572 |
protected $formDataType = ''; |
| 2573 |
protected $linkType = 'Google_Service_Classroom_Link'; |
| 2574 |
protected $linkDataType = ''; |
| 2575 |
protected $youtubeVideoType = 'Google_Service_Classroom_YouTubeVideo'; |
| 2576 |
protected $youtubeVideoDataType = ''; |
| 2577 |
|
| 2578 |
|
| 2579 |
public function setDriveFile(Google_Service_Classroom_SharedDriveFile $driveFile) |
| 2580 |
{ |
| 2581 |
$this->driveFile = $driveFile; |
| 2582 |
} |
| 2583 |
public function getDriveFile() |
| 2584 |
{ |
| 2585 |
return $this->driveFile; |
| 2586 |
} |
| 2587 |
public function setForm(Google_Service_Classroom_Form $form) |
| 2588 |
{ |
| 2589 |
$this->form = $form; |
| 2590 |
} |
| 2591 |
public function getForm() |
| 2592 |
{ |
| 2593 |
return $this->form; |
| 2594 |
} |
| 2595 |
public function setLink(Google_Service_Classroom_Link $link) |
| 2596 |
{ |
| 2597 |
$this->link = $link; |
| 2598 |
} |
| 2599 |
public function getLink() |
| 2600 |
{ |
| 2601 |
return $this->link; |
| 2602 |
} |
| 2603 |
public function setYoutubeVideo(Google_Service_Classroom_YouTubeVideo $youtubeVideo) |
| 2604 |
{ |
| 2605 |
$this->youtubeVideo = $youtubeVideo; |
| 2606 |
} |
| 2607 |
public function getYoutubeVideo() |
| 2608 |
{ |
| 2609 |
return $this->youtubeVideo; |
| 2610 |
} |
| 2611 |
} |
| 2612 |
|
| 2613 |
class Google_Service_Classroom_ModifyAttachmentsRequest extends Google_Collection |
| 2614 |
{ |
| 2615 |
protected $collection_key = 'addAttachments'; |
| 2616 |
protected $internal_gapi_mappings = array( |
| 2617 |
); |
| 2618 |
protected $addAttachmentsType = 'Google_Service_Classroom_Attachment'; |
| 2619 |
protected $addAttachmentsDataType = 'array'; |
| 2620 |
|
| 2621 |
|
| 2622 |
public function setAddAttachments($addAttachments) |
| 2623 |
{ |
| 2624 |
$this->addAttachments = $addAttachments; |
| 2625 |
} |
| 2626 |
public function getAddAttachments() |
| 2627 |
{ |
| 2628 |
return $this->addAttachments; |
| 2629 |
} |
| 2630 |
} |
| 2631 |
|
| 2632 |
class Google_Service_Classroom_MultipleChoiceQuestion extends Google_Collection |
| 2633 |
{ |
| 2634 |
protected $collection_key = 'choices'; |
| 2635 |
protected $internal_gapi_mappings = array( |
| 2636 |
); |
| 2637 |
public $choices; |
| 2638 |
|
| 2639 |
|
| 2640 |
public function setChoices($choices) |
| 2641 |
{ |
| 2642 |
$this->choices = $choices; |
| 2643 |
} |
| 2644 |
public function getChoices() |
| 2645 |
{ |
| 2646 |
return $this->choices; |
| 2647 |
} |
| 2648 |
} |
| 2649 |
|
| 2650 |
class Google_Service_Classroom_MultipleChoiceSubmission extends Google_Model |
| 2651 |
{ |
| 2652 |
protected $internal_gapi_mappings = array( |
| 2653 |
); |
| 2654 |
public $answer; |
| 2655 |
|
| 2656 |
|
| 2657 |
public function setAnswer($answer) |
| 2658 |
{ |
| 2659 |
$this->answer = $answer; |
| 2660 |
} |
| 2661 |
public function getAnswer() |
| 2662 |
{ |
| 2663 |
return $this->answer; |
| 2664 |
} |
| 2665 |
} |
| 2666 |
|
| 2667 |
class Google_Service_Classroom_Name extends Google_Model |
| 2668 |
{ |
| 2669 |
protected $internal_gapi_mappings = array( |
| 2670 |
); |
| 2671 |
public $familyName; |
| 2672 |
public $fullName; |
| 2673 |
public $givenName; |
| 2674 |
|
| 2675 |
|
| 2676 |
public function setFamilyName($familyName) |
| 2677 |
{ |
| 2678 |
$this->familyName = $familyName; |
| 2679 |
} |
| 2680 |
public function getFamilyName() |
| 2681 |
{ |
| 2682 |
return $this->familyName; |
| 2683 |
} |
| 2684 |
public function setFullName($fullName) |
| 2685 |
{ |
| 2686 |
$this->fullName = $fullName; |
| 2687 |
} |
| 2688 |
public function getFullName() |
| 2689 |
{ |
| 2690 |
return $this->fullName; |
| 2691 |
} |
| 2692 |
public function setGivenName($givenName) |
| 2693 |
{ |
| 2694 |
$this->givenName = $givenName; |
| 2695 |
} |
| 2696 |
public function getGivenName() |
| 2697 |
{ |
| 2698 |
return $this->givenName; |
| 2699 |
} |
| 2700 |
} |
| 2701 |
|
| 2702 |
class Google_Service_Classroom_ReclaimStudentSubmissionRequest extends Google_Model |
| 2703 |
{ |
| 2704 |
} |
| 2705 |
|
| 2706 |
class Google_Service_Classroom_ReturnStudentSubmissionRequest extends Google_Model |
| 2707 |
{ |
| 2708 |
} |
| 2709 |
|
| 2710 |
class Google_Service_Classroom_SharedDriveFile extends Google_Model |
| 2711 |
{ |
| 2712 |
protected $internal_gapi_mappings = array( |
| 2713 |
); |
| 2714 |
protected $driveFileType = 'Google_Service_Classroom_DriveFile'; |
| 2715 |
protected $driveFileDataType = ''; |
| 2716 |
public $shareMode; |
| 2717 |
|
| 2718 |
|
| 2719 |
public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile) |
| 2720 |
{ |
| 2721 |
$this->driveFile = $driveFile; |
| 2722 |
} |
| 2723 |
public function getDriveFile() |
| 2724 |
{ |
| 2725 |
return $this->driveFile; |
| 2726 |
} |
| 2727 |
public function setShareMode($shareMode) |
| 2728 |
{ |
| 2729 |
$this->shareMode = $shareMode; |
| 2730 |
} |
| 2731 |
public function getShareMode() |
| 2732 |
{ |
| 2733 |
return $this->shareMode; |
| 2734 |
} |
| 2735 |
} |
| 2736 |
|
| 2737 |
class Google_Service_Classroom_ShortAnswerSubmission extends Google_Model |
| 2738 |
{ |
| 2739 |
protected $internal_gapi_mappings = array( |
| 2740 |
); |
| 2741 |
public $answer; |
| 2742 |
|
| 2743 |
|
| 2744 |
public function setAnswer($answer) |
| 2745 |
{ |
| 2746 |
$this->answer = $answer; |
| 2747 |
} |
| 2748 |
public function getAnswer() |
| 2749 |
{ |
| 2750 |
return $this->answer; |
| 2751 |
} |
| 2752 |
} |
| 2753 |
|
| 2754 |
class Google_Service_Classroom_Student extends Google_Model |
| 2755 |
{ |
| 2756 |
protected $internal_gapi_mappings = array( |
| 2757 |
); |
| 2758 |
public $courseId; |
| 2759 |
protected $profileType = 'Google_Service_Classroom_UserProfile'; |
| 2760 |
protected $profileDataType = ''; |
| 2761 |
protected $studentWorkFolderType = 'Google_Service_Classroom_DriveFolder'; |
| 2762 |
protected $studentWorkFolderDataType = ''; |
| 2763 |
public $userId; |
| 2764 |
|
| 2765 |
|
| 2766 |
public function setCourseId($courseId) |
| 2767 |
{ |
| 2768 |
$this->courseId = $courseId; |
| 2769 |
} |
| 2770 |
public function getCourseId() |
| 2771 |
{ |
| 2772 |
return $this->courseId; |
| 2773 |
} |
| 2774 |
public function setProfile(Google_Service_Classroom_UserProfile $profile) |
| 2775 |
{ |
| 2776 |
$this->profile = $profile; |
| 2777 |
} |
| 2778 |
public function getProfile() |
| 2779 |
{ |
| 2780 |
return $this->profile; |
| 2781 |
} |
| 2782 |
public function setStudentWorkFolder(Google_Service_Classroom_DriveFolder $studentWorkFolder) |
| 2783 |
{ |
| 2784 |
$this->studentWorkFolder = $studentWorkFolder; |
| 2785 |
} |
| 2786 |
public function getStudentWorkFolder() |
| 2787 |
{ |
| 2788 |
return $this->studentWorkFolder; |
| 2789 |
} |
| 2790 |
public function setUserId($userId) |
| 2791 |
{ |
| 2792 |
$this->userId = $userId; |
| 2793 |
} |
| 2794 |
public function getUserId() |
| 2795 |
{ |
| 2796 |
return $this->userId; |
| 2797 |
} |
| 2798 |
} |
| 2799 |
|
| 2800 |
class Google_Service_Classroom_StudentSubmission extends Google_Model |
| 2801 |
{ |
| 2802 |
protected $internal_gapi_mappings = array( |
| 2803 |
); |
| 2804 |
public $alternateLink; |
| 2805 |
public $assignedGrade; |
| 2806 |
protected $assignmentSubmissionType = 'Google_Service_Classroom_AssignmentSubmission'; |
| 2807 |
protected $assignmentSubmissionDataType = ''; |
| 2808 |
public $associatedWithDeveloper; |
| 2809 |
public $courseId; |
| 2810 |
public $courseWorkId; |
| 2811 |
public $courseWorkType; |
| 2812 |
public $creationTime; |
| 2813 |
public $draftGrade; |
| 2814 |
public $id; |
| 2815 |
public $late; |
| 2816 |
protected $multipleChoiceSubmissionType = 'Google_Service_Classroom_MultipleChoiceSubmission'; |
| 2817 |
protected $multipleChoiceSubmissionDataType = ''; |
| 2818 |
protected $shortAnswerSubmissionType = 'Google_Service_Classroom_ShortAnswerSubmission'; |
| 2819 |
protected $shortAnswerSubmissionDataType = ''; |
| 2820 |
public $state; |
| 2821 |
public $updateTime; |
| 2822 |
public $userId; |
| 2823 |
|
| 2824 |
|
| 2825 |
public function setAlternateLink($alternateLink) |
| 2826 |
{ |
| 2827 |
$this->alternateLink = $alternateLink; |
| 2828 |
} |
| 2829 |
public function getAlternateLink() |
| 2830 |
{ |
| 2831 |
return $this->alternateLink; |
| 2832 |
} |
| 2833 |
public function setAssignedGrade($assignedGrade) |
| 2834 |
{ |
| 2835 |
$this->assignedGrade = $assignedGrade; |
| 2836 |
} |
| 2837 |
public function getAssignedGrade() |
| 2838 |
{ |
| 2839 |
return $this->assignedGrade; |
| 2840 |
} |
| 2841 |
public function setAssignmentSubmission(Google_Service_Classroom_AssignmentSubmission $assignmentSubmission) |
| 2842 |
{ |
| 2843 |
$this->assignmentSubmission = $assignmentSubmission; |
| 2844 |
} |
| 2845 |
public function getAssignmentSubmission() |
| 2846 |
{ |
| 2847 |
return $this->assignmentSubmission; |
| 2848 |
} |
| 2849 |
public function setAssociatedWithDeveloper($associatedWithDeveloper) |
| 2850 |
{ |
| 2851 |
$this->associatedWithDeveloper = $associatedWithDeveloper; |
| 2852 |
} |
| 2853 |
public function getAssociatedWithDeveloper() |
| 2854 |
{ |
| 2855 |
return $this->associatedWithDeveloper; |
| 2856 |
} |
| 2857 |
public function setCourseId($courseId) |
| 2858 |
{ |
| 2859 |
$this->courseId = $courseId; |
| 2860 |
} |
| 2861 |
public function getCourseId() |
| 2862 |
{ |
| 2863 |
return $this->courseId; |
| 2864 |
} |
| 2865 |
public function setCourseWorkId($courseWorkId) |
| 2866 |
{ |
| 2867 |
$this->courseWorkId = $courseWorkId; |
| 2868 |
} |
| 2869 |
public function getCourseWorkId() |
| 2870 |
{ |
| 2871 |
return $this->courseWorkId; |
| 2872 |
} |
| 2873 |
public function setCourseWorkType($courseWorkType) |
| 2874 |
{ |
| 2875 |
$this->courseWorkType = $courseWorkType; |
| 2876 |
} |
| 2877 |
public function getCourseWorkType() |
| 2878 |
{ |
| 2879 |
return $this->courseWorkType; |
| 2880 |
} |
| 2881 |
public function setCreationTime($creationTime) |
| 2882 |
{ |
| 2883 |
$this->creationTime = $creationTime; |
| 2884 |
} |
| 2885 |
public function getCreationTime() |
| 2886 |
{ |
| 2887 |
return $this->creationTime; |
| 2888 |
} |
| 2889 |
public function setDraftGrade($draftGrade) |
| 2890 |
{ |
| 2891 |
$this->draftGrade = $draftGrade; |
| 2892 |
} |
| 2893 |
public function getDraftGrade() |
| 2894 |
{ |
| 2895 |
return $this->draftGrade; |
| 2896 |
} |
| 2897 |
public function setId($id) |
| 2898 |
{ |
| 2899 |
$this->id = $id; |
| 2900 |
} |
| 2901 |
public function getId() |
| 2902 |
{ |
| 2903 |
return $this->id; |
| 2904 |
} |
| 2905 |
public function setLate($late) |
| 2906 |
{ |
| 2907 |
$this->late = $late; |
| 2908 |
} |
| 2909 |
public function getLate() |
| 2910 |
{ |
| 2911 |
return $this->late; |
| 2912 |
} |
| 2913 |
public function setMultipleChoiceSubmission(Google_Service_Classroom_MultipleChoiceSubmission $multipleChoiceSubmission) |
| 2914 |
{ |
| 2915 |
$this->multipleChoiceSubmission = $multipleChoiceSubmission; |
| 2916 |
} |
| 2917 |
public function getMultipleChoiceSubmission() |
| 2918 |
{ |
| 2919 |
return $this->multipleChoiceSubmission; |
| 2920 |
} |
| 2921 |
public function setShortAnswerSubmission(Google_Service_Classroom_ShortAnswerSubmission $shortAnswerSubmission) |
| 2922 |
{ |
| 2923 |
$this->shortAnswerSubmission = $shortAnswerSubmission; |
| 2924 |
} |
| 2925 |
public function getShortAnswerSubmission() |
| 2926 |
{ |
| 2927 |
return $this->shortAnswerSubmission; |
| 2928 |
} |
| 2929 |
public function setState($state) |
| 2930 |
{ |
| 2931 |
$this->state = $state; |
| 2932 |
} |
| 2933 |
public function getState() |
| 2934 |
{ |
| 2935 |
return $this->state; |
| 2936 |
} |
| 2937 |
public function setUpdateTime($updateTime) |
| 2938 |
{ |
| 2939 |
$this->updateTime = $updateTime; |
| 2940 |
} |
| 2941 |
public function getUpdateTime() |
| 2942 |
{ |
| 2943 |
return $this->updateTime; |
| 2944 |
} |
| 2945 |
public function setUserId($userId) |
| 2946 |
{ |
| 2947 |
$this->userId = $userId; |
| 2948 |
} |
| 2949 |
public function getUserId() |
| 2950 |
{ |
| 2951 |
return $this->userId; |
| 2952 |
} |
| 2953 |
} |
| 2954 |
|
| 2955 |
class Google_Service_Classroom_Teacher extends Google_Model |
| 2956 |
{ |
| 2957 |
protected $internal_gapi_mappings = array( |
| 2958 |
); |
| 2959 |
public $courseId; |
| 2960 |
protected $profileType = 'Google_Service_Classroom_UserProfile'; |
| 2961 |
protected $profileDataType = ''; |
| 2962 |
public $userId; |
| 2963 |
|
| 2964 |
|
| 2965 |
public function setCourseId($courseId) |
| 2966 |
{ |
| 2967 |
$this->courseId = $courseId; |
| 2968 |
} |
| 2969 |
public function getCourseId() |
| 2970 |
{ |
| 2971 |
return $this->courseId; |
| 2972 |
} |
| 2973 |
public function setProfile(Google_Service_Classroom_UserProfile $profile) |
| 2974 |
{ |
| 2975 |
$this->profile = $profile; |
| 2976 |
} |
| 2977 |
public function getProfile() |
| 2978 |
{ |
| 2979 |
return $this->profile; |
| 2980 |
} |
| 2981 |
public function setUserId($userId) |
| 2982 |
{ |
| 2983 |
$this->userId = $userId; |
| 2984 |
} |
| 2985 |
public function getUserId() |
| 2986 |
{ |
| 2987 |
return $this->userId; |
| 2988 |
} |
| 2989 |
} |
| 2990 |
|
| 2991 |
class Google_Service_Classroom_TimeOfDay extends Google_Model |
| 2992 |
{ |
| 2993 |
protected $internal_gapi_mappings = array( |
| 2994 |
); |
| 2995 |
public $hours; |
| 2996 |
public $minutes; |
| 2997 |
public $nanos; |
| 2998 |
public $seconds; |
| 2999 |
|
| 3000 |
|
| 3001 |
public function setHours($hours) |
| 3002 |
{ |
| 3003 |
$this->hours = $hours; |
| 3004 |
} |
| 3005 |
public function getHours() |
| 3006 |
{ |
| 3007 |
return $this->hours; |
| 3008 |
} |
| 3009 |
public function setMinutes($minutes) |
| 3010 |
{ |
| 3011 |
$this->minutes = $minutes; |
| 3012 |
} |
| 3013 |
public function getMinutes() |
| 3014 |
{ |
| 3015 |
return $this->minutes; |
| 3016 |
} |
| 3017 |
public function setNanos($nanos) |
| 3018 |
{ |
| 3019 |
$this->nanos = $nanos; |
| 3020 |
} |
| 3021 |
public function getNanos() |
| 3022 |
{ |
| 3023 |
return $this->nanos; |
| 3024 |
} |
| 3025 |
public function setSeconds($seconds) |
| 3026 |
{ |
| 3027 |
$this->seconds = $seconds; |
| 3028 |
} |
| 3029 |
public function getSeconds() |
| 3030 |
{ |
| 3031 |
return $this->seconds; |
| 3032 |
} |
| 3033 |
} |
| 3034 |
|
| 3035 |
class Google_Service_Classroom_TurnInStudentSubmissionRequest extends Google_Model |
| 3036 |
{ |
| 3037 |
} |
| 3038 |
|
| 3039 |
class Google_Service_Classroom_UserProfile extends Google_Collection |
| 3040 |
{ |
| 3041 |
protected $collection_key = 'permissions'; |
| 3042 |
protected $internal_gapi_mappings = array( |
| 3043 |
); |
| 3044 |
public $emailAddress; |
| 3045 |
public $id; |
| 3046 |
protected $nameType = 'Google_Service_Classroom_Name'; |
| 3047 |
protected $nameDataType = ''; |
| 3048 |
protected $permissionsType = 'Google_Service_Classroom_GlobalPermission'; |
| 3049 |
protected $permissionsDataType = 'array'; |
| 3050 |
public $photoUrl; |
| 3051 |
|
| 3052 |
|
| 3053 |
public function setEmailAddress($emailAddress) |
| 3054 |
{ |
| 3055 |
$this->emailAddress = $emailAddress; |
| 3056 |
} |
| 3057 |
public function getEmailAddress() |
| 3058 |
{ |
| 3059 |
return $this->emailAddress; |
| 3060 |
} |
| 3061 |
public function setId($id) |
| 3062 |
{ |
| 3063 |
$this->id = $id; |
| 3064 |
} |
| 3065 |
public function getId() |
| 3066 |
{ |
| 3067 |
return $this->id; |
| 3068 |
} |
| 3069 |
public function setName(Google_Service_Classroom_Name $name) |
| 3070 |
{ |
| 3071 |
$this->name = $name; |
| 3072 |
} |
| 3073 |
public function getName() |
| 3074 |
{ |
| 3075 |
return $this->name; |
| 3076 |
} |
| 3077 |
public function setPermissions($permissions) |
| 3078 |
{ |
| 3079 |
$this->permissions = $permissions; |
| 3080 |
} |
| 3081 |
public function getPermissions() |
| 3082 |
{ |
| 3083 |
return $this->permissions; |
| 3084 |
} |
| 3085 |
public function setPhotoUrl($photoUrl) |
| 3086 |
{ |
| 3087 |
$this->photoUrl = $photoUrl; |
| 3088 |
} |
| 3089 |
public function getPhotoUrl() |
| 3090 |
{ |
| 3091 |
return $this->photoUrl; |
| 3092 |
} |
| 3093 |
} |
| 3094 |
|
| 3095 |
class Google_Service_Classroom_YouTubeVideo extends Google_Model |
| 3096 |
{ |
| 3097 |
protected $internal_gapi_mappings = array( |
| 3098 |
); |
| 3099 |
public $alternateLink; |
| 3100 |
public $id; |
| 3101 |
public $thumbnailUrl; |
| 3102 |
public $title; |
| 3103 |
|
| 3104 |
|
| 3105 |
public function setAlternateLink($alternateLink) |
| 3106 |
{ |
| 3107 |
$this->alternateLink = $alternateLink; |
| 3108 |
} |
| 3109 |
public function getAlternateLink() |
| 3110 |
{ |
| 3111 |
return $this->alternateLink; |
| 3112 |
} |
| 3113 |
public function setId($id) |
| 3114 |
{ |
| 3115 |
$this->id = $id; |
| 3116 |
} |
| 3117 |
public function getId() |
| 3118 |
{ |
| 3119 |
return $this->id; |
| 3120 |
} |
| 3121 |
public function setThumbnailUrl($thumbnailUrl) |
| 3122 |
{ |
| 3123 |
$this->thumbnailUrl = $thumbnailUrl; |
| 3124 |
} |
| 3125 |
public function getThumbnailUrl() |
| 3126 |
{ |
| 3127 |
return $this->thumbnailUrl; |
| 3128 |
} |
| 3129 |
public function setTitle($title) |
| 3130 |
{ |
| 3131 |
$this->title = $title; |
| 3132 |
} |
| 3133 |
public function getTitle() |
| 3134 |
{ |
| 3135 |
return $this->title; |
| 3136 |
} |
| 3137 |
} |
| 3138 |
|