Skip to content

Commit d4c95b9

Browse files
feat: Automated regeneration of Classroom client (googleapis#12617)
Auto-created at 2024-11-24 13:11:00 +0000 using the toys pull request generator.
1 parent ebb74ef commit d4c95b9

File tree

10 files changed

+758
-3
lines changed

10 files changed

+758
-3
lines changed

clients/classroom/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_classroom, "~> 0.21"}]
14+
[{:google_api_classroom, "~> 0.22"}]
1515
end
1616
```
1717

clients/classroom/lib/google_api/classroom/v1/api/courses.ex

Lines changed: 472 additions & 0 deletions
Large diffs are not rendered by default.

clients/classroom/lib/google_api/classroom/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Classroom.V1 do
2020
API client metadata for GoogleApi.Classroom.V1.
2121
"""
2222

23-
@discovery_revision "20241007"
23+
@discovery_revision "20241119"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of 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,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Classroom.V1.Model.Criterion do
19+
@moduledoc """
20+
A rubric criterion. Each criterion is a dimension on which performance is rated.
21+
22+
## Attributes
23+
24+
* `description` (*type:* `String.t`, *default:* `nil`) - The description of the criterion.
25+
* `id` (*type:* `String.t`, *default:* `nil`) - The criterion ID. On creation, an ID is assigned.
26+
* `levels` (*type:* `list(GoogleApi.Classroom.V1.Model.Level.t)`, *default:* `nil`) - The list of levels within this criterion.
27+
* `title` (*type:* `String.t`, *default:* `nil`) - The title of the criterion.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:description => String.t() | nil,
34+
:id => String.t() | nil,
35+
:levels => list(GoogleApi.Classroom.V1.Model.Level.t()) | nil,
36+
:title => String.t() | nil
37+
}
38+
39+
field(:description)
40+
field(:id)
41+
field(:levels, as: GoogleApi.Classroom.V1.Model.Level, type: :list)
42+
field(:title)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Classroom.V1.Model.Criterion do
46+
def decode(value, options) do
47+
GoogleApi.Classroom.V1.Model.Criterion.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Classroom.V1.Model.Criterion do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of 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,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Classroom.V1.Model.Level do
19+
@moduledoc """
20+
A level of the criterion.
21+
22+
## Attributes
23+
24+
* `description` (*type:* `String.t`, *default:* `nil`) - The description of the level.
25+
* `id` (*type:* `String.t`, *default:* `nil`) - The level ID. On creation, an ID is assigned.
26+
* `points` (*type:* `float()`, *default:* `nil`) - Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
27+
* `title` (*type:* `String.t`, *default:* `nil`) - The title of the level. If the level has no points set, title must be set.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:description => String.t() | nil,
34+
:id => String.t() | nil,
35+
:points => float() | nil,
36+
:title => String.t() | nil
37+
}
38+
39+
field(:description)
40+
field(:id)
41+
field(:points)
42+
field(:title)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Classroom.V1.Model.Level do
46+
def decode(value, options) do
47+
GoogleApi.Classroom.V1.Model.Level.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Classroom.V1.Model.Level do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of 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,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Classroom.V1.Model.ListRubricsResponse do
19+
@moduledoc """
20+
Response when listing rubrics.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token identifying the next page of results to return. If empty, no further results are available.
25+
* `rubrics` (*type:* `list(GoogleApi.Classroom.V1.Model.Rubric.t)`, *default:* `nil`) - Rubrics that match the request.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:rubrics => list(GoogleApi.Classroom.V1.Model.Rubric.t()) | nil
33+
}
34+
35+
field(:nextPageToken)
36+
field(:rubrics, as: GoogleApi.Classroom.V1.Model.Rubric, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Classroom.V1.Model.ListRubricsResponse do
40+
def decode(value, options) do
41+
GoogleApi.Classroom.V1.Model.ListRubricsResponse.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Classroom.V1.Model.ListRubricsResponse do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of 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,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Classroom.V1.Model.Rubric do
19+
@moduledoc """
20+
The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
21+
22+
## Attributes
23+
24+
* `courseId` (*type:* `String.t`, *default:* `nil`) - Identifier of the course. Read-only.
25+
* `courseWorkId` (*type:* `String.t`, *default:* `nil`) - Identifier for the course work this corresponds to. Read-only.
26+
* `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this rubric was created. Read-only.
27+
* `criteria` (*type:* `list(GoogleApi.Classroom.V1.Model.Criterion.t)`, *default:* `nil`) - List of criteria. Each criterion is a dimension on which performance is rated.
28+
* `id` (*type:* `String.t`, *default:* `nil`) - Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
29+
* `sourceSpreadsheetId` (*type:* `String.t`, *default:* `nil`) - Input only. Immutable. Google Sheets ID of the spreadsheet. This spreadsheet must contain formatted rubric settings. See [Create or reuse a rubric for an assignment](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
30+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of the most recent change to this rubric. Read-only.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:courseId => String.t() | nil,
37+
:courseWorkId => String.t() | nil,
38+
:creationTime => DateTime.t() | nil,
39+
:criteria => list(GoogleApi.Classroom.V1.Model.Criterion.t()) | nil,
40+
:id => String.t() | nil,
41+
:sourceSpreadsheetId => String.t() | nil,
42+
:updateTime => DateTime.t() | nil
43+
}
44+
45+
field(:courseId)
46+
field(:courseWorkId)
47+
field(:creationTime, as: DateTime)
48+
field(:criteria, as: GoogleApi.Classroom.V1.Model.Criterion, type: :list)
49+
field(:id)
50+
field(:sourceSpreadsheetId)
51+
field(:updateTime, as: DateTime)
52+
end
53+
54+
defimpl Poison.Decoder, for: GoogleApi.Classroom.V1.Model.Rubric do
55+
def decode(value, options) do
56+
GoogleApi.Classroom.V1.Model.Rubric.decode(value, options)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder, for: GoogleApi.Classroom.V1.Model.Rubric do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of 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,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Classroom.V1.Model.RubricGrade do
19+
@moduledoc """
20+
A rubric grade set for the student submission. There is at most one entry per rubric criterion.
21+
22+
## Attributes
23+
24+
* `criterionId` (*type:* `String.t`, *default:* `nil`) - Optional. Criterion ID.
25+
* `levelId` (*type:* `String.t`, *default:* `nil`) - Optional. Optional level ID of the selected level. If empty, no level was selected.
26+
* `points` (*type:* `float()`, *default:* `nil`) - Optional. Optional points assigned for this criterion, typically based on the level. Levels might or might not have points. If unset, no points were set for this criterion.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:criterionId => String.t() | nil,
33+
:levelId => String.t() | nil,
34+
:points => float() | nil
35+
}
36+
37+
field(:criterionId)
38+
field(:levelId)
39+
field(:points)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Classroom.V1.Model.RubricGrade do
43+
def decode(value, options) do
44+
GoogleApi.Classroom.V1.Model.RubricGrade.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Classroom.V1.Model.RubricGrade do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/classroom/lib/google_api/classroom/v1/model/student_submission.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ defmodule GoogleApi.Classroom.V1.Model.StudentSubmission do
2323
2424
* `alternateLink` (*type:* `String.t`, *default:* `nil`) - Absolute link to the submission in the Classroom web UI. Read-only.
2525
* `assignedGrade` (*type:* `float()`, *default:* `nil`) - Optional grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This may be modified only by course teachers.
26+
* `assignedRubricGrades` (*type:* `%{optional(String.t) => GoogleApi.Classroom.V1.Model.RubricGrade.t}`, *default:* `nil`) - Assigned rubric grades based on the rubric's Criteria. This map is empty if there is no rubric attached to this course work or if a rubric is attached, but no grades have been set on any Criteria. Entries are only populated for grades that have been set. Key: The rubric's criterion ID. Read-only.
2627
* `assignmentSubmission` (*type:* `GoogleApi.Classroom.V1.Model.AssignmentSubmission.t`, *default:* `nil`) - Submission content when course_work_type is ASSIGNMENT. Students can modify this content using ModifyAttachments.
2728
* `associatedWithDeveloper` (*type:* `boolean()`, *default:* `nil`) - Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.
2829
* `courseId` (*type:* `String.t`, *default:* `nil`) - Identifier of the course. Read-only.
2930
* `courseWorkId` (*type:* `String.t`, *default:* `nil`) - Identifier for the course work this corresponds to. Read-only.
3031
* `courseWorkType` (*type:* `String.t`, *default:* `nil`) - Type of course work this submission is for. Read-only.
3132
* `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - Creation time of this submission. This may be unset if the student has not accessed this item. Read-only.
3233
* `draftGrade` (*type:* `float()`, *default:* `nil`) - Optional pending grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This is only visible to and modifiable by course teachers.
34+
* `draftRubricGrades` (*type:* `%{optional(String.t) => GoogleApi.Classroom.V1.Model.RubricGrade.t}`, *default:* `nil`) - Pending rubric grades based on the rubric's criteria. This map is empty if there is no rubric attached to this course work or if a rubric is attached, but no grades have been set on any criteria. Entries are only populated for grades that have been set. Key: The rubric's criterion ID. Read-only.
3335
* `id` (*type:* `String.t`, *default:* `nil`) - Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only.
3436
* `late` (*type:* `boolean()`, *default:* `nil`) - Whether this submission is late. Read-only.
3537
* `multipleChoiceSubmission` (*type:* `GoogleApi.Classroom.V1.Model.MultipleChoiceSubmission.t`, *default:* `nil`) - Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.
@@ -45,13 +47,17 @@ defmodule GoogleApi.Classroom.V1.Model.StudentSubmission do
4547
@type t :: %__MODULE__{
4648
:alternateLink => String.t() | nil,
4749
:assignedGrade => float() | nil,
50+
:assignedRubricGrades =>
51+
%{optional(String.t()) => GoogleApi.Classroom.V1.Model.RubricGrade.t()} | nil,
4852
:assignmentSubmission => GoogleApi.Classroom.V1.Model.AssignmentSubmission.t() | nil,
4953
:associatedWithDeveloper => boolean() | nil,
5054
:courseId => String.t() | nil,
5155
:courseWorkId => String.t() | nil,
5256
:courseWorkType => String.t() | nil,
5357
:creationTime => DateTime.t() | nil,
5458
:draftGrade => float() | nil,
59+
:draftRubricGrades =>
60+
%{optional(String.t()) => GoogleApi.Classroom.V1.Model.RubricGrade.t()} | nil,
5561
:id => String.t() | nil,
5662
:late => boolean() | nil,
5763
:multipleChoiceSubmission =>
@@ -65,13 +71,15 @@ defmodule GoogleApi.Classroom.V1.Model.StudentSubmission do
6571

6672
field(:alternateLink)
6773
field(:assignedGrade)
74+
field(:assignedRubricGrades, as: GoogleApi.Classroom.V1.Model.RubricGrade, type: :map)
6875
field(:assignmentSubmission, as: GoogleApi.Classroom.V1.Model.AssignmentSubmission)
6976
field(:associatedWithDeveloper)
7077
field(:courseId)
7178
field(:courseWorkId)
7279
field(:courseWorkType)
7380
field(:creationTime, as: DateTime)
7481
field(:draftGrade)
82+
field(:draftRubricGrades, as: GoogleApi.Classroom.V1.Model.RubricGrade, type: :map)
7583
field(:id)
7684
field(:late)
7785
field(:multipleChoiceSubmission, as: GoogleApi.Classroom.V1.Model.MultipleChoiceSubmission)

clients/classroom/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Classroom.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.21.2"
21+
@version "0.22.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)