Skip to content

Commit 4e1c0bc

Browse files
Regenerate classroom client (#6580)
1 parent 75d5a31 commit 4e1c0bc

12 files changed

Lines changed: 232 additions & 33 deletions

src/Classroom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* <p>
2929
* For more information about this service, see the API
30-
* <a href="https://developers.google.com/classroom/" target="_blank">Documentation</a>
30+
* <a href="https://developers.google.com/workspace/classroom/" target="_blank">Documentation</a>
3131
* </p>
3232
*
3333
* @author Google, Inc.

src/Classroom/GeminiGem.php

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 GeminiGem extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $id;
26+
/**
27+
* @var string
28+
*/
29+
public $title;
30+
/**
31+
* @var string
32+
*/
33+
public $url;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setId($id)
39+
{
40+
$this->id = $id;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getId()
46+
{
47+
return $this->id;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setTitle($title)
53+
{
54+
$this->title = $title;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getTitle()
60+
{
61+
return $this->title;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setUrl($url)
67+
{
68+
$this->url = $url;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getUrl()
74+
{
75+
return $this->url;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(GeminiGem::class, 'Google_Service_Classroom_GeminiGem');

src/Classroom/Material.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ class Material extends \Google\Model
2323
protected $driveFileDataType = '';
2424
protected $formType = Form::class;
2525
protected $formDataType = '';
26+
protected $gemType = GeminiGem::class;
27+
protected $gemDataType = '';
2628
protected $linkType = Link::class;
2729
protected $linkDataType = '';
30+
protected $notebookType = NotebookLmNotebook::class;
31+
protected $notebookDataType = '';
2832
protected $youtubeVideoType = YouTubeVideo::class;
2933
protected $youtubeVideoDataType = '';
3034

@@ -56,6 +60,20 @@ public function getForm()
5660
{
5761
return $this->form;
5862
}
63+
/**
64+
* @param GeminiGem
65+
*/
66+
public function setGem(GeminiGem $gem)
67+
{
68+
$this->gem = $gem;
69+
}
70+
/**
71+
* @return GeminiGem
72+
*/
73+
public function getGem()
74+
{
75+
return $this->gem;
76+
}
5977
/**
6078
* @param Link
6179
*/
@@ -70,6 +88,20 @@ public function getLink()
7088
{
7189
return $this->link;
7290
}
91+
/**
92+
* @param NotebookLmNotebook
93+
*/
94+
public function setNotebook(NotebookLmNotebook $notebook)
95+
{
96+
$this->notebook = $notebook;
97+
}
98+
/**
99+
* @return NotebookLmNotebook
100+
*/
101+
public function getNotebook()
102+
{
103+
return $this->notebook;
104+
}
73105
/**
74106
* @param YouTubeVideo
75107
*/
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 NotebookLmNotebook extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $id;
26+
/**
27+
* @var string
28+
*/
29+
public $title;
30+
/**
31+
* @var string
32+
*/
33+
public $url;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setId($id)
39+
{
40+
$this->id = $id;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getId()
46+
{
47+
return $this->id;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setTitle($title)
53+
{
54+
$this->title = $title;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getTitle()
60+
{
61+
return $this->title;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setUrl($url)
67+
{
68+
$this->url = $url;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getUrl()
74+
{
75+
return $this->url;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(NotebookLmNotebook::class, 'Google_Service_Classroom_NotebookLmNotebook');

src/Classroom/Resource/Courses.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ public function update($id, Course $postBody, $optParams = [])
201201
* Updates grading period settings of a course. Individual grading periods can
202202
* be added, removed, or modified using this method. The requesting user and
203203
* course owner must be eligible to modify Grading Periods. For details, see
204-
* [licensing requirements](https://developers.google.com/classroom/grading-
204+
* [licensing
205+
* requirements](https://developers.google.com/workspace/classroom/grading-
205206
* periods/manage-grading-periods#licensing_requirements). This method returns
206207
* the following error codes: * `PERMISSION_DENIED` if the requesting user is
207208
* not permitted to modify the grading period settings in a course or for access

src/Classroom/Resource/CoursesAnnouncements.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function get($courseId, $id, $optParams = [])
106106
* maintain the integrity of its own data and permissions model, an add-on
107107
* should call this to validate query parameters and the requesting user's role
108108
* whenever the add-on is opened in an
109-
* [iframe](https://developers.google.com/classroom/add-ons/get-
109+
* [iframe](https://developers.google.com/workspace/classroom/add-ons/get-
110110
* started/iframes/iframes-overview). This method returns the following error
111111
* codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the
112112
* request is malformed. * `NOT_FOUND` if one of the identified resources does
@@ -126,8 +126,9 @@ public function get($courseId, $id, $optParams = [])
126126
* the post.
127127
* @opt_param string attachmentId Optional. The identifier of the attachment.
128128
* This field is required for all requests except when the user is in the
129-
* [Attachment Discovery iframe](https://developers.google.com/classroom/add-
130-
* ons/get-started/iframes/attachment-discovery-iframe).
129+
* [Attachment Discovery
130+
* iframe](https://developers.google.com/workspace/classroom/add-ons/get-
131+
* started/iframes/attachment-discovery-iframe).
131132
* @opt_param string postId Optional. Deprecated, use `item_id` instead.
132133
* @return AddOnContext
133134
* @throws \Google\Service\Exception

src/Classroom/Resource/CoursesCourseWork.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function get($courseId, $id, $optParams = [])
110110
* maintain the integrity of its own data and permissions model, an add-on
111111
* should call this to validate query parameters and the requesting user's role
112112
* whenever the add-on is opened in an
113-
* [iframe](https://developers.google.com/classroom/add-ons/get-
113+
* [iframe](https://developers.google.com/workspace/classroom/add-ons/get-
114114
* started/iframes/iframes-overview). This method returns the following error
115115
* codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the
116116
* request is malformed. * `NOT_FOUND` if one of the identified resources does
@@ -130,8 +130,9 @@ public function get($courseId, $id, $optParams = [])
130130
* the post.
131131
* @opt_param string attachmentId Optional. The identifier of the attachment.
132132
* This field is required for all requests except when the user is in the
133-
* [Attachment Discovery iframe](https://developers.google.com/classroom/add-
134-
* ons/get-started/iframes/attachment-discovery-iframe).
133+
* [Attachment Discovery
134+
* iframe](https://developers.google.com/workspace/classroom/add-ons/get-
135+
* started/iframes/attachment-discovery-iframe).
135136
* @opt_param string postId Optional. Deprecated, use `item_id` instead.
136137
* @return AddOnContext
137138
* @throws \Google\Service\Exception
@@ -246,9 +247,9 @@ public function patch($courseId, $id, CourseWork $postBody, $optParams = [])
246247
* can be updated. Rubric update capabilities are
247248
* [limited](/classroom/rubrics/limitations) once grading has started. The
248249
* requesting user and course owner must have rubrics creation capabilities. For
249-
* details, see [licensing requirements](https://developers.google.com/classroom
250-
* /rubrics/limitations#license-requirements). This request must be made by the
251-
* Google Cloud console of the [OAuth client
250+
* details, see [licensing requirements](https://developers.google.com/workspace
251+
* /classroom/rubrics/limitations#license-requirements). This request must be
252+
* made by the Google Cloud console of the [OAuth client
252253
* ID](https://support.google.com/cloud/answer/6158849) used to create the
253254
* parent course work item. This method returns the following error codes: *
254255
* `PERMISSION_DENIED` if the requesting developer project didn't create the

src/Classroom/Resource/CoursesCourseWorkMaterials.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function get($courseId, $id, $optParams = [])
107107
* maintain the integrity of its own data and permissions model, an add-on
108108
* should call this to validate query parameters and the requesting user's role
109109
* whenever the add-on is opened in an
110-
* [iframe](https://developers.google.com/classroom/add-ons/get-
110+
* [iframe](https://developers.google.com/workspace/classroom/add-ons/get-
111111
* started/iframes/iframes-overview). This method returns the following error
112112
* codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the
113113
* request is malformed. * `NOT_FOUND` if one of the identified resources does
@@ -127,8 +127,9 @@ public function get($courseId, $id, $optParams = [])
127127
* the post.
128128
* @opt_param string attachmentId Optional. The identifier of the attachment.
129129
* This field is required for all requests except when the user is in the
130-
* [Attachment Discovery iframe](https://developers.google.com/classroom/add-
131-
* ons/get-started/iframes/attachment-discovery-iframe).
130+
* [Attachment Discovery
131+
* iframe](https://developers.google.com/workspace/classroom/add-ons/get-
132+
* started/iframes/attachment-discovery-iframe).
132133
* @opt_param string postId Optional. Deprecated, use `item_id` instead.
133134
* @return AddOnContext
134135
* @throws \Google\Service\Exception

src/Classroom/Resource/CoursesCourseWorkRubrics.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class CoursesCourseWorkRubrics extends \Google\Service\Resource
3434
/**
3535
* Creates a rubric. The requesting user and course owner must have rubrics
3636
* creation capabilities. For details, see [licensing requirements](https://deve
37-
* lopers.google.com/classroom/rubrics/limitations#license-requirements). For
38-
* further details, see [Rubrics structure and known
37+
* lopers.google.com/workspace/classroom/rubrics/limitations#license-
38+
* requirements). For further details, see [Rubrics structure and known
3939
* limitations](/classroom/rubrics/limitations). This request must be made by
4040
* the Google Cloud console of the [OAuth client
4141
* ID](https://support.google.com/cloud/answer/6158849) used to create the
@@ -64,15 +64,15 @@ public function create($courseId, $courseWorkId, Rubric $postBody, $optParams =
6464
/**
6565
* Deletes a rubric. The requesting user and course owner must have rubrics
6666
* creation capabilities. For details, see [licensing requirements](https://deve
67-
* lopers.google.com/classroom/rubrics/limitations#license-requirements). This
68-
* request must be made by the Google Cloud console of the [OAuth client
69-
* ID](https://support.google.com/cloud/answer/6158849) used to create the
70-
* corresponding rubric. This method returns the following error codes: *
71-
* `PERMISSION_DENIED` if the requesting developer project didn't create the
72-
* corresponding rubric, or if the requesting user isn't permitted to delete the
73-
* requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or
74-
* the user does not have access to the course, course work, or rubric. *
75-
* `INVALID_ARGUMENT` if grading has already started on the rubric.
67+
* lopers.google.com/workspace/classroom/rubrics/limitations#license-
68+
* requirements). This request must be made by the Google Cloud console of the
69+
* [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
70+
* create the corresponding rubric. This method returns the following error
71+
* codes: * `PERMISSION_DENIED` if the requesting developer project didn't
72+
* create the corresponding rubric, or if the requesting user isn't permitted to
73+
* delete the requested rubric. * `NOT_FOUND` if no rubric exists with the
74+
* requested ID or the user does not have access to the course, course work, or
75+
* rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric.
7676
* (rubrics.delete)
7777
*
7878
* @param string $courseId Required. Identifier of the course.
@@ -141,9 +141,9 @@ public function listCoursesCourseWorkRubrics($courseId, $courseWorkId, $optParam
141141
* can be updated. Rubric update capabilities are
142142
* [limited](/classroom/rubrics/limitations) once grading has started. The
143143
* requesting user and course owner must have rubrics creation capabilities. For
144-
* details, see [licensing requirements](https://developers.google.com/classroom
145-
* /rubrics/limitations#license-requirements). This request must be made by the
146-
* Google Cloud console of the [OAuth client
144+
* details, see [licensing requirements](https://developers.google.com/workspace
145+
* /classroom/rubrics/limitations#license-requirements). This request must be
146+
* made by the Google Cloud console of the [OAuth client
147147
* ID](https://support.google.com/cloud/answer/6158849) used to create the
148148
* parent course work item. This method returns the following error codes: *
149149
* `PERMISSION_DENIED` if the requesting developer project didn't create the

src/Classroom/Resource/CoursesPosts.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CoursesPosts extends \Google\Service\Resource
3434
* maintain the integrity of its own data and permissions model, an add-on
3535
* should call this to validate query parameters and the requesting user's role
3636
* whenever the add-on is opened in an
37-
* [iframe](https://developers.google.com/classroom/add-ons/get-
37+
* [iframe](https://developers.google.com/workspace/classroom/add-ons/get-
3838
* started/iframes/iframes-overview). This method returns the following error
3939
* codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the
4040
* request is malformed. * `NOT_FOUND` if one of the identified resources does
@@ -52,8 +52,9 @@ class CoursesPosts extends \Google\Service\Resource
5252
* the post.
5353
* @opt_param string attachmentId Optional. The identifier of the attachment.
5454
* This field is required for all requests except when the user is in the
55-
* [Attachment Discovery iframe](https://developers.google.com/classroom/add-
56-
* ons/get-started/iframes/attachment-discovery-iframe).
55+
* [Attachment Discovery
56+
* iframe](https://developers.google.com/workspace/classroom/add-ons/get-
57+
* started/iframes/attachment-discovery-iframe).
5758
* @opt_param string itemId Identifier of the `Announcement`, `CourseWork`, or
5859
* `CourseWorkMaterial` under which the attachment is attached. This field is
5960
* required, but is not marked as such while we are migrating from post_id.

0 commit comments

Comments
 (0)