google-api-client 0.9.8 → 0.9.20

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.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -52,6 +52,24 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class ContextParams
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DivisionRepresentativeInfoRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DivisionSearchRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
55
73
  class DivisionSearchResponse
56
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
75
 
@@ -76,6 +94,12 @@ module Google
76
94
  include Google::Apis::Core::JsonObjectSupport
77
95
  end
78
96
 
97
+ class ElectionsQueryRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
79
103
  class QueryElectionsResponse
80
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
105
 
@@ -112,12 +136,24 @@ module Google
112
136
  include Google::Apis::Core::JsonObjectSupport
113
137
  end
114
138
 
139
+ class PostalAddress
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
115
145
  class RepresentativeInfoData
116
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
147
 
118
148
  include Google::Apis::Core::JsonObjectSupport
119
149
  end
120
150
 
151
+ class RepresentativeInfoRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
121
157
  class RepresentativeInfoResponse
122
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
159
 
@@ -136,12 +172,24 @@ module Google
136
172
  include Google::Apis::Core::JsonObjectSupport
137
173
  end
138
174
 
175
+ class VoterInfoRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
139
181
  class VoterInfoResponse
140
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
183
 
142
184
  include Google::Apis::Core::JsonObjectSupport
143
185
  end
144
186
 
187
+ class VoterInfoSegmentResult
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
145
193
  class AdministrationRegion
146
194
  # @private
147
195
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -160,6 +208,7 @@ module Google
160
208
  # @private
161
209
  class Representation < Google::Apis::Core::JsonRepresentation
162
210
  property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
211
+ collection :address_lines, as: 'addressLines'
163
212
  property :ballot_info_url, as: 'ballotInfoUrl'
164
213
  property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
165
214
 
@@ -234,6 +283,29 @@ module Google
234
283
  end
235
284
  end
236
285
 
286
+ class ContextParams
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :client_profile, as: 'clientProfile'
290
+ end
291
+ end
292
+
293
+ class DivisionRepresentativeInfoRequest
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
297
+
298
+ end
299
+ end
300
+
301
+ class DivisionSearchRequest
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
305
+
306
+ end
307
+ end
308
+
237
309
  class DivisionSearchResponse
238
310
  # @private
239
311
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -273,6 +345,14 @@ module Google
273
345
  end
274
346
  end
275
347
 
348
+ class ElectionsQueryRequest
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
352
+
353
+ end
354
+ end
355
+
276
356
  class QueryElectionsResponse
277
357
  # @private
278
358
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -286,6 +366,7 @@ module Google
286
366
  # @private
287
367
  class Representation < Google::Apis::Core::JsonRepresentation
288
368
  property :id, as: 'id'
369
+ property :kg_foreign_key, as: 'kgForeignKey'
289
370
  property :name, as: 'name'
290
371
  property :scope, as: 'scope'
291
372
  end
@@ -346,6 +427,43 @@ module Google
346
427
  end
347
428
  end
348
429
 
430
+ class PostalAddress
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ collection :address_lines, as: 'addressLines'
434
+ property :administrative_area_name, as: 'administrativeAreaName'
435
+ property :country_name, as: 'countryName'
436
+ property :country_name_code, as: 'countryNameCode'
437
+ property :dependent_locality_name, as: 'dependentLocalityName'
438
+ property :dependent_thoroughfare_leading_type, as: 'dependentThoroughfareLeadingType'
439
+ property :dependent_thoroughfare_name, as: 'dependentThoroughfareName'
440
+ property :dependent_thoroughfare_post_direction, as: 'dependentThoroughfarePostDirection'
441
+ property :dependent_thoroughfare_pre_direction, as: 'dependentThoroughfarePreDirection'
442
+ property :dependent_thoroughfare_trailing_type, as: 'dependentThoroughfareTrailingType'
443
+ property :dependent_thoroughfares_connector, as: 'dependentThoroughfaresConnector'
444
+ property :dependent_thoroughfares_indicator, as: 'dependentThoroughfaresIndicator'
445
+ property :dependent_thoroughfares_type, as: 'dependentThoroughfaresType'
446
+ property :firm_name, as: 'firmName'
447
+ property :is_disputed, as: 'isDisputed'
448
+ property :language_code, as: 'languageCode'
449
+ property :locality_name, as: 'localityName'
450
+ property :post_box_number, as: 'postBoxNumber'
451
+ property :postal_code_number, as: 'postalCodeNumber'
452
+ property :postal_code_number_extension, as: 'postalCodeNumberExtension'
453
+ property :premise_name, as: 'premiseName'
454
+ property :recipient_name, as: 'recipientName'
455
+ property :sorting_code, as: 'sortingCode'
456
+ property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
457
+ property :sub_premise_name, as: 'subPremiseName'
458
+ property :thoroughfare_leading_type, as: 'thoroughfareLeadingType'
459
+ property :thoroughfare_name, as: 'thoroughfareName'
460
+ property :thoroughfare_number, as: 'thoroughfareNumber'
461
+ property :thoroughfare_post_direction, as: 'thoroughfarePostDirection'
462
+ property :thoroughfare_pre_direction, as: 'thoroughfarePreDirection'
463
+ property :thoroughfare_trailing_type, as: 'thoroughfareTrailingType'
464
+ end
465
+ end
466
+
349
467
  class RepresentativeInfoData
350
468
  # @private
351
469
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -358,6 +476,14 @@ module Google
358
476
  end
359
477
  end
360
478
 
479
+ class RepresentativeInfoRequest
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
483
+
484
+ end
485
+ end
486
+
361
487
  class RepresentativeInfoResponse
362
488
  # @private
363
489
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +520,16 @@ module Google
394
520
  end
395
521
  end
396
522
 
523
+ class VoterInfoRequest
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
527
+
528
+ property :voter_info_segment_result, as: 'voterInfoSegmentResult', class: Google::Apis::CivicinfoV2::VoterInfoSegmentResult, decorator: Google::Apis::CivicinfoV2::VoterInfoSegmentResult::Representation
529
+
530
+ end
531
+ end
532
+
397
533
  class VoterInfoResponse
398
534
  # @private
399
535
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -418,6 +554,19 @@ module Google
418
554
 
419
555
  end
420
556
  end
557
+
558
+ class VoterInfoSegmentResult
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :generated_millis, as: 'generatedMillis'
562
+ property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation
563
+
564
+ property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
565
+
566
+ property :response, as: 'response', class: Google::Apis::CivicinfoV2::VoterInfoResponse, decorator: Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
567
+
568
+ end
569
+ end
421
570
  end
422
571
  end
423
572
  end
@@ -22,7 +22,8 @@ module Google
22
22
  module CivicinfoV2
23
23
  # Google Civic Information API
24
24
  #
25
- # An API for accessing civic information.
25
+ # Provides polling places, early vote locations, contest data, election
26
+ # officials, and government representatives for U.S. residential addresses.
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/civicinfo_v2'
@@ -53,6 +54,7 @@ module Google
53
54
  end
54
55
 
55
56
  # Searches for political divisions by their natural name or OCD ID.
57
+ # @param [Google::Apis::CivicinfoV2::DivisionSearchRequest] division_search_request_object
56
58
  # @param [String] query
57
59
  # The search query. Queries can cover any parts of a OCD ID or a human readable
58
60
  # division name. All words given in the query are treated as required patterns.
@@ -79,8 +81,10 @@ module Google
79
81
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
82
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
83
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
+ def search_divisions(division_search_request_object = nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
85
  command = make_simple_command(:get, 'divisions', options)
86
+ command.request_representation = Google::Apis::CivicinfoV2::DivisionSearchRequest::Representation
87
+ command.request_object = division_search_request_object
84
88
  command.response_representation = Google::Apis::CivicinfoV2::DivisionSearchResponse::Representation
85
89
  command.response_class = Google::Apis::CivicinfoV2::DivisionSearchResponse
86
90
  command.query['query'] = query unless query.nil?
@@ -91,6 +95,7 @@ module Google
91
95
  end
92
96
 
93
97
  # List of available elections to query.
98
+ # @param [Google::Apis::CivicinfoV2::ElectionsQueryRequest] elections_query_request_object
94
99
  # @param [String] fields
95
100
  # Selector specifying which fields to include in a partial response.
96
101
  # @param [String] quota_user
@@ -112,8 +117,10 @@ module Google
112
117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
+ def query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
116
121
  command = make_simple_command(:get, 'elections', options)
122
+ command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
123
+ command.request_object = elections_query_request_object
117
124
  command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
118
125
  command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
119
126
  command.query['fields'] = fields unless fields.nil?
@@ -126,11 +133,16 @@ module Google
126
133
  # address.
127
134
  # @param [String] address
128
135
  # The registered address of the voter to look up.
136
+ # @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
129
137
  # @param [String] election_id
130
138
  # The unique ID of the election to look up. A list of election IDs can be
131
139
  # obtained at https://www.googleapis.com/civicinfo/`version`/elections
132
140
  # @param [Boolean] official_only
133
141
  # If set to true, only data from official state sources will be returned.
142
+ # @param [Boolean] return_all_available_data
143
+ # If set to true, the query will return the success codeand include any partial
144
+ # information when it is unable to determine a matching address or unable to
145
+ # determine the election for electionId=0 queries.
134
146
  # @param [String] fields
135
147
  # Selector specifying which fields to include in a partial response.
136
148
  # @param [String] quota_user
@@ -152,13 +164,16 @@ module Google
152
164
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
165
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
166
  # @raise [Google::Apis::AuthorizationError] Authorization is required
155
- def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
167
+ def query_voter_info(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
168
  command = make_simple_command(:get, 'voterinfo', options)
169
+ command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
170
+ command.request_object = voter_info_request_object
157
171
  command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
158
172
  command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
159
173
  command.query['address'] = address unless address.nil?
160
174
  command.query['electionId'] = election_id unless election_id.nil?
161
175
  command.query['officialOnly'] = official_only unless official_only.nil?
176
+ command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
162
177
  command.query['fields'] = fields unless fields.nil?
163
178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
164
179
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -167,6 +182,7 @@ module Google
167
182
 
168
183
  # Looks up political geography and representative information for a single
169
184
  # address.
185
+ # @param [Google::Apis::CivicinfoV2::RepresentativeInfoRequest] representative_info_request_object
170
186
  # @param [String] address
171
187
  # The address to look up. May only be specified if the field ocdId is not given
172
188
  # in the URL.
@@ -202,8 +218,10 @@ module Google
202
218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
221
+ def representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
206
222
  command = make_simple_command(:get, 'representatives', options)
223
+ command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
224
+ command.request_object = representative_info_request_object
207
225
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
208
226
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
209
227
  command.query['address'] = address unless address.nil?
@@ -219,6 +237,7 @@ module Google
219
237
  # Looks up representative information for a single geographic division.
220
238
  # @param [String] ocd_id
221
239
  # The Open Civic Data division identifier of the division to look up.
240
+ # @param [Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest] division_representative_info_request_object
222
241
  # @param [Array<String>, String] levels
223
242
  # A list of office levels to filter by. Only offices that serve at least one of
224
243
  # these levels will be returned. Divisions that don't contain a matching office
@@ -252,8 +271,10 @@ module Google
252
271
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
272
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
273
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
274
+ def representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
256
275
  command = make_simple_command(:get, 'representatives/{ocdId}', options)
276
+ command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
277
+ command.request_object = division_representative_info_request_object
257
278
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
258
279
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
259
280
  command.params['ocdId'] = ocd_id unless ocd_id.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160517'
28
+ REVISION = '20161006'
29
29
 
30
30
  # View instructions for teacher-assigned work in your Google Classroom classes
31
31
  AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'
@@ -129,6 +129,12 @@ module Google
129
129
  # @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>]
130
130
  attr_accessor :course_material_sets
131
131
 
132
+ # Whether or not guardian notifications are enabled for this course. Read-only.
133
+ # Corresponds to the JSON property `guardiansEnabled`
134
+ # @return [Boolean]
135
+ attr_accessor :guardians_enabled
136
+ alias_method :guardians_enabled?, :guardians_enabled
137
+
132
138
  def initialize(**args)
133
139
  update!(**args)
134
140
  end
@@ -151,6 +157,7 @@ module Google
151
157
  @course_group_email = args[:course_group_email] if args.key?(:course_group_email)
152
158
  @teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder)
153
159
  @course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets)
160
+ @guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
154
161
  end
155
162
  end
156
163
 
@@ -494,32 +501,62 @@ module Google
494
501
  end
495
502
  end
496
503
 
497
- # An invitation to join a course.
498
- class Invitation
504
+ # Response when listing guardian invitations.
505
+ class ListGuardianInvitationsResponse
499
506
  include Google::Apis::Core::Hashable
500
507
 
501
- # Identifier assigned by Classroom. Read-only.
502
- # Corresponds to the JSON property `id`
508
+ # Guardian invitations that matched the list request.
509
+ # Corresponds to the JSON property `guardianInvitations`
510
+ # @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
511
+ attr_accessor :guardian_invitations
512
+
513
+ # Token identifying the next page of results to return. If empty, no further
514
+ # results are available.
515
+ # Corresponds to the JSON property `nextPageToken`
503
516
  # @return [String]
504
- attr_accessor :id
517
+ attr_accessor :next_page_token
505
518
 
506
- # Identifier of the invited user. When specified as a parameter of a request,
507
- # this identifier can be set to one of the following: * the numeric identifier
508
- # for the user * the email address of the user * the string literal `"me"`,
509
- # indicating the requesting user
510
- # Corresponds to the JSON property `userId`
519
+ def initialize(**args)
520
+ update!(**args)
521
+ end
522
+
523
+ # Update properties of this object
524
+ def update!(**args)
525
+ @guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations)
526
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
527
+ end
528
+ end
529
+
530
+ # An invitation to become the guardian of a specified user, sent to a specified
531
+ # email address.
532
+ class GuardianInvitation
533
+ include Google::Apis::Core::Hashable
534
+
535
+ # ID of the student (in standard format)
536
+ # Corresponds to the JSON property `studentId`
511
537
  # @return [String]
512
- attr_accessor :user_id
538
+ attr_accessor :student_id
513
539
 
514
- # Identifier of the course to invite the user to.
515
- # Corresponds to the JSON property `courseId`
540
+ # Unique identifier for this invitation. Read-only.
541
+ # Corresponds to the JSON property `invitationId`
516
542
  # @return [String]
517
- attr_accessor :course_id
543
+ attr_accessor :invitation_id
518
544
 
519
- # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
520
- # Corresponds to the JSON property `role`
545
+ # Email address that the invitation was sent to. This field is only visible to
546
+ # domain administrators.
547
+ # Corresponds to the JSON property `invitedEmailAddress`
521
548
  # @return [String]
522
- attr_accessor :role
549
+ attr_accessor :invited_email_address
550
+
551
+ # The state that this invitation is in.
552
+ # Corresponds to the JSON property `state`
553
+ # @return [String]
554
+ attr_accessor :state
555
+
556
+ # The time that this invitation was created. Read-only.
557
+ # Corresponds to the JSON property `creationTime`
558
+ # @return [String]
559
+ attr_accessor :creation_time
523
560
 
524
561
  def initialize(**args)
525
562
  update!(**args)
@@ -527,21 +564,23 @@ module Google
527
564
 
528
565
  # Update properties of this object
529
566
  def update!(**args)
530
- @id = args[:id] if args.key?(:id)
531
- @user_id = args[:user_id] if args.key?(:user_id)
532
- @course_id = args[:course_id] if args.key?(:course_id)
533
- @role = args[:role] if args.key?(:role)
567
+ @student_id = args[:student_id] if args.key?(:student_id)
568
+ @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
569
+ @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
570
+ @state = args[:state] if args.key?(:state)
571
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
534
572
  end
535
573
  end
536
574
 
537
- # Response when listing invitations.
538
- class ListInvitationsResponse
575
+ # Response when listing guardians.
576
+ class ListGuardiansResponse
539
577
  include Google::Apis::Core::Hashable
540
578
 
541
- # Invitations that match the list request.
542
- # Corresponds to the JSON property `invitations`
543
- # @return [Array<Google::Apis::ClassroomV1::Invitation>]
544
- attr_accessor :invitations
579
+ # Guardians on this page of results that met the criteria specified in the
580
+ # request.
581
+ # Corresponds to the JSON property `guardians`
582
+ # @return [Array<Google::Apis::ClassroomV1::Guardian>]
583
+ attr_accessor :guardians
545
584
 
546
585
  # Token identifying the next page of results to return. If empty, no further
547
586
  # results are available.
@@ -555,11 +594,50 @@ module Google
555
594
 
556
595
  # Update properties of this object
557
596
  def update!(**args)
558
- @invitations = args[:invitations] if args.key?(:invitations)
597
+ @guardians = args[:guardians] if args.key?(:guardians)
559
598
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
560
599
  end
561
600
  end
562
601
 
602
+ # Association between a student and a guardian of that student. The guardian may
603
+ # receive information about the student's course work.
604
+ class Guardian
605
+ include Google::Apis::Core::Hashable
606
+
607
+ # Identifier for the student to whom the guardian relationship applies.
608
+ # Corresponds to the JSON property `studentId`
609
+ # @return [String]
610
+ attr_accessor :student_id
611
+
612
+ # Identifier for the guardian.
613
+ # Corresponds to the JSON property `guardianId`
614
+ # @return [String]
615
+ attr_accessor :guardian_id
616
+
617
+ # Global information for a user.
618
+ # Corresponds to the JSON property `guardianProfile`
619
+ # @return [Google::Apis::ClassroomV1::UserProfile]
620
+ attr_accessor :guardian_profile
621
+
622
+ # The email address to which the initial guardian invitation was sent. This
623
+ # field is only visible to domain administrators.
624
+ # Corresponds to the JSON property `invitedEmailAddress`
625
+ # @return [String]
626
+ attr_accessor :invited_email_address
627
+
628
+ def initialize(**args)
629
+ update!(**args)
630
+ end
631
+
632
+ # Update properties of this object
633
+ def update!(**args)
634
+ @student_id = args[:student_id] if args.key?(:student_id)
635
+ @guardian_id = args[:guardian_id] if args.key?(:guardian_id)
636
+ @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
637
+ @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
638
+ end
639
+ end
640
+
563
641
  # Global information for a user.
564
642
  class UserProfile
565
643
  include Google::Apis::Core::Hashable
@@ -780,6 +858,72 @@ module Google
780
858
  end
781
859
  end
782
860
 
861
+ # An invitation to join a course.
862
+ class Invitation
863
+ include Google::Apis::Core::Hashable
864
+
865
+ # Identifier assigned by Classroom. Read-only.
866
+ # Corresponds to the JSON property `id`
867
+ # @return [String]
868
+ attr_accessor :id
869
+
870
+ # Identifier of the invited user. When specified as a parameter of a request,
871
+ # this identifier can be set to one of the following: * the numeric identifier
872
+ # for the user * the email address of the user * the string literal `"me"`,
873
+ # indicating the requesting user
874
+ # Corresponds to the JSON property `userId`
875
+ # @return [String]
876
+ attr_accessor :user_id
877
+
878
+ # Identifier of the course to invite the user to.
879
+ # Corresponds to the JSON property `courseId`
880
+ # @return [String]
881
+ attr_accessor :course_id
882
+
883
+ # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
884
+ # Corresponds to the JSON property `role`
885
+ # @return [String]
886
+ attr_accessor :role
887
+
888
+ def initialize(**args)
889
+ update!(**args)
890
+ end
891
+
892
+ # Update properties of this object
893
+ def update!(**args)
894
+ @id = args[:id] if args.key?(:id)
895
+ @user_id = args[:user_id] if args.key?(:user_id)
896
+ @course_id = args[:course_id] if args.key?(:course_id)
897
+ @role = args[:role] if args.key?(:role)
898
+ end
899
+ end
900
+
901
+ # Response when listing invitations.
902
+ class ListInvitationsResponse
903
+ include Google::Apis::Core::Hashable
904
+
905
+ # Invitations that match the list request.
906
+ # Corresponds to the JSON property `invitations`
907
+ # @return [Array<Google::Apis::ClassroomV1::Invitation>]
908
+ attr_accessor :invitations
909
+
910
+ # Token identifying the next page of results to return. If empty, no further
911
+ # results are available.
912
+ # Corresponds to the JSON property `nextPageToken`
913
+ # @return [String]
914
+ attr_accessor :next_page_token
915
+
916
+ def initialize(**args)
917
+ update!(**args)
918
+ end
919
+
920
+ # Update properties of this object
921
+ def update!(**args)
922
+ @invitations = args[:invitations] if args.key?(:invitations)
923
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
924
+ end
925
+ end
926
+
783
927
  # Course work created by a teacher for students of the course.
784
928
  class CourseWork
785
929
  include Google::Apis::Core::Hashable
@@ -807,12 +951,12 @@ module Google
807
951
  # @return [String]
808
952
  attr_accessor :description
809
953
 
810
- # Additional materials.
954
+ # Additional materials. CourseWork must have no more than 20 material items.
811
955
  # Corresponds to the JSON property `materials`
812
956
  # @return [Array<Google::Apis::ClassroomV1::Material>]
813
957
  attr_accessor :materials
814
958
 
815
- # Status of this course work.. If unspecified, the default state is `DRAFT`.
959
+ # Status of this course work. If unspecified, the default state is `DRAFT`.
816
960
  # Corresponds to the JSON property `state`
817
961
  # @return [String]
818
962
  attr_accessor :state
@@ -852,7 +996,7 @@ module Google
852
996
  attr_accessor :due_time
853
997
 
854
998
  # Maximum grade for this course work. If zero or unspecified, this assignment is
855
- # considered ungraded. This must be an integer value.
999
+ # considered ungraded. This must be a non-negative integer value.
856
1000
  # Corresponds to the JSON property `maxPoints`
857
1001
  # @return [Float]
858
1002
  attr_accessor :max_points
@@ -1146,7 +1290,7 @@ module Google
1146
1290
  # @return [String]
1147
1291
  attr_accessor :user_id
1148
1292
 
1149
- # Creation time of this submission.. This may be unset if the student has not
1293
+ # Creation time of this submission. This may be unset if the student has not
1150
1294
  # accessed this item. Read-only.
1151
1295
  # Corresponds to the JSON property `creationTime`
1152
1296
  # @return [String]
@@ -1169,14 +1313,15 @@ module Google
1169
1313
  attr_accessor :late
1170
1314
  alias_method :late?, :late
1171
1315
 
1172
- # Optional pending grade. If unset, no grade was set. This must be an integer
1173
- # value. This is only visible to and modifiable by course teachers.
1316
+ # Optional pending grade. If unset, no grade was set. This must be a non-
1317
+ # negative integer value. This is only visible to and modifiable by course
1318
+ # teachers.
1174
1319
  # Corresponds to the JSON property `draftGrade`
1175
1320
  # @return [Float]
1176
1321
  attr_accessor :draft_grade
1177
1322
 
1178
- # Optional grade. If unset, no grade was set. This must be an integer value.
1179
- # This may be modified only by course teachers.
1323
+ # Optional grade. If unset, no grade was set. This must be a non-negative
1324
+ # integer value. This may be modified only by course teachers.
1180
1325
  # Corresponds to the JSON property `assignedGrade`
1181
1326
  # @return [Float]
1182
1327
  attr_accessor :assigned_grade
@@ -1407,7 +1552,8 @@ module Google
1407
1552
  class ModifyAttachmentsRequest
1408
1553
  include Google::Apis::Core::Hashable
1409
1554
 
1410
- # Attachments to add. This may only contain link attachments.
1555
+ # Attachments to add. A student submission may not have more than 20 attachments.
1556
+ # This may only contain link attachments.
1411
1557
  # Corresponds to the JSON property `addAttachments`
1412
1558
  # @return [Array<Google::Apis::ClassroomV1::Attachment>]
1413
1559
  attr_accessor :add_attachments