@maxim_mazurok/gapi.client.classroom-v1 0.0.20241106 → 0.0.20241119
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +355 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -9,7 +9,7 @@
|
|
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: 20241119
|
13
13
|
|
14
14
|
/// <reference types="gapi.client" />
|
15
15
|
|
@@ -274,6 +274,16 @@ declare namespace gapi.client {
|
|
274
274
|
/** Timestamp of the most recent change to this course work material. Read-only. */
|
275
275
|
updateTime?: string;
|
276
276
|
}
|
277
|
+
interface Criterion {
|
278
|
+
/** The description of the criterion. */
|
279
|
+
description?: string;
|
280
|
+
/** The criterion ID. On creation, an ID is assigned. */
|
281
|
+
id?: string;
|
282
|
+
/** The list of levels within this criterion. */
|
283
|
+
levels?: Level[];
|
284
|
+
/** The title of the criterion. */
|
285
|
+
title?: string;
|
286
|
+
}
|
277
287
|
interface Date {
|
278
288
|
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
279
289
|
day?: number;
|
@@ -393,6 +403,16 @@ declare namespace gapi.client {
|
|
393
403
|
/** Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user */
|
394
404
|
userId?: string;
|
395
405
|
}
|
406
|
+
interface Level {
|
407
|
+
/** The description of the level. */
|
408
|
+
description?: string;
|
409
|
+
/** The level ID. On creation, an ID is assigned. */
|
410
|
+
id?: string;
|
411
|
+
/** 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. */
|
412
|
+
points?: number;
|
413
|
+
/** The title of the level. If the level has no points set, title must be set. */
|
414
|
+
title?: string;
|
415
|
+
}
|
396
416
|
interface Link {
|
397
417
|
/** URL of a thumbnail image of the target URL. Read-only. */
|
398
418
|
thumbnailUrl?: string;
|
@@ -455,6 +475,12 @@ declare namespace gapi.client {
|
|
455
475
|
/** Token identifying the next page of results to return. If empty, no further results are available. */
|
456
476
|
nextPageToken?: string;
|
457
477
|
}
|
478
|
+
interface ListRubricsResponse {
|
479
|
+
/** Token identifying the next page of results to return. If empty, no further results are available. */
|
480
|
+
nextPageToken?: string;
|
481
|
+
/** Rubrics that match the request. */
|
482
|
+
rubrics?: Rubric[];
|
483
|
+
}
|
458
484
|
interface ListStudentsResponse {
|
459
485
|
/** Token identifying the next page of results to return. If empty, no further results are available. */
|
460
486
|
nextPageToken?: string;
|
@@ -539,6 +565,30 @@ declare namespace gapi.client {
|
|
539
565
|
registrationId?: string;
|
540
566
|
}
|
541
567
|
interface ReturnStudentSubmissionRequest {}
|
568
|
+
interface Rubric {
|
569
|
+
/** Identifier of the course. Read-only. */
|
570
|
+
courseId?: string;
|
571
|
+
/** Identifier for the course work this corresponds to. Read-only. */
|
572
|
+
courseWorkId?: string;
|
573
|
+
/** Output only. Timestamp when this rubric was created. Read-only. */
|
574
|
+
creationTime?: string;
|
575
|
+
/** List of criteria. Each criterion is a dimension on which performance is rated. */
|
576
|
+
criteria?: Criterion[];
|
577
|
+
/** Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only. */
|
578
|
+
id?: string;
|
579
|
+
/** 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. */
|
580
|
+
sourceSpreadsheetId?: string;
|
581
|
+
/** Output only. Timestamp of the most recent change to this rubric. Read-only. */
|
582
|
+
updateTime?: string;
|
583
|
+
}
|
584
|
+
interface RubricGrade {
|
585
|
+
/** Optional. Criterion ID. */
|
586
|
+
criterionId?: string;
|
587
|
+
/** Optional. Optional level ID of the selected level. If empty, no level was selected. */
|
588
|
+
levelId?: string;
|
589
|
+
/** 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. */
|
590
|
+
points?: number;
|
591
|
+
}
|
542
592
|
interface SharedDriveFile {
|
543
593
|
/** Drive file details. */
|
544
594
|
driveFile?: DriveFile;
|
@@ -576,6 +626,8 @@ declare namespace gapi.client {
|
|
576
626
|
alternateLink?: string;
|
577
627
|
/** 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. */
|
578
628
|
assignedGrade?: number;
|
629
|
+
/** 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. */
|
630
|
+
assignedRubricGrades?: {[P in string]: RubricGrade};
|
579
631
|
/** Submission content when course_work_type is ASSIGNMENT. Students can modify this content using ModifyAttachments. */
|
580
632
|
assignmentSubmission?: AssignmentSubmission;
|
581
633
|
/** Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only. */
|
@@ -590,6 +642,8 @@ declare namespace gapi.client {
|
|
590
642
|
creationTime?: string;
|
591
643
|
/** 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. */
|
592
644
|
draftGrade?: number;
|
645
|
+
/** 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. */
|
646
|
+
draftRubricGrades?: {[P in string]: RubricGrade};
|
593
647
|
/** Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only. */
|
594
648
|
id?: string;
|
595
649
|
/** Whether this submission is late. Read-only. */
|
@@ -1714,6 +1768,235 @@ declare namespace gapi.client {
|
|
1714
1768
|
): Request<AddOnAttachment>;
|
1715
1769
|
studentSubmissions: StudentSubmissionsResource;
|
1716
1770
|
}
|
1771
|
+
interface RubricsResource {
|
1772
|
+
/** Creates a rubric. 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. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations). This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn't permitted to create rubrics for course work in the requested course. * `INTERNAL` if the request has insufficient OAuth scopes. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course or course work don't exist or the user doesn't have access to the course or course work. * `FAILED_PRECONDITION` for the following request error: * `AttachmentNotVisible` */
|
1773
|
+
create(request: {
|
1774
|
+
/** V1 error format. */
|
1775
|
+
'$.xgafv'?: string;
|
1776
|
+
/** OAuth access token. */
|
1777
|
+
access_token?: string;
|
1778
|
+
/** Data format for response. */
|
1779
|
+
alt?: string;
|
1780
|
+
/** JSONP */
|
1781
|
+
callback?: string;
|
1782
|
+
/** Required. Identifier of the course. */
|
1783
|
+
courseId: string;
|
1784
|
+
/** Required. Identifier of the course work. */
|
1785
|
+
courseWorkId: string;
|
1786
|
+
/** Selector specifying which fields to include in a partial response. */
|
1787
|
+
fields?: string;
|
1788
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1789
|
+
key?: string;
|
1790
|
+
/** OAuth 2.0 token for the current user. */
|
1791
|
+
oauth_token?: string;
|
1792
|
+
/** Returns response with indentations and line breaks. */
|
1793
|
+
prettyPrint?: boolean;
|
1794
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1795
|
+
quotaUser?: string;
|
1796
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1797
|
+
upload_protocol?: string;
|
1798
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1799
|
+
uploadType?: string;
|
1800
|
+
/** Request body */
|
1801
|
+
resource: Rubric;
|
1802
|
+
}): Request<Rubric>;
|
1803
|
+
create(
|
1804
|
+
request: {
|
1805
|
+
/** V1 error format. */
|
1806
|
+
'$.xgafv'?: string;
|
1807
|
+
/** OAuth access token. */
|
1808
|
+
access_token?: string;
|
1809
|
+
/** Data format for response. */
|
1810
|
+
alt?: string;
|
1811
|
+
/** JSONP */
|
1812
|
+
callback?: string;
|
1813
|
+
/** Required. Identifier of the course. */
|
1814
|
+
courseId: string;
|
1815
|
+
/** Required. Identifier of the course work. */
|
1816
|
+
courseWorkId: string;
|
1817
|
+
/** Selector specifying which fields to include in a partial response. */
|
1818
|
+
fields?: string;
|
1819
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1820
|
+
key?: string;
|
1821
|
+
/** OAuth 2.0 token for the current user. */
|
1822
|
+
oauth_token?: string;
|
1823
|
+
/** Returns response with indentations and line breaks. */
|
1824
|
+
prettyPrint?: boolean;
|
1825
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1826
|
+
quotaUser?: string;
|
1827
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1828
|
+
upload_protocol?: string;
|
1829
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1830
|
+
uploadType?: string;
|
1831
|
+
},
|
1832
|
+
body: Rubric
|
1833
|
+
): Request<Rubric>;
|
1834
|
+
/** Deletes a rubric. 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
|
+
delete(request?: {
|
1836
|
+
/** V1 error format. */
|
1837
|
+
'$.xgafv'?: string;
|
1838
|
+
/** OAuth access token. */
|
1839
|
+
access_token?: string;
|
1840
|
+
/** Data format for response. */
|
1841
|
+
alt?: string;
|
1842
|
+
/** JSONP */
|
1843
|
+
callback?: string;
|
1844
|
+
/** Required. Identifier of the course. */
|
1845
|
+
courseId: string;
|
1846
|
+
/** Required. Identifier of the course work. */
|
1847
|
+
courseWorkId: string;
|
1848
|
+
/** Selector specifying which fields to include in a partial response. */
|
1849
|
+
fields?: string;
|
1850
|
+
/** Required. Identifier of the rubric. */
|
1851
|
+
id: string;
|
1852
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1853
|
+
key?: string;
|
1854
|
+
/** OAuth 2.0 token for the current user. */
|
1855
|
+
oauth_token?: string;
|
1856
|
+
/** Returns response with indentations and line breaks. */
|
1857
|
+
prettyPrint?: boolean;
|
1858
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1859
|
+
quotaUser?: string;
|
1860
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1861
|
+
upload_protocol?: string;
|
1862
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1863
|
+
uploadType?: string;
|
1864
|
+
}): Request<{}>;
|
1865
|
+
/** Returns a rubric. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `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. */
|
1866
|
+
get(request?: {
|
1867
|
+
/** V1 error format. */
|
1868
|
+
'$.xgafv'?: string;
|
1869
|
+
/** OAuth access token. */
|
1870
|
+
access_token?: string;
|
1871
|
+
/** Data format for response. */
|
1872
|
+
alt?: string;
|
1873
|
+
/** JSONP */
|
1874
|
+
callback?: string;
|
1875
|
+
/** Required. Identifier of the course. */
|
1876
|
+
courseId: string;
|
1877
|
+
/** Required. Identifier of the course work. */
|
1878
|
+
courseWorkId: string;
|
1879
|
+
/** Selector specifying which fields to include in a partial response. */
|
1880
|
+
fields?: string;
|
1881
|
+
/** Required. Identifier of the rubric. */
|
1882
|
+
id: string;
|
1883
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1884
|
+
key?: string;
|
1885
|
+
/** OAuth 2.0 token for the current user. */
|
1886
|
+
oauth_token?: string;
|
1887
|
+
/** Returns response with indentations and line breaks. */
|
1888
|
+
prettyPrint?: boolean;
|
1889
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1890
|
+
quotaUser?: string;
|
1891
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1892
|
+
upload_protocol?: string;
|
1893
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1894
|
+
uploadType?: string;
|
1895
|
+
}): Request<Rubric>;
|
1896
|
+
/** Returns a list of rubrics 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 the requested course or course work doesn't exist or if the user doesn't have access to the corresponding course work. */
|
1897
|
+
list(request?: {
|
1898
|
+
/** V1 error format. */
|
1899
|
+
'$.xgafv'?: string;
|
1900
|
+
/** OAuth access token. */
|
1901
|
+
access_token?: string;
|
1902
|
+
/** Data format for response. */
|
1903
|
+
alt?: string;
|
1904
|
+
/** JSONP */
|
1905
|
+
callback?: string;
|
1906
|
+
/** Required. Identifier of the course. */
|
1907
|
+
courseId: string;
|
1908
|
+
/** Required. Identifier of the course work. */
|
1909
|
+
courseWorkId: string;
|
1910
|
+
/** Selector specifying which fields to include in a partial response. */
|
1911
|
+
fields?: string;
|
1912
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1913
|
+
key?: string;
|
1914
|
+
/** OAuth 2.0 token for the current user. */
|
1915
|
+
oauth_token?: string;
|
1916
|
+
/** The maximum number of rubrics to return. If unspecified, at most 1 rubric is returned. The maximum value is 1; values above 1 are coerced to 1. */
|
1917
|
+
pageSize?: number;
|
1918
|
+
/** nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. */
|
1919
|
+
pageToken?: string;
|
1920
|
+
/** Returns response with indentations and line breaks. */
|
1921
|
+
prettyPrint?: boolean;
|
1922
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1923
|
+
quotaUser?: string;
|
1924
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1925
|
+
upload_protocol?: string;
|
1926
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1927
|
+
uploadType?: string;
|
1928
|
+
}): Request<ListRubricsResponse>;
|
1929
|
+
/** 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. 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. */
|
1930
|
+
patch(request: {
|
1931
|
+
/** V1 error format. */
|
1932
|
+
'$.xgafv'?: string;
|
1933
|
+
/** OAuth access token. */
|
1934
|
+
access_token?: string;
|
1935
|
+
/** Data format for response. */
|
1936
|
+
alt?: string;
|
1937
|
+
/** JSONP */
|
1938
|
+
callback?: string;
|
1939
|
+
/** Required. Identifier of the course. */
|
1940
|
+
courseId: string;
|
1941
|
+
/** Required. Identifier of the course work. */
|
1942
|
+
courseWorkId: string;
|
1943
|
+
/** Selector specifying which fields to include in a partial response. */
|
1944
|
+
fields?: string;
|
1945
|
+
/** Optional. Identifier of the rubric. */
|
1946
|
+
id: string;
|
1947
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1948
|
+
key?: string;
|
1949
|
+
/** OAuth 2.0 token for the current user. */
|
1950
|
+
oauth_token?: string;
|
1951
|
+
/** Returns response with indentations and line breaks. */
|
1952
|
+
prettyPrint?: boolean;
|
1953
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1954
|
+
quotaUser?: string;
|
1955
|
+
/** Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the `source_spreadsheet_id` and the `criteria` list. Only one of these can be used at a time to define a rubric. The rubric `criteria` list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * `criteria` * `source_spreadsheet_id` */
|
1956
|
+
updateMask?: string;
|
1957
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1958
|
+
upload_protocol?: string;
|
1959
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1960
|
+
uploadType?: string;
|
1961
|
+
/** Request body */
|
1962
|
+
resource: Rubric;
|
1963
|
+
}): Request<Rubric>;
|
1964
|
+
patch(
|
1965
|
+
request: {
|
1966
|
+
/** V1 error format. */
|
1967
|
+
'$.xgafv'?: string;
|
1968
|
+
/** OAuth access token. */
|
1969
|
+
access_token?: string;
|
1970
|
+
/** Data format for response. */
|
1971
|
+
alt?: string;
|
1972
|
+
/** JSONP */
|
1973
|
+
callback?: string;
|
1974
|
+
/** Required. Identifier of the course. */
|
1975
|
+
courseId: string;
|
1976
|
+
/** Required. Identifier of the course work. */
|
1977
|
+
courseWorkId: string;
|
1978
|
+
/** Selector specifying which fields to include in a partial response. */
|
1979
|
+
fields?: string;
|
1980
|
+
/** Optional. Identifier of the rubric. */
|
1981
|
+
id: string;
|
1982
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
1983
|
+
key?: string;
|
1984
|
+
/** OAuth 2.0 token for the current user. */
|
1985
|
+
oauth_token?: string;
|
1986
|
+
/** Returns response with indentations and line breaks. */
|
1987
|
+
prettyPrint?: boolean;
|
1988
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
1989
|
+
quotaUser?: string;
|
1990
|
+
/** Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the `source_spreadsheet_id` and the `criteria` list. Only one of these can be used at a time to define a rubric. The rubric `criteria` list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * `criteria` * `source_spreadsheet_id` */
|
1991
|
+
updateMask?: string;
|
1992
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
1993
|
+
upload_protocol?: string;
|
1994
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
1995
|
+
uploadType?: string;
|
1996
|
+
},
|
1997
|
+
body: Rubric
|
1998
|
+
): Request<Rubric>;
|
1999
|
+
}
|
1717
2000
|
interface StudentSubmissionsResource {
|
1718
2001
|
/** Returns a student submission. * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, course work, or 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. */
|
1719
2002
|
get(request?: {
|
@@ -2435,7 +2718,78 @@ declare namespace gapi.client {
|
|
2435
2718
|
},
|
2436
2719
|
body: CourseWork
|
2437
2720
|
): Request<CourseWork>;
|
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. 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
|
+
updateRubric(request: {
|
2723
|
+
/** V1 error format. */
|
2724
|
+
'$.xgafv'?: string;
|
2725
|
+
/** OAuth access token. */
|
2726
|
+
access_token?: string;
|
2727
|
+
/** Data format for response. */
|
2728
|
+
alt?: string;
|
2729
|
+
/** JSONP */
|
2730
|
+
callback?: string;
|
2731
|
+
/** Required. Identifier of the course. */
|
2732
|
+
courseId: string;
|
2733
|
+
/** Required. Identifier of the course work. */
|
2734
|
+
courseWorkId: string;
|
2735
|
+
/** Selector specifying which fields to include in a partial response. */
|
2736
|
+
fields?: string;
|
2737
|
+
/** Optional. Identifier of the rubric. */
|
2738
|
+
id?: string;
|
2739
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
2740
|
+
key?: string;
|
2741
|
+
/** OAuth 2.0 token for the current user. */
|
2742
|
+
oauth_token?: string;
|
2743
|
+
/** Returns response with indentations and line breaks. */
|
2744
|
+
prettyPrint?: boolean;
|
2745
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
2746
|
+
quotaUser?: string;
|
2747
|
+
/** Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the `source_spreadsheet_id` and the `criteria` list. Only one of these can be used at a time to define a rubric. The rubric `criteria` list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * `criteria` * `source_spreadsheet_id` */
|
2748
|
+
updateMask?: string;
|
2749
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
2750
|
+
upload_protocol?: string;
|
2751
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
2752
|
+
uploadType?: string;
|
2753
|
+
/** Request body */
|
2754
|
+
resource: Rubric;
|
2755
|
+
}): Request<Rubric>;
|
2756
|
+
updateRubric(
|
2757
|
+
request: {
|
2758
|
+
/** V1 error format. */
|
2759
|
+
'$.xgafv'?: string;
|
2760
|
+
/** OAuth access token. */
|
2761
|
+
access_token?: string;
|
2762
|
+
/** Data format for response. */
|
2763
|
+
alt?: string;
|
2764
|
+
/** JSONP */
|
2765
|
+
callback?: string;
|
2766
|
+
/** Required. Identifier of the course. */
|
2767
|
+
courseId: string;
|
2768
|
+
/** Required. Identifier of the course work. */
|
2769
|
+
courseWorkId: string;
|
2770
|
+
/** Selector specifying which fields to include in a partial response. */
|
2771
|
+
fields?: string;
|
2772
|
+
/** Optional. Identifier of the rubric. */
|
2773
|
+
id?: string;
|
2774
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
2775
|
+
key?: string;
|
2776
|
+
/** OAuth 2.0 token for the current user. */
|
2777
|
+
oauth_token?: string;
|
2778
|
+
/** Returns response with indentations and line breaks. */
|
2779
|
+
prettyPrint?: boolean;
|
2780
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
2781
|
+
quotaUser?: string;
|
2782
|
+
/** Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the `source_spreadsheet_id` and the `criteria` list. Only one of these can be used at a time to define a rubric. The rubric `criteria` list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * `criteria` * `source_spreadsheet_id` */
|
2783
|
+
updateMask?: string;
|
2784
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
2785
|
+
upload_protocol?: string;
|
2786
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
2787
|
+
uploadType?: string;
|
2788
|
+
},
|
2789
|
+
body: Rubric
|
2790
|
+
): Request<Rubric>;
|
2438
2791
|
addOnAttachments: AddOnAttachmentsResource;
|
2792
|
+
rubrics: RubricsResource;
|
2439
2793
|
studentSubmissions: StudentSubmissionsResource;
|
2440
2794
|
}
|
2441
2795
|
interface AddOnAttachmentsResource {
|