@maxim_mazurok/gapi.client.classroom-v1 0.0.20250120 → 0.0.20250127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +40 -40
- package/package.json +1 -1
- package/readme.md +2 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://classroom.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250127
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load Google Classroom API v1 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://classroom.googleapis.com/$discovery/rest?version=v1'
|
|
19
|
+
urlOrObject: 'https://classroom.googleapis.com/$discovery/rest?version=v1',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'classroom', version: 'v1'): Promise<void>;
|
|
@@ -778,7 +778,7 @@ declare namespace gapi.client {
|
|
|
778
778
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
779
779
|
uploadType?: string;
|
|
780
780
|
},
|
|
781
|
-
body: CourseAlias
|
|
781
|
+
body: CourseAlias,
|
|
782
782
|
): Request<CourseAlias>;
|
|
783
783
|
/** Deletes an alias of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to remove the alias or for access errors. * `NOT_FOUND` if the alias does not exist. * `FAILED_PRECONDITION` if the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to delete a domain-scoped alias). */
|
|
784
784
|
delete(request?: {
|
|
@@ -910,7 +910,7 @@ declare namespace gapi.client {
|
|
|
910
910
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
911
911
|
uploadType?: string;
|
|
912
912
|
},
|
|
913
|
-
body: AddOnAttachment
|
|
913
|
+
body: AddOnAttachment,
|
|
914
914
|
): Request<AddOnAttachment>;
|
|
915
915
|
/** Deletes an add-on attachment. Requires the add-on to have been the original creator of the attachment. 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. */
|
|
916
916
|
delete(request?: {
|
|
@@ -1085,7 +1085,7 @@ declare namespace gapi.client {
|
|
|
1085
1085
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1086
1086
|
uploadType?: string;
|
|
1087
1087
|
},
|
|
1088
|
-
body: AddOnAttachment
|
|
1088
|
+
body: AddOnAttachment,
|
|
1089
1089
|
): Request<AddOnAttachment>;
|
|
1090
1090
|
}
|
|
1091
1091
|
interface AnnouncementsResource {
|
|
@@ -1145,7 +1145,7 @@ declare namespace gapi.client {
|
|
|
1145
1145
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1146
1146
|
uploadType?: string;
|
|
1147
1147
|
},
|
|
1148
|
-
body: Announcement
|
|
1148
|
+
body: Announcement,
|
|
1149
1149
|
): Request<Announcement>;
|
|
1150
1150
|
/** Deletes an announcement. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding announcement item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement, if the requesting user is not permitted to delete the requested course or for access errors. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if no course exists with the requested ID. */
|
|
1151
1151
|
delete(request?: {
|
|
@@ -1335,7 +1335,7 @@ declare namespace gapi.client {
|
|
|
1335
1335
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1336
1336
|
uploadType?: string;
|
|
1337
1337
|
},
|
|
1338
|
-
body: ModifyAnnouncementAssigneesRequest
|
|
1338
|
+
body: ModifyAnnouncementAssigneesRequest,
|
|
1339
1339
|
): Request<Announcement>;
|
|
1340
1340
|
/** Updates one or more fields of an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding announcement or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested announcement has already been deleted. * `NOT_FOUND` if the requested course or announcement does not exist */
|
|
1341
1341
|
patch(request: {
|
|
@@ -1401,7 +1401,7 @@ declare namespace gapi.client {
|
|
|
1401
1401
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1402
1402
|
uploadType?: string;
|
|
1403
1403
|
},
|
|
1404
|
-
body: Announcement
|
|
1404
|
+
body: Announcement,
|
|
1405
1405
|
): Request<Announcement>;
|
|
1406
1406
|
addOnAttachments: AddOnAttachmentsResource;
|
|
1407
1407
|
}
|
|
@@ -1517,7 +1517,7 @@ declare namespace gapi.client {
|
|
|
1517
1517
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1518
1518
|
uploadType?: string;
|
|
1519
1519
|
},
|
|
1520
|
-
body: AddOnAttachmentStudentSubmission
|
|
1520
|
+
body: AddOnAttachmentStudentSubmission,
|
|
1521
1521
|
): Request<AddOnAttachmentStudentSubmission>;
|
|
1522
1522
|
}
|
|
1523
1523
|
interface AddOnAttachmentsResource {
|
|
@@ -1589,7 +1589,7 @@ declare namespace gapi.client {
|
|
|
1589
1589
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1590
1590
|
uploadType?: string;
|
|
1591
1591
|
},
|
|
1592
|
-
body: AddOnAttachment
|
|
1592
|
+
body: AddOnAttachment,
|
|
1593
1593
|
): Request<AddOnAttachment>;
|
|
1594
1594
|
/** Deletes an add-on attachment. Requires the add-on to have been the original creator of the attachment. 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. */
|
|
1595
1595
|
delete(request?: {
|
|
@@ -1764,7 +1764,7 @@ declare namespace gapi.client {
|
|
|
1764
1764
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1765
1765
|
uploadType?: string;
|
|
1766
1766
|
},
|
|
1767
|
-
body: AddOnAttachment
|
|
1767
|
+
body: AddOnAttachment,
|
|
1768
1768
|
): Request<AddOnAttachment>;
|
|
1769
1769
|
studentSubmissions: StudentSubmissionsResource;
|
|
1770
1770
|
}
|
|
@@ -1829,7 +1829,7 @@ declare namespace gapi.client {
|
|
|
1829
1829
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1830
1830
|
uploadType?: string;
|
|
1831
1831
|
},
|
|
1832
|
-
body: Rubric
|
|
1832
|
+
body: Rubric,
|
|
1833
1833
|
): Request<Rubric>;
|
|
1834
1834
|
/** Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding rubric. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding rubric, or if the requesting user isn't permitted to delete the requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric. */
|
|
1835
1835
|
delete(request?: {
|
|
@@ -1994,7 +1994,7 @@ declare namespace gapi.client {
|
|
|
1994
1994
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1995
1995
|
uploadType?: string;
|
|
1996
1996
|
},
|
|
1997
|
-
body: Rubric
|
|
1997
|
+
body: Rubric,
|
|
1998
1998
|
): Request<Rubric>;
|
|
1999
1999
|
}
|
|
2000
2000
|
interface StudentSubmissionsResource {
|
|
@@ -2132,7 +2132,7 @@ declare namespace gapi.client {
|
|
|
2132
2132
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2133
2133
|
uploadType?: string;
|
|
2134
2134
|
},
|
|
2135
|
-
body: ModifyAttachmentsRequest
|
|
2135
|
+
body: ModifyAttachmentsRequest,
|
|
2136
2136
|
): Request<StudentSubmission>;
|
|
2137
2137
|
/** Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist. */
|
|
2138
2138
|
patch(request: {
|
|
@@ -2202,7 +2202,7 @@ declare namespace gapi.client {
|
|
|
2202
2202
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2203
2203
|
uploadType?: string;
|
|
2204
2204
|
},
|
|
2205
|
-
body: StudentSubmission
|
|
2205
|
+
body: StudentSubmission,
|
|
2206
2206
|
): Request<StudentSubmission>;
|
|
2207
2207
|
/** Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drive files to the student and updates the submission state. Only the student that owns the requested student submission may call this method, and only for a student submission that has been turned in. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, unsubmit the requested student submission, or for access errors. * `FAILED_PRECONDITION` if the student submission has not been turned in. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist. */
|
|
2208
2208
|
reclaim(request: {
|
|
@@ -2268,7 +2268,7 @@ declare namespace gapi.client {
|
|
|
2268
2268
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2269
2269
|
uploadType?: string;
|
|
2270
2270
|
},
|
|
2271
|
-
body: ReclaimStudentSubmissionRequest
|
|
2271
|
+
body: ReclaimStudentSubmissionRequest,
|
|
2272
2272
|
): Request<{}>;
|
|
2273
2273
|
/** Returns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist. */
|
|
2274
2274
|
return(request: {
|
|
@@ -2334,7 +2334,7 @@ declare namespace gapi.client {
|
|
|
2334
2334
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2335
2335
|
uploadType?: string;
|
|
2336
2336
|
},
|
|
2337
|
-
body: ReturnStudentSubmissionRequest
|
|
2337
|
+
body: ReturnStudentSubmissionRequest,
|
|
2338
2338
|
): Request<{}>;
|
|
2339
2339
|
/** Turns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, turn in the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist. */
|
|
2340
2340
|
turnIn(request: {
|
|
@@ -2400,7 +2400,7 @@ declare namespace gapi.client {
|
|
|
2400
2400
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2401
2401
|
uploadType?: string;
|
|
2402
2402
|
},
|
|
2403
|
-
body: TurnInStudentSubmissionRequest
|
|
2403
|
+
body: TurnInStudentSubmissionRequest,
|
|
2404
2404
|
): Request<{}>;
|
|
2405
2405
|
}
|
|
2406
2406
|
interface CourseWorkResource {
|
|
@@ -2460,7 +2460,7 @@ declare namespace gapi.client {
|
|
|
2460
2460
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2461
2461
|
uploadType?: string;
|
|
2462
2462
|
},
|
|
2463
|
-
body: CourseWork
|
|
2463
|
+
body: CourseWork,
|
|
2464
2464
|
): Request<CourseWork>;
|
|
2465
2465
|
/** Deletes a course work. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the requesting user is not permitted to delete the requested course or for access errors. * `FAILED_PRECONDITION` if the requested course work has already been deleted. * `NOT_FOUND` if no course exists with the requested ID. */
|
|
2466
2466
|
delete(request?: {
|
|
@@ -2650,7 +2650,7 @@ declare namespace gapi.client {
|
|
|
2650
2650
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2651
2651
|
uploadType?: string;
|
|
2652
2652
|
},
|
|
2653
|
-
body: ModifyCourseWorkAssigneesRequest
|
|
2653
|
+
body: ModifyCourseWorkAssigneesRequest,
|
|
2654
2654
|
): Request<CourseWork>;
|
|
2655
2655
|
/** Updates one or more fields of a course work. See google.classroom.v1.CourseWork for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested course work has already been deleted. * `NOT_FOUND` if the requested course or course work does not exist. */
|
|
2656
2656
|
patch(request: {
|
|
@@ -2716,7 +2716,7 @@ declare namespace gapi.client {
|
|
|
2716
2716
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2717
2717
|
uploadType?: string;
|
|
2718
2718
|
},
|
|
2719
|
-
body: CourseWork
|
|
2719
|
+
body: CourseWork,
|
|
2720
2720
|
): Request<CourseWork>;
|
|
2721
2721
|
/** Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric. */
|
|
2722
2722
|
updateRubric(request: {
|
|
@@ -2786,7 +2786,7 @@ declare namespace gapi.client {
|
|
|
2786
2786
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2787
2787
|
uploadType?: string;
|
|
2788
2788
|
},
|
|
2789
|
-
body: Rubric
|
|
2789
|
+
body: Rubric,
|
|
2790
2790
|
): Request<Rubric>;
|
|
2791
2791
|
addOnAttachments: AddOnAttachmentsResource;
|
|
2792
2792
|
rubrics: RubricsResource;
|
|
@@ -2861,7 +2861,7 @@ declare namespace gapi.client {
|
|
|
2861
2861
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2862
2862
|
uploadType?: string;
|
|
2863
2863
|
},
|
|
2864
|
-
body: AddOnAttachment
|
|
2864
|
+
body: AddOnAttachment,
|
|
2865
2865
|
): Request<AddOnAttachment>;
|
|
2866
2866
|
/** Deletes an add-on attachment. Requires the add-on to have been the original creator of the attachment. 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. */
|
|
2867
2867
|
delete(request?: {
|
|
@@ -3036,7 +3036,7 @@ declare namespace gapi.client {
|
|
|
3036
3036
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3037
3037
|
uploadType?: string;
|
|
3038
3038
|
},
|
|
3039
|
-
body: AddOnAttachment
|
|
3039
|
+
body: AddOnAttachment,
|
|
3040
3040
|
): Request<AddOnAttachment>;
|
|
3041
3041
|
}
|
|
3042
3042
|
interface CourseWorkMaterialsResource {
|
|
@@ -3096,7 +3096,7 @@ declare namespace gapi.client {
|
|
|
3096
3096
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3097
3097
|
uploadType?: string;
|
|
3098
3098
|
},
|
|
3099
|
-
body: CourseWorkMaterial
|
|
3099
|
+
body: CourseWorkMaterial,
|
|
3100
3100
|
): Request<CourseWorkMaterial>;
|
|
3101
3101
|
/** Deletes a course work material. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work material item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work material, if the requesting user is not permitted to delete the requested course or for access errors. * `FAILED_PRECONDITION` if the requested course work material has already been deleted. * `NOT_FOUND` if no course exists with the requested ID. */
|
|
3102
3102
|
delete(request?: {
|
|
@@ -3294,7 +3294,7 @@ declare namespace gapi.client {
|
|
|
3294
3294
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3295
3295
|
uploadType?: string;
|
|
3296
3296
|
},
|
|
3297
|
-
body: CourseWorkMaterial
|
|
3297
|
+
body: CourseWorkMaterial,
|
|
3298
3298
|
): Request<CourseWorkMaterial>;
|
|
3299
3299
|
addOnAttachments: AddOnAttachmentsResource;
|
|
3300
3300
|
}
|
|
@@ -3410,7 +3410,7 @@ declare namespace gapi.client {
|
|
|
3410
3410
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3411
3411
|
uploadType?: string;
|
|
3412
3412
|
},
|
|
3413
|
-
body: AddOnAttachmentStudentSubmission
|
|
3413
|
+
body: AddOnAttachmentStudentSubmission,
|
|
3414
3414
|
): Request<AddOnAttachmentStudentSubmission>;
|
|
3415
3415
|
}
|
|
3416
3416
|
interface AddOnAttachmentsResource {
|
|
@@ -3482,7 +3482,7 @@ declare namespace gapi.client {
|
|
|
3482
3482
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3483
3483
|
uploadType?: string;
|
|
3484
3484
|
},
|
|
3485
|
-
body: AddOnAttachment
|
|
3485
|
+
body: AddOnAttachment,
|
|
3486
3486
|
): Request<AddOnAttachment>;
|
|
3487
3487
|
/** Deletes an add-on attachment. Requires the add-on to have been the original creator of the attachment. 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. */
|
|
3488
3488
|
delete(request?: {
|
|
@@ -3657,7 +3657,7 @@ declare namespace gapi.client {
|
|
|
3657
3657
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3658
3658
|
uploadType?: string;
|
|
3659
3659
|
},
|
|
3660
|
-
body: AddOnAttachment
|
|
3660
|
+
body: AddOnAttachment,
|
|
3661
3661
|
): Request<AddOnAttachment>;
|
|
3662
3662
|
studentSubmissions: StudentSubmissionsResource;
|
|
3663
3663
|
}
|
|
@@ -3760,7 +3760,7 @@ declare namespace gapi.client {
|
|
|
3760
3760
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3761
3761
|
uploadType?: string;
|
|
3762
3762
|
},
|
|
3763
|
-
body: Student
|
|
3763
|
+
body: Student,
|
|
3764
3764
|
): Request<Student>;
|
|
3765
3765
|
/** Deletes a student of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete students of this course or for access errors. * `NOT_FOUND` if no student of this course has the requested ID or if the course does not exist. */
|
|
3766
3766
|
delete(request?: {
|
|
@@ -3909,7 +3909,7 @@ declare namespace gapi.client {
|
|
|
3909
3909
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3910
3910
|
uploadType?: string;
|
|
3911
3911
|
},
|
|
3912
|
-
body: Teacher
|
|
3912
|
+
body: Teacher,
|
|
3913
3913
|
): Request<Teacher>;
|
|
3914
3914
|
/** Removes the specified teacher from the specified course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete teachers of this course or for access errors. * `NOT_FOUND` if no teacher of this course has the requested ID or if the course does not exist. * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of this course. * `FAILED_PRECONDITION` if the requested ID belongs to the owner of the course Drive folder. * `FAILED_PRECONDITION` if the course no longer has an active owner. */
|
|
3915
3915
|
delete(request?: {
|
|
@@ -4058,7 +4058,7 @@ declare namespace gapi.client {
|
|
|
4058
4058
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4059
4059
|
uploadType?: string;
|
|
4060
4060
|
},
|
|
4061
|
-
body: Topic
|
|
4061
|
+
body: Topic,
|
|
4062
4062
|
): Request<Topic>;
|
|
4063
4063
|
/** Deletes a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not allowed to delete the requested topic or for access errors. * `FAILED_PRECONDITION` if the requested topic has already been deleted. * `NOT_FOUND` if no course or topic exists with the requested ID. */
|
|
4064
4064
|
delete(request?: {
|
|
@@ -4213,7 +4213,7 @@ declare namespace gapi.client {
|
|
|
4213
4213
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4214
4214
|
uploadType?: string;
|
|
4215
4215
|
},
|
|
4216
|
-
body: Topic
|
|
4216
|
+
body: Topic,
|
|
4217
4217
|
): Request<Topic>;
|
|
4218
4218
|
}
|
|
4219
4219
|
interface CoursesResource {
|
|
@@ -4269,7 +4269,7 @@ declare namespace gapi.client {
|
|
|
4269
4269
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4270
4270
|
uploadType?: string;
|
|
4271
4271
|
},
|
|
4272
|
-
body: Course
|
|
4272
|
+
body: Course,
|
|
4273
4273
|
): Request<Course>;
|
|
4274
4274
|
/** Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. */
|
|
4275
4275
|
delete(request?: {
|
|
@@ -4420,7 +4420,7 @@ declare namespace gapi.client {
|
|
|
4420
4420
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4421
4421
|
uploadType?: string;
|
|
4422
4422
|
},
|
|
4423
|
-
body: Course
|
|
4423
|
+
body: Course,
|
|
4424
4424
|
): Request<Course>;
|
|
4425
4425
|
/** Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable */
|
|
4426
4426
|
update(request: {
|
|
@@ -4478,7 +4478,7 @@ declare namespace gapi.client {
|
|
|
4478
4478
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4479
4479
|
uploadType?: string;
|
|
4480
4480
|
},
|
|
4481
|
-
body: Course
|
|
4481
|
+
body: Course,
|
|
4482
4482
|
): Request<Course>;
|
|
4483
4483
|
aliases: AliasesResource;
|
|
4484
4484
|
announcements: AnnouncementsResource;
|
|
@@ -4569,7 +4569,7 @@ declare namespace gapi.client {
|
|
|
4569
4569
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4570
4570
|
uploadType?: string;
|
|
4571
4571
|
},
|
|
4572
|
-
body: Invitation
|
|
4572
|
+
body: Invitation,
|
|
4573
4573
|
): Request<Invitation>;
|
|
4574
4574
|
/** Deletes an invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested invitation or for access errors. * `NOT_FOUND` if no invitation exists with the requested ID. */
|
|
4575
4575
|
delete(request?: {
|
|
@@ -4712,7 +4712,7 @@ declare namespace gapi.client {
|
|
|
4712
4712
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4713
4713
|
uploadType?: string;
|
|
4714
4714
|
},
|
|
4715
|
-
body: Registration
|
|
4715
|
+
body: Registration,
|
|
4716
4716
|
): Request<Registration>;
|
|
4717
4717
|
/** Deletes a `Registration`, causing Classroom to stop sending notifications for that `Registration`. */
|
|
4718
4718
|
delete(request?: {
|
|
@@ -4799,7 +4799,7 @@ declare namespace gapi.client {
|
|
|
4799
4799
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4800
4800
|
uploadType?: string;
|
|
4801
4801
|
},
|
|
4802
|
-
body: GuardianInvitation
|
|
4802
|
+
body: GuardianInvitation,
|
|
4803
4803
|
): Request<GuardianInvitation>;
|
|
4804
4804
|
/** Returns a specific guardian invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view guardian invitations for the student identified by the `student_id`, if guardians are not enabled for the domain in question, or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be recognized (it is not an email address, nor a `student_id` from the API, nor the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of the given student or `invitation_id`. May also be returned if the student exists, but the requesting user does not have access to see that student. */
|
|
4805
4805
|
get(request?: {
|
|
@@ -4929,7 +4929,7 @@ declare namespace gapi.client {
|
|
|
4929
4929
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4930
4930
|
uploadType?: string;
|
|
4931
4931
|
},
|
|
4932
|
-
body: GuardianInvitation
|
|
4932
|
+
body: GuardianInvitation,
|
|
4933
4933
|
): Request<GuardianInvitation>;
|
|
4934
4934
|
}
|
|
4935
4935
|
interface GuardiansResource {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -30,7 +30,7 @@ gapi.client.load(
|
|
|
30
30
|
() => {
|
|
31
31
|
// now we can use:
|
|
32
32
|
// gapi.client.classroom
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
34
|
);
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -131,7 +131,7 @@ gapi.auth.authorize(
|
|
|
131
131
|
} else {
|
|
132
132
|
/* handle authorization error */
|
|
133
133
|
}
|
|
134
|
-
}
|
|
134
|
+
},
|
|
135
135
|
);
|
|
136
136
|
```
|
|
137
137
|
|