• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="classroom_v1.html">Google Classroom API</a> . <a href="classroom_v1.courses.html">courses</a> . <a href="classroom_v1.courses.courseWork.html">courseWork</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="classroom_v1.courses.courseWork.studentSubmissions.html">studentSubmissions()</a></code>
79</p>
80<p class="firstline">Returns the studentSubmissions Resource.</p>
81
82<p class="toc_element">
83  <code><a href="#create">create(courseId, body, x__xgafv=None)</a></code></p>
84<p class="firstline">Creates course work.</p>
85<p class="toc_element">
86  <code><a href="#delete">delete(courseId, id, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes a course work.</p>
88<p class="toc_element">
89  <code><a href="#get">get(courseId, id, x__xgafv=None)</a></code></p>
90<p class="firstline">Returns course work.</p>
91<p class="toc_element">
92  <code><a href="#list">list(courseId, orderBy=None, pageSize=None, courseWorkStates=None, x__xgafv=None, pageToken=None)</a></code></p>
93<p class="firstline">Returns a list of course work that the requester is permitted to view.</p>
94<p class="toc_element">
95  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
98  <code><a href="#patch">patch(courseId, id, body, updateMask=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Updates one or more fields of a course work.</p>
100<h3>Method Details</h3>
101<div class="method">
102    <code class="details" id="create">create(courseId, body, x__xgafv=None)</code>
103  <pre>Creates course work.
104
105The resulting course work (and corresponding student submissions) are
106associated with the Developer Console project of the
107[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
108make the request. Classroom API requests to modify course work and student
109submissions must be made with an OAuth client ID from the associated
110Developer Console project.
111
112This method returns the following error codes:
113
114* `PERMISSION_DENIED` if the requesting user is not permitted to access the
115requested course, create course work in the requested course, share a
116Drive attachment, or for access errors.
117* `INVALID_ARGUMENT` if the request is malformed.
118* `NOT_FOUND` if the requested course does not exist.
119* `FAILED_PRECONDITION` for the following request error:
120    * AttachmentNotVisible
121
122Args:
123  courseId: string, Identifier of the course.
124This identifier can be either the Classroom-assigned identifier or an
125alias. (required)
126  body: object, The request body. (required)
127    The object takes the form of:
128
129{ # Course work created by a teacher for students of the course.
130    "updateTime": "A String", # Timestamp of the most recent change to this course work.
131        #
132        # Read-only.
133    "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
134        # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
135    "description": "A String", # Optional description of this course work.
136        # If set, the description must be a valid UTF-8 string containing no more
137        # than 30,000 characters.
138    "title": "A String", # Title of this course work.
139        # The title must be a valid UTF-8 string containing between 1 and 3000
140        # characters.
141    "courseId": "A String", # Identifier of the course.
142        #
143        # Read-only.
144    "assignment": { # Additional details for assignments. # Assignment details.
145        # This is populated only when `work_type` is `ASSIGNMENT`.
146        #
147        # Read-only.
148      "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
149          # This is only populated for course teachers.
150        "alternateLink": "A String", # URL that can be used to access the Drive folder.
151            #
152            # Read-only.
153        "id": "A String", # Drive API resource ID.
154        "title": "A String", # Title of the Drive folder.
155            #
156            # Read-only.
157      },
158    },
159    "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
160        # This is only populated if `state` is `PUBLISHED`.
161        #
162        # Read-only.
163    "creationTime": "A String", # Timestamp when this course work was created.
164        #
165        # Read-only.
166    "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
167        #
168        # Read-only.
169    "state": "A String", # Status of this course work.
170        # If unspecified, the default state is `DRAFT`.
171    "materials": [ # Additional materials.
172        #
173        # CourseWork must have no more than 20 material items.
174      { # Material attached to course work.
175          #
176          # When creating attachments, setting the `form` field is not supported.
177        "youtubeVideo": { # YouTube video item. # YouTube video material.
178          "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
179              #
180              # Read-only.
181          "alternateLink": "A String", # URL that can be used to view the YouTube video.
182              #
183              # Read-only.
184          "id": "A String", # YouTube API resource ID.
185          "title": "A String", # Title of the YouTube video.
186              #
187              # Read-only.
188        },
189        "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
190          "driveFile": { # Representation of a Google Drive file. # Drive file details.
191            "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
192                #
193                # Read-only.
194            "alternateLink": "A String", # URL that can be used to access the Drive item.
195                #
196                # Read-only.
197            "id": "A String", # Drive API resource ID.
198            "title": "A String", # Title of the Drive item.
199                #
200                # Read-only.
201          },
202          "shareMode": "A String", # Mechanism by which students access the Drive item.
203        },
204        "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
205            # if possible, and this will be reflected in the response.
206          "url": "A String", # URL to link to.
207              # This must be a valid UTF-8 string containing between 1 and 2024 characters.
208          "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
209              #
210              # Read-only.
211          "title": "A String", # Title of the target of the URL.
212              #
213              # Read-only.
214        },
215        "form": { # Google Forms item. # Google Forms material.
216          "formUrl": "A String", # URL of the form.
217          "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
218              #
219              # Read-only.
220          "responseUrl": "A String", # URL of the form responses document.
221              # Only set if respsonses have been recorded and only when the
222              # requesting user is an editor of the form.
223              #
224              # Read-only.
225          "title": "A String", # Title of the Form.
226              #
227              # Read-only.
228        },
229      },
230    ],
231    "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
232        # For read operations, this field is populated only when `work_type` is
233        # `MULTIPLE_CHOICE_QUESTION`.
234        # For write operations, this field must be specified when creating course
235        # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
236        # set otherwise.
237      "choices": [ # Possible choices.
238        "A String",
239      ],
240    },
241    "maxPoints": 3.14, # Maximum grade for this course work.
242        # If zero or unspecified, this assignment is considered ungraded.
243        # This must be a non-negative integer value.
244    "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
245        # project making the request.
246        #
247        # See google.classroom.Work.CreateCourseWork for more
248        # details.
249        #
250        # Read-only.
251    "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
252        # This must be specified if `due_time` is specified.
253        # time zone are either specified elsewhere or are not significant. The date
254        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
255        # represent a year and month where the day is not significant, e.g. credit card
256        # expiration date. The year may be 0 to represent a month and day independent
257        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
258        # and `google.protobuf.Timestamp`.
259      "month": 42, # Month of year. Must be from 1 to 12.
260      "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
261          # if specifying a year/month where the day is not significant.
262      "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
263          # a year.
264    },
265    "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
266        # are due.
267        # This must be specified if `due_date` is specified.
268        # or are specified elsewhere. An API may choose to allow leap seconds. Related
269        # types are google.type.Date and `google.protobuf.Timestamp`.
270      "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
271          # to allow the value "24:00:00" for scenarios like business closing time.
272      "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
273      "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
274      "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
275          # allow the value 60 if it allows leap-seconds.
276    },
277    "workType": "A String", # Type of this course work.
278        #
279        # The type is set when the course work is created and cannot be changed.
280  }
281
282  x__xgafv: string, V1 error format.
283    Allowed values
284      1 - v1 error format
285      2 - v2 error format
286
287Returns:
288  An object of the form:
289
290    { # Course work created by a teacher for students of the course.
291      "updateTime": "A String", # Timestamp of the most recent change to this course work.
292          #
293          # Read-only.
294      "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
295          # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
296      "description": "A String", # Optional description of this course work.
297          # If set, the description must be a valid UTF-8 string containing no more
298          # than 30,000 characters.
299      "title": "A String", # Title of this course work.
300          # The title must be a valid UTF-8 string containing between 1 and 3000
301          # characters.
302      "courseId": "A String", # Identifier of the course.
303          #
304          # Read-only.
305      "assignment": { # Additional details for assignments. # Assignment details.
306          # This is populated only when `work_type` is `ASSIGNMENT`.
307          #
308          # Read-only.
309        "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
310            # This is only populated for course teachers.
311          "alternateLink": "A String", # URL that can be used to access the Drive folder.
312              #
313              # Read-only.
314          "id": "A String", # Drive API resource ID.
315          "title": "A String", # Title of the Drive folder.
316              #
317              # Read-only.
318        },
319      },
320      "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
321          # This is only populated if `state` is `PUBLISHED`.
322          #
323          # Read-only.
324      "creationTime": "A String", # Timestamp when this course work was created.
325          #
326          # Read-only.
327      "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
328          #
329          # Read-only.
330      "state": "A String", # Status of this course work.
331          # If unspecified, the default state is `DRAFT`.
332      "materials": [ # Additional materials.
333          #
334          # CourseWork must have no more than 20 material items.
335        { # Material attached to course work.
336            #
337            # When creating attachments, setting the `form` field is not supported.
338          "youtubeVideo": { # YouTube video item. # YouTube video material.
339            "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
340                #
341                # Read-only.
342            "alternateLink": "A String", # URL that can be used to view the YouTube video.
343                #
344                # Read-only.
345            "id": "A String", # YouTube API resource ID.
346            "title": "A String", # Title of the YouTube video.
347                #
348                # Read-only.
349          },
350          "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
351            "driveFile": { # Representation of a Google Drive file. # Drive file details.
352              "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
353                  #
354                  # Read-only.
355              "alternateLink": "A String", # URL that can be used to access the Drive item.
356                  #
357                  # Read-only.
358              "id": "A String", # Drive API resource ID.
359              "title": "A String", # Title of the Drive item.
360                  #
361                  # Read-only.
362            },
363            "shareMode": "A String", # Mechanism by which students access the Drive item.
364          },
365          "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
366              # if possible, and this will be reflected in the response.
367            "url": "A String", # URL to link to.
368                # This must be a valid UTF-8 string containing between 1 and 2024 characters.
369            "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
370                #
371                # Read-only.
372            "title": "A String", # Title of the target of the URL.
373                #
374                # Read-only.
375          },
376          "form": { # Google Forms item. # Google Forms material.
377            "formUrl": "A String", # URL of the form.
378            "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
379                #
380                # Read-only.
381            "responseUrl": "A String", # URL of the form responses document.
382                # Only set if respsonses have been recorded and only when the
383                # requesting user is an editor of the form.
384                #
385                # Read-only.
386            "title": "A String", # Title of the Form.
387                #
388                # Read-only.
389          },
390        },
391      ],
392      "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
393          # For read operations, this field is populated only when `work_type` is
394          # `MULTIPLE_CHOICE_QUESTION`.
395          # For write operations, this field must be specified when creating course
396          # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
397          # set otherwise.
398        "choices": [ # Possible choices.
399          "A String",
400        ],
401      },
402      "maxPoints": 3.14, # Maximum grade for this course work.
403          # If zero or unspecified, this assignment is considered ungraded.
404          # This must be a non-negative integer value.
405      "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
406          # project making the request.
407          #
408          # See google.classroom.Work.CreateCourseWork for more
409          # details.
410          #
411          # Read-only.
412      "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
413          # This must be specified if `due_time` is specified.
414          # time zone are either specified elsewhere or are not significant. The date
415          # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
416          # represent a year and month where the day is not significant, e.g. credit card
417          # expiration date. The year may be 0 to represent a month and day independent
418          # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
419          # and `google.protobuf.Timestamp`.
420        "month": 42, # Month of year. Must be from 1 to 12.
421        "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
422            # if specifying a year/month where the day is not significant.
423        "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
424            # a year.
425      },
426      "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
427          # are due.
428          # This must be specified if `due_date` is specified.
429          # or are specified elsewhere. An API may choose to allow leap seconds. Related
430          # types are google.type.Date and `google.protobuf.Timestamp`.
431        "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
432            # to allow the value "24:00:00" for scenarios like business closing time.
433        "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
434        "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
435        "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
436            # allow the value 60 if it allows leap-seconds.
437      },
438      "workType": "A String", # Type of this course work.
439          #
440          # The type is set when the course work is created and cannot be changed.
441    }</pre>
442</div>
443
444<div class="method">
445    <code class="details" id="delete">delete(courseId, id, x__xgafv=None)</code>
446  <pre>Deletes a course work.
447
448This request must be made by the Developer Console project of the
449[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
450create the corresponding course work item.
451
452This method returns the following error codes:
453
454* `PERMISSION_DENIED` if the requesting developer project did not create
455the corresponding course work, if the requesting user is not permitted
456to delete the requested course or for access errors.
457* `FAILED_PRECONDITION` if the requested course work has already been
458deleted.
459* `NOT_FOUND` if no course exists with the requested ID.
460
461Args:
462  courseId: string, Identifier of the course.
463This identifier can be either the Classroom-assigned identifier or an
464alias. (required)
465  id: string, Identifier of the course work to delete.
466This identifier is a Classroom-assigned identifier. (required)
467  x__xgafv: string, V1 error format.
468    Allowed values
469      1 - v1 error format
470      2 - v2 error format
471
472Returns:
473  An object of the form:
474
475    { # A generic empty message that you can re-use to avoid defining duplicated
476      # empty messages in your APIs. A typical example is to use it as the request
477      # or the response type of an API method. For instance:
478      #
479      #     service Foo {
480      #       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
481      #     }
482      #
483      # The JSON representation for `Empty` is empty JSON object `{}`.
484  }</pre>
485</div>
486
487<div class="method">
488    <code class="details" id="get">get(courseId, id, x__xgafv=None)</code>
489  <pre>Returns course work.
490
491This method returns the following error codes:
492
493* `PERMISSION_DENIED` if the requesting user is not permitted to access the
494requested course or course work, or for access errors.
495* `INVALID_ARGUMENT` if the request is malformed.
496* `NOT_FOUND` if the requested course or course work does not exist.
497
498Args:
499  courseId: string, Identifier of the course.
500This identifier can be either the Classroom-assigned identifier or an
501alias. (required)
502  id: string, Identifier of the course work. (required)
503  x__xgafv: string, V1 error format.
504    Allowed values
505      1 - v1 error format
506      2 - v2 error format
507
508Returns:
509  An object of the form:
510
511    { # Course work created by a teacher for students of the course.
512      "updateTime": "A String", # Timestamp of the most recent change to this course work.
513          #
514          # Read-only.
515      "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
516          # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
517      "description": "A String", # Optional description of this course work.
518          # If set, the description must be a valid UTF-8 string containing no more
519          # than 30,000 characters.
520      "title": "A String", # Title of this course work.
521          # The title must be a valid UTF-8 string containing between 1 and 3000
522          # characters.
523      "courseId": "A String", # Identifier of the course.
524          #
525          # Read-only.
526      "assignment": { # Additional details for assignments. # Assignment details.
527          # This is populated only when `work_type` is `ASSIGNMENT`.
528          #
529          # Read-only.
530        "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
531            # This is only populated for course teachers.
532          "alternateLink": "A String", # URL that can be used to access the Drive folder.
533              #
534              # Read-only.
535          "id": "A String", # Drive API resource ID.
536          "title": "A String", # Title of the Drive folder.
537              #
538              # Read-only.
539        },
540      },
541      "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
542          # This is only populated if `state` is `PUBLISHED`.
543          #
544          # Read-only.
545      "creationTime": "A String", # Timestamp when this course work was created.
546          #
547          # Read-only.
548      "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
549          #
550          # Read-only.
551      "state": "A String", # Status of this course work.
552          # If unspecified, the default state is `DRAFT`.
553      "materials": [ # Additional materials.
554          #
555          # CourseWork must have no more than 20 material items.
556        { # Material attached to course work.
557            #
558            # When creating attachments, setting the `form` field is not supported.
559          "youtubeVideo": { # YouTube video item. # YouTube video material.
560            "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
561                #
562                # Read-only.
563            "alternateLink": "A String", # URL that can be used to view the YouTube video.
564                #
565                # Read-only.
566            "id": "A String", # YouTube API resource ID.
567            "title": "A String", # Title of the YouTube video.
568                #
569                # Read-only.
570          },
571          "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
572            "driveFile": { # Representation of a Google Drive file. # Drive file details.
573              "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
574                  #
575                  # Read-only.
576              "alternateLink": "A String", # URL that can be used to access the Drive item.
577                  #
578                  # Read-only.
579              "id": "A String", # Drive API resource ID.
580              "title": "A String", # Title of the Drive item.
581                  #
582                  # Read-only.
583            },
584            "shareMode": "A String", # Mechanism by which students access the Drive item.
585          },
586          "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
587              # if possible, and this will be reflected in the response.
588            "url": "A String", # URL to link to.
589                # This must be a valid UTF-8 string containing between 1 and 2024 characters.
590            "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
591                #
592                # Read-only.
593            "title": "A String", # Title of the target of the URL.
594                #
595                # Read-only.
596          },
597          "form": { # Google Forms item. # Google Forms material.
598            "formUrl": "A String", # URL of the form.
599            "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
600                #
601                # Read-only.
602            "responseUrl": "A String", # URL of the form responses document.
603                # Only set if respsonses have been recorded and only when the
604                # requesting user is an editor of the form.
605                #
606                # Read-only.
607            "title": "A String", # Title of the Form.
608                #
609                # Read-only.
610          },
611        },
612      ],
613      "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
614          # For read operations, this field is populated only when `work_type` is
615          # `MULTIPLE_CHOICE_QUESTION`.
616          # For write operations, this field must be specified when creating course
617          # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
618          # set otherwise.
619        "choices": [ # Possible choices.
620          "A String",
621        ],
622      },
623      "maxPoints": 3.14, # Maximum grade for this course work.
624          # If zero or unspecified, this assignment is considered ungraded.
625          # This must be a non-negative integer value.
626      "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
627          # project making the request.
628          #
629          # See google.classroom.Work.CreateCourseWork for more
630          # details.
631          #
632          # Read-only.
633      "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
634          # This must be specified if `due_time` is specified.
635          # time zone are either specified elsewhere or are not significant. The date
636          # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
637          # represent a year and month where the day is not significant, e.g. credit card
638          # expiration date. The year may be 0 to represent a month and day independent
639          # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
640          # and `google.protobuf.Timestamp`.
641        "month": 42, # Month of year. Must be from 1 to 12.
642        "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
643            # if specifying a year/month where the day is not significant.
644        "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
645            # a year.
646      },
647      "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
648          # are due.
649          # This must be specified if `due_date` is specified.
650          # or are specified elsewhere. An API may choose to allow leap seconds. Related
651          # types are google.type.Date and `google.protobuf.Timestamp`.
652        "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
653            # to allow the value "24:00:00" for scenarios like business closing time.
654        "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
655        "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
656        "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
657            # allow the value 60 if it allows leap-seconds.
658      },
659      "workType": "A String", # Type of this course work.
660          #
661          # The type is set when the course work is created and cannot be changed.
662    }</pre>
663</div>
664
665<div class="method">
666    <code class="details" id="list">list(courseId, orderBy=None, pageSize=None, courseWorkStates=None, x__xgafv=None, pageToken=None)</code>
667  <pre>Returns a list of course work that the requester is permitted to view.
668
669Course students may only view `PUBLISHED` course work. Course teachers
670and domain administrators may view all course work.
671
672This method returns the following error codes:
673
674* `PERMISSION_DENIED` if the requesting user is not permitted to access
675the requested course or for access errors.
676* `INVALID_ARGUMENT` if the request is malformed.
677* `NOT_FOUND` if the requested course does not exist.
678
679Args:
680  courseId: string, Identifier of the course.
681This identifier can be either the Classroom-assigned identifier or an
682alias. (required)
683  orderBy: string, Optional sort ordering for results. A comma-separated list of fields with
684an optional sort direction keyword. Supported fields are `updateTime`
685and `dueDate`. Supported direction keywords are `asc` and `desc`.
686If not specified, `updateTime desc` is the default behavior.
687Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`
688  pageSize: integer, Maximum number of items to return. Zero or unspecified indicates that the
689server may assign a maximum.
690
691The server may return fewer than the specified number of results.
692  courseWorkStates: string, Restriction on the work status to return. Only courseWork that matches
693is returned. If unspecified, items with a work status of `PUBLISHED`
694is returned. (repeated)
695  x__xgafv: string, V1 error format.
696    Allowed values
697      1 - v1 error format
698      2 - v2 error format
699  pageToken: string, nextPageToken
700value returned from a previous
701list call,
702indicating that the subsequent page of results should be returned.
703
704The list request
705must be otherwise identical to the one that resulted in this token.
706
707Returns:
708  An object of the form:
709
710    { # Response when listing course work.
711    "nextPageToken": "A String", # Token identifying the next page of results to return. If empty, no further
712        # results are available.
713    "courseWork": [ # Course work items that match the request.
714      { # Course work created by a teacher for students of the course.
715          "updateTime": "A String", # Timestamp of the most recent change to this course work.
716              #
717              # Read-only.
718          "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
719              # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
720          "description": "A String", # Optional description of this course work.
721              # If set, the description must be a valid UTF-8 string containing no more
722              # than 30,000 characters.
723          "title": "A String", # Title of this course work.
724              # The title must be a valid UTF-8 string containing between 1 and 3000
725              # characters.
726          "courseId": "A String", # Identifier of the course.
727              #
728              # Read-only.
729          "assignment": { # Additional details for assignments. # Assignment details.
730              # This is populated only when `work_type` is `ASSIGNMENT`.
731              #
732              # Read-only.
733            "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
734                # This is only populated for course teachers.
735              "alternateLink": "A String", # URL that can be used to access the Drive folder.
736                  #
737                  # Read-only.
738              "id": "A String", # Drive API resource ID.
739              "title": "A String", # Title of the Drive folder.
740                  #
741                  # Read-only.
742            },
743          },
744          "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
745              # This is only populated if `state` is `PUBLISHED`.
746              #
747              # Read-only.
748          "creationTime": "A String", # Timestamp when this course work was created.
749              #
750              # Read-only.
751          "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
752              #
753              # Read-only.
754          "state": "A String", # Status of this course work.
755              # If unspecified, the default state is `DRAFT`.
756          "materials": [ # Additional materials.
757              #
758              # CourseWork must have no more than 20 material items.
759            { # Material attached to course work.
760                #
761                # When creating attachments, setting the `form` field is not supported.
762              "youtubeVideo": { # YouTube video item. # YouTube video material.
763                "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
764                    #
765                    # Read-only.
766                "alternateLink": "A String", # URL that can be used to view the YouTube video.
767                    #
768                    # Read-only.
769                "id": "A String", # YouTube API resource ID.
770                "title": "A String", # Title of the YouTube video.
771                    #
772                    # Read-only.
773              },
774              "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
775                "driveFile": { # Representation of a Google Drive file. # Drive file details.
776                  "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
777                      #
778                      # Read-only.
779                  "alternateLink": "A String", # URL that can be used to access the Drive item.
780                      #
781                      # Read-only.
782                  "id": "A String", # Drive API resource ID.
783                  "title": "A String", # Title of the Drive item.
784                      #
785                      # Read-only.
786                },
787                "shareMode": "A String", # Mechanism by which students access the Drive item.
788              },
789              "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
790                  # if possible, and this will be reflected in the response.
791                "url": "A String", # URL to link to.
792                    # This must be a valid UTF-8 string containing between 1 and 2024 characters.
793                "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
794                    #
795                    # Read-only.
796                "title": "A String", # Title of the target of the URL.
797                    #
798                    # Read-only.
799              },
800              "form": { # Google Forms item. # Google Forms material.
801                "formUrl": "A String", # URL of the form.
802                "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
803                    #
804                    # Read-only.
805                "responseUrl": "A String", # URL of the form responses document.
806                    # Only set if respsonses have been recorded and only when the
807                    # requesting user is an editor of the form.
808                    #
809                    # Read-only.
810                "title": "A String", # Title of the Form.
811                    #
812                    # Read-only.
813              },
814            },
815          ],
816          "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
817              # For read operations, this field is populated only when `work_type` is
818              # `MULTIPLE_CHOICE_QUESTION`.
819              # For write operations, this field must be specified when creating course
820              # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
821              # set otherwise.
822            "choices": [ # Possible choices.
823              "A String",
824            ],
825          },
826          "maxPoints": 3.14, # Maximum grade for this course work.
827              # If zero or unspecified, this assignment is considered ungraded.
828              # This must be a non-negative integer value.
829          "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
830              # project making the request.
831              #
832              # See google.classroom.Work.CreateCourseWork for more
833              # details.
834              #
835              # Read-only.
836          "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
837              # This must be specified if `due_time` is specified.
838              # time zone are either specified elsewhere or are not significant. The date
839              # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
840              # represent a year and month where the day is not significant, e.g. credit card
841              # expiration date. The year may be 0 to represent a month and day independent
842              # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
843              # and `google.protobuf.Timestamp`.
844            "month": 42, # Month of year. Must be from 1 to 12.
845            "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
846                # if specifying a year/month where the day is not significant.
847            "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
848                # a year.
849          },
850          "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
851              # are due.
852              # This must be specified if `due_date` is specified.
853              # or are specified elsewhere. An API may choose to allow leap seconds. Related
854              # types are google.type.Date and `google.protobuf.Timestamp`.
855            "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
856                # to allow the value "24:00:00" for scenarios like business closing time.
857            "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
858            "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
859            "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
860                # allow the value 60 if it allows leap-seconds.
861          },
862          "workType": "A String", # Type of this course work.
863              #
864              # The type is set when the course work is created and cannot be changed.
865        },
866    ],
867  }</pre>
868</div>
869
870<div class="method">
871    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
872  <pre>Retrieves the next page of results.
873
874Args:
875  previous_request: The request for the previous page. (required)
876  previous_response: The response from the request for the previous page. (required)
877
878Returns:
879  A request object that you can call 'execute()' on to request the next
880  page. Returns None if there are no more items in the collection.
881    </pre>
882</div>
883
884<div class="method">
885    <code class="details" id="patch">patch(courseId, id, body, updateMask=None, x__xgafv=None)</code>
886  <pre>Updates one or more fields of a course work.
887
888See google.classroom.v1.CourseWork for details
889of which fields may be updated and who may change them.
890
891This request must be made by the Developer Console project of the
892[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
893create the corresponding course work item.
894
895This method returns the following error codes:
896
897* `PERMISSION_DENIED` if the requesting developer project did not create
898the corresponding course work, if the user is not permitted to make the
899requested modification to the student submission, or for
900access errors.
901* `INVALID_ARGUMENT` if the request is malformed.
902* `FAILED_PRECONDITION` if the requested course work has already been
903deleted.
904* `NOT_FOUND` if the requested course, course work, or student submission
905does not exist.
906
907Args:
908  courseId: string, Identifier of the course.
909This identifier can be either the Classroom-assigned identifier or an
910alias. (required)
911  id: string, Identifier of the course work. (required)
912  body: object, The request body. (required)
913    The object takes the form of:
914
915{ # Course work created by a teacher for students of the course.
916    "updateTime": "A String", # Timestamp of the most recent change to this course work.
917        #
918        # Read-only.
919    "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
920        # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
921    "description": "A String", # Optional description of this course work.
922        # If set, the description must be a valid UTF-8 string containing no more
923        # than 30,000 characters.
924    "title": "A String", # Title of this course work.
925        # The title must be a valid UTF-8 string containing between 1 and 3000
926        # characters.
927    "courseId": "A String", # Identifier of the course.
928        #
929        # Read-only.
930    "assignment": { # Additional details for assignments. # Assignment details.
931        # This is populated only when `work_type` is `ASSIGNMENT`.
932        #
933        # Read-only.
934      "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
935          # This is only populated for course teachers.
936        "alternateLink": "A String", # URL that can be used to access the Drive folder.
937            #
938            # Read-only.
939        "id": "A String", # Drive API resource ID.
940        "title": "A String", # Title of the Drive folder.
941            #
942            # Read-only.
943      },
944    },
945    "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
946        # This is only populated if `state` is `PUBLISHED`.
947        #
948        # Read-only.
949    "creationTime": "A String", # Timestamp when this course work was created.
950        #
951        # Read-only.
952    "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
953        #
954        # Read-only.
955    "state": "A String", # Status of this course work.
956        # If unspecified, the default state is `DRAFT`.
957    "materials": [ # Additional materials.
958        #
959        # CourseWork must have no more than 20 material items.
960      { # Material attached to course work.
961          #
962          # When creating attachments, setting the `form` field is not supported.
963        "youtubeVideo": { # YouTube video item. # YouTube video material.
964          "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
965              #
966              # Read-only.
967          "alternateLink": "A String", # URL that can be used to view the YouTube video.
968              #
969              # Read-only.
970          "id": "A String", # YouTube API resource ID.
971          "title": "A String", # Title of the YouTube video.
972              #
973              # Read-only.
974        },
975        "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
976          "driveFile": { # Representation of a Google Drive file. # Drive file details.
977            "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
978                #
979                # Read-only.
980            "alternateLink": "A String", # URL that can be used to access the Drive item.
981                #
982                # Read-only.
983            "id": "A String", # Drive API resource ID.
984            "title": "A String", # Title of the Drive item.
985                #
986                # Read-only.
987          },
988          "shareMode": "A String", # Mechanism by which students access the Drive item.
989        },
990        "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
991            # if possible, and this will be reflected in the response.
992          "url": "A String", # URL to link to.
993              # This must be a valid UTF-8 string containing between 1 and 2024 characters.
994          "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
995              #
996              # Read-only.
997          "title": "A String", # Title of the target of the URL.
998              #
999              # Read-only.
1000        },
1001        "form": { # Google Forms item. # Google Forms material.
1002          "formUrl": "A String", # URL of the form.
1003          "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
1004              #
1005              # Read-only.
1006          "responseUrl": "A String", # URL of the form responses document.
1007              # Only set if respsonses have been recorded and only when the
1008              # requesting user is an editor of the form.
1009              #
1010              # Read-only.
1011          "title": "A String", # Title of the Form.
1012              #
1013              # Read-only.
1014        },
1015      },
1016    ],
1017    "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
1018        # For read operations, this field is populated only when `work_type` is
1019        # `MULTIPLE_CHOICE_QUESTION`.
1020        # For write operations, this field must be specified when creating course
1021        # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
1022        # set otherwise.
1023      "choices": [ # Possible choices.
1024        "A String",
1025      ],
1026    },
1027    "maxPoints": 3.14, # Maximum grade for this course work.
1028        # If zero or unspecified, this assignment is considered ungraded.
1029        # This must be a non-negative integer value.
1030    "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
1031        # project making the request.
1032        #
1033        # See google.classroom.Work.CreateCourseWork for more
1034        # details.
1035        #
1036        # Read-only.
1037    "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
1038        # This must be specified if `due_time` is specified.
1039        # time zone are either specified elsewhere or are not significant. The date
1040        # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1041        # represent a year and month where the day is not significant, e.g. credit card
1042        # expiration date. The year may be 0 to represent a month and day independent
1043        # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1044        # and `google.protobuf.Timestamp`.
1045      "month": 42, # Month of year. Must be from 1 to 12.
1046      "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1047          # if specifying a year/month where the day is not significant.
1048      "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1049          # a year.
1050    },
1051    "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
1052        # are due.
1053        # This must be specified if `due_date` is specified.
1054        # or are specified elsewhere. An API may choose to allow leap seconds. Related
1055        # types are google.type.Date and `google.protobuf.Timestamp`.
1056      "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1057          # to allow the value "24:00:00" for scenarios like business closing time.
1058      "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1059      "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
1060      "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1061          # allow the value 60 if it allows leap-seconds.
1062    },
1063    "workType": "A String", # Type of this course work.
1064        #
1065        # The type is set when the course work is created and cannot be changed.
1066  }
1067
1068  updateMask: string, Mask that identifies which fields on the course work to update.
1069This field is required to do an update. The update fails if invalid
1070fields are specified. If a field supports empty values, it can be cleared
1071by specifying it in the update mask and not in the CourseWork object. If a
1072field that does not support empty values is included in the update mask and
1073not set in the CourseWork object, an `INVALID_ARGUMENT` error will be
1074returned.
1075
1076The following fields may be specified by teachers:
1077* `title`
1078* `description`
1079* `state`
1080* `due_date`
1081* `due_time`
1082* `max_points`
1083* `submission_modification_mode`
1084  x__xgafv: string, V1 error format.
1085    Allowed values
1086      1 - v1 error format
1087      2 - v2 error format
1088
1089Returns:
1090  An object of the form:
1091
1092    { # Course work created by a teacher for students of the course.
1093      "updateTime": "A String", # Timestamp of the most recent change to this course work.
1094          #
1095          # Read-only.
1096      "submissionModificationMode": "A String", # Setting to determine when students are allowed to modify submissions.
1097          # If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.
1098      "description": "A String", # Optional description of this course work.
1099          # If set, the description must be a valid UTF-8 string containing no more
1100          # than 30,000 characters.
1101      "title": "A String", # Title of this course work.
1102          # The title must be a valid UTF-8 string containing between 1 and 3000
1103          # characters.
1104      "courseId": "A String", # Identifier of the course.
1105          #
1106          # Read-only.
1107      "assignment": { # Additional details for assignments. # Assignment details.
1108          # This is populated only when `work_type` is `ASSIGNMENT`.
1109          #
1110          # Read-only.
1111        "studentWorkFolder": { # Representation of a Google Drive folder. # Drive folder where attachments from student submissions are placed.
1112            # This is only populated for course teachers.
1113          "alternateLink": "A String", # URL that can be used to access the Drive folder.
1114              #
1115              # Read-only.
1116          "id": "A String", # Drive API resource ID.
1117          "title": "A String", # Title of the Drive folder.
1118              #
1119              # Read-only.
1120        },
1121      },
1122      "alternateLink": "A String", # Absolute link to this course work in the Classroom web UI.
1123          # This is only populated if `state` is `PUBLISHED`.
1124          #
1125          # Read-only.
1126      "creationTime": "A String", # Timestamp when this course work was created.
1127          #
1128          # Read-only.
1129      "id": "A String", # Classroom-assigned identifier of this course work, unique per course.
1130          #
1131          # Read-only.
1132      "state": "A String", # Status of this course work.
1133          # If unspecified, the default state is `DRAFT`.
1134      "materials": [ # Additional materials.
1135          #
1136          # CourseWork must have no more than 20 material items.
1137        { # Material attached to course work.
1138            #
1139            # When creating attachments, setting the `form` field is not supported.
1140          "youtubeVideo": { # YouTube video item. # YouTube video material.
1141            "thumbnailUrl": "A String", # URL of a thumbnail image of the YouTube video.
1142                #
1143                # Read-only.
1144            "alternateLink": "A String", # URL that can be used to view the YouTube video.
1145                #
1146                # Read-only.
1147            "id": "A String", # YouTube API resource ID.
1148            "title": "A String", # Title of the YouTube video.
1149                #
1150                # Read-only.
1151          },
1152          "driveFile": { # Drive file that is used as material for course work. # Google Drive file material.
1153            "driveFile": { # Representation of a Google Drive file. # Drive file details.
1154              "thumbnailUrl": "A String", # URL of a thumbnail image of the Drive item.
1155                  #
1156                  # Read-only.
1157              "alternateLink": "A String", # URL that can be used to access the Drive item.
1158                  #
1159                  # Read-only.
1160              "id": "A String", # Drive API resource ID.
1161              "title": "A String", # Title of the Drive item.
1162                  #
1163                  # Read-only.
1164            },
1165            "shareMode": "A String", # Mechanism by which students access the Drive item.
1166          },
1167          "link": { # URL item. # Link material. On creation, will be upgraded to a more appropriate type
1168              # if possible, and this will be reflected in the response.
1169            "url": "A String", # URL to link to.
1170                # This must be a valid UTF-8 string containing between 1 and 2024 characters.
1171            "thumbnailUrl": "A String", # URL of a thumbnail image of the target URL.
1172                #
1173                # Read-only.
1174            "title": "A String", # Title of the target of the URL.
1175                #
1176                # Read-only.
1177          },
1178          "form": { # Google Forms item. # Google Forms material.
1179            "formUrl": "A String", # URL of the form.
1180            "thumbnailUrl": "A String", # URL of a thumbnail image of the Form.
1181                #
1182                # Read-only.
1183            "responseUrl": "A String", # URL of the form responses document.
1184                # Only set if respsonses have been recorded and only when the
1185                # requesting user is an editor of the form.
1186                #
1187                # Read-only.
1188            "title": "A String", # Title of the Form.
1189                #
1190                # Read-only.
1191          },
1192        },
1193      ],
1194      "multipleChoiceQuestion": { # Additional details for multiple-choice questions. # Multiple choice question details.
1195          # For read operations, this field is populated only when `work_type` is
1196          # `MULTIPLE_CHOICE_QUESTION`.
1197          # For write operations, this field must be specified when creating course
1198          # work with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be
1199          # set otherwise.
1200        "choices": [ # Possible choices.
1201          "A String",
1202        ],
1203      },
1204      "maxPoints": 3.14, # Maximum grade for this course work.
1205          # If zero or unspecified, this assignment is considered ungraded.
1206          # This must be a non-negative integer value.
1207      "associatedWithDeveloper": True or False, # Whether this course work item is associated with the Developer Console
1208          # project making the request.
1209          #
1210          # See google.classroom.Work.CreateCourseWork for more
1211          # details.
1212          #
1213          # Read-only.
1214      "dueDate": { # Represents a whole calendar date, e.g. date of birth. The time of day and # Optional date, in UTC, that submissions for this this course work are due.
1215          # This must be specified if `due_time` is specified.
1216          # time zone are either specified elsewhere or are not significant. The date
1217          # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1218          # represent a year and month where the day is not significant, e.g. credit card
1219          # expiration date. The year may be 0 to represent a month and day independent
1220          # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1221          # and `google.protobuf.Timestamp`.
1222        "month": 42, # Month of year. Must be from 1 to 12.
1223        "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1224            # if specifying a year/month where the day is not significant.
1225        "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1226            # a year.
1227      },
1228      "dueTime": { # Represents a time of day. The date and time zone are either not significant # Optional time of day, in UTC, that submissions for this this course work
1229          # are due.
1230          # This must be specified if `due_date` is specified.
1231          # or are specified elsewhere. An API may choose to allow leap seconds. Related
1232          # types are google.type.Date and `google.protobuf.Timestamp`.
1233        "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1234            # to allow the value "24:00:00" for scenarios like business closing time.
1235        "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1236        "minutes": 42, # Minutes of hour of day. Must be from 0 to 59.
1237        "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1238            # allow the value 60 if it allows leap-seconds.
1239      },
1240      "workType": "A String", # Type of this course work.
1241          #
1242          # The type is set when the course work is created and cannot be changed.
1243    }</pre>
1244</div>
1245
1246</body></html>