Skip to content

Commit 531e082

Browse files
1 parent 792df61 commit 531e082

File tree

8 files changed

+605
-17
lines changed

8 files changed

+605
-17
lines changed

clients/google-api-services-classroom/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-classroom</artifactId>
25-
<version>v1-rev20250303-2.0.0</version>
25+
<version>v1-rev20250416-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-classroom:v1-rev20250303-2.0.0'
38+
implementation 'com.google.apis:google-api-services-classroom:v1-rev20250416-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/Classroom.java

Lines changed: 314 additions & 8 deletions
Large diffs are not rendered by default.

clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/CourseWork.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ public final class CourseWork extends com.google.api.client.json.GenericJson {
112112
@com.google.api.client.util.Key
113113
private GradeCategory gradeCategory;
114114

115+
/**
116+
* Identifier of the grading period associated with the coursework. * At creation, if unspecified,
117+
* the grading period ID will be set based on the `dueDate` (or `scheduledTime` if no `dueDate` is
118+
* set). * To indicate no association to any grading period, set this field to an empty string
119+
* (""). * If specified, it must match an existing grading period ID in the course.
120+
* The value may be {@code null}.
121+
*/
122+
@com.google.api.client.util.Key
123+
private java.lang.String gradingPeriodId;
124+
115125
/**
116126
* Classroom-assigned identifier of this course work, unique per course. Read-only.
117127
* The value may be {@code null}.
@@ -405,6 +415,29 @@ public CourseWork setGradeCategory(GradeCategory gradeCategory) {
405415
return this;
406416
}
407417

418+
/**
419+
* Identifier of the grading period associated with the coursework. * At creation, if unspecified,
420+
* the grading period ID will be set based on the `dueDate` (or `scheduledTime` if no `dueDate` is
421+
* set). * To indicate no association to any grading period, set this field to an empty string
422+
* (""). * If specified, it must match an existing grading period ID in the course.
423+
* @return value or {@code null} for none
424+
*/
425+
public java.lang.String getGradingPeriodId() {
426+
return gradingPeriodId;
427+
}
428+
429+
/**
430+
* Identifier of the grading period associated with the coursework. * At creation, if unspecified,
431+
* the grading period ID will be set based on the `dueDate` (or `scheduledTime` if no `dueDate` is
432+
* set). * To indicate no association to any grading period, set this field to an empty string
433+
* (""). * If specified, it must match an existing grading period ID in the course.
434+
* @param gradingPeriodId gradingPeriodId or {@code null} for none
435+
*/
436+
public CourseWork setGradingPeriodId(java.lang.String gradingPeriodId) {
437+
this.gradingPeriodId = gradingPeriodId;
438+
return this;
439+
}
440+
408441
/**
409442
* Classroom-assigned identifier of this course work, unique per course. Read-only.
410443
* @return value or {@code null} for none
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.classroom.model;
18+
19+
/**
20+
* An individual grading period. Grading periods must not have overlapping date ranges and must be
21+
* listed in chronological order. For example, if the end_date of a grading period is 2024-01-25,
22+
* then the start_date of the next grading period must be 2024-01-26 or later. Each grading period
23+
* must have a unique title within a course.
24+
*
25+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
26+
* transmitted over HTTP when working with the Google Classroom API. For a detailed explanation see:
27+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class GradingPeriod extends com.google.api.client.json.GenericJson {
34+
35+
/**
36+
* Required. End date, in UTC, of the grading period. Inclusive.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private Date endDate;
41+
42+
/**
43+
* Output only. System generated grading period ID. Read-only.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String id;
48+
49+
/**
50+
* Required. Start date, in UTC, of the grading period. Inclusive.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private Date startDate;
55+
56+
/**
57+
* Required. Title of the grading period. For example, “Semester 1”.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private java.lang.String title;
62+
63+
/**
64+
* Required. End date, in UTC, of the grading period. Inclusive.
65+
* @return value or {@code null} for none
66+
*/
67+
public Date getEndDate() {
68+
return endDate;
69+
}
70+
71+
/**
72+
* Required. End date, in UTC, of the grading period. Inclusive.
73+
* @param endDate endDate or {@code null} for none
74+
*/
75+
public GradingPeriod setEndDate(Date endDate) {
76+
this.endDate = endDate;
77+
return this;
78+
}
79+
80+
/**
81+
* Output only. System generated grading period ID. Read-only.
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getId() {
85+
return id;
86+
}
87+
88+
/**
89+
* Output only. System generated grading period ID. Read-only.
90+
* @param id id or {@code null} for none
91+
*/
92+
public GradingPeriod setId(java.lang.String id) {
93+
this.id = id;
94+
return this;
95+
}
96+
97+
/**
98+
* Required. Start date, in UTC, of the grading period. Inclusive.
99+
* @return value or {@code null} for none
100+
*/
101+
public Date getStartDate() {
102+
return startDate;
103+
}
104+
105+
/**
106+
* Required. Start date, in UTC, of the grading period. Inclusive.
107+
* @param startDate startDate or {@code null} for none
108+
*/
109+
public GradingPeriod setStartDate(Date startDate) {
110+
this.startDate = startDate;
111+
return this;
112+
}
113+
114+
/**
115+
* Required. Title of the grading period. For example, “Semester 1”.
116+
* @return value or {@code null} for none
117+
*/
118+
public java.lang.String getTitle() {
119+
return title;
120+
}
121+
122+
/**
123+
* Required. Title of the grading period. For example, “Semester 1”.
124+
* @param title title or {@code null} for none
125+
*/
126+
public GradingPeriod setTitle(java.lang.String title) {
127+
this.title = title;
128+
return this;
129+
}
130+
131+
@Override
132+
public GradingPeriod set(String fieldName, Object value) {
133+
return (GradingPeriod) super.set(fieldName, value);
134+
}
135+
136+
@Override
137+
public GradingPeriod clone() {
138+
return (GradingPeriod) super.clone();
139+
}
140+
141+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.classroom.model;
18+
19+
/**
20+
* Grading period settings that include all the individual grading periods in a course.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Classroom API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GradingPeriodSettings extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Supports toggling the application of grading periods on existing stream items. Once set, this
34+
* value is persisted meaning that it does not need to be set in every request to update
35+
* `GradingPeriodSettings`. If not previously set, the default is False.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean applyToExistingCoursework;
40+
41+
/**
42+
* The list of grading periods in a specific course. Grading periods must not have overlapping
43+
* date ranges and must be listed in chronological order. Each grading period must have a unique
44+
* title within a course.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.util.List<GradingPeriod> gradingPeriods;
49+
50+
static {
51+
// hack to force ProGuard to consider GradingPeriod used, since otherwise it would be stripped out
52+
// see https://github.com/google/google-api-java-client/issues/543
53+
com.google.api.client.util.Data.nullOf(GradingPeriod.class);
54+
}
55+
56+
/**
57+
* Supports toggling the application of grading periods on existing stream items. Once set, this
58+
* value is persisted meaning that it does not need to be set in every request to update
59+
* `GradingPeriodSettings`. If not previously set, the default is False.
60+
* @return value or {@code null} for none
61+
*/
62+
public java.lang.Boolean getApplyToExistingCoursework() {
63+
return applyToExistingCoursework;
64+
}
65+
66+
/**
67+
* Supports toggling the application of grading periods on existing stream items. Once set, this
68+
* value is persisted meaning that it does not need to be set in every request to update
69+
* `GradingPeriodSettings`. If not previously set, the default is False.
70+
* @param applyToExistingCoursework applyToExistingCoursework or {@code null} for none
71+
*/
72+
public GradingPeriodSettings setApplyToExistingCoursework(java.lang.Boolean applyToExistingCoursework) {
73+
this.applyToExistingCoursework = applyToExistingCoursework;
74+
return this;
75+
}
76+
77+
/**
78+
* The list of grading periods in a specific course. Grading periods must not have overlapping
79+
* date ranges and must be listed in chronological order. Each grading period must have a unique
80+
* title within a course.
81+
* @return value or {@code null} for none
82+
*/
83+
public java.util.List<GradingPeriod> getGradingPeriods() {
84+
return gradingPeriods;
85+
}
86+
87+
/**
88+
* The list of grading periods in a specific course. Grading periods must not have overlapping
89+
* date ranges and must be listed in chronological order. Each grading period must have a unique
90+
* title within a course.
91+
* @param gradingPeriods gradingPeriods or {@code null} for none
92+
*/
93+
public GradingPeriodSettings setGradingPeriods(java.util.List<GradingPeriod> gradingPeriods) {
94+
this.gradingPeriods = gradingPeriods;
95+
return this;
96+
}
97+
98+
@Override
99+
public GradingPeriodSettings set(String fieldName, Object value) {
100+
return (GradingPeriodSettings) super.set(fieldName, value);
101+
}
102+
103+
@Override
104+
public GradingPeriodSettings clone() {
105+
return (GradingPeriodSettings) super.clone();
106+
}
107+
108+
}

clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/Material.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class Material extends com.google.api.client.json.GenericJson {
3838
private SharedDriveFile driveFile;
3939

4040
/**
41-
* Google Forms material.
41+
* Google Forms material. Read-only.
4242
* The value may be {@code null}.
4343
*/
4444
@com.google.api.client.util.Key
@@ -77,15 +77,15 @@ public Material setDriveFile(SharedDriveFile driveFile) {
7777
}
7878

7979
/**
80-
* Google Forms material.
80+
* Google Forms material. Read-only.
8181
* @return value or {@code null} for none
8282
*/
8383
public Form getForm() {
8484
return form;
8585
}
8686

8787
/**
88-
* Google Forms material.
88+
* Google Forms material. Read-only.
8989
* @param form form or {@code null} for none
9090
*/
9191
public Material setForm(Form form) {

clients/google-api-services-classroom/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-classroom</artifactId>
11-
<version>v1-rev20250303-2.0.0</version>
12-
<name>Google Classroom API v1-rev20250303-2.0.0</name>
11+
<version>v1-rev20250416-2.0.0</version>
12+
<name>Google Classroom API v1-rev20250416-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-classroom/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-classroom</artifactId>
25-
<version>v1-rev20250303-2.0.0</version>
25+
<version>v1-rev20250416-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-classroom:v1-rev20250303-2.0.0'
38+
implementation 'com.google.apis:google-api-services-classroom:v1-rev20250416-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)