Skip to content

Commit e710f4a

Browse files
1 parent 5dfbc38 commit e710f4a

8 files changed

Lines changed: 708 additions & 8 deletions

src/Classroom.php

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class Classroom extends \Google\Service
121121
public $courses_posts;
122122
public $courses_posts_addOnAttachments;
123123
public $courses_posts_addOnAttachments_studentSubmissions;
124+
public $courses_studentGroups;
125+
public $courses_studentGroups_studentGroupMembers;
124126
public $courses_students;
125127
public $courses_teachers;
126128
public $courses_topics;
@@ -1746,6 +1748,146 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
17461748
]
17471749
]
17481750
);
1751+
$this->courses_studentGroups = new Classroom\Resource\CoursesStudentGroups(
1752+
$this,
1753+
$this->serviceName,
1754+
'studentGroups',
1755+
[
1756+
'methods' => [
1757+
'create' => [
1758+
'path' => 'v1/courses/{courseId}/studentGroups',
1759+
'httpMethod' => 'POST',
1760+
'parameters' => [
1761+
'courseId' => [
1762+
'location' => 'path',
1763+
'type' => 'string',
1764+
'required' => true,
1765+
],
1766+
],
1767+
],'delete' => [
1768+
'path' => 'v1/courses/{courseId}/studentGroups/{id}',
1769+
'httpMethod' => 'DELETE',
1770+
'parameters' => [
1771+
'courseId' => [
1772+
'location' => 'path',
1773+
'type' => 'string',
1774+
'required' => true,
1775+
],
1776+
'id' => [
1777+
'location' => 'path',
1778+
'type' => 'string',
1779+
'required' => true,
1780+
],
1781+
],
1782+
],'list' => [
1783+
'path' => 'v1/courses/{courseId}/studentGroups',
1784+
'httpMethod' => 'GET',
1785+
'parameters' => [
1786+
'courseId' => [
1787+
'location' => 'path',
1788+
'type' => 'string',
1789+
'required' => true,
1790+
],
1791+
'pageSize' => [
1792+
'location' => 'query',
1793+
'type' => 'integer',
1794+
],
1795+
'pageToken' => [
1796+
'location' => 'query',
1797+
'type' => 'string',
1798+
],
1799+
],
1800+
],'patch' => [
1801+
'path' => 'v1/courses/{courseId}/studentGroups/{id}',
1802+
'httpMethod' => 'PATCH',
1803+
'parameters' => [
1804+
'courseId' => [
1805+
'location' => 'path',
1806+
'type' => 'string',
1807+
'required' => true,
1808+
],
1809+
'id' => [
1810+
'location' => 'path',
1811+
'type' => 'string',
1812+
'required' => true,
1813+
],
1814+
'updateMask' => [
1815+
'location' => 'query',
1816+
'type' => 'string',
1817+
],
1818+
],
1819+
],
1820+
]
1821+
]
1822+
);
1823+
$this->courses_studentGroups_studentGroupMembers = new Classroom\Resource\CoursesStudentGroupsStudentGroupMembers(
1824+
$this,
1825+
$this->serviceName,
1826+
'studentGroupMembers',
1827+
[
1828+
'methods' => [
1829+
'create' => [
1830+
'path' => 'v1/courses/{courseId}/studentGroups/{studentGroupId}/studentGroupMembers',
1831+
'httpMethod' => 'POST',
1832+
'parameters' => [
1833+
'courseId' => [
1834+
'location' => 'path',
1835+
'type' => 'string',
1836+
'required' => true,
1837+
],
1838+
'studentGroupId' => [
1839+
'location' => 'path',
1840+
'type' => 'string',
1841+
'required' => true,
1842+
],
1843+
],
1844+
],'delete' => [
1845+
'path' => 'v1/courses/{courseId}/studentGroups/{studentGroupId}/studentGroupMembers/{userId}',
1846+
'httpMethod' => 'DELETE',
1847+
'parameters' => [
1848+
'courseId' => [
1849+
'location' => 'path',
1850+
'type' => 'string',
1851+
'required' => true,
1852+
],
1853+
'studentGroupId' => [
1854+
'location' => 'path',
1855+
'type' => 'string',
1856+
'required' => true,
1857+
],
1858+
'userId' => [
1859+
'location' => 'path',
1860+
'type' => 'string',
1861+
'required' => true,
1862+
],
1863+
],
1864+
],'list' => [
1865+
'path' => 'v1/courses/{courseId}/studentGroups/{studentGroupId}/studentGroupMembers',
1866+
'httpMethod' => 'GET',
1867+
'parameters' => [
1868+
'courseId' => [
1869+
'location' => 'path',
1870+
'type' => 'string',
1871+
'required' => true,
1872+
],
1873+
'studentGroupId' => [
1874+
'location' => 'path',
1875+
'type' => 'string',
1876+
'required' => true,
1877+
],
1878+
'pageSize' => [
1879+
'location' => 'query',
1880+
'type' => 'integer',
1881+
],
1882+
'pageToken' => [
1883+
'location' => 'query',
1884+
'type' => 'string',
1885+
],
1886+
],
1887+
],
1888+
]
1889+
]
1890+
);
17491891
$this->courses_students = new Classroom\Resource\CoursesStudents(
17501892
$this,
17511893
$this->serviceName,
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Classroom;
19+
20+
class ListStudentGroupMembersResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'studentGroupMembers';
23+
/**
24+
* Token identifying the next page of results to return. If empty, no further
25+
* results are available.
26+
*
27+
* @var string
28+
*/
29+
public $nextPageToken;
30+
protected $studentGroupMembersType = StudentGroupMember::class;
31+
protected $studentGroupMembersDataType = 'array';
32+
33+
/**
34+
* Token identifying the next page of results to return. If empty, no further
35+
* results are available.
36+
*
37+
* @param string $nextPageToken
38+
*/
39+
public function setNextPageToken($nextPageToken)
40+
{
41+
$this->nextPageToken = $nextPageToken;
42+
}
43+
/**
44+
* @return string
45+
*/
46+
public function getNextPageToken()
47+
{
48+
return $this->nextPageToken;
49+
}
50+
/**
51+
* The student group members.
52+
*
53+
* @param StudentGroupMember[] $studentGroupMembers
54+
*/
55+
public function setStudentGroupMembers($studentGroupMembers)
56+
{
57+
$this->studentGroupMembers = $studentGroupMembers;
58+
}
59+
/**
60+
* @return StudentGroupMember[]
61+
*/
62+
public function getStudentGroupMembers()
63+
{
64+
return $this->studentGroupMembers;
65+
}
66+
}
67+
68+
// Adding a class alias for backwards compatibility with the previous class name.
69+
class_alias(ListStudentGroupMembersResponse::class, 'Google_Service_Classroom_ListStudentGroupMembersResponse');
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Classroom;
19+
20+
class ListStudentGroupsResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'studentGroups';
23+
/**
24+
* Token identifying the next page of results to return. If empty, no further
25+
* results are available.
26+
*
27+
* @var string
28+
*/
29+
public $nextPageToken;
30+
protected $studentGroupsType = StudentGroup::class;
31+
protected $studentGroupsDataType = 'array';
32+
33+
/**
34+
* Token identifying the next page of results to return. If empty, no further
35+
* results are available.
36+
*
37+
* @param string $nextPageToken
38+
*/
39+
public function setNextPageToken($nextPageToken)
40+
{
41+
$this->nextPageToken = $nextPageToken;
42+
}
43+
/**
44+
* @return string
45+
*/
46+
public function getNextPageToken()
47+
{
48+
return $this->nextPageToken;
49+
}
50+
/**
51+
* The student groups.
52+
*
53+
* @param StudentGroup[] $studentGroups
54+
*/
55+
public function setStudentGroups($studentGroups)
56+
{
57+
$this->studentGroups = $studentGroups;
58+
}
59+
/**
60+
* @return StudentGroup[]
61+
*/
62+
public function getStudentGroups()
63+
{
64+
return $this->studentGroups;
65+
}
66+
}
67+
68+
// Adding a class alias for backwards compatibility with the previous class name.
69+
class_alias(ListStudentGroupsResponse::class, 'Google_Service_Classroom_ListStudentGroupsResponse');

src/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public function get($courseId, $courseWorkId, $id, $optParams = [])
5858
}
5959
/**
6060
* Returns a list of student submissions that the requester is permitted to
61-
* view, factoring in the OAuth scopes of the request. `-` may be specified as
62-
* the `course_work_id` to include student submissions for multiple course work
63-
* items. Course students may only view their own work. Course teachers and
64-
* domain administrators may view all student submissions. This method returns
65-
* the following error codes: * `PERMISSION_DENIED` if the requesting user is
66-
* not permitted to access the requested course or course work, or for access
67-
* errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if
68-
* the requested course does not exist.
61+
* view, factoring in the OAuth scopes of the request. A hyphen (`-`) may be
62+
* specified as the `course_work_id` to include student submissions for multiple
63+
* course work items. Course students may only view their own work. Course
64+
* teachers and domain administrators may view all student submissions. This
65+
* method returns the following error codes: * `PERMISSION_DENIED` if the
66+
* requesting user is not permitted to access the requested course or course
67+
* work, or for access errors. * `INVALID_ARGUMENT` if the request is malformed.
68+
* * `NOT_FOUND` if the requested course does not exist.
6969
* (studentSubmissions.listCoursesCourseWorkStudentSubmissions)
7070
*
7171
* @param string $courseId Identifier of the course. This identifier can be

0 commit comments

Comments
 (0)