google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/activity/
|
26
26
|
module AppsactivityV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170619'
|
29
29
|
|
30
30
|
# View the activity history of your Google apps
|
31
31
|
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services/web/api/states
|
26
26
|
module AppstateV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170710'
|
29
29
|
|
30
30
|
# View and manage your data for this application
|
31
31
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170622'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -2903,6 +2903,11 @@ module Google
|
|
2903
2903
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
2904
2904
|
attr_accessor :table_reference
|
2905
2905
|
|
2906
|
+
# [Experimental] The time-based partitioning for this table.
|
2907
|
+
# Corresponds to the JSON property `timePartitioning`
|
2908
|
+
# @return [Google::Apis::BigqueryV2::TimePartitioning]
|
2909
|
+
attr_accessor :time_partitioning
|
2910
|
+
|
2906
2911
|
# The type of table. Possible values are: TABLE, VIEW.
|
2907
2912
|
# Corresponds to the JSON property `type`
|
2908
2913
|
# @return [String]
|
@@ -2924,6 +2929,7 @@ module Google
|
|
2924
2929
|
@kind = args[:kind] if args.key?(:kind)
|
2925
2930
|
@labels = args[:labels] if args.key?(:labels)
|
2926
2931
|
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
2932
|
+
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
|
2927
2933
|
@type = args[:type] if args.key?(:type)
|
2928
2934
|
@view = args[:view] if args.key?(:view)
|
2929
2935
|
end
|
@@ -1040,6 +1040,8 @@ module Google
|
|
1040
1040
|
hash :labels, as: 'labels'
|
1041
1041
|
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
1042
1042
|
|
1043
|
+
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
1044
|
+
|
1043
1045
|
property :type, as: 'type'
|
1044
1046
|
property :view, as: 'view', class: Google::Apis::BigqueryV2::TableList::Table::View, decorator: Google::Apis::BigqueryV2::TableList::Table::View::Representation
|
1045
1047
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
26
26
|
module CalendarV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170613'
|
29
29
|
|
30
30
|
# Manage your calendars
|
31
31
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
@@ -25,10 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/classroom/
|
26
26
|
module ClassroomV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
29
|
-
|
30
|
-
# View the email addresses of people in your classes
|
31
|
-
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
|
28
|
+
REVISION = '20170710'
|
32
29
|
|
33
30
|
# Manage your course work and view your grades in Google Classroom
|
34
31
|
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
|
@@ -60,17 +57,20 @@ module Google
|
|
60
57
|
# View your course work and grades in Google Classroom
|
61
58
|
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly'
|
62
59
|
|
63
|
-
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
|
64
|
-
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
|
65
|
-
|
66
60
|
# View your Google Classroom guardians
|
67
61
|
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
|
68
62
|
|
69
63
|
# View course work and grades for students in the Google Classroom classes you teach or administer
|
70
64
|
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
|
71
65
|
|
66
|
+
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
|
67
|
+
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
|
68
|
+
|
72
69
|
# View your course work and grades in Google Classroom
|
73
70
|
AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly'
|
71
|
+
|
72
|
+
# View the email addresses of people in your classes
|
73
|
+
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
@@ -22,136 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ClassroomV1
|
24
24
|
|
25
|
-
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
26
|
-
# time zone are either specified elsewhere or are not significant. The date
|
27
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
28
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
29
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
30
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
31
|
-
# and `google.protobuf.Timestamp`.
|
32
|
-
class Date
|
33
|
-
include Google::Apis::Core::Hashable
|
34
|
-
|
35
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
36
|
-
# a year.
|
37
|
-
# Corresponds to the JSON property `year`
|
38
|
-
# @return [Fixnum]
|
39
|
-
attr_accessor :year
|
40
|
-
|
41
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
42
|
-
# if specifying a year/month where the day is not significant.
|
43
|
-
# Corresponds to the JSON property `day`
|
44
|
-
# @return [Fixnum]
|
45
|
-
attr_accessor :day
|
46
|
-
|
47
|
-
# Month of year. Must be from 1 to 12.
|
48
|
-
# Corresponds to the JSON property `month`
|
49
|
-
# @return [Fixnum]
|
50
|
-
attr_accessor :month
|
51
|
-
|
52
|
-
def initialize(**args)
|
53
|
-
update!(**args)
|
54
|
-
end
|
55
|
-
|
56
|
-
# Update properties of this object
|
57
|
-
def update!(**args)
|
58
|
-
@year = args[:year] if args.key?(:year)
|
59
|
-
@day = args[:day] if args.key?(:day)
|
60
|
-
@month = args[:month] if args.key?(:month)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
# Student work for a multiple-choice question.
|
65
|
-
class MultipleChoiceSubmission
|
66
|
-
include Google::Apis::Core::Hashable
|
67
|
-
|
68
|
-
# Student's select choice.
|
69
|
-
# Corresponds to the JSON property `answer`
|
70
|
-
# @return [String]
|
71
|
-
attr_accessor :answer
|
72
|
-
|
73
|
-
def initialize(**args)
|
74
|
-
update!(**args)
|
75
|
-
end
|
76
|
-
|
77
|
-
# Update properties of this object
|
78
|
-
def update!(**args)
|
79
|
-
@answer = args[:answer] if args.key?(:answer)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# A material attached to a course as part of a material set.
|
84
|
-
class CourseMaterial
|
85
|
-
include Google::Apis::Core::Hashable
|
86
|
-
|
87
|
-
# Representation of a Google Drive file.
|
88
|
-
# Corresponds to the JSON property `driveFile`
|
89
|
-
# @return [Google::Apis::ClassroomV1::DriveFile]
|
90
|
-
attr_accessor :drive_file
|
91
|
-
|
92
|
-
# YouTube video item.
|
93
|
-
# Corresponds to the JSON property `youTubeVideo`
|
94
|
-
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
95
|
-
attr_accessor :you_tube_video
|
96
|
-
|
97
|
-
# Google Forms item.
|
98
|
-
# Corresponds to the JSON property `form`
|
99
|
-
# @return [Google::Apis::ClassroomV1::Form]
|
100
|
-
attr_accessor :form
|
101
|
-
|
102
|
-
# URL item.
|
103
|
-
# Corresponds to the JSON property `link`
|
104
|
-
# @return [Google::Apis::ClassroomV1::Link]
|
105
|
-
attr_accessor :link
|
106
|
-
|
107
|
-
def initialize(**args)
|
108
|
-
update!(**args)
|
109
|
-
end
|
110
|
-
|
111
|
-
# Update properties of this object
|
112
|
-
def update!(**args)
|
113
|
-
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
114
|
-
@you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video)
|
115
|
-
@form = args[:form] if args.key?(:form)
|
116
|
-
@link = args[:link] if args.key?(:link)
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
# Details of the user's name.
|
121
|
-
class Name
|
122
|
-
include Google::Apis::Core::Hashable
|
123
|
-
|
124
|
-
# The user's first name.
|
125
|
-
# Read-only.
|
126
|
-
# Corresponds to the JSON property `givenName`
|
127
|
-
# @return [String]
|
128
|
-
attr_accessor :given_name
|
129
|
-
|
130
|
-
# The user's last name.
|
131
|
-
# Read-only.
|
132
|
-
# Corresponds to the JSON property `familyName`
|
133
|
-
# @return [String]
|
134
|
-
attr_accessor :family_name
|
135
|
-
|
136
|
-
# The user's full name formed by concatenating the first and last name
|
137
|
-
# values.
|
138
|
-
# Read-only.
|
139
|
-
# Corresponds to the JSON property `fullName`
|
140
|
-
# @return [String]
|
141
|
-
attr_accessor :full_name
|
142
|
-
|
143
|
-
def initialize(**args)
|
144
|
-
update!(**args)
|
145
|
-
end
|
146
|
-
|
147
|
-
# Update properties of this object
|
148
|
-
def update!(**args)
|
149
|
-
@given_name = args[:given_name] if args.key?(:given_name)
|
150
|
-
@family_name = args[:family_name] if args.key?(:family_name)
|
151
|
-
@full_name = args[:full_name] if args.key?(:full_name)
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
25
|
# Additional details for assignments.
|
156
26
|
class Assignment
|
157
27
|
include Google::Apis::Core::Hashable
|
@@ -175,24 +45,24 @@ module Google
|
|
175
45
|
class SharedDriveFile
|
176
46
|
include Google::Apis::Core::Hashable
|
177
47
|
|
178
|
-
# Representation of a Google Drive file.
|
179
|
-
# Corresponds to the JSON property `driveFile`
|
180
|
-
# @return [Google::Apis::ClassroomV1::DriveFile]
|
181
|
-
attr_accessor :drive_file
|
182
|
-
|
183
48
|
# Mechanism by which students access the Drive item.
|
184
49
|
# Corresponds to the JSON property `shareMode`
|
185
50
|
# @return [String]
|
186
51
|
attr_accessor :share_mode
|
187
52
|
|
53
|
+
# Representation of a Google Drive file.
|
54
|
+
# Corresponds to the JSON property `driveFile`
|
55
|
+
# @return [Google::Apis::ClassroomV1::DriveFile]
|
56
|
+
attr_accessor :drive_file
|
57
|
+
|
188
58
|
def initialize(**args)
|
189
59
|
update!(**args)
|
190
60
|
end
|
191
61
|
|
192
62
|
# Update properties of this object
|
193
63
|
def update!(**args)
|
194
|
-
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
195
64
|
@share_mode = args[:share_mode] if args.key?(:share_mode)
|
65
|
+
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
196
66
|
end
|
197
67
|
end
|
198
68
|
|
@@ -238,13 +108,6 @@ module Google
|
|
238
108
|
class Course
|
239
109
|
include Google::Apis::Core::Hashable
|
240
110
|
|
241
|
-
# The Calendar ID for a calendar that all course members can see, to which
|
242
|
-
# Classroom adds events for course work and announcements in the course.
|
243
|
-
# Read-only.
|
244
|
-
# Corresponds to the JSON property `calendarId`
|
245
|
-
# @return [String]
|
246
|
-
attr_accessor :calendar_id
|
247
|
-
|
248
111
|
# Time of the most recent update to this course.
|
249
112
|
# Specifying this field in a course update mask results in an error.
|
250
113
|
# Read-only.
|
@@ -252,6 +115,13 @@ module Google
|
|
252
115
|
# @return [String]
|
253
116
|
attr_accessor :update_time
|
254
117
|
|
118
|
+
# The Calendar ID for a calendar that all course members can see, to which
|
119
|
+
# Classroom adds events for course work and announcements in the course.
|
120
|
+
# Read-only.
|
121
|
+
# Corresponds to the JSON property `calendarId`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :calendar_id
|
124
|
+
|
255
125
|
# Absolute link to this course in the Classroom web UI.
|
256
126
|
# Read-only.
|
257
127
|
# Corresponds to the JSON property `alternateLink`
|
@@ -384,8 +254,8 @@ module Google
|
|
384
254
|
|
385
255
|
# Update properties of this object
|
386
256
|
def update!(**args)
|
387
|
-
@calendar_id = args[:calendar_id] if args.key?(:calendar_id)
|
388
257
|
@update_time = args[:update_time] if args.key?(:update_time)
|
258
|
+
@calendar_id = args[:calendar_id] if args.key?(:calendar_id)
|
389
259
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
390
260
|
@guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
|
391
261
|
@owner_id = args[:owner_id] if args.key?(:owner_id)
|
@@ -409,12 +279,6 @@ module Google
|
|
409
279
|
class DriveFile
|
410
280
|
include Google::Apis::Core::Hashable
|
411
281
|
|
412
|
-
# URL of a thumbnail image of the Drive item.
|
413
|
-
# Read-only.
|
414
|
-
# Corresponds to the JSON property `thumbnailUrl`
|
415
|
-
# @return [String]
|
416
|
-
attr_accessor :thumbnail_url
|
417
|
-
|
418
282
|
# Drive API resource ID.
|
419
283
|
# Corresponds to the JSON property `id`
|
420
284
|
# @return [String]
|
@@ -432,48 +296,54 @@ module Google
|
|
432
296
|
# @return [String]
|
433
297
|
attr_accessor :alternate_link
|
434
298
|
|
299
|
+
# URL of a thumbnail image of the Drive item.
|
300
|
+
# Read-only.
|
301
|
+
# Corresponds to the JSON property `thumbnailUrl`
|
302
|
+
# @return [String]
|
303
|
+
attr_accessor :thumbnail_url
|
304
|
+
|
435
305
|
def initialize(**args)
|
436
306
|
update!(**args)
|
437
307
|
end
|
438
308
|
|
439
309
|
# Update properties of this object
|
440
310
|
def update!(**args)
|
441
|
-
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
|
442
311
|
@id = args[:id] if args.key?(:id)
|
443
312
|
@title = args[:title] if args.key?(:title)
|
444
313
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
314
|
+
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
|
445
315
|
end
|
446
316
|
end
|
447
317
|
|
448
|
-
#
|
449
|
-
class
|
318
|
+
# Request to return a student submission.
|
319
|
+
class ReturnStudentSubmissionRequest
|
450
320
|
include Google::Apis::Core::Hashable
|
451
321
|
|
452
|
-
# Permission value.
|
453
|
-
# Corresponds to the JSON property `permission`
|
454
|
-
# @return [String]
|
455
|
-
attr_accessor :permission
|
456
|
-
|
457
322
|
def initialize(**args)
|
458
323
|
update!(**args)
|
459
324
|
end
|
460
325
|
|
461
326
|
# Update properties of this object
|
462
327
|
def update!(**args)
|
463
|
-
@permission = args[:permission] if args.key?(:permission)
|
464
328
|
end
|
465
329
|
end
|
466
330
|
|
467
|
-
#
|
468
|
-
class
|
331
|
+
# Global user permission description.
|
332
|
+
class GlobalPermission
|
469
333
|
include Google::Apis::Core::Hashable
|
470
334
|
|
335
|
+
# Permission value.
|
336
|
+
# Corresponds to the JSON property `permission`
|
337
|
+
# @return [String]
|
338
|
+
attr_accessor :permission
|
339
|
+
|
471
340
|
def initialize(**args)
|
472
341
|
update!(**args)
|
473
342
|
end
|
474
343
|
|
475
344
|
# Update properties of this object
|
476
345
|
def update!(**args)
|
346
|
+
@permission = args[:permission] if args.key?(:permission)
|
477
347
|
end
|
478
348
|
end
|
479
349
|
|
@@ -481,6 +351,12 @@ module Google
|
|
481
351
|
class Teacher
|
482
352
|
include Google::Apis::Core::Hashable
|
483
353
|
|
354
|
+
# Identifier of the course.
|
355
|
+
# Read-only.
|
356
|
+
# Corresponds to the JSON property `courseId`
|
357
|
+
# @return [String]
|
358
|
+
attr_accessor :course_id
|
359
|
+
|
484
360
|
# Global information for a user.
|
485
361
|
# Corresponds to the JSON property `profile`
|
486
362
|
# @return [Google::Apis::ClassroomV1::UserProfile]
|
@@ -496,21 +372,15 @@ module Google
|
|
496
372
|
# @return [String]
|
497
373
|
attr_accessor :user_id
|
498
374
|
|
499
|
-
# Identifier of the course.
|
500
|
-
# Read-only.
|
501
|
-
# Corresponds to the JSON property `courseId`
|
502
|
-
# @return [String]
|
503
|
-
attr_accessor :course_id
|
504
|
-
|
505
375
|
def initialize(**args)
|
506
376
|
update!(**args)
|
507
377
|
end
|
508
378
|
|
509
379
|
# Update properties of this object
|
510
380
|
def update!(**args)
|
381
|
+
@course_id = args[:course_id] if args.key?(:course_id)
|
511
382
|
@profile = args[:profile] if args.key?(:profile)
|
512
383
|
@user_id = args[:user_id] if args.key?(:user_id)
|
513
|
-
@course_id = args[:course_id] if args.key?(:course_id)
|
514
384
|
end
|
515
385
|
end
|
516
386
|
|
@@ -557,11 +427,6 @@ module Google
|
|
557
427
|
class Material
|
558
428
|
include Google::Apis::Core::Hashable
|
559
429
|
|
560
|
-
# YouTube video item.
|
561
|
-
# Corresponds to the JSON property `youtubeVideo`
|
562
|
-
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
563
|
-
attr_accessor :youtube_video
|
564
|
-
|
565
430
|
# Drive file that is used as material for course work.
|
566
431
|
# Corresponds to the JSON property `driveFile`
|
567
432
|
# @return [Google::Apis::ClassroomV1::SharedDriveFile]
|
@@ -577,16 +442,21 @@ module Google
|
|
577
442
|
# @return [Google::Apis::ClassroomV1::Link]
|
578
443
|
attr_accessor :link
|
579
444
|
|
445
|
+
# YouTube video item.
|
446
|
+
# Corresponds to the JSON property `youtubeVideo`
|
447
|
+
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
448
|
+
attr_accessor :youtube_video
|
449
|
+
|
580
450
|
def initialize(**args)
|
581
451
|
update!(**args)
|
582
452
|
end
|
583
453
|
|
584
454
|
# Update properties of this object
|
585
455
|
def update!(**args)
|
586
|
-
@youtube_video = args[:youtube_video] if args.key?(:youtube_video)
|
587
456
|
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
588
457
|
@form = args[:form] if args.key?(:form)
|
589
458
|
@link = args[:link] if args.key?(:link)
|
459
|
+
@youtube_video = args[:youtube_video] if args.key?(:youtube_video)
|
590
460
|
end
|
591
461
|
end
|
592
462
|
|
@@ -594,38 +464,6 @@ module Google
|
|
594
464
|
class CourseWork
|
595
465
|
include Google::Apis::Core::Hashable
|
596
466
|
|
597
|
-
# Identifier of the course.
|
598
|
-
# Read-only.
|
599
|
-
# Corresponds to the JSON property `courseId`
|
600
|
-
# @return [String]
|
601
|
-
attr_accessor :course_id
|
602
|
-
|
603
|
-
# Classroom-assigned identifier of this course work, unique per course.
|
604
|
-
# Read-only.
|
605
|
-
# Corresponds to the JSON property `id`
|
606
|
-
# @return [String]
|
607
|
-
attr_accessor :id
|
608
|
-
|
609
|
-
# Represents a time of day. The date and time zone are either not significant
|
610
|
-
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
611
|
-
# types are google.type.Date and `google.protobuf.Timestamp`.
|
612
|
-
# Corresponds to the JSON property `dueTime`
|
613
|
-
# @return [Google::Apis::ClassroomV1::TimeOfDay]
|
614
|
-
attr_accessor :due_time
|
615
|
-
|
616
|
-
# Title of this course work.
|
617
|
-
# The title must be a valid UTF-8 string containing between 1 and 3000
|
618
|
-
# characters.
|
619
|
-
# Corresponds to the JSON property `title`
|
620
|
-
# @return [String]
|
621
|
-
attr_accessor :title
|
622
|
-
|
623
|
-
# Additional materials.
|
624
|
-
# CourseWork must have no more than 20 material items.
|
625
|
-
# Corresponds to the JSON property `materials`
|
626
|
-
# @return [Array<Google::Apis::ClassroomV1::Material>]
|
627
|
-
attr_accessor :materials
|
628
|
-
|
629
467
|
# Whether this course work item is associated with the Developer Console
|
630
468
|
# project making the request.
|
631
469
|
# See google.classroom.Work.CreateCourseWork for more
|
@@ -636,6 +474,12 @@ module Google
|
|
636
474
|
attr_accessor :associated_with_developer
|
637
475
|
alias_method :associated_with_developer?, :associated_with_developer
|
638
476
|
|
477
|
+
# Additional materials.
|
478
|
+
# CourseWork must have no more than 20 material items.
|
479
|
+
# Corresponds to the JSON property `materials`
|
480
|
+
# @return [Array<Google::Apis::ClassroomV1::Material>]
|
481
|
+
attr_accessor :materials
|
482
|
+
|
639
483
|
# Timestamp of the most recent change to this course work.
|
640
484
|
# Read-only.
|
641
485
|
# Corresponds to the JSON property `updateTime`
|
@@ -656,6 +500,11 @@ module Google
|
|
656
500
|
# @return [Float]
|
657
501
|
attr_accessor :max_points
|
658
502
|
|
503
|
+
# Additional details for assignments.
|
504
|
+
# Corresponds to the JSON property `assignment`
|
505
|
+
# @return [Google::Apis::ClassroomV1::Assignment]
|
506
|
+
attr_accessor :assignment
|
507
|
+
|
659
508
|
# Type of this course work.
|
660
509
|
# The type is set when the course work is created and cannot be changed.
|
661
510
|
# Corresponds to the JSON property `workType`
|
@@ -667,10 +516,10 @@ module Google
|
|
667
516
|
# @return [Google::Apis::ClassroomV1::MultipleChoiceQuestion]
|
668
517
|
attr_accessor :multiple_choice_question
|
669
518
|
|
670
|
-
#
|
671
|
-
# Corresponds to the JSON property `
|
672
|
-
# @return [
|
673
|
-
attr_accessor :
|
519
|
+
# Optional timestamp when this course work is scheduled to be published.
|
520
|
+
# Corresponds to the JSON property `scheduledTime`
|
521
|
+
# @return [String]
|
522
|
+
attr_accessor :scheduled_time
|
674
523
|
|
675
524
|
# Optional description of this course work.
|
676
525
|
# If set, the description must be a valid UTF-8 string containing no more
|
@@ -679,11 +528,6 @@ module Google
|
|
679
528
|
# @return [String]
|
680
529
|
attr_accessor :description
|
681
530
|
|
682
|
-
# Optional timestamp when this course work is scheduled to be published.
|
683
|
-
# Corresponds to the JSON property `scheduledTime`
|
684
|
-
# @return [String]
|
685
|
-
attr_accessor :scheduled_time
|
686
|
-
|
687
531
|
# Timestamp when this course work was created.
|
688
532
|
# Read-only.
|
689
533
|
# Corresponds to the JSON property `creationTime`
|
@@ -713,30 +557,56 @@ module Google
|
|
713
557
|
# @return [String]
|
714
558
|
attr_accessor :state
|
715
559
|
|
560
|
+
# Identifier of the course.
|
561
|
+
# Read-only.
|
562
|
+
# Corresponds to the JSON property `courseId`
|
563
|
+
# @return [String]
|
564
|
+
attr_accessor :course_id
|
565
|
+
|
566
|
+
# Classroom-assigned identifier of this course work, unique per course.
|
567
|
+
# Read-only.
|
568
|
+
# Corresponds to the JSON property `id`
|
569
|
+
# @return [String]
|
570
|
+
attr_accessor :id
|
571
|
+
|
572
|
+
# Represents a time of day. The date and time zone are either not significant
|
573
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
574
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
575
|
+
# Corresponds to the JSON property `dueTime`
|
576
|
+
# @return [Google::Apis::ClassroomV1::TimeOfDay]
|
577
|
+
attr_accessor :due_time
|
578
|
+
|
579
|
+
# Title of this course work.
|
580
|
+
# The title must be a valid UTF-8 string containing between 1 and 3000
|
581
|
+
# characters.
|
582
|
+
# Corresponds to the JSON property `title`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :title
|
585
|
+
|
716
586
|
def initialize(**args)
|
717
587
|
update!(**args)
|
718
588
|
end
|
719
589
|
|
720
590
|
# Update properties of this object
|
721
591
|
def update!(**args)
|
722
|
-
@course_id = args[:course_id] if args.key?(:course_id)
|
723
|
-
@id = args[:id] if args.key?(:id)
|
724
|
-
@due_time = args[:due_time] if args.key?(:due_time)
|
725
|
-
@title = args[:title] if args.key?(:title)
|
726
|
-
@materials = args[:materials] if args.key?(:materials)
|
727
592
|
@associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer)
|
593
|
+
@materials = args[:materials] if args.key?(:materials)
|
728
594
|
@update_time = args[:update_time] if args.key?(:update_time)
|
729
595
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
730
596
|
@max_points = args[:max_points] if args.key?(:max_points)
|
597
|
+
@assignment = args[:assignment] if args.key?(:assignment)
|
731
598
|
@work_type = args[:work_type] if args.key?(:work_type)
|
732
599
|
@multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question)
|
733
|
-
@assignment = args[:assignment] if args.key?(:assignment)
|
734
|
-
@description = args[:description] if args.key?(:description)
|
735
600
|
@scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
|
601
|
+
@description = args[:description] if args.key?(:description)
|
736
602
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
737
603
|
@due_date = args[:due_date] if args.key?(:due_date)
|
738
604
|
@submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode)
|
739
605
|
@state = args[:state] if args.key?(:state)
|
606
|
+
@course_id = args[:course_id] if args.key?(:course_id)
|
607
|
+
@id = args[:id] if args.key?(:id)
|
608
|
+
@due_time = args[:due_time] if args.key?(:due_time)
|
609
|
+
@title = args[:title] if args.key?(:title)
|
740
610
|
end
|
741
611
|
end
|
742
612
|
|
@@ -745,37 +615,63 @@ module Google
|
|
745
615
|
class Guardian
|
746
616
|
include Google::Apis::Core::Hashable
|
747
617
|
|
748
|
-
#
|
749
|
-
#
|
618
|
+
# The email address to which the initial guardian invitation was sent.
|
619
|
+
# This field is only visible to domain administrators.
|
620
|
+
# Corresponds to the JSON property `invitedEmailAddress`
|
750
621
|
# @return [String]
|
751
|
-
attr_accessor :
|
622
|
+
attr_accessor :invited_email_address
|
752
623
|
|
753
624
|
# Identifier for the guardian.
|
754
625
|
# Corresponds to the JSON property `guardianId`
|
755
626
|
# @return [String]
|
756
627
|
attr_accessor :guardian_id
|
757
628
|
|
758
|
-
# The email address to which the initial guardian invitation was sent.
|
759
|
-
# This field is only visible to domain administrators.
|
760
|
-
# Corresponds to the JSON property `invitedEmailAddress`
|
761
|
-
# @return [String]
|
762
|
-
attr_accessor :invited_email_address
|
763
|
-
|
764
629
|
# Global information for a user.
|
765
630
|
# Corresponds to the JSON property `guardianProfile`
|
766
631
|
# @return [Google::Apis::ClassroomV1::UserProfile]
|
767
632
|
attr_accessor :guardian_profile
|
768
633
|
|
634
|
+
# Identifier for the student to whom the guardian relationship applies.
|
635
|
+
# Corresponds to the JSON property `studentId`
|
636
|
+
# @return [String]
|
637
|
+
attr_accessor :student_id
|
638
|
+
|
769
639
|
def initialize(**args)
|
770
640
|
update!(**args)
|
771
641
|
end
|
772
642
|
|
773
643
|
# Update properties of this object
|
774
644
|
def update!(**args)
|
775
|
-
@student_id = args[:student_id] if args.key?(:student_id)
|
776
|
-
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
|
777
645
|
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
|
646
|
+
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
|
778
647
|
@guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
|
648
|
+
@student_id = args[:student_id] if args.key?(:student_id)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
# Response when listing students.
|
653
|
+
class ListStudentsResponse
|
654
|
+
include Google::Apis::Core::Hashable
|
655
|
+
|
656
|
+
# Token identifying the next page of results to return. If empty, no further
|
657
|
+
# results are available.
|
658
|
+
# Corresponds to the JSON property `nextPageToken`
|
659
|
+
# @return [String]
|
660
|
+
attr_accessor :next_page_token
|
661
|
+
|
662
|
+
# Students who match the list request.
|
663
|
+
# Corresponds to the JSON property `students`
|
664
|
+
# @return [Array<Google::Apis::ClassroomV1::Student>]
|
665
|
+
attr_accessor :students
|
666
|
+
|
667
|
+
def initialize(**args)
|
668
|
+
update!(**args)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Update properties of this object
|
672
|
+
def update!(**args)
|
673
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
674
|
+
@students = args[:students] if args.key?(:students)
|
779
675
|
end
|
780
676
|
end
|
781
677
|
|
@@ -812,7 +708,9 @@ module Google
|
|
812
708
|
# @return [String]
|
813
709
|
attr_accessor :id
|
814
710
|
|
815
|
-
#
|
711
|
+
# Represents whether a G Suite for Education user's domain administrator has
|
712
|
+
# explicitly verified them as being a teacher. If the user is not a member of
|
713
|
+
# a G Suite for Education domain, than this field will always be false.
|
816
714
|
# Read-only
|
817
715
|
# Corresponds to the JSON property `verifiedTeacher`
|
818
716
|
# @return [Boolean]
|
@@ -834,52 +732,20 @@ module Google
|
|
834
732
|
end
|
835
733
|
end
|
836
734
|
|
837
|
-
# Response when listing students.
|
838
|
-
class ListStudentsResponse
|
839
|
-
include Google::Apis::Core::Hashable
|
840
|
-
|
841
|
-
# Students who match the list request.
|
842
|
-
# Corresponds to the JSON property `students`
|
843
|
-
# @return [Array<Google::Apis::ClassroomV1::Student>]
|
844
|
-
attr_accessor :students
|
845
|
-
|
846
|
-
# Token identifying the next page of results to return. If empty, no further
|
847
|
-
# results are available.
|
848
|
-
# Corresponds to the JSON property `nextPageToken`
|
849
|
-
# @return [String]
|
850
|
-
attr_accessor :next_page_token
|
851
|
-
|
852
|
-
def initialize(**args)
|
853
|
-
update!(**args)
|
854
|
-
end
|
855
|
-
|
856
|
-
# Update properties of this object
|
857
|
-
def update!(**args)
|
858
|
-
@students = args[:students] if args.key?(:students)
|
859
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
860
|
-
end
|
861
|
-
end
|
862
|
-
|
863
735
|
# Student in a course.
|
864
736
|
class Student
|
865
737
|
include Google::Apis::Core::Hashable
|
866
738
|
|
867
|
-
#
|
868
|
-
#
|
869
|
-
#
|
870
|
-
|
871
|
-
attr_accessor :course_id
|
739
|
+
# Representation of a Google Drive folder.
|
740
|
+
# Corresponds to the JSON property `studentWorkFolder`
|
741
|
+
# @return [Google::Apis::ClassroomV1::DriveFolder]
|
742
|
+
attr_accessor :student_work_folder
|
872
743
|
|
873
744
|
# Global information for a user.
|
874
745
|
# Corresponds to the JSON property `profile`
|
875
746
|
# @return [Google::Apis::ClassroomV1::UserProfile]
|
876
747
|
attr_accessor :profile
|
877
748
|
|
878
|
-
# Representation of a Google Drive folder.
|
879
|
-
# Corresponds to the JSON property `studentWorkFolder`
|
880
|
-
# @return [Google::Apis::ClassroomV1::DriveFolder]
|
881
|
-
attr_accessor :student_work_folder
|
882
|
-
|
883
749
|
# Identifier of the user.
|
884
750
|
# When specified as a parameter of a request, this identifier can be one of
|
885
751
|
# the following:
|
@@ -890,16 +756,22 @@ module Google
|
|
890
756
|
# @return [String]
|
891
757
|
attr_accessor :user_id
|
892
758
|
|
759
|
+
# Identifier of the course.
|
760
|
+
# Read-only.
|
761
|
+
# Corresponds to the JSON property `courseId`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :course_id
|
764
|
+
|
893
765
|
def initialize(**args)
|
894
766
|
update!(**args)
|
895
767
|
end
|
896
768
|
|
897
769
|
# Update properties of this object
|
898
770
|
def update!(**args)
|
899
|
-
@course_id = args[:course_id] if args.key?(:course_id)
|
900
|
-
@profile = args[:profile] if args.key?(:profile)
|
901
771
|
@student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder)
|
772
|
+
@profile = args[:profile] if args.key?(:profile)
|
902
773
|
@user_id = args[:user_id] if args.key?(:user_id)
|
774
|
+
@course_id = args[:course_id] if args.key?(:course_id)
|
903
775
|
end
|
904
776
|
end
|
905
777
|
|
@@ -907,16 +779,6 @@ module Google
|
|
907
779
|
class Invitation
|
908
780
|
include Google::Apis::Core::Hashable
|
909
781
|
|
910
|
-
# Identifier of the invited user.
|
911
|
-
# When specified as a parameter of a request, this identifier can be set to
|
912
|
-
# one of the following:
|
913
|
-
# * the numeric identifier for the user
|
914
|
-
# * the email address of the user
|
915
|
-
# * the string literal `"me"`, indicating the requesting user
|
916
|
-
# Corresponds to the JSON property `userId`
|
917
|
-
# @return [String]
|
918
|
-
attr_accessor :user_id
|
919
|
-
|
920
782
|
# Identifier of the course to invite the user to.
|
921
783
|
# Corresponds to the JSON property `courseId`
|
922
784
|
# @return [String]
|
@@ -934,16 +796,26 @@ module Google
|
|
934
796
|
# @return [String]
|
935
797
|
attr_accessor :role
|
936
798
|
|
799
|
+
# Identifier of the invited user.
|
800
|
+
# When specified as a parameter of a request, this identifier can be set to
|
801
|
+
# one of the following:
|
802
|
+
# * the numeric identifier for the user
|
803
|
+
# * the email address of the user
|
804
|
+
# * the string literal `"me"`, indicating the requesting user
|
805
|
+
# Corresponds to the JSON property `userId`
|
806
|
+
# @return [String]
|
807
|
+
attr_accessor :user_id
|
808
|
+
|
937
809
|
def initialize(**args)
|
938
810
|
update!(**args)
|
939
811
|
end
|
940
812
|
|
941
813
|
# Update properties of this object
|
942
814
|
def update!(**args)
|
943
|
-
@user_id = args[:user_id] if args.key?(:user_id)
|
944
815
|
@course_id = args[:course_id] if args.key?(:course_id)
|
945
816
|
@id = args[:id] if args.key?(:id)
|
946
817
|
@role = args[:role] if args.key?(:role)
|
818
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
947
819
|
end
|
948
820
|
end
|
949
821
|
|
@@ -951,11 +823,6 @@ module Google
|
|
951
823
|
class DriveFolder
|
952
824
|
include Google::Apis::Core::Hashable
|
953
825
|
|
954
|
-
# Drive API resource ID.
|
955
|
-
# Corresponds to the JSON property `id`
|
956
|
-
# @return [String]
|
957
|
-
attr_accessor :id
|
958
|
-
|
959
826
|
# Title of the Drive folder.
|
960
827
|
# Read-only.
|
961
828
|
# Corresponds to the JSON property `title`
|
@@ -968,15 +835,20 @@ module Google
|
|
968
835
|
# @return [String]
|
969
836
|
attr_accessor :alternate_link
|
970
837
|
|
838
|
+
# Drive API resource ID.
|
839
|
+
# Corresponds to the JSON property `id`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :id
|
842
|
+
|
971
843
|
def initialize(**args)
|
972
844
|
update!(**args)
|
973
845
|
end
|
974
846
|
|
975
847
|
# Update properties of this object
|
976
848
|
def update!(**args)
|
977
|
-
@id = args[:id] if args.key?(:id)
|
978
849
|
@title = args[:title] if args.key?(:title)
|
979
850
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
851
|
+
@id = args[:id] if args.key?(:id)
|
980
852
|
end
|
981
853
|
end
|
982
854
|
|
@@ -999,6 +871,45 @@ module Google
|
|
999
871
|
end
|
1000
872
|
end
|
1001
873
|
|
874
|
+
# Request to turn in a student submission.
|
875
|
+
class TurnInStudentSubmissionRequest
|
876
|
+
include Google::Apis::Core::Hashable
|
877
|
+
|
878
|
+
def initialize(**args)
|
879
|
+
update!(**args)
|
880
|
+
end
|
881
|
+
|
882
|
+
# Update properties of this object
|
883
|
+
def update!(**args)
|
884
|
+
end
|
885
|
+
end
|
886
|
+
|
887
|
+
# Response when listing student submissions.
|
888
|
+
class ListStudentSubmissionsResponse
|
889
|
+
include Google::Apis::Core::Hashable
|
890
|
+
|
891
|
+
# Token identifying the next page of results to return. If empty, no further
|
892
|
+
# results are available.
|
893
|
+
# Corresponds to the JSON property `nextPageToken`
|
894
|
+
# @return [String]
|
895
|
+
attr_accessor :next_page_token
|
896
|
+
|
897
|
+
# Student work that matches the request.
|
898
|
+
# Corresponds to the JSON property `studentSubmissions`
|
899
|
+
# @return [Array<Google::Apis::ClassroomV1::StudentSubmission>]
|
900
|
+
attr_accessor :student_submissions
|
901
|
+
|
902
|
+
def initialize(**args)
|
903
|
+
update!(**args)
|
904
|
+
end
|
905
|
+
|
906
|
+
# Update properties of this object
|
907
|
+
def update!(**args)
|
908
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
909
|
+
@student_submissions = args[:student_submissions] if args.key?(:student_submissions)
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
1002
913
|
# Student submission for course work.
|
1003
914
|
# StudentSubmission items are generated when a CourseWork item is created.
|
1004
915
|
# StudentSubmissions that have never been accessed (i.e. with `state` = NEW)
|
@@ -1006,56 +917,17 @@ module Google
|
|
1006
917
|
class StudentSubmission
|
1007
918
|
include Google::Apis::Core::Hashable
|
1008
919
|
|
1009
|
-
#
|
1010
|
-
# Read-only.
|
1011
|
-
# Corresponds to the JSON property `late`
|
1012
|
-
# @return [Boolean]
|
1013
|
-
attr_accessor :late
|
1014
|
-
alias_method :late?, :late
|
1015
|
-
|
1016
|
-
# Optional pending grade. If unset, no grade was set.
|
1017
|
-
# This must be a non-negative integer value.
|
1018
|
-
# This is only visible to and modifiable by course teachers.
|
1019
|
-
# Corresponds to the JSON property `draftGrade`
|
1020
|
-
# @return [Float]
|
1021
|
-
attr_accessor :draft_grade
|
1022
|
-
|
1023
|
-
# Type of course work this submission is for.
|
920
|
+
# Identifier for the course work this corresponds to.
|
1024
921
|
# Read-only.
|
1025
|
-
# Corresponds to the JSON property `
|
922
|
+
# Corresponds to the JSON property `courseWorkId`
|
1026
923
|
# @return [String]
|
1027
|
-
attr_accessor :
|
924
|
+
attr_accessor :course_work_id
|
1028
925
|
|
1029
|
-
#
|
1030
|
-
# This may be unset if the student has not accessed this item.
|
926
|
+
# Identifier of the course.
|
1031
927
|
# Read-only.
|
1032
|
-
# Corresponds to the JSON property `
|
928
|
+
# Corresponds to the JSON property `courseId`
|
1033
929
|
# @return [String]
|
1034
|
-
attr_accessor :
|
1035
|
-
|
1036
|
-
# State of this submission.
|
1037
|
-
# Read-only.
|
1038
|
-
# Corresponds to the JSON property `state`
|
1039
|
-
# @return [String]
|
1040
|
-
attr_accessor :state
|
1041
|
-
|
1042
|
-
# Identifier for the student that owns this submission.
|
1043
|
-
# Read-only.
|
1044
|
-
# Corresponds to the JSON property `userId`
|
1045
|
-
# @return [String]
|
1046
|
-
attr_accessor :user_id
|
1047
|
-
|
1048
|
-
# Identifier for the course work this corresponds to.
|
1049
|
-
# Read-only.
|
1050
|
-
# Corresponds to the JSON property `courseWorkId`
|
1051
|
-
# @return [String]
|
1052
|
-
attr_accessor :course_work_id
|
1053
|
-
|
1054
|
-
# Identifier of the course.
|
1055
|
-
# Read-only.
|
1056
|
-
# Corresponds to the JSON property `courseId`
|
1057
|
-
# @return [String]
|
1058
|
-
attr_accessor :course_id
|
930
|
+
attr_accessor :course_id
|
1059
931
|
|
1060
932
|
# Classroom-assigned Identifier for the student submission.
|
1061
933
|
# This is unique among submissions for the relevant course work.
|
@@ -1109,18 +981,51 @@ module Google
|
|
1109
981
|
# @return [String]
|
1110
982
|
attr_accessor :alternate_link
|
1111
983
|
|
984
|
+
# Whether this submission is late.
|
985
|
+
# Read-only.
|
986
|
+
# Corresponds to the JSON property `late`
|
987
|
+
# @return [Boolean]
|
988
|
+
attr_accessor :late
|
989
|
+
alias_method :late?, :late
|
990
|
+
|
991
|
+
# Optional pending grade. If unset, no grade was set.
|
992
|
+
# This must be a non-negative integer value.
|
993
|
+
# This is only visible to and modifiable by course teachers.
|
994
|
+
# Corresponds to the JSON property `draftGrade`
|
995
|
+
# @return [Float]
|
996
|
+
attr_accessor :draft_grade
|
997
|
+
|
998
|
+
# Type of course work this submission is for.
|
999
|
+
# Read-only.
|
1000
|
+
# Corresponds to the JSON property `courseWorkType`
|
1001
|
+
# @return [String]
|
1002
|
+
attr_accessor :course_work_type
|
1003
|
+
|
1004
|
+
# Creation time of this submission.
|
1005
|
+
# This may be unset if the student has not accessed this item.
|
1006
|
+
# Read-only.
|
1007
|
+
# Corresponds to the JSON property `creationTime`
|
1008
|
+
# @return [String]
|
1009
|
+
attr_accessor :creation_time
|
1010
|
+
|
1011
|
+
# State of this submission.
|
1012
|
+
# Read-only.
|
1013
|
+
# Corresponds to the JSON property `state`
|
1014
|
+
# @return [String]
|
1015
|
+
attr_accessor :state
|
1016
|
+
|
1017
|
+
# Identifier for the student that owns this submission.
|
1018
|
+
# Read-only.
|
1019
|
+
# Corresponds to the JSON property `userId`
|
1020
|
+
# @return [String]
|
1021
|
+
attr_accessor :user_id
|
1022
|
+
|
1112
1023
|
def initialize(**args)
|
1113
1024
|
update!(**args)
|
1114
1025
|
end
|
1115
1026
|
|
1116
1027
|
# Update properties of this object
|
1117
1028
|
def update!(**args)
|
1118
|
-
@late = args[:late] if args.key?(:late)
|
1119
|
-
@draft_grade = args[:draft_grade] if args.key?(:draft_grade)
|
1120
|
-
@course_work_type = args[:course_work_type] if args.key?(:course_work_type)
|
1121
|
-
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
1122
|
-
@state = args[:state] if args.key?(:state)
|
1123
|
-
@user_id = args[:user_id] if args.key?(:user_id)
|
1124
1029
|
@course_work_id = args[:course_work_id] if args.key?(:course_work_id)
|
1125
1030
|
@course_id = args[:course_id] if args.key?(:course_id)
|
1126
1031
|
@id = args[:id] if args.key?(:id)
|
@@ -1131,24 +1036,17 @@ module Google
|
|
1131
1036
|
@short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission)
|
1132
1037
|
@update_time = args[:update_time] if args.key?(:update_time)
|
1133
1038
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
1039
|
+
@late = args[:late] if args.key?(:late)
|
1040
|
+
@draft_grade = args[:draft_grade] if args.key?(:draft_grade)
|
1041
|
+
@course_work_type = args[:course_work_type] if args.key?(:course_work_type)
|
1042
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
1043
|
+
@state = args[:state] if args.key?(:state)
|
1044
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
1134
1045
|
end
|
1135
1046
|
end
|
1136
1047
|
|
1137
|
-
#
|
1138
|
-
class
|
1139
|
-
include Google::Apis::Core::Hashable
|
1140
|
-
|
1141
|
-
def initialize(**args)
|
1142
|
-
update!(**args)
|
1143
|
-
end
|
1144
|
-
|
1145
|
-
# Update properties of this object
|
1146
|
-
def update!(**args)
|
1147
|
-
end
|
1148
|
-
end
|
1149
|
-
|
1150
|
-
# Response when listing student submissions.
|
1151
|
-
class ListStudentSubmissionsResponse
|
1048
|
+
# Response when listing course work.
|
1049
|
+
class ListCourseWorkResponse
|
1152
1050
|
include Google::Apis::Core::Hashable
|
1153
1051
|
|
1154
1052
|
# Token identifying the next page of results to return. If empty, no further
|
@@ -1157,10 +1055,10 @@ module Google
|
|
1157
1055
|
# @return [String]
|
1158
1056
|
attr_accessor :next_page_token
|
1159
1057
|
|
1160
|
-
#
|
1161
|
-
# Corresponds to the JSON property `
|
1162
|
-
# @return [Array<Google::Apis::ClassroomV1::
|
1163
|
-
attr_accessor :
|
1058
|
+
# Course work items that match the request.
|
1059
|
+
# Corresponds to the JSON property `courseWork`
|
1060
|
+
# @return [Array<Google::Apis::ClassroomV1::CourseWork>]
|
1061
|
+
attr_accessor :course_work
|
1164
1062
|
|
1165
1063
|
def initialize(**args)
|
1166
1064
|
update!(**args)
|
@@ -1169,7 +1067,7 @@ module Google
|
|
1169
1067
|
# Update properties of this object
|
1170
1068
|
def update!(**args)
|
1171
1069
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1172
|
-
@
|
1070
|
+
@course_work = args[:course_work] if args.key?(:course_work)
|
1173
1071
|
end
|
1174
1072
|
end
|
1175
1073
|
|
@@ -1194,42 +1092,10 @@ module Google
|
|
1194
1092
|
end
|
1195
1093
|
end
|
1196
1094
|
|
1197
|
-
# Response when listing course work.
|
1198
|
-
class ListCourseWorkResponse
|
1199
|
-
include Google::Apis::Core::Hashable
|
1200
|
-
|
1201
|
-
# Token identifying the next page of results to return. If empty, no further
|
1202
|
-
# results are available.
|
1203
|
-
# Corresponds to the JSON property `nextPageToken`
|
1204
|
-
# @return [String]
|
1205
|
-
attr_accessor :next_page_token
|
1206
|
-
|
1207
|
-
# Course work items that match the request.
|
1208
|
-
# Corresponds to the JSON property `courseWork`
|
1209
|
-
# @return [Array<Google::Apis::ClassroomV1::CourseWork>]
|
1210
|
-
attr_accessor :course_work
|
1211
|
-
|
1212
|
-
def initialize(**args)
|
1213
|
-
update!(**args)
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
# Update properties of this object
|
1217
|
-
def update!(**args)
|
1218
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1219
|
-
@course_work = args[:course_work] if args.key?(:course_work)
|
1220
|
-
end
|
1221
|
-
end
|
1222
|
-
|
1223
1095
|
# YouTube video item.
|
1224
1096
|
class YouTubeVideo
|
1225
1097
|
include Google::Apis::Core::Hashable
|
1226
1098
|
|
1227
|
-
# Title of the YouTube video.
|
1228
|
-
# Read-only.
|
1229
|
-
# Corresponds to the JSON property `title`
|
1230
|
-
# @return [String]
|
1231
|
-
attr_accessor :title
|
1232
|
-
|
1233
1099
|
# URL that can be used to view the YouTube video.
|
1234
1100
|
# Read-only.
|
1235
1101
|
# Corresponds to the JSON property `alternateLink`
|
@@ -1247,16 +1113,22 @@ module Google
|
|
1247
1113
|
# @return [String]
|
1248
1114
|
attr_accessor :id
|
1249
1115
|
|
1116
|
+
# Title of the YouTube video.
|
1117
|
+
# Read-only.
|
1118
|
+
# Corresponds to the JSON property `title`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :title
|
1121
|
+
|
1250
1122
|
def initialize(**args)
|
1251
1123
|
update!(**args)
|
1252
1124
|
end
|
1253
1125
|
|
1254
1126
|
# Update properties of this object
|
1255
1127
|
def update!(**args)
|
1256
|
-
@title = args[:title] if args.key?(:title)
|
1257
1128
|
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
|
1258
1129
|
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
|
1259
1130
|
@id = args[:id] if args.key?(:id)
|
1131
|
+
@title = args[:title] if args.key?(:title)
|
1260
1132
|
end
|
1261
1133
|
end
|
1262
1134
|
|
@@ -1264,63 +1136,25 @@ module Google
|
|
1264
1136
|
class ListInvitationsResponse
|
1265
1137
|
include Google::Apis::Core::Hashable
|
1266
1138
|
|
1139
|
+
# Invitations that match the list request.
|
1140
|
+
# Corresponds to the JSON property `invitations`
|
1141
|
+
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
|
1142
|
+
attr_accessor :invitations
|
1143
|
+
|
1267
1144
|
# Token identifying the next page of results to return. If empty, no further
|
1268
1145
|
# results are available.
|
1269
1146
|
# Corresponds to the JSON property `nextPageToken`
|
1270
1147
|
# @return [String]
|
1271
1148
|
attr_accessor :next_page_token
|
1272
1149
|
|
1273
|
-
# Invitations that match the list request.
|
1274
|
-
# Corresponds to the JSON property `invitations`
|
1275
|
-
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
|
1276
|
-
attr_accessor :invitations
|
1277
|
-
|
1278
1150
|
def initialize(**args)
|
1279
1151
|
update!(**args)
|
1280
1152
|
end
|
1281
1153
|
|
1282
1154
|
# Update properties of this object
|
1283
1155
|
def update!(**args)
|
1284
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1285
1156
|
@invitations = args[:invitations] if args.key?(:invitations)
|
1286
|
-
|
1287
|
-
end
|
1288
|
-
|
1289
|
-
# Attachment added to student assignment work.
|
1290
|
-
# When creating attachments, setting the `form` field is not supported.
|
1291
|
-
class Attachment
|
1292
|
-
include Google::Apis::Core::Hashable
|
1293
|
-
|
1294
|
-
# Google Forms item.
|
1295
|
-
# Corresponds to the JSON property `form`
|
1296
|
-
# @return [Google::Apis::ClassroomV1::Form]
|
1297
|
-
attr_accessor :form
|
1298
|
-
|
1299
|
-
# URL item.
|
1300
|
-
# Corresponds to the JSON property `link`
|
1301
|
-
# @return [Google::Apis::ClassroomV1::Link]
|
1302
|
-
attr_accessor :link
|
1303
|
-
|
1304
|
-
# Representation of a Google Drive file.
|
1305
|
-
# Corresponds to the JSON property `driveFile`
|
1306
|
-
# @return [Google::Apis::ClassroomV1::DriveFile]
|
1307
|
-
attr_accessor :drive_file
|
1308
|
-
|
1309
|
-
# YouTube video item.
|
1310
|
-
# Corresponds to the JSON property `youTubeVideo`
|
1311
|
-
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
1312
|
-
attr_accessor :you_tube_video
|
1313
|
-
|
1314
|
-
def initialize(**args)
|
1315
|
-
update!(**args)
|
1316
|
-
end
|
1317
|
-
|
1318
|
-
# Update properties of this object
|
1319
|
-
def update!(**args)
|
1320
|
-
@form = args[:form] if args.key?(:form)
|
1321
|
-
@link = args[:link] if args.key?(:link)
|
1322
|
-
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
1323
|
-
@you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video)
|
1157
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1324
1158
|
end
|
1325
1159
|
end
|
1326
1160
|
|
@@ -1329,16 +1163,16 @@ module Google
|
|
1329
1163
|
class GuardianInvitation
|
1330
1164
|
include Google::Apis::Core::Hashable
|
1331
1165
|
|
1332
|
-
# ID of the student (in standard format)
|
1333
|
-
# Corresponds to the JSON property `studentId`
|
1334
|
-
# @return [String]
|
1335
|
-
attr_accessor :student_id
|
1336
|
-
|
1337
1166
|
# The state that this invitation is in.
|
1338
1167
|
# Corresponds to the JSON property `state`
|
1339
1168
|
# @return [String]
|
1340
1169
|
attr_accessor :state
|
1341
1170
|
|
1171
|
+
# ID of the student (in standard format)
|
1172
|
+
# Corresponds to the JSON property `studentId`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :student_id
|
1175
|
+
|
1342
1176
|
# Email address that the invitation was sent to.
|
1343
1177
|
# This field is only visible to domain administrators.
|
1344
1178
|
# Corresponds to the JSON property `invitedEmailAddress`
|
@@ -1363,38 +1197,76 @@ module Google
|
|
1363
1197
|
|
1364
1198
|
# Update properties of this object
|
1365
1199
|
def update!(**args)
|
1366
|
-
@student_id = args[:student_id] if args.key?(:student_id)
|
1367
1200
|
@state = args[:state] if args.key?(:state)
|
1201
|
+
@student_id = args[:student_id] if args.key?(:student_id)
|
1368
1202
|
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
|
1369
1203
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
1370
1204
|
@invitation_id = args[:invitation_id] if args.key?(:invitation_id)
|
1371
1205
|
end
|
1372
1206
|
end
|
1373
1207
|
|
1208
|
+
# Attachment added to student assignment work.
|
1209
|
+
# When creating attachments, setting the `form` field is not supported.
|
1210
|
+
class Attachment
|
1211
|
+
include Google::Apis::Core::Hashable
|
1212
|
+
|
1213
|
+
# URL item.
|
1214
|
+
# Corresponds to the JSON property `link`
|
1215
|
+
# @return [Google::Apis::ClassroomV1::Link]
|
1216
|
+
attr_accessor :link
|
1217
|
+
|
1218
|
+
# YouTube video item.
|
1219
|
+
# Corresponds to the JSON property `youTubeVideo`
|
1220
|
+
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
1221
|
+
attr_accessor :you_tube_video
|
1222
|
+
|
1223
|
+
# Representation of a Google Drive file.
|
1224
|
+
# Corresponds to the JSON property `driveFile`
|
1225
|
+
# @return [Google::Apis::ClassroomV1::DriveFile]
|
1226
|
+
attr_accessor :drive_file
|
1227
|
+
|
1228
|
+
# Google Forms item.
|
1229
|
+
# Corresponds to the JSON property `form`
|
1230
|
+
# @return [Google::Apis::ClassroomV1::Form]
|
1231
|
+
attr_accessor :form
|
1232
|
+
|
1233
|
+
def initialize(**args)
|
1234
|
+
update!(**args)
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Update properties of this object
|
1238
|
+
def update!(**args)
|
1239
|
+
@link = args[:link] if args.key?(:link)
|
1240
|
+
@you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video)
|
1241
|
+
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
1242
|
+
@form = args[:form] if args.key?(:form)
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
|
1374
1246
|
# A set of materials that appears on the "About" page of the course.
|
1375
1247
|
# These materials might include a syllabus, schedule, or other background
|
1376
1248
|
# information relating to the course as a whole.
|
1377
1249
|
class CourseMaterialSet
|
1378
1250
|
include Google::Apis::Core::Hashable
|
1379
1251
|
|
1380
|
-
# Title for this set.
|
1381
|
-
# Corresponds to the JSON property `title`
|
1382
|
-
# @return [String]
|
1383
|
-
attr_accessor :title
|
1384
|
-
|
1385
1252
|
# Materials attached to this set.
|
1386
1253
|
# Corresponds to the JSON property `materials`
|
1387
1254
|
# @return [Array<Google::Apis::ClassroomV1::CourseMaterial>]
|
1388
1255
|
attr_accessor :materials
|
1389
1256
|
|
1257
|
+
# Title for this set.
|
1258
|
+
# Corresponds to the JSON property `title`
|
1259
|
+
# @return [String]
|
1260
|
+
attr_accessor :title
|
1261
|
+
|
1390
1262
|
def initialize(**args)
|
1391
1263
|
update!(**args)
|
1392
1264
|
end
|
1393
1265
|
|
1394
1266
|
# Update properties of this object
|
1395
1267
|
def update!(**args)
|
1396
|
-
@title = args[:title] if args.key?(:title)
|
1397
1268
|
@materials = args[:materials] if args.key?(:materials)
|
1269
|
+
@title = args[:title] if args.key?(:title)
|
1398
1270
|
end
|
1399
1271
|
end
|
1400
1272
|
|
@@ -1404,17 +1276,6 @@ module Google
|
|
1404
1276
|
class TimeOfDay
|
1405
1277
|
include Google::Apis::Core::Hashable
|
1406
1278
|
|
1407
|
-
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
1408
|
-
# to allow the value "24:00:00" for scenarios like business closing time.
|
1409
|
-
# Corresponds to the JSON property `hours`
|
1410
|
-
# @return [Fixnum]
|
1411
|
-
attr_accessor :hours
|
1412
|
-
|
1413
|
-
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
1414
|
-
# Corresponds to the JSON property `nanos`
|
1415
|
-
# @return [Fixnum]
|
1416
|
-
attr_accessor :nanos
|
1417
|
-
|
1418
1279
|
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
1419
1280
|
# allow the value 60 if it allows leap-seconds.
|
1420
1281
|
# Corresponds to the JSON property `seconds`
|
@@ -1426,16 +1287,27 @@ module Google
|
|
1426
1287
|
# @return [Fixnum]
|
1427
1288
|
attr_accessor :minutes
|
1428
1289
|
|
1290
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
1291
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
1292
|
+
# Corresponds to the JSON property `hours`
|
1293
|
+
# @return [Fixnum]
|
1294
|
+
attr_accessor :hours
|
1295
|
+
|
1296
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
1297
|
+
# Corresponds to the JSON property `nanos`
|
1298
|
+
# @return [Fixnum]
|
1299
|
+
attr_accessor :nanos
|
1300
|
+
|
1429
1301
|
def initialize(**args)
|
1430
1302
|
update!(**args)
|
1431
1303
|
end
|
1432
1304
|
|
1433
1305
|
# Update properties of this object
|
1434
1306
|
def update!(**args)
|
1435
|
-
@hours = args[:hours] if args.key?(:hours)
|
1436
|
-
@nanos = args[:nanos] if args.key?(:nanos)
|
1437
1307
|
@seconds = args[:seconds] if args.key?(:seconds)
|
1438
1308
|
@minutes = args[:minutes] if args.key?(:minutes)
|
1309
|
+
@hours = args[:hours] if args.key?(:hours)
|
1310
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
1439
1311
|
end
|
1440
1312
|
end
|
1441
1313
|
|
@@ -1443,25 +1315,25 @@ module Google
|
|
1443
1315
|
class ListCoursesResponse
|
1444
1316
|
include Google::Apis::Core::Hashable
|
1445
1317
|
|
1446
|
-
# Courses that match the list request.
|
1447
|
-
# Corresponds to the JSON property `courses`
|
1448
|
-
# @return [Array<Google::Apis::ClassroomV1::Course>]
|
1449
|
-
attr_accessor :courses
|
1450
|
-
|
1451
1318
|
# Token identifying the next page of results to return. If empty, no further
|
1452
1319
|
# results are available.
|
1453
1320
|
# Corresponds to the JSON property `nextPageToken`
|
1454
1321
|
# @return [String]
|
1455
1322
|
attr_accessor :next_page_token
|
1456
1323
|
|
1324
|
+
# Courses that match the list request.
|
1325
|
+
# Corresponds to the JSON property `courses`
|
1326
|
+
# @return [Array<Google::Apis::ClassroomV1::Course>]
|
1327
|
+
attr_accessor :courses
|
1328
|
+
|
1457
1329
|
def initialize(**args)
|
1458
1330
|
update!(**args)
|
1459
1331
|
end
|
1460
1332
|
|
1461
1333
|
# Update properties of this object
|
1462
1334
|
def update!(**args)
|
1463
|
-
@courses = args[:courses] if args.key?(:courses)
|
1464
1335
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1336
|
+
@courses = args[:courses] if args.key?(:courses)
|
1465
1337
|
end
|
1466
1338
|
end
|
1467
1339
|
|
@@ -1511,25 +1383,25 @@ module Google
|
|
1511
1383
|
class ListTeachersResponse
|
1512
1384
|
include Google::Apis::Core::Hashable
|
1513
1385
|
|
1386
|
+
# Teachers who match the list request.
|
1387
|
+
# Corresponds to the JSON property `teachers`
|
1388
|
+
# @return [Array<Google::Apis::ClassroomV1::Teacher>]
|
1389
|
+
attr_accessor :teachers
|
1390
|
+
|
1514
1391
|
# Token identifying the next page of results to return. If empty, no further
|
1515
1392
|
# results are available.
|
1516
1393
|
# Corresponds to the JSON property `nextPageToken`
|
1517
1394
|
# @return [String]
|
1518
1395
|
attr_accessor :next_page_token
|
1519
1396
|
|
1520
|
-
# Teachers who match the list request.
|
1521
|
-
# Corresponds to the JSON property `teachers`
|
1522
|
-
# @return [Array<Google::Apis::ClassroomV1::Teacher>]
|
1523
|
-
attr_accessor :teachers
|
1524
|
-
|
1525
1397
|
def initialize(**args)
|
1526
1398
|
update!(**args)
|
1527
1399
|
end
|
1528
1400
|
|
1529
1401
|
# Update properties of this object
|
1530
1402
|
def update!(**args)
|
1531
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1532
1403
|
@teachers = args[:teachers] if args.key?(:teachers)
|
1404
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1533
1405
|
end
|
1534
1406
|
end
|
1535
1407
|
|
@@ -1537,12 +1409,6 @@ module Google
|
|
1537
1409
|
class Link
|
1538
1410
|
include Google::Apis::Core::Hashable
|
1539
1411
|
|
1540
|
-
# Title of the target of the URL.
|
1541
|
-
# Read-only.
|
1542
|
-
# Corresponds to the JSON property `title`
|
1543
|
-
# @return [String]
|
1544
|
-
attr_accessor :title
|
1545
|
-
|
1546
1412
|
# URL of a thumbnail image of the target URL.
|
1547
1413
|
# Read-only.
|
1548
1414
|
# Corresponds to the JSON property `thumbnailUrl`
|
@@ -1555,15 +1421,21 @@ module Google
|
|
1555
1421
|
# @return [String]
|
1556
1422
|
attr_accessor :url
|
1557
1423
|
|
1424
|
+
# Title of the target of the URL.
|
1425
|
+
# Read-only.
|
1426
|
+
# Corresponds to the JSON property `title`
|
1427
|
+
# @return [String]
|
1428
|
+
attr_accessor :title
|
1429
|
+
|
1558
1430
|
def initialize(**args)
|
1559
1431
|
update!(**args)
|
1560
1432
|
end
|
1561
1433
|
|
1562
1434
|
# Update properties of this object
|
1563
1435
|
def update!(**args)
|
1564
|
-
@title = args[:title] if args.key?(:title)
|
1565
1436
|
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
|
1566
1437
|
@url = args[:url] if args.key?(:url)
|
1438
|
+
@title = args[:title] if args.key?(:title)
|
1567
1439
|
end
|
1568
1440
|
end
|
1569
1441
|
|
@@ -1571,17 +1443,53 @@ module Google
|
|
1571
1443
|
class ListGuardiansResponse
|
1572
1444
|
include Google::Apis::Core::Hashable
|
1573
1445
|
|
1446
|
+
# Token identifying the next page of results to return. If empty, no further
|
1447
|
+
# results are available.
|
1448
|
+
# Corresponds to the JSON property `nextPageToken`
|
1449
|
+
# @return [String]
|
1450
|
+
attr_accessor :next_page_token
|
1451
|
+
|
1574
1452
|
# Guardians on this page of results that met the criteria specified in
|
1575
1453
|
# the request.
|
1576
1454
|
# Corresponds to the JSON property `guardians`
|
1577
1455
|
# @return [Array<Google::Apis::ClassroomV1::Guardian>]
|
1578
1456
|
attr_accessor :guardians
|
1579
1457
|
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1458
|
+
def initialize(**args)
|
1459
|
+
update!(**args)
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# Update properties of this object
|
1463
|
+
def update!(**args)
|
1464
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1465
|
+
@guardians = args[:guardians] if args.key?(:guardians)
|
1466
|
+
end
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Alternative identifier for a course.
|
1470
|
+
# An alias uniquely identifies a course. It must be unique within one of the
|
1471
|
+
# following scopes:
|
1472
|
+
# * domain: A domain-scoped alias is visible to all users within the alias
|
1473
|
+
# creator's domain and can be created only by a domain admin. A domain-scoped
|
1474
|
+
# alias is often used when a course has an identifier external to Classroom.
|
1475
|
+
# * project: A project-scoped alias is visible to any request from an
|
1476
|
+
# application using the Developer Console project ID that created the alias
|
1477
|
+
# and can be created by any project. A project-scoped alias is often used when
|
1478
|
+
# an application has alternative identifiers. A random value can also be used
|
1479
|
+
# to avoid duplicate courses in the event of transmission failures, as retrying
|
1480
|
+
# a request will return `ALREADY_EXISTS` if a previous one has succeeded.
|
1481
|
+
class CourseAlias
|
1482
|
+
include Google::Apis::Core::Hashable
|
1483
|
+
|
1484
|
+
# Alias string. The format of the string indicates the desired alias scoping.
|
1485
|
+
# * `d:<name>` indicates a domain-scoped alias.
|
1486
|
+
# Example: `d:math_101`
|
1487
|
+
# * `p:<name>` indicates a project-scoped alias.
|
1488
|
+
# Example: `p:abc123`
|
1489
|
+
# This field has a maximum length of 256 characters.
|
1490
|
+
# Corresponds to the JSON property `alias`
|
1583
1491
|
# @return [String]
|
1584
|
-
attr_accessor :
|
1492
|
+
attr_accessor :alias
|
1585
1493
|
|
1586
1494
|
def initialize(**args)
|
1587
1495
|
update!(**args)
|
@@ -1589,8 +1497,7 @@ module Google
|
|
1589
1497
|
|
1590
1498
|
# Update properties of this object
|
1591
1499
|
def update!(**args)
|
1592
|
-
@
|
1593
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1500
|
+
@alias = args[:alias] if args.key?(:alias)
|
1594
1501
|
end
|
1595
1502
|
end
|
1596
1503
|
|
@@ -1624,52 +1531,75 @@ module Google
|
|
1624
1531
|
class ListGuardianInvitationsResponse
|
1625
1532
|
include Google::Apis::Core::Hashable
|
1626
1533
|
|
1534
|
+
# Guardian invitations that matched the list request.
|
1535
|
+
# Corresponds to the JSON property `guardianInvitations`
|
1536
|
+
# @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
|
1537
|
+
attr_accessor :guardian_invitations
|
1538
|
+
|
1627
1539
|
# Token identifying the next page of results to return. If empty, no further
|
1628
1540
|
# results are available.
|
1629
1541
|
# Corresponds to the JSON property `nextPageToken`
|
1630
1542
|
# @return [String]
|
1631
1543
|
attr_accessor :next_page_token
|
1632
1544
|
|
1633
|
-
# Guardian invitations that matched the list request.
|
1634
|
-
# Corresponds to the JSON property `guardianInvitations`
|
1635
|
-
# @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
|
1636
|
-
attr_accessor :guardian_invitations
|
1637
|
-
|
1638
1545
|
def initialize(**args)
|
1639
1546
|
update!(**args)
|
1640
1547
|
end
|
1641
1548
|
|
1642
1549
|
# Update properties of this object
|
1643
1550
|
def update!(**args)
|
1644
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1645
1551
|
@guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations)
|
1552
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1646
1553
|
end
|
1647
1554
|
end
|
1648
1555
|
|
1649
|
-
#
|
1650
|
-
#
|
1651
|
-
#
|
1652
|
-
#
|
1653
|
-
#
|
1654
|
-
#
|
1655
|
-
#
|
1656
|
-
|
1657
|
-
# and can be created by any project. A project-scoped alias is often used when
|
1658
|
-
# an application has alternative identifiers. A random value can also be used
|
1659
|
-
# to avoid duplicate courses in the event of transmission failures, as retrying
|
1660
|
-
# a request will return `ALREADY_EXISTS` if a previous one has succeeded.
|
1661
|
-
class CourseAlias
|
1556
|
+
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
1557
|
+
# time zone are either specified elsewhere or are not significant. The date
|
1558
|
+
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
1559
|
+
# represent a year and month where the day is not significant, e.g. credit card
|
1560
|
+
# expiration date. The year may be 0 to represent a month and day independent
|
1561
|
+
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
1562
|
+
# and `google.protobuf.Timestamp`.
|
1563
|
+
class Date
|
1662
1564
|
include Google::Apis::Core::Hashable
|
1663
1565
|
|
1664
|
-
#
|
1665
|
-
#
|
1666
|
-
#
|
1667
|
-
#
|
1668
|
-
|
1669
|
-
|
1670
|
-
#
|
1566
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
1567
|
+
# if specifying a year/month where the day is not significant.
|
1568
|
+
# Corresponds to the JSON property `day`
|
1569
|
+
# @return [Fixnum]
|
1570
|
+
attr_accessor :day
|
1571
|
+
|
1572
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
1573
|
+
# a year.
|
1574
|
+
# Corresponds to the JSON property `year`
|
1575
|
+
# @return [Fixnum]
|
1576
|
+
attr_accessor :year
|
1577
|
+
|
1578
|
+
# Month of year. Must be from 1 to 12.
|
1579
|
+
# Corresponds to the JSON property `month`
|
1580
|
+
# @return [Fixnum]
|
1581
|
+
attr_accessor :month
|
1582
|
+
|
1583
|
+
def initialize(**args)
|
1584
|
+
update!(**args)
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
# Update properties of this object
|
1588
|
+
def update!(**args)
|
1589
|
+
@day = args[:day] if args.key?(:day)
|
1590
|
+
@year = args[:year] if args.key?(:year)
|
1591
|
+
@month = args[:month] if args.key?(:month)
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# Student work for a multiple-choice question.
|
1596
|
+
class MultipleChoiceSubmission
|
1597
|
+
include Google::Apis::Core::Hashable
|
1598
|
+
|
1599
|
+
# Student's select choice.
|
1600
|
+
# Corresponds to the JSON property `answer`
|
1671
1601
|
# @return [String]
|
1672
|
-
attr_accessor :
|
1602
|
+
attr_accessor :answer
|
1673
1603
|
|
1674
1604
|
def initialize(**args)
|
1675
1605
|
update!(**args)
|
@@ -1677,7 +1607,79 @@ module Google
|
|
1677
1607
|
|
1678
1608
|
# Update properties of this object
|
1679
1609
|
def update!(**args)
|
1680
|
-
@
|
1610
|
+
@answer = args[:answer] if args.key?(:answer)
|
1611
|
+
end
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# A material attached to a course as part of a material set.
|
1615
|
+
class CourseMaterial
|
1616
|
+
include Google::Apis::Core::Hashable
|
1617
|
+
|
1618
|
+
# YouTube video item.
|
1619
|
+
# Corresponds to the JSON property `youTubeVideo`
|
1620
|
+
# @return [Google::Apis::ClassroomV1::YouTubeVideo]
|
1621
|
+
attr_accessor :you_tube_video
|
1622
|
+
|
1623
|
+
# Representation of a Google Drive file.
|
1624
|
+
# Corresponds to the JSON property `driveFile`
|
1625
|
+
# @return [Google::Apis::ClassroomV1::DriveFile]
|
1626
|
+
attr_accessor :drive_file
|
1627
|
+
|
1628
|
+
# Google Forms item.
|
1629
|
+
# Corresponds to the JSON property `form`
|
1630
|
+
# @return [Google::Apis::ClassroomV1::Form]
|
1631
|
+
attr_accessor :form
|
1632
|
+
|
1633
|
+
# URL item.
|
1634
|
+
# Corresponds to the JSON property `link`
|
1635
|
+
# @return [Google::Apis::ClassroomV1::Link]
|
1636
|
+
attr_accessor :link
|
1637
|
+
|
1638
|
+
def initialize(**args)
|
1639
|
+
update!(**args)
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
# Update properties of this object
|
1643
|
+
def update!(**args)
|
1644
|
+
@you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video)
|
1645
|
+
@drive_file = args[:drive_file] if args.key?(:drive_file)
|
1646
|
+
@form = args[:form] if args.key?(:form)
|
1647
|
+
@link = args[:link] if args.key?(:link)
|
1648
|
+
end
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
# Details of the user's name.
|
1652
|
+
class Name
|
1653
|
+
include Google::Apis::Core::Hashable
|
1654
|
+
|
1655
|
+
# The user's last name.
|
1656
|
+
# Read-only.
|
1657
|
+
# Corresponds to the JSON property `familyName`
|
1658
|
+
# @return [String]
|
1659
|
+
attr_accessor :family_name
|
1660
|
+
|
1661
|
+
# The user's first name.
|
1662
|
+
# Read-only.
|
1663
|
+
# Corresponds to the JSON property `givenName`
|
1664
|
+
# @return [String]
|
1665
|
+
attr_accessor :given_name
|
1666
|
+
|
1667
|
+
# The user's full name formed by concatenating the first and last name
|
1668
|
+
# values.
|
1669
|
+
# Read-only.
|
1670
|
+
# Corresponds to the JSON property `fullName`
|
1671
|
+
# @return [String]
|
1672
|
+
attr_accessor :full_name
|
1673
|
+
|
1674
|
+
def initialize(**args)
|
1675
|
+
update!(**args)
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
# Update properties of this object
|
1679
|
+
def update!(**args)
|
1680
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
1681
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
1682
|
+
@full_name = args[:full_name] if args.key?(:full_name)
|
1681
1683
|
end
|
1682
1684
|
end
|
1683
1685
|
end
|