google-api-client 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/api_names.yaml +32317 -34465
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
- data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
- data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +825 -817
- data/generated/google/apis/appengine_v1/representations.rb +185 -184
- data/generated/google/apis/appengine_v1/service.rb +220 -216
- 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 +9 -7
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2/service.rb +8 -8
- data/generated/google/apis/classroom_v1.rb +24 -24
- data/generated/google/apis/classroom_v1/classes.rb +381 -381
- data/generated/google/apis/classroom_v1/representations.rb +108 -108
- data/generated/google/apis/classroom_v1/service.rb +503 -503
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
- data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
- data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
- data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
- data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
- 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 +3 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
- data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
- data/generated/google/apis/cloudkms_v1/service.rb +224 -224
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -15
- data/generated/google/apis/compute_beta/representations.rb +30 -14
- data/generated/google/apis/compute_beta/service.rb +52 -52
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +223 -10
- data/generated/google/apis/compute_v1/representations.rb +85 -16
- data/generated/google/apis/compute_v1/service.rb +327 -51
- data/generated/google/apis/container_v1/classes.rb +267 -267
- data/generated/google/apis/container_v1/representations.rb +61 -61
- data/generated/google/apis/container_v1/service.rb +123 -123
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +71 -71
- data/generated/google/apis/content_v2/representations.rb +105 -105
- data/generated/google/apis/content_v2/service.rb +120 -120
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
- data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
- data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
- data/generated/google/apis/dataproc_v1/representations.rb +147 -147
- data/generated/google/apis/dataproc_v1/service.rb +309 -305
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +818 -818
- data/generated/google/apis/datastore_v1/representations.rb +151 -151
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.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 +188 -188
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
- data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
- data/generated/google/apis/firebaserules_v1/service.rb +89 -89
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
- data/generated/google/apis/genomics_v1/representations.rb +298 -298
- data/generated/google/apis/genomics_v1/service.rb +1160 -1160
- data/generated/google/apis/groupssettings_v1/service.rb +0 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +235 -235
- data/generated/google/apis/iam_v1/representations.rb +72 -72
- data/generated/google/apis/iam_v1/service.rb +189 -189
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1/classes.rb +220 -220
- data/generated/google/apis/language_v1/representations.rb +81 -81
- data/generated/google/apis/language_v1/service.rb +43 -43
- data/generated/google/apis/language_v1beta1/classes.rb +448 -448
- data/generated/google/apis/language_v1beta1/representations.rb +106 -106
- data/generated/google/apis/language_v1beta1/service.rb +31 -31
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +737 -737
- data/generated/google/apis/logging_v2/representations.rb +120 -120
- data/generated/google/apis/logging_v2/service.rb +479 -479
- data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
- data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
- data/generated/google/apis/logging_v2beta1/service.rb +349 -349
- data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
- data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1285 -1205
- data/generated/google/apis/ml_v1/representations.rb +204 -174
- data/generated/google/apis/ml_v1/service.rb +150 -145
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +880 -880
- data/generated/google/apis/monitoring_v3/representations.rb +154 -154
- data/generated/google/apis/monitoring_v3/service.rb +299 -299
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +524 -509
- data/generated/google/apis/partners_v2/representations.rb +115 -111
- data/generated/google/apis/partners_v2/service.rb +287 -287
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +1150 -1150
- data/generated/google/apis/people_v1/representations.rb +258 -258
- data/generated/google/apis/people_v1/service.rb +7 -7
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
- data/generated/google/apis/pubsub_v1/classes.rb +228 -228
- data/generated/google/apis/pubsub_v1/representations.rb +69 -69
- data/generated/google/apis/pubsub_v1/service.rb +182 -182
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
- data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +94 -94
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
- data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
- data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
- data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
- data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
- data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
- data/generated/google/apis/sheets_v4/representations.rb +324 -324
- data/generated/google/apis/sheets_v4/service.rb +49 -49
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2907 -2907
- data/generated/google/apis/slides_v1/representations.rb +695 -695
- data/generated/google/apis/slides_v1/service.rb +40 -40
- data/generated/google/apis/sourcerepo_v1.rb +7 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
- data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
- data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
- data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
- data/generated/google/apis/spanner_v1/representations.rb +205 -205
- data/generated/google/apis/spanner_v1/service.rb +525 -525
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
- data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
- data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
- data/generated/google/apis/storage_v1/classes.rb +6 -6
- data/generated/google/apis/storage_v1/representations.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
- data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +46 -46
- data/generated/google/apis/translate_v2/representations.rb +22 -22
- data/generated/google/apis/translate_v2/service.rb +81 -74
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +166 -166
- data/generated/google/apis/vision_v1/service.rb +6 -6
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/core/base_service.rb +6 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -94
- data/dl.rb +0 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
- data/generated/google/apis/appengine_v1beta4.rb +0 -35
- data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
- data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
- data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
- data/generated/google/apis/appengine_v1beta5.rb +0 -40
- data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
- data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
- data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
- data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
- data/generated/google/apis/classroom_v1beta1.rb +0 -49
- data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
- data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
- data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
- data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
- data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
- data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
- data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
- data/generated/google/apis/container_v1beta1.rb +0 -35
- data/generated/google/apis/container_v1beta1/classes.rb +0 -466
- data/generated/google/apis/container_v1beta1/representations.rb +0 -177
- data/generated/google/apis/container_v1beta1/service.rb +0 -394
- data/generated/google/apis/coordinate_v1.rb +0 -37
- data/generated/google/apis/coordinate_v1/classes.rb +0 -669
- data/generated/google/apis/coordinate_v1/representations.rb +0 -321
- data/generated/google/apis/coordinate_v1/service.rb +0 -678
- data/generated/google/apis/datastore_v1beta2.rb +0 -40
- data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
- data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
- data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
- data/generated/google/apis/datastore_v1beta3.rb +0 -38
- data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
- data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
- data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
- data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
- data/generated/google/apis/dfareporting_v2_1.rb +0 -37
- data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
- data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
- data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
- data/generated/google/apis/dfareporting_v2_3.rb +0 -37
- data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
- data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
- data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
- data/generated/google/apis/dfareporting_v2_5.rb +0 -40
- data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
- data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
- data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
- data/generated/google/apis/dfareporting_v2_6.rb +0 -40
- data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
- data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
- data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
- data/generated/google/apis/gan_v1beta1.rb +0 -31
- data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
- data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
- data/generated/google/apis/gan_v1beta1/service.rb +0 -682
- data/generated/google/apis/genomics_v1beta2.rb +0 -46
- data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
- data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
- data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
- data/generated/google/apis/logging_v1beta3.rb +0 -47
- data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
- data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
- data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
- data/generated/google/apis/manager_v1beta2.rb +0 -53
- data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
- data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
- data/generated/google/apis/manager_v1beta2/service.rb +0 -372
- data/generated/google/apis/pubsub_v1beta2.rb +0 -37
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
- data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
- data/generated/google/apis/tracing_v1.rb +0 -40
- data/generated/google/apis/tracing_v1/classes.rb +0 -664
- data/generated/google/apis/tracing_v1/representations.rb +0 -279
- data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,6 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ClassroomV1
|
24
24
|
|
25
|
+
class Teacher
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ReclaimStudentSubmissionRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class AssignmentSubmission
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Material
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
25
49
|
class CourseWork
|
26
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
51
|
|
@@ -76,25 +100,25 @@ module Google
|
|
76
100
|
include Google::Apis::Core::JsonObjectSupport
|
77
101
|
end
|
78
102
|
|
79
|
-
class
|
103
|
+
class TurnInStudentSubmissionRequest
|
80
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
105
|
|
82
106
|
include Google::Apis::Core::JsonObjectSupport
|
83
107
|
end
|
84
108
|
|
85
|
-
class
|
109
|
+
class ListStudentSubmissionsResponse
|
86
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
111
|
|
88
112
|
include Google::Apis::Core::JsonObjectSupport
|
89
113
|
end
|
90
114
|
|
91
|
-
class
|
115
|
+
class ListCourseWorkResponse
|
92
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
117
|
|
94
118
|
include Google::Apis::Core::JsonObjectSupport
|
95
119
|
end
|
96
120
|
|
97
|
-
class
|
121
|
+
class ModifyAttachmentsRequest
|
98
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
123
|
|
100
124
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -112,13 +136,13 @@ module Google
|
|
112
136
|
include Google::Apis::Core::JsonObjectSupport
|
113
137
|
end
|
114
138
|
|
115
|
-
class
|
139
|
+
class Attachment
|
116
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
141
|
|
118
142
|
include Google::Apis::Core::JsonObjectSupport
|
119
143
|
end
|
120
144
|
|
121
|
-
class
|
145
|
+
class GuardianInvitation
|
122
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
147
|
|
124
148
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -196,13 +220,13 @@ module Google
|
|
196
220
|
include Google::Apis::Core::JsonObjectSupport
|
197
221
|
end
|
198
222
|
|
199
|
-
class
|
223
|
+
class Name
|
200
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
225
|
|
202
226
|
include Google::Apis::Core::JsonObjectSupport
|
203
227
|
end
|
204
228
|
|
205
|
-
class
|
229
|
+
class CourseMaterial
|
206
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
231
|
|
208
232
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -257,32 +281,51 @@ module Google
|
|
257
281
|
end
|
258
282
|
|
259
283
|
class Teacher
|
260
|
-
|
284
|
+
# @private
|
285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
+
property :user_id, as: 'userId'
|
287
|
+
property :course_id, as: 'courseId'
|
288
|
+
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
|
261
289
|
|
262
|
-
|
290
|
+
end
|
263
291
|
end
|
264
292
|
|
265
293
|
class ReclaimStudentSubmissionRequest
|
266
|
-
|
267
|
-
|
268
|
-
|
294
|
+
# @private
|
295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
296
|
+
end
|
269
297
|
end
|
270
298
|
|
271
299
|
class AssignmentSubmission
|
272
|
-
|
300
|
+
# @private
|
301
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
collection :attachments, as: 'attachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
|
273
303
|
|
274
|
-
|
304
|
+
end
|
275
305
|
end
|
276
306
|
|
277
307
|
class Material
|
278
|
-
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
|
279
311
|
|
280
|
-
|
312
|
+
property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
|
313
|
+
|
314
|
+
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation
|
315
|
+
|
316
|
+
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
|
317
|
+
|
318
|
+
end
|
281
319
|
end
|
282
320
|
|
283
321
|
class CourseWork
|
284
322
|
# @private
|
285
323
|
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
|
325
|
+
|
326
|
+
property :work_type, as: 'workType'
|
327
|
+
property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation
|
328
|
+
|
286
329
|
property :description, as: 'description'
|
287
330
|
property :creation_time, as: 'creationTime'
|
288
331
|
property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation
|
@@ -294,17 +337,12 @@ module Google
|
|
294
337
|
property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
|
295
338
|
|
296
339
|
property :title, as: 'title'
|
340
|
+
property :associated_with_developer, as: 'associatedWithDeveloper'
|
297
341
|
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
|
298
342
|
|
299
|
-
property :associated_with_developer, as: 'associatedWithDeveloper'
|
300
343
|
property :update_time, as: 'updateTime'
|
301
344
|
property :alternate_link, as: 'alternateLink'
|
302
345
|
property :max_points, as: 'maxPoints'
|
303
|
-
property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation
|
304
|
-
|
305
|
-
property :work_type, as: 'workType'
|
306
|
-
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
|
307
|
-
|
308
346
|
end
|
309
347
|
end
|
310
348
|
|
@@ -366,9 +404,9 @@ module Google
|
|
366
404
|
class DriveFolder
|
367
405
|
# @private
|
368
406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
407
|
+
property :id, as: 'id'
|
369
408
|
property :title, as: 'title'
|
370
409
|
property :alternate_link, as: 'alternateLink'
|
371
|
-
property :id, as: 'id'
|
372
410
|
end
|
373
411
|
end
|
374
412
|
|
@@ -382,7 +420,6 @@ module Google
|
|
382
420
|
class StudentSubmission
|
383
421
|
# @private
|
384
422
|
class Representation < Google::Apis::Core::JsonRepresentation
|
385
|
-
property :assigned_grade, as: 'assignedGrade'
|
386
423
|
property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation
|
387
424
|
|
388
425
|
property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation
|
@@ -392,8 +429,8 @@ module Google
|
|
392
429
|
|
393
430
|
property :update_time, as: 'updateTime'
|
394
431
|
property :alternate_link, as: 'alternateLink'
|
395
|
-
property :late, as: 'late'
|
396
432
|
property :draft_grade, as: 'draftGrade'
|
433
|
+
property :late, as: 'late'
|
397
434
|
property :course_work_type, as: 'courseWorkType'
|
398
435
|
property :creation_time, as: 'creationTime'
|
399
436
|
property :state, as: 'state'
|
@@ -401,37 +438,38 @@ module Google
|
|
401
438
|
property :course_work_id, as: 'courseWorkId'
|
402
439
|
property :course_id, as: 'courseId'
|
403
440
|
property :id, as: 'id'
|
441
|
+
property :assigned_grade, as: 'assignedGrade'
|
404
442
|
end
|
405
443
|
end
|
406
444
|
|
407
|
-
class
|
445
|
+
class TurnInStudentSubmissionRequest
|
408
446
|
# @private
|
409
447
|
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
-
property :next_page_token, as: 'nextPageToken'
|
411
|
-
collection :student_submissions, as: 'studentSubmissions', class: Google::Apis::ClassroomV1::StudentSubmission, decorator: Google::Apis::ClassroomV1::StudentSubmission::Representation
|
412
|
-
|
413
448
|
end
|
414
449
|
end
|
415
450
|
|
416
|
-
class
|
451
|
+
class ListStudentSubmissionsResponse
|
417
452
|
# @private
|
418
453
|
class Representation < Google::Apis::Core::JsonRepresentation
|
454
|
+
property :next_page_token, as: 'nextPageToken'
|
455
|
+
collection :student_submissions, as: 'studentSubmissions', class: Google::Apis::ClassroomV1::StudentSubmission, decorator: Google::Apis::ClassroomV1::StudentSubmission::Representation
|
456
|
+
|
419
457
|
end
|
420
458
|
end
|
421
459
|
|
422
|
-
class
|
460
|
+
class ListCourseWorkResponse
|
423
461
|
# @private
|
424
462
|
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
-
|
463
|
+
property :next_page_token, as: 'nextPageToken'
|
464
|
+
collection :course_work, as: 'courseWork', class: Google::Apis::ClassroomV1::CourseWork, decorator: Google::Apis::ClassroomV1::CourseWork::Representation
|
426
465
|
|
427
466
|
end
|
428
467
|
end
|
429
468
|
|
430
|
-
class
|
469
|
+
class ModifyAttachmentsRequest
|
431
470
|
# @private
|
432
471
|
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
-
|
434
|
-
collection :course_work, as: 'courseWork', class: Google::Apis::ClassroomV1::CourseWork, decorator: Google::Apis::ClassroomV1::CourseWork::Representation
|
472
|
+
collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
|
435
473
|
|
436
474
|
end
|
437
475
|
end
|
@@ -439,10 +477,10 @@ module Google
|
|
439
477
|
class YouTubeVideo
|
440
478
|
# @private
|
441
479
|
class Representation < Google::Apis::Core::JsonRepresentation
|
442
|
-
property :thumbnail_url, as: 'thumbnailUrl'
|
443
480
|
property :id, as: 'id'
|
444
481
|
property :title, as: 'title'
|
445
482
|
property :alternate_link, as: 'alternateLink'
|
483
|
+
property :thumbnail_url, as: 'thumbnailUrl'
|
446
484
|
end
|
447
485
|
end
|
448
486
|
|
@@ -455,17 +493,6 @@ module Google
|
|
455
493
|
end
|
456
494
|
end
|
457
495
|
|
458
|
-
class GuardianInvitation
|
459
|
-
# @private
|
460
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
-
property :student_id, as: 'studentId'
|
462
|
-
property :state, as: 'state'
|
463
|
-
property :invited_email_address, as: 'invitedEmailAddress'
|
464
|
-
property :creation_time, as: 'creationTime'
|
465
|
-
property :invitation_id, as: 'invitationId'
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
496
|
class Attachment
|
470
497
|
# @private
|
471
498
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -480,6 +507,17 @@ module Google
|
|
480
507
|
end
|
481
508
|
end
|
482
509
|
|
510
|
+
class GuardianInvitation
|
511
|
+
# @private
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
513
|
+
property :creation_time, as: 'creationTime'
|
514
|
+
property :invitation_id, as: 'invitationId'
|
515
|
+
property :student_id, as: 'studentId'
|
516
|
+
property :state, as: 'state'
|
517
|
+
property :invited_email_address, as: 'invitedEmailAddress'
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
483
521
|
class CourseMaterialSet
|
484
522
|
# @private
|
485
523
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -511,10 +549,10 @@ module Google
|
|
511
549
|
class Form
|
512
550
|
# @private
|
513
551
|
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
-
property :title, as: 'title'
|
515
552
|
property :thumbnail_url, as: 'thumbnailUrl'
|
516
553
|
property :response_url, as: 'responseUrl'
|
517
554
|
property :form_url, as: 'formUrl'
|
555
|
+
property :title, as: 'title'
|
518
556
|
end
|
519
557
|
end
|
520
558
|
|
@@ -530,9 +568,9 @@ module Google
|
|
530
568
|
class Link
|
531
569
|
# @private
|
532
570
|
class Representation < Google::Apis::Core::JsonRepresentation
|
571
|
+
property :thumbnail_url, as: 'thumbnailUrl'
|
533
572
|
property :url, as: 'url'
|
534
573
|
property :title, as: 'title'
|
535
|
-
property :thumbnail_url, as: 'thumbnailUrl'
|
536
574
|
end
|
537
575
|
end
|
538
576
|
|
@@ -564,9 +602,9 @@ module Google
|
|
564
602
|
class ListGuardianInvitationsResponse
|
565
603
|
# @private
|
566
604
|
class Representation < Google::Apis::Core::JsonRepresentation
|
567
|
-
property :next_page_token, as: 'nextPageToken'
|
568
605
|
collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
569
606
|
|
607
|
+
property :next_page_token, as: 'nextPageToken'
|
570
608
|
end
|
571
609
|
end
|
572
610
|
|
@@ -586,6 +624,15 @@ module Google
|
|
586
624
|
end
|
587
625
|
end
|
588
626
|
|
627
|
+
class Name
|
628
|
+
# @private
|
629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
630
|
+
property :given_name, as: 'givenName'
|
631
|
+
property :family_name, as: 'familyName'
|
632
|
+
property :full_name, as: 'fullName'
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
589
636
|
class CourseMaterial
|
590
637
|
# @private
|
591
638
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -600,15 +647,6 @@ module Google
|
|
600
647
|
end
|
601
648
|
end
|
602
649
|
|
603
|
-
class Name
|
604
|
-
# @private
|
605
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
606
|
-
property :given_name, as: 'givenName'
|
607
|
-
property :family_name, as: 'familyName'
|
608
|
-
property :full_name, as: 'fullName'
|
609
|
-
end
|
610
|
-
end
|
611
|
-
|
612
650
|
class Assignment
|
613
651
|
# @private
|
614
652
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -642,16 +680,6 @@ module Google
|
|
642
680
|
class Course
|
643
681
|
# @private
|
644
682
|
class Representation < Google::Apis::Core::JsonRepresentation
|
645
|
-
property :section, as: 'section'
|
646
|
-
property :id, as: 'id'
|
647
|
-
property :room, as: 'room'
|
648
|
-
property :course_group_email, as: 'courseGroupEmail'
|
649
|
-
property :enrollment_code, as: 'enrollmentCode'
|
650
|
-
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
|
651
|
-
|
652
|
-
property :description_heading, as: 'descriptionHeading'
|
653
|
-
property :update_time, as: 'updateTime'
|
654
|
-
property :alternate_link, as: 'alternateLink'
|
655
683
|
property :guardians_enabled, as: 'guardiansEnabled'
|
656
684
|
property :owner_id, as: 'ownerId'
|
657
685
|
property :course_state, as: 'courseState'
|
@@ -661,6 +689,16 @@ module Google
|
|
661
689
|
property :name, as: 'name'
|
662
690
|
property :teacher_folder, as: 'teacherFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation
|
663
691
|
|
692
|
+
property :section, as: 'section'
|
693
|
+
property :id, as: 'id'
|
694
|
+
property :room, as: 'room'
|
695
|
+
property :course_group_email, as: 'courseGroupEmail'
|
696
|
+
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
|
697
|
+
|
698
|
+
property :enrollment_code, as: 'enrollmentCode'
|
699
|
+
property :description_heading, as: 'descriptionHeading'
|
700
|
+
property :update_time, as: 'updateTime'
|
701
|
+
property :alternate_link, as: 'alternateLink'
|
664
702
|
end
|
665
703
|
end
|
666
704
|
|
@@ -686,44 +724,6 @@ module Google
|
|
686
724
|
class Representation < Google::Apis::Core::JsonRepresentation
|
687
725
|
end
|
688
726
|
end
|
689
|
-
|
690
|
-
class Teacher
|
691
|
-
# @private
|
692
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
693
|
-
property :course_id, as: 'courseId'
|
694
|
-
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
|
695
|
-
|
696
|
-
property :user_id, as: 'userId'
|
697
|
-
end
|
698
|
-
end
|
699
|
-
|
700
|
-
class ReclaimStudentSubmissionRequest
|
701
|
-
# @private
|
702
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
703
|
-
end
|
704
|
-
end
|
705
|
-
|
706
|
-
class AssignmentSubmission
|
707
|
-
# @private
|
708
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
709
|
-
collection :attachments, as: 'attachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
|
710
|
-
|
711
|
-
end
|
712
|
-
end
|
713
|
-
|
714
|
-
class Material
|
715
|
-
# @private
|
716
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
717
|
-
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation
|
718
|
-
|
719
|
-
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
|
720
|
-
|
721
|
-
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
|
722
|
-
|
723
|
-
property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
|
724
|
-
|
725
|
-
end
|
726
|
-
end
|
727
727
|
end
|
728
728
|
end
|
729
729
|
end
|
@@ -32,16 +32,16 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/classroom/
|
34
34
|
class ClassroomService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# Available to use for quota purposes for server-side applications. Can be any
|
42
37
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
38
|
attr_accessor :quota_user
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# API key. Your API key identifies your project and provides you with API access,
|
42
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
|
+
attr_accessor :key
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://classroom.googleapis.com/', '')
|
47
47
|
@batch_path = 'batch'
|
@@ -58,11 +58,11 @@ module Google
|
|
58
58
|
# * `ALREADY_EXISTS` if an invitation for the specified user and course
|
59
59
|
# already exists.
|
60
60
|
# @param [Google::Apis::ClassroomV1::Invitation] invitation_object
|
61
|
-
# @param [String] fields
|
62
|
-
# Selector specifying which fields to include in a partial response.
|
63
61
|
# @param [String] quota_user
|
64
62
|
# Available to use for quota purposes for server-side applications. Can be any
|
65
63
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
66
|
# @param [Google::Apis::RequestOptions] options
|
67
67
|
# Request-specific options
|
68
68
|
#
|
@@ -75,14 +75,14 @@ module Google
|
|
75
75
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
76
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
77
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def create_invitation(invitation_object = nil,
|
78
|
+
def create_invitation(invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
79
79
|
command = make_simple_command(:post, 'v1/invitations', options)
|
80
80
|
command.request_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
81
81
|
command.request_object = invitation_object
|
82
82
|
command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
83
83
|
command.response_class = Google::Apis::ClassroomV1::Invitation
|
84
|
-
command.query['fields'] = fields unless fields.nil?
|
85
84
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
86
|
execute_or_queue_command(command, &block)
|
87
87
|
end
|
88
88
|
|
@@ -100,11 +100,11 @@ module Google
|
|
100
100
|
# * `NOT_FOUND` if no invitation exists with the requested ID.
|
101
101
|
# @param [String] id
|
102
102
|
# Identifier of the invitation to accept.
|
103
|
-
# @param [String] fields
|
104
|
-
# Selector specifying which fields to include in a partial response.
|
105
103
|
# @param [String] quota_user
|
106
104
|
# Available to use for quota purposes for server-side applications. Can be any
|
107
105
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
106
|
+
# @param [String] fields
|
107
|
+
# Selector specifying which fields to include in a partial response.
|
108
108
|
# @param [Google::Apis::RequestOptions] options
|
109
109
|
# Request-specific options
|
110
110
|
#
|
@@ -117,13 +117,13 @@ module Google
|
|
117
117
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
118
118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
119
119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
120
|
-
def accept_invitation(id,
|
120
|
+
def accept_invitation(id, quota_user: nil, fields: nil, options: nil, &block)
|
121
121
|
command = make_simple_command(:post, 'v1/invitations/{id}:accept', options)
|
122
122
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
123
123
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
124
124
|
command.params['id'] = id unless id.nil?
|
125
|
-
command.query['fields'] = fields unless fields.nil?
|
126
125
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
127
127
|
execute_or_queue_command(command, &block)
|
128
128
|
end
|
129
129
|
|
@@ -134,11 +134,11 @@ module Google
|
|
134
134
|
# * `NOT_FOUND` if no invitation exists with the requested ID.
|
135
135
|
# @param [String] id
|
136
136
|
# Identifier of the invitation to delete.
|
137
|
-
# @param [String] fields
|
138
|
-
# Selector specifying which fields to include in a partial response.
|
139
137
|
# @param [String] quota_user
|
140
138
|
# Available to use for quota purposes for server-side applications. Can be any
|
141
139
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
140
|
+
# @param [String] fields
|
141
|
+
# Selector specifying which fields to include in a partial response.
|
142
142
|
# @param [Google::Apis::RequestOptions] options
|
143
143
|
# Request-specific options
|
144
144
|
#
|
@@ -151,13 +151,13 @@ module Google
|
|
151
151
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
152
152
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
153
153
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
154
|
-
def delete_invitation(id,
|
154
|
+
def delete_invitation(id, quota_user: nil, fields: nil, options: nil, &block)
|
155
155
|
command = make_simple_command(:delete, 'v1/invitations/{id}', options)
|
156
156
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
157
157
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
158
158
|
command.params['id'] = id unless id.nil?
|
159
|
-
command.query['fields'] = fields unless fields.nil?
|
160
159
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
command.query['fields'] = fields unless fields.nil?
|
161
161
|
execute_or_queue_command(command, &block)
|
162
162
|
end
|
163
163
|
|
@@ -168,11 +168,11 @@ module Google
|
|
168
168
|
# * `NOT_FOUND` if no invitation exists with the requested ID.
|
169
169
|
# @param [String] id
|
170
170
|
# Identifier of the invitation to return.
|
171
|
-
# @param [String] fields
|
172
|
-
# Selector specifying which fields to include in a partial response.
|
173
171
|
# @param [String] quota_user
|
174
172
|
# Available to use for quota purposes for server-side applications. Can be any
|
175
173
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [String] fields
|
175
|
+
# Selector specifying which fields to include in a partial response.
|
176
176
|
# @param [Google::Apis::RequestOptions] options
|
177
177
|
# Request-specific options
|
178
178
|
#
|
@@ -185,13 +185,13 @@ module Google
|
|
185
185
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
-
def get_invitation(id,
|
188
|
+
def get_invitation(id, quota_user: nil, fields: nil, options: nil, &block)
|
189
189
|
command = make_simple_command(:get, 'v1/invitations/{id}', options)
|
190
190
|
command.response_representation = Google::Apis::ClassroomV1::Invitation::Representation
|
191
191
|
command.response_class = Google::Apis::ClassroomV1::Invitation
|
192
192
|
command.params['id'] = id unless id.nil?
|
193
|
-
command.query['fields'] = fields unless fields.nil?
|
194
193
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
|
+
command.query['fields'] = fields unless fields.nil?
|
195
195
|
execute_or_queue_command(command, &block)
|
196
196
|
end
|
197
197
|
|
@@ -220,11 +220,11 @@ module Google
|
|
220
220
|
# @param [Fixnum] page_size
|
221
221
|
# Maximum number of items to return. Zero means no maximum.
|
222
222
|
# The server may return fewer than the specified number of results.
|
223
|
-
# @param [String] fields
|
224
|
-
# Selector specifying which fields to include in a partial response.
|
225
223
|
# @param [String] quota_user
|
226
224
|
# Available to use for quota purposes for server-side applications. Can be any
|
227
225
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
226
|
+
# @param [String] fields
|
227
|
+
# Selector specifying which fields to include in a partial response.
|
228
228
|
# @param [Google::Apis::RequestOptions] options
|
229
229
|
# Request-specific options
|
230
230
|
#
|
@@ -237,7 +237,7 @@ module Google
|
|
237
237
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
238
238
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
239
239
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
240
|
-
def list_invitations(course_id: nil, user_id: nil, page_token: nil, page_size: nil,
|
240
|
+
def list_invitations(course_id: nil, user_id: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
241
241
|
command = make_simple_command(:get, 'v1/invitations', options)
|
242
242
|
command.response_representation = Google::Apis::ClassroomV1::ListInvitationsResponse::Representation
|
243
243
|
command.response_class = Google::Apis::ClassroomV1::ListInvitationsResponse
|
@@ -245,8 +245,8 @@ module Google
|
|
245
245
|
command.query['userId'] = user_id unless user_id.nil?
|
246
246
|
command.query['pageToken'] = page_token unless page_token.nil?
|
247
247
|
command.query['pageSize'] = page_size unless page_size.nil?
|
248
|
-
command.query['fields'] = fields unless fields.nil?
|
249
248
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
249
|
+
command.query['fields'] = fields unless fields.nil?
|
250
250
|
execute_or_queue_command(command, &block)
|
251
251
|
end
|
252
252
|
|
@@ -259,11 +259,11 @@ module Google
|
|
259
259
|
# Identifier of the course to delete.
|
260
260
|
# This identifier can be either the Classroom-assigned identifier or an
|
261
261
|
# alias.
|
262
|
-
# @param [String] fields
|
263
|
-
# Selector specifying which fields to include in a partial response.
|
264
262
|
# @param [String] quota_user
|
265
263
|
# Available to use for quota purposes for server-side applications. Can be any
|
266
264
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
265
|
+
# @param [String] fields
|
266
|
+
# Selector specifying which fields to include in a partial response.
|
267
267
|
# @param [Google::Apis::RequestOptions] options
|
268
268
|
# Request-specific options
|
269
269
|
#
|
@@ -276,13 +276,13 @@ module Google
|
|
276
276
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
277
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
278
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
-
def delete_course(id,
|
279
|
+
def delete_course(id, quota_user: nil, fields: nil, options: nil, &block)
|
280
280
|
command = make_simple_command(:delete, 'v1/courses/{id}', options)
|
281
281
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
282
282
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
283
283
|
command.params['id'] = id unless id.nil?
|
284
|
-
command.query['fields'] = fields unless fields.nil?
|
285
284
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
285
|
+
command.query['fields'] = fields unless fields.nil?
|
286
286
|
execute_or_queue_command(command, &block)
|
287
287
|
end
|
288
288
|
|
@@ -318,11 +318,11 @@ module Google
|
|
318
318
|
# @param [Array<String>, String] course_states
|
319
319
|
# Restricts returned courses to those in one of the specified states
|
320
320
|
# The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED.
|
321
|
-
# @param [String] fields
|
322
|
-
# Selector specifying which fields to include in a partial response.
|
323
321
|
# @param [String] quota_user
|
324
322
|
# Available to use for quota purposes for server-side applications. Can be any
|
325
323
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
324
|
+
# @param [String] fields
|
325
|
+
# Selector specifying which fields to include in a partial response.
|
326
326
|
# @param [Google::Apis::RequestOptions] options
|
327
327
|
# Request-specific options
|
328
328
|
#
|
@@ -335,7 +335,7 @@ module Google
|
|
335
335
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
336
336
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
337
337
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
338
|
-
def list_courses(student_id: nil, page_token: nil, page_size: nil, teacher_id: nil, course_states: nil,
|
338
|
+
def list_courses(student_id: nil, page_token: nil, page_size: nil, teacher_id: nil, course_states: nil, quota_user: nil, fields: nil, options: nil, &block)
|
339
339
|
command = make_simple_command(:get, 'v1/courses', options)
|
340
340
|
command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
|
341
341
|
command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse
|
@@ -344,8 +344,8 @@ module Google
|
|
344
344
|
command.query['pageSize'] = page_size unless page_size.nil?
|
345
345
|
command.query['teacherId'] = teacher_id unless teacher_id.nil?
|
346
346
|
command.query['courseStates'] = course_states unless course_states.nil?
|
347
|
-
command.query['fields'] = fields unless fields.nil?
|
348
347
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
348
|
+
command.query['fields'] = fields unless fields.nil?
|
349
349
|
execute_or_queue_command(command, &block)
|
350
350
|
end
|
351
351
|
|
@@ -362,11 +362,11 @@ module Google
|
|
362
362
|
# * `ALREADY_EXISTS` if an alias was specified in the `id` and
|
363
363
|
# already exists.
|
364
364
|
# @param [Google::Apis::ClassroomV1::Course] course_object
|
365
|
-
# @param [String] fields
|
366
|
-
# Selector specifying which fields to include in a partial response.
|
367
365
|
# @param [String] quota_user
|
368
366
|
# Available to use for quota purposes for server-side applications. Can be any
|
369
367
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
368
|
+
# @param [String] fields
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
370
370
|
# @param [Google::Apis::RequestOptions] options
|
371
371
|
# Request-specific options
|
372
372
|
#
|
@@ -379,48 +379,31 @@ module Google
|
|
379
379
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
380
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
381
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
-
def create_course(course_object = nil,
|
382
|
+
def create_course(course_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
383
383
|
command = make_simple_command(:post, 'v1/courses', options)
|
384
384
|
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
385
385
|
command.request_object = course_object
|
386
386
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
387
387
|
command.response_class = Google::Apis::ClassroomV1::Course
|
388
|
-
command.query['fields'] = fields unless fields.nil?
|
389
388
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
389
|
+
command.query['fields'] = fields unless fields.nil?
|
390
390
|
execute_or_queue_command(command, &block)
|
391
391
|
end
|
392
392
|
|
393
|
-
#
|
393
|
+
# Returns a course.
|
394
394
|
# This method returns the following error codes:
|
395
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to
|
395
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
396
396
|
# requested course or for access errors.
|
397
397
|
# * `NOT_FOUND` if no course exists with the requested ID.
|
398
|
-
# * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or
|
399
|
-
# if no update mask is supplied.
|
400
|
-
# * `FAILED_PRECONDITION` for the following request errors:
|
401
|
-
# * CourseNotModifiable
|
402
398
|
# @param [String] id
|
403
|
-
# Identifier of the course to
|
399
|
+
# Identifier of the course to return.
|
404
400
|
# This identifier can be either the Classroom-assigned identifier or an
|
405
401
|
# alias.
|
406
|
-
# @param [Google::Apis::ClassroomV1::Course] course_object
|
407
|
-
# @param [String] update_mask
|
408
|
-
# Mask that identifies which fields on the course to update.
|
409
|
-
# This field is required to do an update. The update will fail if invalid
|
410
|
-
# fields are specified. The following fields are valid:
|
411
|
-
# * `name`
|
412
|
-
# * `section`
|
413
|
-
# * `descriptionHeading`
|
414
|
-
# * `description`
|
415
|
-
# * `room`
|
416
|
-
# * `courseState`
|
417
|
-
# When set in a query parameter, this field should be specified as
|
418
|
-
# `updateMask=<field1>,<field2>,...`
|
419
|
-
# @param [String] fields
|
420
|
-
# Selector specifying which fields to include in a partial response.
|
421
402
|
# @param [String] quota_user
|
422
403
|
# Available to use for quota purposes for server-side applications. Can be any
|
423
404
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
405
|
+
# @param [String] fields
|
406
|
+
# Selector specifying which fields to include in a partial response.
|
424
407
|
# @param [Google::Apis::RequestOptions] options
|
425
408
|
# Request-specific options
|
426
409
|
#
|
@@ -433,33 +416,47 @@ module Google
|
|
433
416
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
434
417
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
435
418
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
436
|
-
def
|
437
|
-
command = make_simple_command(:
|
438
|
-
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
439
|
-
command.request_object = course_object
|
419
|
+
def get_course(id, quota_user: nil, fields: nil, options: nil, &block)
|
420
|
+
command = make_simple_command(:get, 'v1/courses/{id}', options)
|
440
421
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
441
422
|
command.response_class = Google::Apis::ClassroomV1::Course
|
442
423
|
command.params['id'] = id unless id.nil?
|
443
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
444
|
-
command.query['fields'] = fields unless fields.nil?
|
445
424
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
|
+
command.query['fields'] = fields unless fields.nil?
|
446
426
|
execute_or_queue_command(command, &block)
|
447
427
|
end
|
448
428
|
|
449
|
-
#
|
429
|
+
# Updates one or more fields in a course.
|
450
430
|
# This method returns the following error codes:
|
451
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to
|
431
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to modify the
|
452
432
|
# requested course or for access errors.
|
453
433
|
# * `NOT_FOUND` if no course exists with the requested ID.
|
434
|
+
# * `INVALID_ARGUMENT` if invalid fields are specified in the update mask or
|
435
|
+
# if no update mask is supplied.
|
436
|
+
# * `FAILED_PRECONDITION` for the following request errors:
|
437
|
+
# * CourseNotModifiable
|
454
438
|
# @param [String] id
|
455
|
-
# Identifier of the course to
|
439
|
+
# Identifier of the course to update.
|
456
440
|
# This identifier can be either the Classroom-assigned identifier or an
|
457
441
|
# alias.
|
458
|
-
# @param [
|
459
|
-
#
|
442
|
+
# @param [Google::Apis::ClassroomV1::Course] course_object
|
443
|
+
# @param [String] update_mask
|
444
|
+
# Mask that identifies which fields on the course to update.
|
445
|
+
# This field is required to do an update. The update will fail if invalid
|
446
|
+
# fields are specified. The following fields are valid:
|
447
|
+
# * `name`
|
448
|
+
# * `section`
|
449
|
+
# * `descriptionHeading`
|
450
|
+
# * `description`
|
451
|
+
# * `room`
|
452
|
+
# * `courseState`
|
453
|
+
# When set in a query parameter, this field should be specified as
|
454
|
+
# `updateMask=<field1>,<field2>,...`
|
460
455
|
# @param [String] quota_user
|
461
456
|
# Available to use for quota purposes for server-side applications. Can be any
|
462
457
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
458
|
+
# @param [String] fields
|
459
|
+
# Selector specifying which fields to include in a partial response.
|
463
460
|
# @param [Google::Apis::RequestOptions] options
|
464
461
|
# Request-specific options
|
465
462
|
#
|
@@ -472,13 +469,16 @@ module Google
|
|
472
469
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
473
470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
474
471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
475
|
-
def
|
476
|
-
command = make_simple_command(:
|
472
|
+
def patch_course(id, course_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
473
|
+
command = make_simple_command(:patch, 'v1/courses/{id}', options)
|
474
|
+
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
475
|
+
command.request_object = course_object
|
477
476
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
478
477
|
command.response_class = Google::Apis::ClassroomV1::Course
|
479
478
|
command.params['id'] = id unless id.nil?
|
480
|
-
command.query['
|
479
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
481
480
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
481
|
+
command.query['fields'] = fields unless fields.nil?
|
482
482
|
execute_or_queue_command(command, &block)
|
483
483
|
end
|
484
484
|
|
@@ -494,11 +494,11 @@ module Google
|
|
494
494
|
# This identifier can be either the Classroom-assigned identifier or an
|
495
495
|
# alias.
|
496
496
|
# @param [Google::Apis::ClassroomV1::Course] course_object
|
497
|
-
# @param [String] fields
|
498
|
-
# Selector specifying which fields to include in a partial response.
|
499
497
|
# @param [String] quota_user
|
500
498
|
# Available to use for quota purposes for server-side applications. Can be any
|
501
499
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
502
|
# @param [Google::Apis::RequestOptions] options
|
503
503
|
# Request-specific options
|
504
504
|
#
|
@@ -511,15 +511,15 @@ module Google
|
|
511
511
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
512
512
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
513
513
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
514
|
-
def update_course(id, course_object = nil,
|
514
|
+
def update_course(id, course_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
515
515
|
command = make_simple_command(:put, 'v1/courses/{id}', options)
|
516
516
|
command.request_representation = Google::Apis::ClassroomV1::Course::Representation
|
517
517
|
command.request_object = course_object
|
518
518
|
command.response_representation = Google::Apis::ClassroomV1::Course::Representation
|
519
519
|
command.response_class = Google::Apis::ClassroomV1::Course
|
520
520
|
command.params['id'] = id unless id.nil?
|
521
|
-
command.query['fields'] = fields unless fields.nil?
|
522
521
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
522
|
+
command.query['fields'] = fields unless fields.nil?
|
523
523
|
execute_or_queue_command(command, &block)
|
524
524
|
end
|
525
525
|
|
@@ -538,11 +538,11 @@ module Google
|
|
538
538
|
# @param [String] alias_
|
539
539
|
# Alias to delete.
|
540
540
|
# This may not be the Classroom-assigned identifier.
|
541
|
-
# @param [String] fields
|
542
|
-
# Selector specifying which fields to include in a partial response.
|
543
541
|
# @param [String] quota_user
|
544
542
|
# Available to use for quota purposes for server-side applications. Can be any
|
545
543
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
544
|
+
# @param [String] fields
|
545
|
+
# Selector specifying which fields to include in a partial response.
|
546
546
|
# @param [Google::Apis::RequestOptions] options
|
547
547
|
# Request-specific options
|
548
548
|
#
|
@@ -555,14 +555,14 @@ module Google
|
|
555
555
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
556
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
557
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
-
def delete_course_alias(course_id, alias_,
|
558
|
+
def delete_course_alias(course_id, alias_, quota_user: nil, fields: nil, options: nil, &block)
|
559
559
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/aliases/{alias}', options)
|
560
560
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
561
561
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
562
562
|
command.params['courseId'] = course_id unless course_id.nil?
|
563
563
|
command.params['alias'] = alias_ unless alias_.nil?
|
564
|
-
command.query['fields'] = fields unless fields.nil?
|
565
564
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
566
|
execute_or_queue_command(command, &block)
|
567
567
|
end
|
568
568
|
|
@@ -586,11 +586,11 @@ module Google
|
|
586
586
|
# Maximum number of items to return. Zero or unspecified indicates that the
|
587
587
|
# server may assign a maximum.
|
588
588
|
# The server may return fewer than the specified number of results.
|
589
|
-
# @param [String] fields
|
590
|
-
# Selector specifying which fields to include in a partial response.
|
591
589
|
# @param [String] quota_user
|
592
590
|
# Available to use for quota purposes for server-side applications. Can be any
|
593
591
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
592
|
+
# @param [String] fields
|
593
|
+
# Selector specifying which fields to include in a partial response.
|
594
594
|
# @param [Google::Apis::RequestOptions] options
|
595
595
|
# Request-specific options
|
596
596
|
#
|
@@ -603,15 +603,15 @@ module Google
|
|
603
603
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
604
604
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
605
605
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
606
|
-
def list_course_aliases(course_id, page_token: nil, page_size: nil,
|
606
|
+
def list_course_aliases(course_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
607
607
|
command = make_simple_command(:get, 'v1/courses/{courseId}/aliases', options)
|
608
608
|
command.response_representation = Google::Apis::ClassroomV1::ListCourseAliasesResponse::Representation
|
609
609
|
command.response_class = Google::Apis::ClassroomV1::ListCourseAliasesResponse
|
610
610
|
command.params['courseId'] = course_id unless course_id.nil?
|
611
611
|
command.query['pageToken'] = page_token unless page_token.nil?
|
612
612
|
command.query['pageSize'] = page_size unless page_size.nil?
|
613
|
-
command.query['fields'] = fields unless fields.nil?
|
614
613
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
command.query['fields'] = fields unless fields.nil?
|
615
615
|
execute_or_queue_command(command, &block)
|
616
616
|
end
|
617
617
|
|
@@ -629,11 +629,11 @@ module Google
|
|
629
629
|
# This identifier can be either the Classroom-assigned identifier or an
|
630
630
|
# alias.
|
631
631
|
# @param [Google::Apis::ClassroomV1::CourseAlias] course_alias_object
|
632
|
-
# @param [String] fields
|
633
|
-
# Selector specifying which fields to include in a partial response.
|
634
632
|
# @param [String] quota_user
|
635
633
|
# Available to use for quota purposes for server-side applications. Can be any
|
636
634
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
635
|
+
# @param [String] fields
|
636
|
+
# Selector specifying which fields to include in a partial response.
|
637
637
|
# @param [Google::Apis::RequestOptions] options
|
638
638
|
# Request-specific options
|
639
639
|
#
|
@@ -646,15 +646,59 @@ module Google
|
|
646
646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
-
def create_course_alias(course_id, course_alias_object = nil,
|
649
|
+
def create_course_alias(course_id, course_alias_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
650
650
|
command = make_simple_command(:post, 'v1/courses/{courseId}/aliases', options)
|
651
651
|
command.request_representation = Google::Apis::ClassroomV1::CourseAlias::Representation
|
652
652
|
command.request_object = course_alias_object
|
653
653
|
command.response_representation = Google::Apis::ClassroomV1::CourseAlias::Representation
|
654
654
|
command.response_class = Google::Apis::ClassroomV1::CourseAlias
|
655
655
|
command.params['courseId'] = course_id unless course_id.nil?
|
656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
656
657
|
command.query['fields'] = fields unless fields.nil?
|
658
|
+
execute_or_queue_command(command, &block)
|
659
|
+
end
|
660
|
+
|
661
|
+
# Deletes a student of a course.
|
662
|
+
# This method returns the following error codes:
|
663
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to delete
|
664
|
+
# students of this course or for access errors.
|
665
|
+
# * `NOT_FOUND` if no student of this course has the requested ID or if the
|
666
|
+
# course does not exist.
|
667
|
+
# @param [String] course_id
|
668
|
+
# Identifier of the course.
|
669
|
+
# This identifier can be either the Classroom-assigned identifier or an
|
670
|
+
# alias.
|
671
|
+
# @param [String] user_id
|
672
|
+
# Identifier of the student to delete. The identifier can be one of the
|
673
|
+
# following:
|
674
|
+
# * the numeric identifier for the user
|
675
|
+
# * the email address of the user
|
676
|
+
# * the string literal `"me"`, indicating the requesting user
|
677
|
+
# @param [String] quota_user
|
678
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
679
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
680
|
+
# @param [String] fields
|
681
|
+
# Selector specifying which fields to include in a partial response.
|
682
|
+
# @param [Google::Apis::RequestOptions] options
|
683
|
+
# Request-specific options
|
684
|
+
#
|
685
|
+
# @yield [result, err] Result & error if block supplied
|
686
|
+
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
687
|
+
# @yieldparam err [StandardError] error object if request failed
|
688
|
+
#
|
689
|
+
# @return [Google::Apis::ClassroomV1::Empty]
|
690
|
+
#
|
691
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
692
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
693
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
694
|
+
def delete_course_student(course_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
695
|
+
command = make_simple_command(:delete, 'v1/courses/{courseId}/students/{userId}', options)
|
696
|
+
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
697
|
+
command.response_class = Google::Apis::ClassroomV1::Empty
|
698
|
+
command.params['courseId'] = course_id unless course_id.nil?
|
699
|
+
command.params['userId'] = user_id unless user_id.nil?
|
657
700
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
701
|
+
command.query['fields'] = fields unless fields.nil?
|
658
702
|
execute_or_queue_command(command, &block)
|
659
703
|
end
|
660
704
|
|
@@ -674,11 +718,11 @@ module Google
|
|
674
718
|
# * the numeric identifier for the user
|
675
719
|
# * the email address of the user
|
676
720
|
# * the string literal `"me"`, indicating the requesting user
|
677
|
-
# @param [String] fields
|
678
|
-
# Selector specifying which fields to include in a partial response.
|
679
721
|
# @param [String] quota_user
|
680
722
|
# Available to use for quota purposes for server-side applications. Can be any
|
681
723
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
724
|
+
# @param [String] fields
|
725
|
+
# Selector specifying which fields to include in a partial response.
|
682
726
|
# @param [Google::Apis::RequestOptions] options
|
683
727
|
# Request-specific options
|
684
728
|
#
|
@@ -691,14 +735,14 @@ module Google
|
|
691
735
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
692
736
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
693
737
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
694
|
-
def get_course_student(course_id, user_id,
|
738
|
+
def get_course_student(course_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
695
739
|
command = make_simple_command(:get, 'v1/courses/{courseId}/students/{userId}', options)
|
696
740
|
command.response_representation = Google::Apis::ClassroomV1::Student::Representation
|
697
741
|
command.response_class = Google::Apis::ClassroomV1::Student
|
698
742
|
command.params['courseId'] = course_id unless course_id.nil?
|
699
743
|
command.params['userId'] = user_id unless user_id.nil?
|
700
|
-
command.query['fields'] = fields unless fields.nil?
|
701
744
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
745
|
+
command.query['fields'] = fields unless fields.nil?
|
702
746
|
execute_or_queue_command(command, &block)
|
703
747
|
end
|
704
748
|
|
@@ -721,11 +765,11 @@ module Google
|
|
721
765
|
# @param [Fixnum] page_size
|
722
766
|
# Maximum number of items to return. Zero means no maximum.
|
723
767
|
# The server may return fewer than the specified number of results.
|
724
|
-
# @param [String] fields
|
725
|
-
# Selector specifying which fields to include in a partial response.
|
726
768
|
# @param [String] quota_user
|
727
769
|
# Available to use for quota purposes for server-side applications. Can be any
|
728
770
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
771
|
+
# @param [String] fields
|
772
|
+
# Selector specifying which fields to include in a partial response.
|
729
773
|
# @param [Google::Apis::RequestOptions] options
|
730
774
|
# Request-specific options
|
731
775
|
#
|
@@ -738,15 +782,15 @@ module Google
|
|
738
782
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
783
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
784
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
-
def list_course_students(course_id, page_token: nil, page_size: nil,
|
785
|
+
def list_course_students(course_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
742
786
|
command = make_simple_command(:get, 'v1/courses/{courseId}/students', options)
|
743
787
|
command.response_representation = Google::Apis::ClassroomV1::ListStudentsResponse::Representation
|
744
788
|
command.response_class = Google::Apis::ClassroomV1::ListStudentsResponse
|
745
789
|
command.params['courseId'] = course_id unless course_id.nil?
|
746
790
|
command.query['pageToken'] = page_token unless page_token.nil?
|
747
791
|
command.query['pageSize'] = page_size unless page_size.nil?
|
748
|
-
command.query['fields'] = fields unless fields.nil?
|
749
792
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
793
|
+
command.query['fields'] = fields unless fields.nil?
|
750
794
|
execute_or_queue_command(command, &block)
|
751
795
|
end
|
752
796
|
|
@@ -772,11 +816,11 @@ module Google
|
|
772
816
|
# This code is required if userId
|
773
817
|
# corresponds to the requesting user; it may be omitted if the requesting
|
774
818
|
# user has administrative permissions to create students for any user.
|
775
|
-
# @param [String] fields
|
776
|
-
# Selector specifying which fields to include in a partial response.
|
777
819
|
# @param [String] quota_user
|
778
820
|
# Available to use for quota purposes for server-side applications. Can be any
|
779
821
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
822
|
+
# @param [String] fields
|
823
|
+
# Selector specifying which fields to include in a partial response.
|
780
824
|
# @param [Google::Apis::RequestOptions] options
|
781
825
|
# Request-specific options
|
782
826
|
#
|
@@ -789,7 +833,7 @@ module Google
|
|
789
833
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
790
834
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
791
835
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
792
|
-
def create_course_student(course_id, student_object = nil, enrollment_code: nil,
|
836
|
+
def create_course_student(course_id, student_object = nil, enrollment_code: nil, quota_user: nil, fields: nil, options: nil, &block)
|
793
837
|
command = make_simple_command(:post, 'v1/courses/{courseId}/students', options)
|
794
838
|
command.request_representation = Google::Apis::ClassroomV1::Student::Representation
|
795
839
|
command.request_object = student_object
|
@@ -797,52 +841,57 @@ module Google
|
|
797
841
|
command.response_class = Google::Apis::ClassroomV1::Student
|
798
842
|
command.params['courseId'] = course_id unless course_id.nil?
|
799
843
|
command.query['enrollmentCode'] = enrollment_code unless enrollment_code.nil?
|
800
|
-
command.query['fields'] = fields unless fields.nil?
|
801
844
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
845
|
+
command.query['fields'] = fields unless fields.nil?
|
802
846
|
execute_or_queue_command(command, &block)
|
803
847
|
end
|
804
848
|
|
805
|
-
#
|
849
|
+
# Creates course work.
|
850
|
+
# The resulting course work (and corresponding student submissions) are
|
851
|
+
# associated with the Developer Console project of the
|
852
|
+
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
853
|
+
# make the request. Classroom API requests to modify course work and student
|
854
|
+
# submissions must be made with an OAuth client ID from the associated
|
855
|
+
# Developer Console project.
|
806
856
|
# This method returns the following error codes:
|
807
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
857
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
858
|
+
# requested course, create course work in the requested course, share a
|
859
|
+
# Drive attachment, or for access errors.
|
860
|
+
# * `INVALID_ARGUMENT` if the request is malformed.
|
861
|
+
# * `NOT_FOUND` if the requested course does not exist.
|
862
|
+
# * `FAILED_PRECONDITION` for the following request error:
|
863
|
+
# * AttachmentNotVisible
|
811
864
|
# @param [String] course_id
|
812
865
|
# Identifier of the course.
|
813
866
|
# This identifier can be either the Classroom-assigned identifier or an
|
814
867
|
# alias.
|
815
|
-
# @param [
|
816
|
-
# Identifier of the student to delete. The identifier can be one of the
|
817
|
-
# following:
|
818
|
-
# * the numeric identifier for the user
|
819
|
-
# * the email address of the user
|
820
|
-
# * the string literal `"me"`, indicating the requesting user
|
821
|
-
# @param [String] fields
|
822
|
-
# Selector specifying which fields to include in a partial response.
|
868
|
+
# @param [Google::Apis::ClassroomV1::CourseWork] course_work_object
|
823
869
|
# @param [String] quota_user
|
824
870
|
# Available to use for quota purposes for server-side applications. Can be any
|
825
871
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
872
|
+
# @param [String] fields
|
873
|
+
# Selector specifying which fields to include in a partial response.
|
826
874
|
# @param [Google::Apis::RequestOptions] options
|
827
875
|
# Request-specific options
|
828
876
|
#
|
829
877
|
# @yield [result, err] Result & error if block supplied
|
830
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
878
|
+
# @yieldparam result [Google::Apis::ClassroomV1::CourseWork] parsed result object
|
831
879
|
# @yieldparam err [StandardError] error object if request failed
|
832
880
|
#
|
833
|
-
# @return [Google::Apis::ClassroomV1::
|
881
|
+
# @return [Google::Apis::ClassroomV1::CourseWork]
|
834
882
|
#
|
835
883
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
836
884
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
837
885
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
838
|
-
def
|
839
|
-
command = make_simple_command(:
|
840
|
-
command.
|
841
|
-
command.
|
886
|
+
def create_course_course_work(course_id, course_work_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
887
|
+
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork', options)
|
888
|
+
command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation
|
889
|
+
command.request_object = course_work_object
|
890
|
+
command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation
|
891
|
+
command.response_class = Google::Apis::ClassroomV1::CourseWork
|
842
892
|
command.params['courseId'] = course_id unless course_id.nil?
|
843
|
-
command.params['userId'] = user_id unless user_id.nil?
|
844
|
-
command.query['fields'] = fields unless fields.nil?
|
845
893
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
894
|
+
command.query['fields'] = fields unless fields.nil?
|
846
895
|
execute_or_queue_command(command, &block)
|
847
896
|
end
|
848
897
|
|
@@ -864,11 +913,11 @@ module Google
|
|
864
913
|
# @param [String] id
|
865
914
|
# Identifier of the course work to delete.
|
866
915
|
# This identifier is a Classroom-assigned identifier.
|
867
|
-
# @param [String] fields
|
868
|
-
# Selector specifying which fields to include in a partial response.
|
869
916
|
# @param [String] quota_user
|
870
917
|
# Available to use for quota purposes for server-side applications. Can be any
|
871
918
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
919
|
+
# @param [String] fields
|
920
|
+
# Selector specifying which fields to include in a partial response.
|
872
921
|
# @param [Google::Apis::RequestOptions] options
|
873
922
|
# Request-specific options
|
874
923
|
#
|
@@ -881,14 +930,14 @@ module Google
|
|
881
930
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
882
931
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
883
932
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
884
|
-
def delete_course_course_work(course_id, id,
|
933
|
+
def delete_course_course_work(course_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
885
934
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWork/{id}', options)
|
886
935
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
887
936
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
888
937
|
command.params['courseId'] = course_id unless course_id.nil?
|
889
938
|
command.params['id'] = id unless id.nil?
|
890
|
-
command.query['fields'] = fields unless fields.nil?
|
891
939
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
940
|
+
command.query['fields'] = fields unless fields.nil?
|
892
941
|
execute_or_queue_command(command, &block)
|
893
942
|
end
|
894
943
|
|
@@ -931,11 +980,11 @@ module Google
|
|
931
980
|
# * `due_time`
|
932
981
|
# * `max_points`
|
933
982
|
# * `submission_modification_mode`
|
934
|
-
# @param [String] fields
|
935
|
-
# Selector specifying which fields to include in a partial response.
|
936
983
|
# @param [String] quota_user
|
937
984
|
# Available to use for quota purposes for server-side applications. Can be any
|
938
985
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
939
988
|
# @param [Google::Apis::RequestOptions] options
|
940
989
|
# Request-specific options
|
941
990
|
#
|
@@ -948,7 +997,7 @@ module Google
|
|
948
997
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
949
998
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
950
999
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
951
|
-
def patch_course_course_work(course_id, id, course_work_object = nil, update_mask: nil,
|
1000
|
+
def patch_course_course_work(course_id, id, course_work_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
952
1001
|
command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{id}', options)
|
953
1002
|
command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation
|
954
1003
|
command.request_object = course_work_object
|
@@ -957,8 +1006,8 @@ module Google
|
|
957
1006
|
command.params['courseId'] = course_id unless course_id.nil?
|
958
1007
|
command.params['id'] = id unless id.nil?
|
959
1008
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
960
|
-
command.query['fields'] = fields unless fields.nil?
|
961
1009
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
962
1011
|
execute_or_queue_command(command, &block)
|
963
1012
|
end
|
964
1013
|
|
@@ -974,11 +1023,11 @@ module Google
|
|
974
1023
|
# alias.
|
975
1024
|
# @param [String] id
|
976
1025
|
# Identifier of the course work.
|
977
|
-
# @param [String] fields
|
978
|
-
# Selector specifying which fields to include in a partial response.
|
979
1026
|
# @param [String] quota_user
|
980
1027
|
# Available to use for quota purposes for server-side applications. Can be any
|
981
1028
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1029
|
+
# @param [String] fields
|
1030
|
+
# Selector specifying which fields to include in a partial response.
|
982
1031
|
# @param [Google::Apis::RequestOptions] options
|
983
1032
|
# Request-specific options
|
984
1033
|
#
|
@@ -991,14 +1040,14 @@ module Google
|
|
991
1040
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
992
1041
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
993
1042
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
994
|
-
def
|
1043
|
+
def get_course_course_work(course_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
995
1044
|
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{id}', options)
|
996
1045
|
command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation
|
997
1046
|
command.response_class = Google::Apis::ClassroomV1::CourseWork
|
998
1047
|
command.params['courseId'] = course_id unless course_id.nil?
|
999
1048
|
command.params['id'] = id unless id.nil?
|
1000
|
-
command.query['fields'] = fields unless fields.nil?
|
1001
1049
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1050
|
+
command.query['fields'] = fields unless fields.nil?
|
1002
1051
|
execute_or_queue_command(command, &block)
|
1003
1052
|
end
|
1004
1053
|
|
@@ -1014,6 +1063,14 @@ module Google
|
|
1014
1063
|
# Identifier of the course.
|
1015
1064
|
# This identifier can be either the Classroom-assigned identifier or an
|
1016
1065
|
# alias.
|
1066
|
+
# @param [Fixnum] page_size
|
1067
|
+
# Maximum number of items to return. Zero or unspecified indicates that the
|
1068
|
+
# server may assign a maximum.
|
1069
|
+
# The server may return fewer than the specified number of results.
|
1070
|
+
# @param [Array<String>, String] course_work_states
|
1071
|
+
# Restriction on the work status to return. Only courseWork that matches
|
1072
|
+
# is returned. If unspecified, items with a work status of `PUBLISHED`
|
1073
|
+
# is returned.
|
1017
1074
|
# @param [String] order_by
|
1018
1075
|
# Optional sort ordering for results. A comma-separated list of fields with
|
1019
1076
|
# an optional sort direction keyword. Supported fields are `updateTime`
|
@@ -1027,19 +1084,11 @@ module Google
|
|
1027
1084
|
# indicating that the subsequent page of results should be returned.
|
1028
1085
|
# The list request
|
1029
1086
|
# must be otherwise identical to the one that resulted in this token.
|
1030
|
-
# @param [Fixnum] page_size
|
1031
|
-
# Maximum number of items to return. Zero or unspecified indicates that the
|
1032
|
-
# server may assign a maximum.
|
1033
|
-
# The server may return fewer than the specified number of results.
|
1034
|
-
# @param [Array<String>, String] course_work_states
|
1035
|
-
# Restriction on the work status to return. Only courseWork that matches
|
1036
|
-
# is returned. If unspecified, items with a work status of `PUBLISHED`
|
1037
|
-
# is returned.
|
1038
|
-
# @param [String] fields
|
1039
|
-
# Selector specifying which fields to include in a partial response.
|
1040
1087
|
# @param [String] quota_user
|
1041
1088
|
# Available to use for quota purposes for server-side applications. Can be any
|
1042
1089
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1090
|
+
# @param [String] fields
|
1091
|
+
# Selector specifying which fields to include in a partial response.
|
1043
1092
|
# @param [Google::Apis::RequestOptions] options
|
1044
1093
|
# Request-specific options
|
1045
1094
|
#
|
@@ -1052,82 +1101,86 @@ module Google
|
|
1052
1101
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1053
1102
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1054
1103
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1055
|
-
def
|
1104
|
+
def list_course_course_works(course_id, page_size: nil, course_work_states: nil, order_by: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1056
1105
|
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork', options)
|
1057
1106
|
command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkResponse::Representation
|
1058
1107
|
command.response_class = Google::Apis::ClassroomV1::ListCourseWorkResponse
|
1059
1108
|
command.params['courseId'] = course_id unless course_id.nil?
|
1060
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
1061
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1062
1109
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1063
1110
|
command.query['courseWorkStates'] = course_work_states unless course_work_states.nil?
|
1064
|
-
command.query['
|
1111
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1112
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1065
1113
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1114
|
+
command.query['fields'] = fields unless fields.nil?
|
1066
1115
|
execute_or_queue_command(command, &block)
|
1067
1116
|
end
|
1068
1117
|
|
1069
|
-
#
|
1070
|
-
#
|
1071
|
-
#
|
1118
|
+
# Updates one or more fields of a student submission.
|
1119
|
+
# See google.classroom.v1.StudentSubmission for details
|
1120
|
+
# of which fields may be updated and who may change them.
|
1121
|
+
# This request must be made by the Developer Console project of the
|
1072
1122
|
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1073
|
-
#
|
1074
|
-
# submissions must be made with an OAuth client ID from the associated
|
1075
|
-
# Developer Console project.
|
1123
|
+
# create the corresponding course work item.
|
1076
1124
|
# This method returns the following error codes:
|
1077
|
-
# * `PERMISSION_DENIED` if the requesting
|
1078
|
-
#
|
1079
|
-
#
|
1125
|
+
# * `PERMISSION_DENIED` if the requesting developer project did not create
|
1126
|
+
# the corresponding course work, if the user is not permitted to make the
|
1127
|
+
# requested modification to the student submission, or for
|
1128
|
+
# access errors.
|
1080
1129
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1081
|
-
# * `NOT_FOUND` if the requested course
|
1082
|
-
#
|
1083
|
-
# * AttachmentNotVisible
|
1130
|
+
# * `NOT_FOUND` if the requested course, course work, or student submission
|
1131
|
+
# does not exist.
|
1084
1132
|
# @param [String] course_id
|
1085
1133
|
# Identifier of the course.
|
1086
1134
|
# This identifier can be either the Classroom-assigned identifier or an
|
1087
1135
|
# alias.
|
1088
|
-
# @param [
|
1089
|
-
#
|
1090
|
-
#
|
1136
|
+
# @param [String] course_work_id
|
1137
|
+
# Identifier of the course work.
|
1138
|
+
# @param [String] id
|
1139
|
+
# Identifier of the student submission.
|
1140
|
+
# @param [Google::Apis::ClassroomV1::StudentSubmission] student_submission_object
|
1141
|
+
# @param [String] update_mask
|
1142
|
+
# Mask that identifies which fields on the student submission to update.
|
1143
|
+
# This field is required to do an update. The update fails if invalid
|
1144
|
+
# fields are specified.
|
1145
|
+
# The following fields may be specified by teachers:
|
1146
|
+
# * `draft_grade`
|
1147
|
+
# * `assigned_grade`
|
1091
1148
|
# @param [String] quota_user
|
1092
1149
|
# Available to use for quota purposes for server-side applications. Can be any
|
1093
1150
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1151
|
+
# @param [String] fields
|
1152
|
+
# Selector specifying which fields to include in a partial response.
|
1094
1153
|
# @param [Google::Apis::RequestOptions] options
|
1095
1154
|
# Request-specific options
|
1096
1155
|
#
|
1097
1156
|
# @yield [result, err] Result & error if block supplied
|
1098
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1157
|
+
# @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object
|
1099
1158
|
# @yieldparam err [StandardError] error object if request failed
|
1100
1159
|
#
|
1101
|
-
# @return [Google::Apis::ClassroomV1::
|
1160
|
+
# @return [Google::Apis::ClassroomV1::StudentSubmission]
|
1102
1161
|
#
|
1103
1162
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1104
1163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1105
1164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1106
|
-
def
|
1107
|
-
command = make_simple_command(:
|
1108
|
-
command.request_representation = Google::Apis::ClassroomV1::
|
1109
|
-
command.request_object =
|
1110
|
-
command.response_representation = Google::Apis::ClassroomV1::
|
1111
|
-
command.response_class = Google::Apis::ClassroomV1::
|
1165
|
+
def patch_course_course_work_student_submission(course_id, course_work_id, id, student_submission_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1166
|
+
command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options)
|
1167
|
+
command.request_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation
|
1168
|
+
command.request_object = student_submission_object
|
1169
|
+
command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation
|
1170
|
+
command.response_class = Google::Apis::ClassroomV1::StudentSubmission
|
1112
1171
|
command.params['courseId'] = course_id unless course_id.nil?
|
1113
|
-
command.
|
1172
|
+
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1173
|
+
command.params['id'] = id unless id.nil?
|
1174
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1114
1175
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1176
|
+
command.query['fields'] = fields unless fields.nil?
|
1115
1177
|
execute_or_queue_command(command, &block)
|
1116
1178
|
end
|
1117
1179
|
|
1118
|
-
#
|
1119
|
-
# Reclaiming a student submission transfers ownership of attached Drive
|
1120
|
-
# files to the student and update the submission state.
|
1121
|
-
# Only the student that owns the requested student submission may call this
|
1122
|
-
# method, and only for a student submission that has been turned in.
|
1123
|
-
# This request must be made by the Developer Console project of the
|
1124
|
-
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1125
|
-
# create the corresponding course work item.
|
1126
|
-
# This method returns the following error codes:
|
1180
|
+
# Returns a student submission.
|
1127
1181
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1128
|
-
# requested course
|
1129
|
-
#
|
1130
|
-
# * `FAILED_PRECONDITION` if the student submission has not been turned in.
|
1182
|
+
# requested course, course work, or student submission or for
|
1183
|
+
# access errors.
|
1131
1184
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1132
1185
|
# * `NOT_FOUND` if the requested course, course work, or student submission
|
1133
1186
|
# does not exist.
|
@@ -1139,49 +1192,48 @@ module Google
|
|
1139
1192
|
# Identifier of the course work.
|
1140
1193
|
# @param [String] id
|
1141
1194
|
# Identifier of the student submission.
|
1142
|
-
# @param [Google::Apis::ClassroomV1::ReclaimStudentSubmissionRequest] reclaim_student_submission_request_object
|
1143
|
-
# @param [String] fields
|
1144
|
-
# Selector specifying which fields to include in a partial response.
|
1145
1195
|
# @param [String] quota_user
|
1146
1196
|
# Available to use for quota purposes for server-side applications. Can be any
|
1147
1197
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1198
|
+
# @param [String] fields
|
1199
|
+
# Selector specifying which fields to include in a partial response.
|
1148
1200
|
# @param [Google::Apis::RequestOptions] options
|
1149
1201
|
# Request-specific options
|
1150
1202
|
#
|
1151
1203
|
# @yield [result, err] Result & error if block supplied
|
1152
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1204
|
+
# @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object
|
1153
1205
|
# @yieldparam err [StandardError] error object if request failed
|
1154
1206
|
#
|
1155
|
-
# @return [Google::Apis::ClassroomV1::
|
1207
|
+
# @return [Google::Apis::ClassroomV1::StudentSubmission]
|
1156
1208
|
#
|
1157
1209
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1158
1210
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1159
1211
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1160
|
-
def
|
1161
|
-
command = make_simple_command(:
|
1162
|
-
command.
|
1163
|
-
command.
|
1164
|
-
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1165
|
-
command.response_class = Google::Apis::ClassroomV1::Empty
|
1212
|
+
def get_course_course_work_student_submission(course_id, course_work_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
1213
|
+
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options)
|
1214
|
+
command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation
|
1215
|
+
command.response_class = Google::Apis::ClassroomV1::StudentSubmission
|
1166
1216
|
command.params['courseId'] = course_id unless course_id.nil?
|
1167
1217
|
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1168
1218
|
command.params['id'] = id unless id.nil?
|
1169
|
-
command.query['fields'] = fields unless fields.nil?
|
1170
1219
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1220
|
+
command.query['fields'] = fields unless fields.nil?
|
1171
1221
|
execute_or_queue_command(command, &block)
|
1172
1222
|
end
|
1173
1223
|
|
1174
|
-
#
|
1175
|
-
#
|
1176
|
-
# files to the
|
1177
|
-
#
|
1178
|
-
#
|
1224
|
+
# Returns a student submission.
|
1225
|
+
# Returning a student submission transfers ownership of attached Drive
|
1226
|
+
# files to the student and may also update the submission state.
|
1227
|
+
# Unlike the Classroom application, returning a student submission does not
|
1228
|
+
# set assignedGrade to the draftGrade value.
|
1229
|
+
# Only a teacher of the course that contains the requested student submission
|
1230
|
+
# may call this method.
|
1179
1231
|
# This request must be made by the Developer Console project of the
|
1180
1232
|
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1181
1233
|
# create the corresponding course work item.
|
1182
1234
|
# This method returns the following error codes:
|
1183
1235
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1184
|
-
# requested course or course work,
|
1236
|
+
# requested course or course work, return the requested student submission,
|
1185
1237
|
# or for access errors.
|
1186
1238
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1187
1239
|
# * `NOT_FOUND` if the requested course, course work, or student submission
|
@@ -1194,12 +1246,12 @@ module Google
|
|
1194
1246
|
# Identifier of the course work.
|
1195
1247
|
# @param [String] id
|
1196
1248
|
# Identifier of the student submission.
|
1197
|
-
# @param [Google::Apis::ClassroomV1::
|
1198
|
-
# @param [String] fields
|
1199
|
-
# Selector specifying which fields to include in a partial response.
|
1249
|
+
# @param [Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest] return_student_submission_request_object
|
1200
1250
|
# @param [String] quota_user
|
1201
1251
|
# Available to use for quota purposes for server-side applications. Can be any
|
1202
1252
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1253
|
+
# @param [String] fields
|
1254
|
+
# Selector specifying which fields to include in a partial response.
|
1203
1255
|
# @param [Google::Apis::RequestOptions] options
|
1204
1256
|
# Request-specific options
|
1205
1257
|
#
|
@@ -1212,31 +1264,33 @@ module Google
|
|
1212
1264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1213
1265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1214
1266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1215
|
-
def
|
1216
|
-
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:
|
1217
|
-
command.request_representation = Google::Apis::ClassroomV1::
|
1218
|
-
command.request_object =
|
1267
|
+
def return_student_submission(course_id, course_work_id, id, return_student_submission_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1268
|
+
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return', options)
|
1269
|
+
command.request_representation = Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest::Representation
|
1270
|
+
command.request_object = return_student_submission_request_object
|
1219
1271
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1220
1272
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
1221
1273
|
command.params['courseId'] = course_id unless course_id.nil?
|
1222
1274
|
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1223
1275
|
command.params['id'] = id unless id.nil?
|
1224
|
-
command.query['fields'] = fields unless fields.nil?
|
1225
1276
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1277
|
+
command.query['fields'] = fields unless fields.nil?
|
1226
1278
|
execute_or_queue_command(command, &block)
|
1227
1279
|
end
|
1228
1280
|
|
1229
|
-
#
|
1230
|
-
#
|
1231
|
-
#
|
1281
|
+
# Reclaims a student submission on behalf of the student that owns it.
|
1282
|
+
# Reclaiming a student submission transfers ownership of attached Drive
|
1283
|
+
# files to the student and update the submission state.
|
1284
|
+
# Only the student that owns the requested student submission may call this
|
1285
|
+
# method, and only for a student submission that has been turned in.
|
1232
1286
|
# This request must be made by the Developer Console project of the
|
1233
1287
|
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1234
1288
|
# create the corresponding course work item.
|
1235
1289
|
# This method returns the following error codes:
|
1236
1290
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1237
|
-
# requested course or course work,
|
1238
|
-
#
|
1239
|
-
#
|
1291
|
+
# requested course or course work, unsubmit the requested student submission,
|
1292
|
+
# or for access errors.
|
1293
|
+
# * `FAILED_PRECONDITION` if the student submission has not been turned in.
|
1240
1294
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1241
1295
|
# * `NOT_FOUND` if the requested course, course work, or student submission
|
1242
1296
|
# does not exist.
|
@@ -1248,119 +1302,50 @@ module Google
|
|
1248
1302
|
# Identifier of the course work.
|
1249
1303
|
# @param [String] id
|
1250
1304
|
# Identifier of the student submission.
|
1251
|
-
# @param [Google::Apis::ClassroomV1::
|
1252
|
-
# @param [String] fields
|
1253
|
-
# Selector specifying which fields to include in a partial response.
|
1305
|
+
# @param [Google::Apis::ClassroomV1::ReclaimStudentSubmissionRequest] reclaim_student_submission_request_object
|
1254
1306
|
# @param [String] quota_user
|
1255
1307
|
# Available to use for quota purposes for server-side applications. Can be any
|
1256
1308
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1257
|
-
# @param [Google::Apis::RequestOptions] options
|
1258
|
-
# Request-specific options
|
1259
|
-
#
|
1260
|
-
# @yield [result, err] Result & error if block supplied
|
1261
|
-
# @yieldparam result [Google::Apis::ClassroomV1::StudentSubmission] parsed result object
|
1262
|
-
# @yieldparam err [StandardError] error object if request failed
|
1263
|
-
#
|
1264
|
-
# @return [Google::Apis::ClassroomV1::StudentSubmission]
|
1265
|
-
#
|
1266
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1267
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1268
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1269
|
-
def modify_student_submission_attachments(course_id, course_work_id, id, modify_attachments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1270
|
-
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments', options)
|
1271
|
-
command.request_representation = Google::Apis::ClassroomV1::ModifyAttachmentsRequest::Representation
|
1272
|
-
command.request_object = modify_attachments_request_object
|
1273
|
-
command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation
|
1274
|
-
command.response_class = Google::Apis::ClassroomV1::StudentSubmission
|
1275
|
-
command.params['courseId'] = course_id unless course_id.nil?
|
1276
|
-
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1277
|
-
command.params['id'] = id unless id.nil?
|
1278
|
-
command.query['fields'] = fields unless fields.nil?
|
1279
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1280
|
-
execute_or_queue_command(command, &block)
|
1281
|
-
end
|
1282
|
-
|
1283
|
-
# Returns a list of student submissions that the requester is permitted to
|
1284
|
-
# view, factoring in the OAuth scopes of the request.
|
1285
|
-
# `-` may be specified as the `course_work_id` to include student
|
1286
|
-
# submissions for multiple course work items.
|
1287
|
-
# Course students may only view their own work. Course teachers
|
1288
|
-
# and domain administrators may view all student submissions.
|
1289
|
-
# This method returns the following error codes:
|
1290
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1291
|
-
# requested course or course work, or for access errors.
|
1292
|
-
# * `INVALID_ARGUMENT` if the request is malformed.
|
1293
|
-
# * `NOT_FOUND` if the requested course does not exist.
|
1294
|
-
# @param [String] course_id
|
1295
|
-
# Identifier of the course.
|
1296
|
-
# This identifier can be either the Classroom-assigned identifier or an
|
1297
|
-
# alias.
|
1298
|
-
# @param [String] course_work_id
|
1299
|
-
# Identifer of the student work to request.
|
1300
|
-
# This may be set to the string literal `"-"` to request student work for
|
1301
|
-
# all course work in the specified course.
|
1302
|
-
# @param [String] user_id
|
1303
|
-
# Optional argument to restrict returned student work to those owned by the
|
1304
|
-
# student with the specified identifier. The identifier can be one of the
|
1305
|
-
# following:
|
1306
|
-
# * the numeric identifier for the user
|
1307
|
-
# * the email address of the user
|
1308
|
-
# * the string literal `"me"`, indicating the requesting user
|
1309
|
-
# @param [String] late
|
1310
|
-
# Requested lateness value. If specified, returned student submissions are
|
1311
|
-
# restricted by the requested value.
|
1312
|
-
# If unspecified, submissions are returned regardless of `late` value.
|
1313
|
-
# @param [String] page_token
|
1314
|
-
# nextPageToken
|
1315
|
-
# value returned from a previous
|
1316
|
-
# list call,
|
1317
|
-
# indicating that the subsequent page of results should be returned.
|
1318
|
-
# The list request
|
1319
|
-
# must be otherwise identical to the one that resulted in this token.
|
1320
|
-
# @param [Fixnum] page_size
|
1321
|
-
# Maximum number of items to return. Zero or unspecified indicates that the
|
1322
|
-
# server may assign a maximum.
|
1323
|
-
# The server may return fewer than the specified number of results.
|
1324
|
-
# @param [Array<String>, String] states
|
1325
|
-
# Requested submission states. If specified, returned student submissions
|
1326
|
-
# match one of the specified submission states.
|
1327
1309
|
# @param [String] fields
|
1328
1310
|
# Selector specifying which fields to include in a partial response.
|
1329
|
-
# @param [String] quota_user
|
1330
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1331
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1332
1311
|
# @param [Google::Apis::RequestOptions] options
|
1333
1312
|
# Request-specific options
|
1334
1313
|
#
|
1335
1314
|
# @yield [result, err] Result & error if block supplied
|
1336
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1315
|
+
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
1337
1316
|
# @yieldparam err [StandardError] error object if request failed
|
1338
1317
|
#
|
1339
|
-
# @return [Google::Apis::ClassroomV1::
|
1318
|
+
# @return [Google::Apis::ClassroomV1::Empty]
|
1340
1319
|
#
|
1341
1320
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1342
1321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1343
1322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1344
|
-
def
|
1345
|
-
command = make_simple_command(:
|
1346
|
-
command.
|
1347
|
-
command.
|
1323
|
+
def reclaim_student_submission(course_id, course_work_id, id, reclaim_student_submission_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1324
|
+
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim', options)
|
1325
|
+
command.request_representation = Google::Apis::ClassroomV1::ReclaimStudentSubmissionRequest::Representation
|
1326
|
+
command.request_object = reclaim_student_submission_request_object
|
1327
|
+
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1328
|
+
command.response_class = Google::Apis::ClassroomV1::Empty
|
1348
1329
|
command.params['courseId'] = course_id unless course_id.nil?
|
1349
1330
|
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1350
|
-
command.
|
1351
|
-
command.query['late'] = late unless late.nil?
|
1352
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1353
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1354
|
-
command.query['states'] = states unless states.nil?
|
1355
|
-
command.query['fields'] = fields unless fields.nil?
|
1331
|
+
command.params['id'] = id unless id.nil?
|
1356
1332
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1333
|
+
command.query['fields'] = fields unless fields.nil?
|
1357
1334
|
execute_or_queue_command(command, &block)
|
1358
1335
|
end
|
1359
1336
|
|
1360
|
-
#
|
1337
|
+
# Turns in a student submission.
|
1338
|
+
# Turning in a student submission transfers ownership of attached Drive
|
1339
|
+
# files to the teacher and may also update the submission state.
|
1340
|
+
# This may only be called by the student that owns the specified student
|
1341
|
+
# submission.
|
1342
|
+
# This request must be made by the Developer Console project of the
|
1343
|
+
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1344
|
+
# create the corresponding course work item.
|
1345
|
+
# This method returns the following error codes:
|
1361
1346
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1362
|
-
# requested course
|
1363
|
-
# access errors.
|
1347
|
+
# requested course or course work, turn in the requested student submission,
|
1348
|
+
# or for access errors.
|
1364
1349
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1365
1350
|
# * `NOT_FOUND` if the requested course, course work, or student submission
|
1366
1351
|
# does not exist.
|
@@ -1372,45 +1357,48 @@ module Google
|
|
1372
1357
|
# Identifier of the course work.
|
1373
1358
|
# @param [String] id
|
1374
1359
|
# Identifier of the student submission.
|
1375
|
-
# @param [
|
1376
|
-
# Selector specifying which fields to include in a partial response.
|
1360
|
+
# @param [Google::Apis::ClassroomV1::TurnInStudentSubmissionRequest] turn_in_student_submission_request_object
|
1377
1361
|
# @param [String] quota_user
|
1378
1362
|
# Available to use for quota purposes for server-side applications. Can be any
|
1379
1363
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1364
|
+
# @param [String] fields
|
1365
|
+
# Selector specifying which fields to include in a partial response.
|
1380
1366
|
# @param [Google::Apis::RequestOptions] options
|
1381
1367
|
# Request-specific options
|
1382
1368
|
#
|
1383
1369
|
# @yield [result, err] Result & error if block supplied
|
1384
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1370
|
+
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
1385
1371
|
# @yieldparam err [StandardError] error object if request failed
|
1386
1372
|
#
|
1387
|
-
# @return [Google::Apis::ClassroomV1::
|
1373
|
+
# @return [Google::Apis::ClassroomV1::Empty]
|
1388
1374
|
#
|
1389
1375
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1390
1376
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1391
1377
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1392
|
-
def
|
1393
|
-
command = make_simple_command(:
|
1394
|
-
command.
|
1395
|
-
command.
|
1378
|
+
def turn_in_student_submission(course_id, course_work_id, id, turn_in_student_submission_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1379
|
+
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn', options)
|
1380
|
+
command.request_representation = Google::Apis::ClassroomV1::TurnInStudentSubmissionRequest::Representation
|
1381
|
+
command.request_object = turn_in_student_submission_request_object
|
1382
|
+
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1383
|
+
command.response_class = Google::Apis::ClassroomV1::Empty
|
1396
1384
|
command.params['courseId'] = course_id unless course_id.nil?
|
1397
1385
|
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1398
1386
|
command.params['id'] = id unless id.nil?
|
1399
|
-
command.query['fields'] = fields unless fields.nil?
|
1400
1387
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1388
|
+
command.query['fields'] = fields unless fields.nil?
|
1401
1389
|
execute_or_queue_command(command, &block)
|
1402
1390
|
end
|
1403
1391
|
|
1404
|
-
#
|
1405
|
-
#
|
1406
|
-
#
|
1392
|
+
# Modifies attachments of student submission.
|
1393
|
+
# Attachments may only be added to student submissions belonging to course
|
1394
|
+
# work objects with a `workType` of `ASSIGNMENT`.
|
1407
1395
|
# This request must be made by the Developer Console project of the
|
1408
1396
|
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1409
1397
|
# create the corresponding course work item.
|
1410
1398
|
# This method returns the following error codes:
|
1411
|
-
# * `PERMISSION_DENIED` if the requesting
|
1412
|
-
#
|
1413
|
-
#
|
1399
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1400
|
+
# requested course or course work, if the user is not permitted to modify
|
1401
|
+
# attachments on the requested student submission, or for
|
1414
1402
|
# access errors.
|
1415
1403
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1416
1404
|
# * `NOT_FOUND` if the requested course, course work, or student submission
|
@@ -1423,19 +1411,12 @@ module Google
|
|
1423
1411
|
# Identifier of the course work.
|
1424
1412
|
# @param [String] id
|
1425
1413
|
# Identifier of the student submission.
|
1426
|
-
# @param [Google::Apis::ClassroomV1::
|
1427
|
-
# @param [String] update_mask
|
1428
|
-
# Mask that identifies which fields on the student submission to update.
|
1429
|
-
# This field is required to do an update. The update fails if invalid
|
1430
|
-
# fields are specified.
|
1431
|
-
# The following fields may be specified by teachers:
|
1432
|
-
# * `draft_grade`
|
1433
|
-
# * `assigned_grade`
|
1434
|
-
# @param [String] fields
|
1435
|
-
# Selector specifying which fields to include in a partial response.
|
1414
|
+
# @param [Google::Apis::ClassroomV1::ModifyAttachmentsRequest] modify_attachments_request_object
|
1436
1415
|
# @param [String] quota_user
|
1437
1416
|
# Available to use for quota purposes for server-side applications. Can be any
|
1438
1417
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1418
|
+
# @param [String] fields
|
1419
|
+
# Selector specifying which fields to include in a partial response.
|
1439
1420
|
# @param [Google::Apis::RequestOptions] options
|
1440
1421
|
# Request-specific options
|
1441
1422
|
#
|
@@ -1448,121 +1429,94 @@ module Google
|
|
1448
1429
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1449
1430
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1450
1431
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1451
|
-
def
|
1452
|
-
command = make_simple_command(:
|
1453
|
-
command.request_representation = Google::Apis::ClassroomV1::
|
1454
|
-
command.request_object =
|
1432
|
+
def modify_student_submission_attachments(course_id, course_work_id, id, modify_attachments_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1433
|
+
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments', options)
|
1434
|
+
command.request_representation = Google::Apis::ClassroomV1::ModifyAttachmentsRequest::Representation
|
1435
|
+
command.request_object = modify_attachments_request_object
|
1455
1436
|
command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation
|
1456
1437
|
command.response_class = Google::Apis::ClassroomV1::StudentSubmission
|
1457
1438
|
command.params['courseId'] = course_id unless course_id.nil?
|
1458
1439
|
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1459
1440
|
command.params['id'] = id unless id.nil?
|
1460
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1461
|
-
command.query['fields'] = fields unless fields.nil?
|
1462
1441
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1442
|
+
command.query['fields'] = fields unless fields.nil?
|
1463
1443
|
execute_or_queue_command(command, &block)
|
1464
1444
|
end
|
1465
1445
|
|
1466
|
-
# Returns a student
|
1467
|
-
#
|
1468
|
-
#
|
1469
|
-
#
|
1470
|
-
#
|
1471
|
-
#
|
1472
|
-
# may call this method.
|
1473
|
-
# This request must be made by the Developer Console project of the
|
1474
|
-
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
|
1475
|
-
# create the corresponding course work item.
|
1446
|
+
# Returns a list of student submissions that the requester is permitted to
|
1447
|
+
# view, factoring in the OAuth scopes of the request.
|
1448
|
+
# `-` may be specified as the `course_work_id` to include student
|
1449
|
+
# submissions for multiple course work items.
|
1450
|
+
# Course students may only view their own work. Course teachers
|
1451
|
+
# and domain administrators may view all student submissions.
|
1476
1452
|
# This method returns the following error codes:
|
1477
1453
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
1478
|
-
# requested course or course work,
|
1479
|
-
# or for access errors.
|
1454
|
+
# requested course or course work, or for access errors.
|
1480
1455
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
1481
|
-
# * `NOT_FOUND` if the requested course
|
1482
|
-
# does not exist.
|
1456
|
+
# * `NOT_FOUND` if the requested course does not exist.
|
1483
1457
|
# @param [String] course_id
|
1484
1458
|
# Identifier of the course.
|
1485
1459
|
# This identifier can be either the Classroom-assigned identifier or an
|
1486
1460
|
# alias.
|
1487
1461
|
# @param [String] course_work_id
|
1488
|
-
#
|
1489
|
-
#
|
1490
|
-
#
|
1491
|
-
# @param [Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest] return_student_submission_request_object
|
1492
|
-
# @param [String] fields
|
1493
|
-
# Selector specifying which fields to include in a partial response.
|
1494
|
-
# @param [String] quota_user
|
1495
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1496
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1497
|
-
# @param [Google::Apis::RequestOptions] options
|
1498
|
-
# Request-specific options
|
1499
|
-
#
|
1500
|
-
# @yield [result, err] Result & error if block supplied
|
1501
|
-
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
1502
|
-
# @yieldparam err [StandardError] error object if request failed
|
1503
|
-
#
|
1504
|
-
# @return [Google::Apis::ClassroomV1::Empty]
|
1505
|
-
#
|
1506
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1507
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1508
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1509
|
-
def return_student_submission(course_id, course_work_id, id, return_student_submission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1510
|
-
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return', options)
|
1511
|
-
command.request_representation = Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest::Representation
|
1512
|
-
command.request_object = return_student_submission_request_object
|
1513
|
-
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1514
|
-
command.response_class = Google::Apis::ClassroomV1::Empty
|
1515
|
-
command.params['courseId'] = course_id unless course_id.nil?
|
1516
|
-
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1517
|
-
command.params['id'] = id unless id.nil?
|
1518
|
-
command.query['fields'] = fields unless fields.nil?
|
1519
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1520
|
-
execute_or_queue_command(command, &block)
|
1521
|
-
end
|
1522
|
-
|
1523
|
-
# Deletes a teacher of a course.
|
1524
|
-
# This method returns the following error codes:
|
1525
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to delete
|
1526
|
-
# teachers of this course or for access errors.
|
1527
|
-
# * `NOT_FOUND` if no teacher of this course has the requested ID or if the
|
1528
|
-
# course does not exist.
|
1529
|
-
# * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher
|
1530
|
-
# of this course.
|
1531
|
-
# @param [String] course_id
|
1532
|
-
# Identifier of the course.
|
1533
|
-
# This identifier can be either the Classroom-assigned identifier or an
|
1534
|
-
# alias.
|
1462
|
+
# Identifer of the student work to request.
|
1463
|
+
# This may be set to the string literal `"-"` to request student work for
|
1464
|
+
# all course work in the specified course.
|
1535
1465
|
# @param [String] user_id
|
1536
|
-
#
|
1466
|
+
# Optional argument to restrict returned student work to those owned by the
|
1467
|
+
# student with the specified identifier. The identifier can be one of the
|
1537
1468
|
# following:
|
1538
1469
|
# * the numeric identifier for the user
|
1539
1470
|
# * the email address of the user
|
1540
1471
|
# * the string literal `"me"`, indicating the requesting user
|
1541
|
-
# @param [String]
|
1542
|
-
#
|
1472
|
+
# @param [String] late
|
1473
|
+
# Requested lateness value. If specified, returned student submissions are
|
1474
|
+
# restricted by the requested value.
|
1475
|
+
# If unspecified, submissions are returned regardless of `late` value.
|
1476
|
+
# @param [String] page_token
|
1477
|
+
# nextPageToken
|
1478
|
+
# value returned from a previous
|
1479
|
+
# list call,
|
1480
|
+
# indicating that the subsequent page of results should be returned.
|
1481
|
+
# The list request
|
1482
|
+
# must be otherwise identical to the one that resulted in this token.
|
1483
|
+
# @param [Array<String>, String] states
|
1484
|
+
# Requested submission states. If specified, returned student submissions
|
1485
|
+
# match one of the specified submission states.
|
1486
|
+
# @param [Fixnum] page_size
|
1487
|
+
# Maximum number of items to return. Zero or unspecified indicates that the
|
1488
|
+
# server may assign a maximum.
|
1489
|
+
# The server may return fewer than the specified number of results.
|
1543
1490
|
# @param [String] quota_user
|
1544
1491
|
# Available to use for quota purposes for server-side applications. Can be any
|
1545
1492
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1493
|
+
# @param [String] fields
|
1494
|
+
# Selector specifying which fields to include in a partial response.
|
1546
1495
|
# @param [Google::Apis::RequestOptions] options
|
1547
1496
|
# Request-specific options
|
1548
1497
|
#
|
1549
1498
|
# @yield [result, err] Result & error if block supplied
|
1550
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1499
|
+
# @yieldparam result [Google::Apis::ClassroomV1::ListStudentSubmissionsResponse] parsed result object
|
1551
1500
|
# @yieldparam err [StandardError] error object if request failed
|
1552
1501
|
#
|
1553
|
-
# @return [Google::Apis::ClassroomV1::
|
1502
|
+
# @return [Google::Apis::ClassroomV1::ListStudentSubmissionsResponse]
|
1554
1503
|
#
|
1555
1504
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1556
1505
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1557
1506
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1558
|
-
def
|
1559
|
-
command = make_simple_command(:
|
1560
|
-
command.response_representation = Google::Apis::ClassroomV1::
|
1561
|
-
command.response_class = Google::Apis::ClassroomV1::
|
1507
|
+
def list_course_course_work_student_submissions(course_id, course_work_id, user_id: nil, late: nil, page_token: nil, states: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1508
|
+
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions', options)
|
1509
|
+
command.response_representation = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse::Representation
|
1510
|
+
command.response_class = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse
|
1562
1511
|
command.params['courseId'] = course_id unless course_id.nil?
|
1563
|
-
command.params['
|
1564
|
-
command.query['
|
1512
|
+
command.params['courseWorkId'] = course_work_id unless course_work_id.nil?
|
1513
|
+
command.query['userId'] = user_id unless user_id.nil?
|
1514
|
+
command.query['late'] = late unless late.nil?
|
1515
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1516
|
+
command.query['states'] = states unless states.nil?
|
1517
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1565
1518
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1519
|
+
command.query['fields'] = fields unless fields.nil?
|
1566
1520
|
execute_or_queue_command(command, &block)
|
1567
1521
|
end
|
1568
1522
|
|
@@ -1582,11 +1536,11 @@ module Google
|
|
1582
1536
|
# * the numeric identifier for the user
|
1583
1537
|
# * the email address of the user
|
1584
1538
|
# * the string literal `"me"`, indicating the requesting user
|
1585
|
-
# @param [String] fields
|
1586
|
-
# Selector specifying which fields to include in a partial response.
|
1587
1539
|
# @param [String] quota_user
|
1588
1540
|
# Available to use for quota purposes for server-side applications. Can be any
|
1589
1541
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1542
|
+
# @param [String] fields
|
1543
|
+
# Selector specifying which fields to include in a partial response.
|
1590
1544
|
# @param [Google::Apis::RequestOptions] options
|
1591
1545
|
# Request-specific options
|
1592
1546
|
#
|
@@ -1599,14 +1553,14 @@ module Google
|
|
1599
1553
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1600
1554
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1601
1555
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1602
|
-
def get_course_teacher(course_id, user_id,
|
1556
|
+
def get_course_teacher(course_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
1603
1557
|
command = make_simple_command(:get, 'v1/courses/{courseId}/teachers/{userId}', options)
|
1604
1558
|
command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
1605
1559
|
command.response_class = Google::Apis::ClassroomV1::Teacher
|
1606
1560
|
command.params['courseId'] = course_id unless course_id.nil?
|
1607
1561
|
command.params['userId'] = user_id unless user_id.nil?
|
1608
|
-
command.query['fields'] = fields unless fields.nil?
|
1609
1562
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1563
|
+
command.query['fields'] = fields unless fields.nil?
|
1610
1564
|
execute_or_queue_command(command, &block)
|
1611
1565
|
end
|
1612
1566
|
|
@@ -1619,6 +1573,9 @@ module Google
|
|
1619
1573
|
# Identifier of the course.
|
1620
1574
|
# This identifier can be either the Classroom-assigned identifier or an
|
1621
1575
|
# alias.
|
1576
|
+
# @param [Fixnum] page_size
|
1577
|
+
# Maximum number of items to return. Zero means no maximum.
|
1578
|
+
# The server may return fewer than the specified number of results.
|
1622
1579
|
# @param [String] page_token
|
1623
1580
|
# nextPageToken
|
1624
1581
|
# value returned from a previous
|
@@ -1626,14 +1583,11 @@ module Google
|
|
1626
1583
|
# the subsequent page of results should be returned.
|
1627
1584
|
# The list request must be
|
1628
1585
|
# otherwise identical to the one that resulted in this token.
|
1629
|
-
# @param [Fixnum] page_size
|
1630
|
-
# Maximum number of items to return. Zero means no maximum.
|
1631
|
-
# The server may return fewer than the specified number of results.
|
1632
|
-
# @param [String] fields
|
1633
|
-
# Selector specifying which fields to include in a partial response.
|
1634
1586
|
# @param [String] quota_user
|
1635
1587
|
# Available to use for quota purposes for server-side applications. Can be any
|
1636
1588
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1589
|
+
# @param [String] fields
|
1590
|
+
# Selector specifying which fields to include in a partial response.
|
1637
1591
|
# @param [Google::Apis::RequestOptions] options
|
1638
1592
|
# Request-specific options
|
1639
1593
|
#
|
@@ -1646,15 +1600,15 @@ module Google
|
|
1646
1600
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1647
1601
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1648
1602
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1649
|
-
def list_course_teachers(course_id,
|
1603
|
+
def list_course_teachers(course_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1650
1604
|
command = make_simple_command(:get, 'v1/courses/{courseId}/teachers', options)
|
1651
1605
|
command.response_representation = Google::Apis::ClassroomV1::ListTeachersResponse::Representation
|
1652
1606
|
command.response_class = Google::Apis::ClassroomV1::ListTeachersResponse
|
1653
1607
|
command.params['courseId'] = course_id unless course_id.nil?
|
1654
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1655
1608
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1656
|
-
command.query['
|
1609
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1657
1610
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1611
|
+
command.query['fields'] = fields unless fields.nil?
|
1658
1612
|
execute_or_queue_command(command, &block)
|
1659
1613
|
end
|
1660
1614
|
|
@@ -1676,11 +1630,11 @@ module Google
|
|
1676
1630
|
# This identifier can be either the Classroom-assigned identifier or an
|
1677
1631
|
# alias.
|
1678
1632
|
# @param [Google::Apis::ClassroomV1::Teacher] teacher_object
|
1679
|
-
# @param [String] fields
|
1680
|
-
# Selector specifying which fields to include in a partial response.
|
1681
1633
|
# @param [String] quota_user
|
1682
1634
|
# Available to use for quota purposes for server-side applications. Can be any
|
1683
1635
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1636
|
+
# @param [String] fields
|
1637
|
+
# Selector specifying which fields to include in a partial response.
|
1684
1638
|
# @param [Google::Apis::RequestOptions] options
|
1685
1639
|
# Request-specific options
|
1686
1640
|
#
|
@@ -1693,111 +1647,99 @@ module Google
|
|
1693
1647
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1694
1648
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1695
1649
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1696
|
-
def create_course_teacher(course_id, teacher_object = nil,
|
1650
|
+
def create_course_teacher(course_id, teacher_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1697
1651
|
command = make_simple_command(:post, 'v1/courses/{courseId}/teachers', options)
|
1698
1652
|
command.request_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
1699
1653
|
command.request_object = teacher_object
|
1700
1654
|
command.response_representation = Google::Apis::ClassroomV1::Teacher::Representation
|
1701
1655
|
command.response_class = Google::Apis::ClassroomV1::Teacher
|
1702
1656
|
command.params['courseId'] = course_id unless course_id.nil?
|
1703
|
-
command.query['fields'] = fields unless fields.nil?
|
1704
1657
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1658
|
+
command.query['fields'] = fields unless fields.nil?
|
1705
1659
|
execute_or_queue_command(command, &block)
|
1706
1660
|
end
|
1707
1661
|
|
1708
|
-
#
|
1662
|
+
# Deletes a teacher of a course.
|
1709
1663
|
# This method returns the following error codes:
|
1710
|
-
# * `PERMISSION_DENIED` if the requesting user is not permitted to
|
1711
|
-
#
|
1712
|
-
#
|
1664
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to delete
|
1665
|
+
# teachers of this course or for access errors.
|
1666
|
+
# * `NOT_FOUND` if no teacher of this course has the requested ID or if the
|
1667
|
+
# course does not exist.
|
1668
|
+
# * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher
|
1669
|
+
# of this course.
|
1670
|
+
# @param [String] course_id
|
1671
|
+
# Identifier of the course.
|
1672
|
+
# This identifier can be either the Classroom-assigned identifier or an
|
1673
|
+
# alias.
|
1713
1674
|
# @param [String] user_id
|
1714
|
-
# Identifier of the
|
1675
|
+
# Identifier of the teacher to delete. The identifier can be one of the
|
1715
1676
|
# following:
|
1716
1677
|
# * the numeric identifier for the user
|
1717
1678
|
# * the email address of the user
|
1718
1679
|
# * the string literal `"me"`, indicating the requesting user
|
1719
|
-
# @param [String] fields
|
1720
|
-
# Selector specifying which fields to include in a partial response.
|
1721
1680
|
# @param [String] quota_user
|
1722
1681
|
# Available to use for quota purposes for server-side applications. Can be any
|
1723
1682
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1683
|
+
# @param [String] fields
|
1684
|
+
# Selector specifying which fields to include in a partial response.
|
1724
1685
|
# @param [Google::Apis::RequestOptions] options
|
1725
1686
|
# Request-specific options
|
1726
1687
|
#
|
1727
1688
|
# @yield [result, err] Result & error if block supplied
|
1728
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1689
|
+
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
1729
1690
|
# @yieldparam err [StandardError] error object if request failed
|
1730
1691
|
#
|
1731
|
-
# @return [Google::Apis::ClassroomV1::
|
1692
|
+
# @return [Google::Apis::ClassroomV1::Empty]
|
1732
1693
|
#
|
1733
1694
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1734
1695
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1735
1696
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1736
|
-
def
|
1737
|
-
command = make_simple_command(:
|
1738
|
-
command.response_representation = Google::Apis::ClassroomV1::
|
1739
|
-
command.response_class = Google::Apis::ClassroomV1::
|
1697
|
+
def delete_course_teacher(course_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
1698
|
+
command = make_simple_command(:delete, 'v1/courses/{courseId}/teachers/{userId}', options)
|
1699
|
+
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
1700
|
+
command.response_class = Google::Apis::ClassroomV1::Empty
|
1701
|
+
command.params['courseId'] = course_id unless course_id.nil?
|
1740
1702
|
command.params['userId'] = user_id unless user_id.nil?
|
1741
|
-
command.query['fields'] = fields unless fields.nil?
|
1742
1703
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1704
|
+
command.query['fields'] = fields unless fields.nil?
|
1743
1705
|
execute_or_queue_command(command, &block)
|
1744
1706
|
end
|
1745
1707
|
|
1746
|
-
#
|
1747
|
-
# them to confirm that they are the student's guardian.
|
1748
|
-
# Once the guardian accepts the invitation, their `state` will change to
|
1749
|
-
# `COMPLETED` and they will start receiving guardian notifications. A
|
1750
|
-
# `Guardian` resource will also be created to represent the active guardian.
|
1751
|
-
# The request object must have the `student_id` and
|
1752
|
-
# `invited_email_address` fields set. Failing to set these fields, or
|
1753
|
-
# setting any other fields in the request, will result in an error.
|
1708
|
+
# Returns a user profile.
|
1754
1709
|
# This method returns the following error codes:
|
1755
|
-
# * `PERMISSION_DENIED` if the
|
1756
|
-
#
|
1757
|
-
#
|
1758
|
-
#
|
1759
|
-
#
|
1760
|
-
#
|
1761
|
-
#
|
1762
|
-
#
|
1763
|
-
#
|
1764
|
-
# this API). This error will also be returned if read-only fields are set,
|
1765
|
-
# or if the `state` field is set to to a value other than `PENDING`.
|
1766
|
-
# * `NOT_FOUND` if the student ID provided is a valid student ID, but
|
1767
|
-
# Classroom has no record of that student.
|
1768
|
-
# * `ALREADY_EXISTS` if there is already a pending guardian invitation for
|
1769
|
-
# the student and `invited_email_address` provided, or if the provided
|
1770
|
-
# `invited_email_address` matches the Google account of an existing
|
1771
|
-
# `Guardian` for this user.
|
1772
|
-
# @param [String] student_id
|
1773
|
-
# ID of the student (in standard format)
|
1774
|
-
# @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object
|
1775
|
-
# @param [String] fields
|
1776
|
-
# Selector specifying which fields to include in a partial response.
|
1710
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
|
1711
|
+
# this user profile, if no profile exists with the requested ID, or for
|
1712
|
+
# access errors.
|
1713
|
+
# @param [String] user_id
|
1714
|
+
# Identifier of the profile to return. The identifier can be one of the
|
1715
|
+
# following:
|
1716
|
+
# * the numeric identifier for the user
|
1717
|
+
# * the email address of the user
|
1718
|
+
# * the string literal `"me"`, indicating the requesting user
|
1777
1719
|
# @param [String] quota_user
|
1778
1720
|
# Available to use for quota purposes for server-side applications. Can be any
|
1779
1721
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1722
|
+
# @param [String] fields
|
1723
|
+
# Selector specifying which fields to include in a partial response.
|
1780
1724
|
# @param [Google::Apis::RequestOptions] options
|
1781
1725
|
# Request-specific options
|
1782
1726
|
#
|
1783
1727
|
# @yield [result, err] Result & error if block supplied
|
1784
|
-
# @yieldparam result [Google::Apis::ClassroomV1::
|
1728
|
+
# @yieldparam result [Google::Apis::ClassroomV1::UserProfile] parsed result object
|
1785
1729
|
# @yieldparam err [StandardError] error object if request failed
|
1786
1730
|
#
|
1787
|
-
# @return [Google::Apis::ClassroomV1::
|
1731
|
+
# @return [Google::Apis::ClassroomV1::UserProfile]
|
1788
1732
|
#
|
1789
1733
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1790
1734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1791
1735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1792
|
-
def
|
1793
|
-
command = make_simple_command(:
|
1794
|
-
command.
|
1795
|
-
command.
|
1796
|
-
command.
|
1797
|
-
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
|
1798
|
-
command.params['studentId'] = student_id unless student_id.nil?
|
1799
|
-
command.query['fields'] = fields unless fields.nil?
|
1736
|
+
def get_user_profile(user_id, quota_user: nil, fields: nil, options: nil, &block)
|
1737
|
+
command = make_simple_command(:get, 'v1/userProfiles/{userId}', options)
|
1738
|
+
command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation
|
1739
|
+
command.response_class = Google::Apis::ClassroomV1::UserProfile
|
1740
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1800
1741
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1742
|
+
command.query['fields'] = fields unless fields.nil?
|
1801
1743
|
execute_or_queue_command(command, &block)
|
1802
1744
|
end
|
1803
1745
|
|
@@ -1841,11 +1783,11 @@ module Google
|
|
1841
1783
|
# Maximum number of items to return. Zero or unspecified indicates that the
|
1842
1784
|
# server may assign a maximum.
|
1843
1785
|
# The server may return fewer than the specified number of results.
|
1844
|
-
# @param [String] fields
|
1845
|
-
# Selector specifying which fields to include in a partial response.
|
1846
1786
|
# @param [String] quota_user
|
1847
1787
|
# Available to use for quota purposes for server-side applications. Can be any
|
1848
1788
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1789
|
+
# @param [String] fields
|
1790
|
+
# Selector specifying which fields to include in a partial response.
|
1849
1791
|
# @param [Google::Apis::RequestOptions] options
|
1850
1792
|
# Request-specific options
|
1851
1793
|
#
|
@@ -1858,7 +1800,7 @@ module Google
|
|
1858
1800
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1859
1801
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1860
1802
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1861
|
-
def list_user_profile_guardian_invitations(student_id, page_token: nil, invited_email_address: nil, states: nil, page_size: nil,
|
1803
|
+
def list_user_profile_guardian_invitations(student_id, page_token: nil, invited_email_address: nil, states: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1862
1804
|
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations', options)
|
1863
1805
|
command.response_representation = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse::Representation
|
1864
1806
|
command.response_class = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse
|
@@ -1867,8 +1809,8 @@ module Google
|
|
1867
1809
|
command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil?
|
1868
1810
|
command.query['states'] = states unless states.nil?
|
1869
1811
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1870
|
-
command.query['fields'] = fields unless fields.nil?
|
1871
1812
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1813
|
+
command.query['fields'] = fields unless fields.nil?
|
1872
1814
|
execute_or_queue_command(command, &block)
|
1873
1815
|
end
|
1874
1816
|
|
@@ -1888,11 +1830,11 @@ module Google
|
|
1888
1830
|
# The ID of the student whose guardian invitation is being requested.
|
1889
1831
|
# @param [String] invitation_id
|
1890
1832
|
# The `id` field of the `GuardianInvitation` being requested.
|
1891
|
-
# @param [String] fields
|
1892
|
-
# Selector specifying which fields to include in a partial response.
|
1893
1833
|
# @param [String] quota_user
|
1894
1834
|
# Available to use for quota purposes for server-side applications. Can be any
|
1895
1835
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1836
|
+
# @param [String] fields
|
1837
|
+
# Selector specifying which fields to include in a partial response.
|
1896
1838
|
# @param [Google::Apis::RequestOptions] options
|
1897
1839
|
# Request-specific options
|
1898
1840
|
#
|
@@ -1905,14 +1847,14 @@ module Google
|
|
1905
1847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1906
1848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1907
1849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1908
|
-
def get_user_profile_guardian_invitation(student_id, invitation_id,
|
1850
|
+
def get_user_profile_guardian_invitation(student_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
|
1909
1851
|
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options)
|
1910
1852
|
command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
1911
1853
|
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
|
1912
1854
|
command.params['studentId'] = student_id unless student_id.nil?
|
1913
1855
|
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
1914
|
-
command.query['fields'] = fields unless fields.nil?
|
1915
1856
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1857
|
+
command.query['fields'] = fields unless fields.nil?
|
1916
1858
|
execute_or_queue_command(command, &block)
|
1917
1859
|
end
|
1918
1860
|
|
@@ -1943,11 +1885,11 @@ module Google
|
|
1943
1885
|
# * `state`
|
1944
1886
|
# When set in a query parameter, this field should be specified as
|
1945
1887
|
# `updateMask=<field1>,<field2>,...`
|
1946
|
-
# @param [String] fields
|
1947
|
-
# Selector specifying which fields to include in a partial response.
|
1948
1888
|
# @param [String] quota_user
|
1949
1889
|
# Available to use for quota purposes for server-side applications. Can be any
|
1950
1890
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1891
|
+
# @param [String] fields
|
1892
|
+
# Selector specifying which fields to include in a partial response.
|
1951
1893
|
# @param [Google::Apis::RequestOptions] options
|
1952
1894
|
# Request-specific options
|
1953
1895
|
#
|
@@ -1960,7 +1902,7 @@ module Google
|
|
1960
1902
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1961
1903
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1962
1904
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1963
|
-
def patch_user_profile_guardian_invitation(student_id, invitation_id, guardian_invitation_object = nil, update_mask: nil,
|
1905
|
+
def patch_user_profile_guardian_invitation(student_id, invitation_id, guardian_invitation_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1964
1906
|
command = make_simple_command(:patch, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options)
|
1965
1907
|
command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
1966
1908
|
command.request_object = guardian_invitation_object
|
@@ -1969,8 +1911,66 @@ module Google
|
|
1969
1911
|
command.params['studentId'] = student_id unless student_id.nil?
|
1970
1912
|
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
1971
1913
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1914
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1972
1915
|
command.query['fields'] = fields unless fields.nil?
|
1916
|
+
execute_or_queue_command(command, &block)
|
1917
|
+
end
|
1918
|
+
|
1919
|
+
# Creates a guardian invitation, and sends an email to the guardian asking
|
1920
|
+
# them to confirm that they are the student's guardian.
|
1921
|
+
# Once the guardian accepts the invitation, their `state` will change to
|
1922
|
+
# `COMPLETED` and they will start receiving guardian notifications. A
|
1923
|
+
# `Guardian` resource will also be created to represent the active guardian.
|
1924
|
+
# The request object must have the `student_id` and
|
1925
|
+
# `invited_email_address` fields set. Failing to set these fields, or
|
1926
|
+
# setting any other fields in the request, will result in an error.
|
1927
|
+
# This method returns the following error codes:
|
1928
|
+
# * `PERMISSION_DENIED` if the current user does not have permission to
|
1929
|
+
# manage guardians, if the guardian in question has already rejected
|
1930
|
+
# too many requests for that student, if guardians are not enabled for the
|
1931
|
+
# domain in question, or for other access errors.
|
1932
|
+
# * `RESOURCE_EXHAUSTED` if the student or guardian has exceeded the guardian
|
1933
|
+
# link limit.
|
1934
|
+
# * `INVALID_ARGUMENT` if the guardian email address is not valid (for
|
1935
|
+
# example, if it is too long), or if the format of the student ID provided
|
1936
|
+
# cannot be recognized (it is not an email address, nor a `user_id` from
|
1937
|
+
# this API). This error will also be returned if read-only fields are set,
|
1938
|
+
# or if the `state` field is set to to a value other than `PENDING`.
|
1939
|
+
# * `NOT_FOUND` if the student ID provided is a valid student ID, but
|
1940
|
+
# Classroom has no record of that student.
|
1941
|
+
# * `ALREADY_EXISTS` if there is already a pending guardian invitation for
|
1942
|
+
# the student and `invited_email_address` provided, or if the provided
|
1943
|
+
# `invited_email_address` matches the Google account of an existing
|
1944
|
+
# `Guardian` for this user.
|
1945
|
+
# @param [String] student_id
|
1946
|
+
# ID of the student (in standard format)
|
1947
|
+
# @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object
|
1948
|
+
# @param [String] quota_user
|
1949
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1950
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1951
|
+
# @param [String] fields
|
1952
|
+
# Selector specifying which fields to include in a partial response.
|
1953
|
+
# @param [Google::Apis::RequestOptions] options
|
1954
|
+
# Request-specific options
|
1955
|
+
#
|
1956
|
+
# @yield [result, err] Result & error if block supplied
|
1957
|
+
# @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object
|
1958
|
+
# @yieldparam err [StandardError] error object if request failed
|
1959
|
+
#
|
1960
|
+
# @return [Google::Apis::ClassroomV1::GuardianInvitation]
|
1961
|
+
#
|
1962
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1963
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1964
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1965
|
+
def create_user_profile_guardian_invitation(student_id, guardian_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1966
|
+
command = make_simple_command(:post, 'v1/userProfiles/{studentId}/guardianInvitations', options)
|
1967
|
+
command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
1968
|
+
command.request_object = guardian_invitation_object
|
1969
|
+
command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
1970
|
+
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
|
1971
|
+
command.params['studentId'] = student_id unless student_id.nil?
|
1973
1972
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1973
|
+
command.query['fields'] = fields unless fields.nil?
|
1974
1974
|
execute_or_queue_command(command, &block)
|
1975
1975
|
end
|
1976
1976
|
|
@@ -1996,11 +1996,11 @@ module Google
|
|
1996
1996
|
# * the string literal `"me"`, indicating the requesting user
|
1997
1997
|
# @param [String] guardian_id
|
1998
1998
|
# The `id` field from a `Guardian`.
|
1999
|
-
# @param [String] fields
|
2000
|
-
# Selector specifying which fields to include in a partial response.
|
2001
1999
|
# @param [String] quota_user
|
2002
2000
|
# Available to use for quota purposes for server-side applications. Can be any
|
2003
2001
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2002
|
+
# @param [String] fields
|
2003
|
+
# Selector specifying which fields to include in a partial response.
|
2004
2004
|
# @param [Google::Apis::RequestOptions] options
|
2005
2005
|
# Request-specific options
|
2006
2006
|
#
|
@@ -2013,14 +2013,14 @@ module Google
|
|
2013
2013
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2014
2014
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2015
2015
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2016
|
-
def delete_user_profile_guardian(student_id, guardian_id,
|
2016
|
+
def delete_user_profile_guardian(student_id, guardian_id, quota_user: nil, fields: nil, options: nil, &block)
|
2017
2017
|
command = make_simple_command(:delete, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options)
|
2018
2018
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
2019
2019
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
2020
2020
|
command.params['studentId'] = student_id unless student_id.nil?
|
2021
2021
|
command.params['guardianId'] = guardian_id unless guardian_id.nil?
|
2022
|
-
command.query['fields'] = fields unless fields.nil?
|
2023
2022
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2023
|
+
command.query['fields'] = fields unless fields.nil?
|
2024
2024
|
execute_or_queue_command(command, &block)
|
2025
2025
|
end
|
2026
2026
|
|
@@ -2064,11 +2064,11 @@ module Google
|
|
2064
2064
|
# Maximum number of items to return. Zero or unspecified indicates that the
|
2065
2065
|
# server may assign a maximum.
|
2066
2066
|
# The server may return fewer than the specified number of results.
|
2067
|
-
# @param [String] fields
|
2068
|
-
# Selector specifying which fields to include in a partial response.
|
2069
2067
|
# @param [String] quota_user
|
2070
2068
|
# Available to use for quota purposes for server-side applications. Can be any
|
2071
2069
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2070
|
+
# @param [String] fields
|
2071
|
+
# Selector specifying which fields to include in a partial response.
|
2072
2072
|
# @param [Google::Apis::RequestOptions] options
|
2073
2073
|
# Request-specific options
|
2074
2074
|
#
|
@@ -2081,7 +2081,7 @@ module Google
|
|
2081
2081
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2082
2082
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2083
2083
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2084
|
-
def list_user_profile_guardians(student_id, page_token: nil, invited_email_address: nil, page_size: nil,
|
2084
|
+
def list_user_profile_guardians(student_id, page_token: nil, invited_email_address: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
2085
2085
|
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians', options)
|
2086
2086
|
command.response_representation = Google::Apis::ClassroomV1::ListGuardiansResponse::Representation
|
2087
2087
|
command.response_class = Google::Apis::ClassroomV1::ListGuardiansResponse
|
@@ -2089,8 +2089,8 @@ module Google
|
|
2089
2089
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2090
2090
|
command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil?
|
2091
2091
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2092
|
-
command.query['fields'] = fields unless fields.nil?
|
2093
2092
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2093
|
+
command.query['fields'] = fields unless fields.nil?
|
2094
2094
|
execute_or_queue_command(command, &block)
|
2095
2095
|
end
|
2096
2096
|
|
@@ -2114,11 +2114,11 @@ module Google
|
|
2114
2114
|
# * the string literal `"me"`, indicating the requesting user
|
2115
2115
|
# @param [String] guardian_id
|
2116
2116
|
# The `id` field from a `Guardian`.
|
2117
|
-
# @param [String] fields
|
2118
|
-
# Selector specifying which fields to include in a partial response.
|
2119
2117
|
# @param [String] quota_user
|
2120
2118
|
# Available to use for quota purposes for server-side applications. Can be any
|
2121
2119
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2120
|
+
# @param [String] fields
|
2121
|
+
# Selector specifying which fields to include in a partial response.
|
2122
2122
|
# @param [Google::Apis::RequestOptions] options
|
2123
2123
|
# Request-specific options
|
2124
2124
|
#
|
@@ -2131,22 +2131,22 @@ module Google
|
|
2131
2131
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2132
2132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2133
2133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2134
|
-
def get_user_profile_guardian(student_id, guardian_id,
|
2134
|
+
def get_user_profile_guardian(student_id, guardian_id, quota_user: nil, fields: nil, options: nil, &block)
|
2135
2135
|
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options)
|
2136
2136
|
command.response_representation = Google::Apis::ClassroomV1::Guardian::Representation
|
2137
2137
|
command.response_class = Google::Apis::ClassroomV1::Guardian
|
2138
2138
|
command.params['studentId'] = student_id unless student_id.nil?
|
2139
2139
|
command.params['guardianId'] = guardian_id unless guardian_id.nil?
|
2140
|
-
command.query['fields'] = fields unless fields.nil?
|
2141
2140
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2141
|
+
command.query['fields'] = fields unless fields.nil?
|
2142
2142
|
execute_or_queue_command(command, &block)
|
2143
2143
|
end
|
2144
2144
|
|
2145
2145
|
protected
|
2146
2146
|
|
2147
2147
|
def apply_command_defaults(command)
|
2148
|
-
command.query['key'] = key unless key.nil?
|
2149
2148
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2149
|
+
command.query['key'] = key unless key.nil?
|
2150
2150
|
end
|
2151
2151
|
end
|
2152
2152
|
end
|