diff --git a/clients/google-api-services-classroom/v1/2.0.0/README.md b/clients/google-api-services-classroom/v1/2.0.0/README.md index efbeccf99cb..f78344457fe 100644 --- a/clients/google-api-services-classroom/v1/2.0.0/README.md +++ b/clients/google-api-services-classroom/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-classroom - v1-rev20260825-2.0.0 + v1-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-classroom:v1-rev20260825-2.0.0' + implementation 'com.google.apis:google-api-services-classroom:v1-rev20261014-2.0.0' } ``` diff --git a/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/Classroom.java b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/Classroom.java index 307f643bac4..abcbd5d3315 100644 --- a/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/Classroom.java +++ b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/Classroom.java @@ -7145,6 +7145,229 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Returns a list of student submissions that the requester is permitted to view. This method + * returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` + * if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist. + * + * Create a request for the method "studentSubmissions.list". + * + * This request holds the parameters needed by the classroom server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param courseId Required. Identifier of the course. + * @param itemId Required. Identifier of the `CourseWork` under which the attachment is attached. + * @param attachmentId Required. Identifier of the add-on attachment. + * @return the request + */ + public List list(java.lang.String courseId, java.lang.String itemId, java.lang.String attachmentId) throws java.io.IOException { + List result = new List(courseId, itemId, attachmentId); + initialize(result); + return result; + } + + public class List extends ClassroomRequest { + + private static final String REST_PATH = "v1/courses/{courseId}/courseWork/{itemId}/addOnAttachments/{attachmentId}/studentSubmissions"; + + /** + * Returns a list of student submissions that the requester is permitted to view. This method + * returns the following error codes: * `PERMISSION_DENIED` for access errors. * + * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified + * resources does not exist. + * + * Create a request for the method "studentSubmissions.list". + * + * This request holds the parameters needed by the the classroom server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param courseId Required. Identifier of the course. + * @param itemId Required. Identifier of the `CourseWork` under which the attachment is attached. + * @param attachmentId Required. Identifier of the add-on attachment. + * @since 1.13 + */ + protected List(java.lang.String courseId, java.lang.String itemId, java.lang.String attachmentId) { + super(Classroom.this, "GET", REST_PATH, null, com.google.api.services.classroom.model.ListAddOnAttachmentStudentSubmissionsResponse.class); + this.courseId = com.google.api.client.util.Preconditions.checkNotNull(courseId, "Required parameter courseId must be specified."); + this.itemId = com.google.api.client.util.Preconditions.checkNotNull(itemId, "Required parameter itemId must be specified."); + this.attachmentId = com.google.api.client.util.Preconditions.checkNotNull(attachmentId, "Required parameter attachmentId must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Identifier of the course. */ + @com.google.api.client.util.Key + private java.lang.String courseId; + + /** Required. Identifier of the course. + */ + public java.lang.String getCourseId() { + return courseId; + } + + /** Required. Identifier of the course. */ + public List setCourseId(java.lang.String courseId) { + this.courseId = courseId; + return this; + } + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. */ + @com.google.api.client.util.Key + private java.lang.String itemId; + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. + */ + public java.lang.String getItemId() { + return itemId; + } + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. */ + public List setItemId(java.lang.String itemId) { + this.itemId = itemId; + return this; + } + + /** Required. Identifier of the add-on attachment. */ + @com.google.api.client.util.Key + private java.lang.String attachmentId; + + /** Required. Identifier of the add-on attachment. + */ + public java.lang.String getAttachmentId() { + return attachmentId; + } + + /** Required. Identifier of the add-on attachment. */ + public List setAttachmentId(java.lang.String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + * Optional. Maximum number of submissions to return. Zero or unspecified indicates that + * the server may assign a maximum. The server may return fewer than the specified + * number of results. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of submissions to return. Zero or unspecified indicates that the server + may assign a maximum. The server may return fewer than the specified number of results. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of submissions to return. Zero or unspecified indicates that + * the server may assign a maximum. The server may return fewer than the specified + * number of results. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous + * `ListAddOnAttachmentStudentSubmissions` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAddOnAttachmentStudentSubmissions` call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous + * `ListAddOnAttachmentStudentSubmissions` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** * Updates data associated with an add-on attachment submission. Requires the add-on to have been * the original creator of the attachment and the attachment to have a positive `max_points` value diff --git a/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java new file mode 100644 index 00000000000..2439c7d93ee --- /dev/null +++ b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.classroom.model; + +/** + * Response when listing student submissions for an add-on attachment. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Classroom API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAddOnAttachmentStudentSubmissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * Add-on attachment student submissions that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List addOnAttachmentStudentSubmissions; + + static { + // hack to force ProGuard to consider AddOnAttachmentStudentSubmission used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AddOnAttachmentStudentSubmission.class); + } + + /** + * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Add-on attachment student submissions that match the request. + * @return value or {@code null} for none + */ + public java.util.List getAddOnAttachmentStudentSubmissions() { + return addOnAttachmentStudentSubmissions; + } + + /** + * Add-on attachment student submissions that match the request. + * @param addOnAttachmentStudentSubmissions addOnAttachmentStudentSubmissions or {@code null} for none + */ + public ListAddOnAttachmentStudentSubmissionsResponse setAddOnAttachmentStudentSubmissions(java.util.List addOnAttachmentStudentSubmissions) { + this.addOnAttachmentStudentSubmissions = addOnAttachmentStudentSubmissions; + return this; + } + + /** + * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAddOnAttachmentStudentSubmissionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAddOnAttachmentStudentSubmissionsResponse set(String fieldName, Object value) { + return (ListAddOnAttachmentStudentSubmissionsResponse) super.set(fieldName, value); + } + + @Override + public ListAddOnAttachmentStudentSubmissionsResponse clone() { + return (ListAddOnAttachmentStudentSubmissionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-classroom/v1/2.0.0/pom.xml b/clients/google-api-services-classroom/v1/2.0.0/pom.xml index 60f7530ee0c..49961760304 100644 --- a/clients/google-api-services-classroom/v1/2.0.0/pom.xml +++ b/clients/google-api-services-classroom/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-classroom - v1-rev20260825-2.0.0 - Google Classroom API v1-rev20260825-2.0.0 + v1-rev20261014-2.0.0 + Google Classroom API v1-rev20261014-2.0.0 jar 2011 diff --git a/clients/google-api-services-classroom/v1/README.md b/clients/google-api-services-classroom/v1/README.md index efbeccf99cb..f78344457fe 100644 --- a/clients/google-api-services-classroom/v1/README.md +++ b/clients/google-api-services-classroom/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-classroom - v1-rev20260825-2.0.0 + v1-rev20261014-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-classroom:v1-rev20260825-2.0.0' + implementation 'com.google.apis:google-api-services-classroom:v1-rev20261014-2.0.0' } ```