google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/civic-information
26
26
  module CivicinfoV2
27
27
  VERSION = 'V2'
28
- REVISION = '20150707'
28
+ REVISION = '20150820'
29
29
  end
30
30
  end
31
31
  end
@@ -323,9 +323,9 @@ module Google
323
323
  # @return [Array<String>]
324
324
  attr_accessor :referendum_ballot_responses
325
325
 
326
- # Specifies a short summary of the referendum that is on the ballot below the
327
- # title but above the text. This field is only populated for contests of type '
328
- # Referendum'.
326
+ # Specifies a short summary of the referendum that is typically on the ballot
327
+ # below the title but above the text. This field is only populated for contests
328
+ # of type 'Referendum'.
329
329
  # Corresponds to the JSON property `referendumBrief`
330
330
  # @return [String]
331
331
  attr_accessor :referendum_brief
@@ -515,6 +515,14 @@ module Google
515
515
  # @return [String]
516
516
  attr_accessor :name
517
517
 
518
+ # The political division of the election. Represented as an OCD Division ID.
519
+ # Voters within these political jurisdictions are covered by this election. This
520
+ # is typically a state such as ocd-division/country:us/state:ca or for the
521
+ # midterms or general election the entire US (i.e. ocd-division/country:us).
522
+ # Corresponds to the JSON property `ocdDivisionId`
523
+ # @return [String]
524
+ attr_accessor :ocd_division_id
525
+
518
526
  def initialize(**args)
519
527
  update!(**args)
520
528
  end
@@ -524,6 +532,7 @@ module Google
524
532
  @election_day = args[:election_day] unless args[:election_day].nil?
525
533
  @id = args[:id] unless args[:id].nil?
526
534
  @name = args[:name] unless args[:name].nil?
535
+ @ocd_division_id = args[:ocd_division_id] unless args[:ocd_division_id].nil?
527
536
  end
528
537
  end
529
538
 
@@ -218,6 +218,7 @@ module Google
218
218
  property :election_day, as: 'electionDay'
219
219
  property :id, as: 'id'
220
220
  property :name, as: 'name'
221
+ property :ocd_division_id, as: 'ocdDivisionId'
221
222
  end
222
223
  end
223
224
 
@@ -80,8 +80,7 @@ module Google
80
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
82
  def search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
- path = 'divisions'
84
- command = make_simple_command(:get, path, options)
83
+ command = make_simple_command(:get, 'divisions', options)
85
84
  command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
86
85
  command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
87
86
  command.query['query'] = query unless query.nil?
@@ -114,8 +113,7 @@ module Google
114
113
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
114
  # @raise [Google::Apis::AuthorizationError] Authorization is required
116
115
  def query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
117
- path = 'elections'
118
- command = make_simple_command(:get, path, options)
116
+ command = make_simple_command(:get, 'elections', options)
119
117
  command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
120
118
  command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
121
119
  command.query['fields'] = fields unless fields.nil?
@@ -155,8 +153,7 @@ module Google
155
153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
154
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
155
  def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
- path = 'voterinfo'
159
- command = make_simple_command(:get, path, options)
156
+ command = make_simple_command(:get, 'voterinfo', options)
160
157
  command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
161
158
  command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
162
159
  command.query['address'] = address unless address.nil?
@@ -206,8 +203,7 @@ module Google
206
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
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)
209
- path = 'representatives'
210
- command = make_simple_command(:get, path, options)
206
+ command = make_simple_command(:get, 'representatives', options)
211
207
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
212
208
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
213
209
  command.query['address'] = address unless address.nil?
@@ -257,8 +253,7 @@ module Google
257
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
258
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
259
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)
260
- path = 'representatives/{ocdId}'
261
- command = make_simple_command(:get, path, options)
256
+ command = make_simple_command(:get, 'representatives/{ocdId}', options)
262
257
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
263
258
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
264
259
  command.params['ocdId'] = ocd_id unless ocd_id.nil?
@@ -0,0 +1,49 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/classroom_v1/service.rb'
16
+ require 'google/apis/classroom_v1/classes.rb'
17
+ require 'google/apis/classroom_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Classroom API
22
+ #
23
+ # Google Classroom API
24
+ #
25
+ # @see https://developers.google.com/classroom/
26
+ module ClassroomV1
27
+ VERSION = 'V1'
28
+ REVISION = '20151013'
29
+
30
+ # Manage your Google Classroom classes
31
+ AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
32
+
33
+ # View your Google Classroom classes
34
+ AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
35
+
36
+ # View the email addresses of people in your classes
37
+ AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
38
+
39
+ # View the profile photos of people in your classes
40
+ AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
41
+
42
+ # Manage your Google Classroom class rosters
43
+ AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
44
+
45
+ # View your Google Classroom class rosters
46
+ AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,512 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ClassroomV1
24
+
25
+ # A Course in Classroom.
26
+ class Course
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Identifier for this course assigned by Classroom. When creating a course, you
30
+ # may optionally set this identifier to an alias string in the request to create
31
+ # a corresponding alias. The `id` is still assigned by Classroom and cannot be
32
+ # updated after the course is created. Specifying this field in a course update
33
+ # mask will result in an error.
34
+ # Corresponds to the JSON property `id`
35
+ # @return [String]
36
+ attr_accessor :id
37
+
38
+ # Name of the course. For example, "10th Grade Biology". The name is required.
39
+ # It must be between 1 and 750 characters and a valid UTF-8 string.
40
+ # Corresponds to the JSON property `name`
41
+ # @return [String]
42
+ attr_accessor :name
43
+
44
+ # Section of the course. For example, "Period 2". If set, this field must be a
45
+ # valid UTF-8 string and no longer than 2800 characters.
46
+ # Corresponds to the JSON property `section`
47
+ # @return [String]
48
+ attr_accessor :section
49
+
50
+ # Optional heading for the description. For example, "Welcome to 10th Grade
51
+ # Biology." If set, this field must be a valid UTF-8 string and no longer than
52
+ # 3600 characters.
53
+ # Corresponds to the JSON property `descriptionHeading`
54
+ # @return [String]
55
+ attr_accessor :description_heading
56
+
57
+ # Optional description. For example, "We'll be learning about the structure of
58
+ # living creatures from a combination of textbooks, guest lectures, and lab work.
59
+ # Expect to be excited!" If set, this field must be a valid UTF-8 string and no
60
+ # longer than 30,000 characters.
61
+ # Corresponds to the JSON property `description`
62
+ # @return [String]
63
+ attr_accessor :description
64
+
65
+ # Optional room location. For example, "301". If set, this field must be a valid
66
+ # UTF-8 string and no longer than 650 characters.
67
+ # Corresponds to the JSON property `room`
68
+ # @return [String]
69
+ attr_accessor :room
70
+
71
+ # The identifier of the owner of a course. When specified as a parameter of a
72
+ # create course request, this field is required. The identifier can be one of
73
+ # the following: * the numeric identifier for the user * the email address of
74
+ # the user * the string literal `"me"`, indicating the requesting user This must
75
+ # be set in a create request. Specifying this field in a course update mask will
76
+ # result in an `INVALID_ARGUMENT` error.
77
+ # Corresponds to the JSON property `ownerId`
78
+ # @return [String]
79
+ attr_accessor :owner_id
80
+
81
+ # Creation time of the course. Specifying this field in a course update mask
82
+ # will result in an error. Read-only.
83
+ # Corresponds to the JSON property `creationTime`
84
+ # @return [String]
85
+ attr_accessor :creation_time
86
+
87
+ # Time of the most recent update to this course. Specifying this field in a
88
+ # course update mask will result in an error. Read-only.
89
+ # Corresponds to the JSON property `updateTime`
90
+ # @return [String]
91
+ attr_accessor :update_time
92
+
93
+ # Enrollment code to use when joining this course. Specifying this field in a
94
+ # course update mask will result in an error. Read-only.
95
+ # Corresponds to the JSON property `enrollmentCode`
96
+ # @return [String]
97
+ attr_accessor :enrollment_code
98
+
99
+ # State of the course. If unspecified, the default state is `PROVISIONED`.
100
+ # Corresponds to the JSON property `courseState`
101
+ # @return [String]
102
+ attr_accessor :course_state
103
+
104
+ # Absolute link to this course in the Classroom web UI. Read-only.
105
+ # Corresponds to the JSON property `alternateLink`
106
+ # @return [String]
107
+ attr_accessor :alternate_link
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @id = args[:id] unless args[:id].nil?
116
+ @name = args[:name] unless args[:name].nil?
117
+ @section = args[:section] unless args[:section].nil?
118
+ @description_heading = args[:description_heading] unless args[:description_heading].nil?
119
+ @description = args[:description] unless args[:description].nil?
120
+ @room = args[:room] unless args[:room].nil?
121
+ @owner_id = args[:owner_id] unless args[:owner_id].nil?
122
+ @creation_time = args[:creation_time] unless args[:creation_time].nil?
123
+ @update_time = args[:update_time] unless args[:update_time].nil?
124
+ @enrollment_code = args[:enrollment_code] unless args[:enrollment_code].nil?
125
+ @course_state = args[:course_state] unless args[:course_state].nil?
126
+ @alternate_link = args[:alternate_link] unless args[:alternate_link].nil?
127
+ end
128
+ end
129
+
130
+ # A generic empty message that you can re-use to avoid defining duplicated empty
131
+ # messages in your APIs. A typical example is to use it as the request or the
132
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
133
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
134
+ # `Empty` is empty JSON object ````.
135
+ class Empty
136
+ include Google::Apis::Core::Hashable
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ end
145
+ end
146
+
147
+ # Response when listing courses.
148
+ class ListCoursesResponse
149
+ include Google::Apis::Core::Hashable
150
+
151
+ # Courses that match the list request.
152
+ # Corresponds to the JSON property `courses`
153
+ # @return [Array<Google::Apis::ClassroomV1::Course>]
154
+ attr_accessor :courses
155
+
156
+ # Token identifying the next page of results to return. If empty, no further
157
+ # results are available.
158
+ # Corresponds to the JSON property `nextPageToken`
159
+ # @return [String]
160
+ attr_accessor :next_page_token
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @courses = args[:courses] unless args[:courses].nil?
169
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
170
+ end
171
+ end
172
+
173
+ # Alternative identifier for a course. An alias uniquely identifies a course. It
174
+ # must be unique within one of the following scopes: * domain: A domain-scoped
175
+ # alias is visible to all users within the alias creator's domain and can be
176
+ # created only by a domain admin. A domain-scoped alias is often used when a
177
+ # course has an identifier external to Classroom. * project: A project-scoped
178
+ # alias is visible to any request from an application using the Developer
179
+ # Console project ID that created the alias and can be created by any project. A
180
+ # project-scoped alias is often used when an application has alternative
181
+ # identifiers. A random value can also be used to avoid duplicate courses in the
182
+ # event of transmission failures, as retrying a request will return `
183
+ # ALREADY_EXISTS` if a previous one has succeeded.
184
+ class CourseAlias
185
+ include Google::Apis::Core::Hashable
186
+
187
+ # Alias string. The format of the string indicates the desired alias scoping. * `
188
+ # d:` indicates a domain-scoped alias. Example: `d:math_101` * `p:` indicates a
189
+ # project-scoped alias. Example: `p:abc123` This field has a maximum length of
190
+ # 256 characters.
191
+ # Corresponds to the JSON property `alias`
192
+ # @return [String]
193
+ attr_accessor :alias
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @alias = args[:alias] unless args[:alias].nil?
202
+ end
203
+ end
204
+
205
+ # Response when listing course aliases.
206
+ class ListCourseAliasesResponse
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # The course aliases.
210
+ # Corresponds to the JSON property `aliases`
211
+ # @return [Array<Google::Apis::ClassroomV1::CourseAlias>]
212
+ attr_accessor :aliases
213
+
214
+ # Token identifying the next page of results to return. If empty, no further
215
+ # results are available.
216
+ # Corresponds to the JSON property `nextPageToken`
217
+ # @return [String]
218
+ attr_accessor :next_page_token
219
+
220
+ def initialize(**args)
221
+ update!(**args)
222
+ end
223
+
224
+ # Update properties of this object
225
+ def update!(**args)
226
+ @aliases = args[:aliases] unless args[:aliases].nil?
227
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
228
+ end
229
+ end
230
+
231
+ # An invitation to join a course.
232
+ class Invitation
233
+ include Google::Apis::Core::Hashable
234
+
235
+ # Identifier assigned by Classroom. Read-only.
236
+ # Corresponds to the JSON property `id`
237
+ # @return [String]
238
+ attr_accessor :id
239
+
240
+ # Identifier of the invited user. When specified as a parameter of a request,
241
+ # this identifier can be set to one of the following: * the numeric identifier
242
+ # for the user * the email address of the user * the string literal `"me"`,
243
+ # indicating the requesting user
244
+ # Corresponds to the JSON property `userId`
245
+ # @return [String]
246
+ attr_accessor :user_id
247
+
248
+ # Identifier of the course to invite the user to.
249
+ # Corresponds to the JSON property `courseId`
250
+ # @return [String]
251
+ attr_accessor :course_id
252
+
253
+ # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
254
+ # Corresponds to the JSON property `role`
255
+ # @return [String]
256
+ attr_accessor :role
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @id = args[:id] unless args[:id].nil?
265
+ @user_id = args[:user_id] unless args[:user_id].nil?
266
+ @course_id = args[:course_id] unless args[:course_id].nil?
267
+ @role = args[:role] unless args[:role].nil?
268
+ end
269
+ end
270
+
271
+ # Response when listing invitations.
272
+ class ListInvitationsResponse
273
+ include Google::Apis::Core::Hashable
274
+
275
+ # Invitations that match the list request.
276
+ # Corresponds to the JSON property `invitations`
277
+ # @return [Array<Google::Apis::ClassroomV1::Invitation>]
278
+ attr_accessor :invitations
279
+
280
+ # Token identifying the next page of results to return. If empty, no further
281
+ # results are available.
282
+ # Corresponds to the JSON property `nextPageToken`
283
+ # @return [String]
284
+ attr_accessor :next_page_token
285
+
286
+ def initialize(**args)
287
+ update!(**args)
288
+ end
289
+
290
+ # Update properties of this object
291
+ def update!(**args)
292
+ @invitations = args[:invitations] unless args[:invitations].nil?
293
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
294
+ end
295
+ end
296
+
297
+ # Global information for a user.
298
+ class UserProfile
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Identifier of the user. Read-only.
302
+ # Corresponds to the JSON property `id`
303
+ # @return [String]
304
+ attr_accessor :id
305
+
306
+ # Details of the user's name.
307
+ # Corresponds to the JSON property `name`
308
+ # @return [Google::Apis::ClassroomV1::Name]
309
+ attr_accessor :name
310
+
311
+ # Email address of the user. Read-only.
312
+ # Corresponds to the JSON property `emailAddress`
313
+ # @return [String]
314
+ attr_accessor :email_address
315
+
316
+ # URL of user's profile photo. Read-only.
317
+ # Corresponds to the JSON property `photoUrl`
318
+ # @return [String]
319
+ attr_accessor :photo_url
320
+
321
+ # Global permissions of the user. Read-only.
322
+ # Corresponds to the JSON property `permissions`
323
+ # @return [Array<Google::Apis::ClassroomV1::GlobalPermission>]
324
+ attr_accessor :permissions
325
+
326
+ def initialize(**args)
327
+ update!(**args)
328
+ end
329
+
330
+ # Update properties of this object
331
+ def update!(**args)
332
+ @id = args[:id] unless args[:id].nil?
333
+ @name = args[:name] unless args[:name].nil?
334
+ @email_address = args[:email_address] unless args[:email_address].nil?
335
+ @photo_url = args[:photo_url] unless args[:photo_url].nil?
336
+ @permissions = args[:permissions] unless args[:permissions].nil?
337
+ end
338
+ end
339
+
340
+ # Details of the user's name.
341
+ class Name
342
+ include Google::Apis::Core::Hashable
343
+
344
+ # The user's first name. Read-only.
345
+ # Corresponds to the JSON property `givenName`
346
+ # @return [String]
347
+ attr_accessor :given_name
348
+
349
+ # The user's last name. Read-only.
350
+ # Corresponds to the JSON property `familyName`
351
+ # @return [String]
352
+ attr_accessor :family_name
353
+
354
+ # The user's full name formed by concatenating the first and last name values.
355
+ # Read-only.
356
+ # Corresponds to the JSON property `fullName`
357
+ # @return [String]
358
+ attr_accessor :full_name
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ @given_name = args[:given_name] unless args[:given_name].nil?
367
+ @family_name = args[:family_name] unless args[:family_name].nil?
368
+ @full_name = args[:full_name] unless args[:full_name].nil?
369
+ end
370
+ end
371
+
372
+ # Global user permission description.
373
+ class GlobalPermission
374
+ include Google::Apis::Core::Hashable
375
+
376
+ # Permission value.
377
+ # Corresponds to the JSON property `permission`
378
+ # @return [String]
379
+ attr_accessor :permission
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @permission = args[:permission] unless args[:permission].nil?
388
+ end
389
+ end
390
+
391
+ # Teacher of a course.
392
+ class Teacher
393
+ include Google::Apis::Core::Hashable
394
+
395
+ # Identifier of the course. Read-only.
396
+ # Corresponds to the JSON property `courseId`
397
+ # @return [String]
398
+ attr_accessor :course_id
399
+
400
+ # Identifier of the user. When specified as a parameter of a request, this
401
+ # identifier can be one of the following: * the numeric identifier for the user *
402
+ # the email address of the user * the string literal `"me"`, indicating the
403
+ # requesting user
404
+ # Corresponds to the JSON property `userId`
405
+ # @return [String]
406
+ attr_accessor :user_id
407
+
408
+ # Global information for a user.
409
+ # Corresponds to the JSON property `profile`
410
+ # @return [Google::Apis::ClassroomV1::UserProfile]
411
+ attr_accessor :profile
412
+
413
+ def initialize(**args)
414
+ update!(**args)
415
+ end
416
+
417
+ # Update properties of this object
418
+ def update!(**args)
419
+ @course_id = args[:course_id] unless args[:course_id].nil?
420
+ @user_id = args[:user_id] unless args[:user_id].nil?
421
+ @profile = args[:profile] unless args[:profile].nil?
422
+ end
423
+ end
424
+
425
+ # Response when listing teachers.
426
+ class ListTeachersResponse
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # Teachers who match the list request.
430
+ # Corresponds to the JSON property `teachers`
431
+ # @return [Array<Google::Apis::ClassroomV1::Teacher>]
432
+ attr_accessor :teachers
433
+
434
+ # Token identifying the next page of results to return. If empty, no further
435
+ # results are available.
436
+ # Corresponds to the JSON property `nextPageToken`
437
+ # @return [String]
438
+ attr_accessor :next_page_token
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @teachers = args[:teachers] unless args[:teachers].nil?
447
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
448
+ end
449
+ end
450
+
451
+ # Student in a course.
452
+ class Student
453
+ include Google::Apis::Core::Hashable
454
+
455
+ # Identifier of the course. Read-only.
456
+ # Corresponds to the JSON property `courseId`
457
+ # @return [String]
458
+ attr_accessor :course_id
459
+
460
+ # Identifier of the user. When specified as a parameter of a request, this
461
+ # identifier can be one of the following: * the numeric identifier for the user *
462
+ # the email address of the user * the string literal `"me"`, indicating the
463
+ # requesting user
464
+ # Corresponds to the JSON property `userId`
465
+ # @return [String]
466
+ attr_accessor :user_id
467
+
468
+ # Global information for a user.
469
+ # Corresponds to the JSON property `profile`
470
+ # @return [Google::Apis::ClassroomV1::UserProfile]
471
+ attr_accessor :profile
472
+
473
+ def initialize(**args)
474
+ update!(**args)
475
+ end
476
+
477
+ # Update properties of this object
478
+ def update!(**args)
479
+ @course_id = args[:course_id] unless args[:course_id].nil?
480
+ @user_id = args[:user_id] unless args[:user_id].nil?
481
+ @profile = args[:profile] unless args[:profile].nil?
482
+ end
483
+ end
484
+
485
+ # Response when listing students.
486
+ class ListStudentsResponse
487
+ include Google::Apis::Core::Hashable
488
+
489
+ # Students who match the list request.
490
+ # Corresponds to the JSON property `students`
491
+ # @return [Array<Google::Apis::ClassroomV1::Student>]
492
+ attr_accessor :students
493
+
494
+ # Token identifying the next page of results to return. If empty, no further
495
+ # results are available.
496
+ # Corresponds to the JSON property `nextPageToken`
497
+ # @return [String]
498
+ attr_accessor :next_page_token
499
+
500
+ def initialize(**args)
501
+ update!(**args)
502
+ end
503
+
504
+ # Update properties of this object
505
+ def update!(**args)
506
+ @students = args[:students] unless args[:students].nil?
507
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
508
+ end
509
+ end
510
+ end
511
+ end
512
+ end