lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,32 @@
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/civicinfo_v2/service.rb'
16
+ require 'google/apis/civicinfo_v2/classes.rb'
17
+ require 'google/apis/civicinfo_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Civic Information API
22
+ #
23
+ # Provides polling places, early vote locations, contest data, election
24
+ # officials, and government representatives for U.S. residential addresses.
25
+ #
26
+ # @see https://developers.google.com/civic-information
27
+ module CivicinfoV2
28
+ VERSION = 'V2'
29
+ REVISION = '20161102'
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,1499 @@
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 CivicinfoV2
24
+
25
+ # Describes information about a regional election administrative area.
26
+ class AdministrationRegion
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Information about an election administrative body (e.g. County Board of
30
+ # Elections).
31
+ # Corresponds to the JSON property `electionAdministrationBody`
32
+ # @return [Google::Apis::CivicinfoV2::AdministrativeBody]
33
+ attr_accessor :election_administration_body
34
+
35
+ # An ID for this object. IDs may change in future requests and should not be
36
+ # cached. Access to this field requires special access that can be requested
37
+ # from the Request more link on the Quotas page.
38
+ # Corresponds to the JSON property `id`
39
+ # @return [String]
40
+ attr_accessor :id
41
+
42
+ # Describes information about a regional election administrative area.
43
+ # Corresponds to the JSON property `local_jurisdiction`
44
+ # @return [Google::Apis::CivicinfoV2::AdministrationRegion]
45
+ attr_accessor :local_jurisdiction
46
+
47
+ # The name of the jurisdiction.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # A list of sources for this area. If multiple sources are listed the data has
53
+ # been aggregated from those sources.
54
+ # Corresponds to the JSON property `sources`
55
+ # @return [Array<Google::Apis::CivicinfoV2::Source>]
56
+ attr_accessor :sources
57
+
58
+ def initialize(**args)
59
+ update!(**args)
60
+ end
61
+
62
+ # Update properties of this object
63
+ def update!(**args)
64
+ @election_administration_body = args[:election_administration_body] if args.key?(:election_administration_body)
65
+ @id = args[:id] if args.key?(:id)
66
+ @local_jurisdiction = args[:local_jurisdiction] if args.key?(:local_jurisdiction)
67
+ @name = args[:name] if args.key?(:name)
68
+ @sources = args[:sources] if args.key?(:sources)
69
+ end
70
+ end
71
+
72
+ # Information about an election administrative body (e.g. County Board of
73
+ # Elections).
74
+ class AdministrativeBody
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # A URL provided by this administrative body for information on absentee voting.
78
+ # Corresponds to the JSON property `absenteeVotingInfoUrl`
79
+ # @return [String]
80
+ attr_accessor :absentee_voting_info_url
81
+
82
+ #
83
+ # Corresponds to the JSON property `addressLines`
84
+ # @return [Array<String>]
85
+ attr_accessor :address_lines
86
+
87
+ # A URL provided by this administrative body to give contest information to the
88
+ # voter.
89
+ # Corresponds to the JSON property `ballotInfoUrl`
90
+ # @return [String]
91
+ attr_accessor :ballot_info_url
92
+
93
+ # A simple representation of an address.
94
+ # Corresponds to the JSON property `correspondenceAddress`
95
+ # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
96
+ attr_accessor :correspondence_address
97
+
98
+ # A URL provided by this administrative body for looking up general election
99
+ # information.
100
+ # Corresponds to the JSON property `electionInfoUrl`
101
+ # @return [String]
102
+ attr_accessor :election_info_url
103
+
104
+ # The election officials for this election administrative body.
105
+ # Corresponds to the JSON property `electionOfficials`
106
+ # @return [Array<Google::Apis::CivicinfoV2::ElectionOfficial>]
107
+ attr_accessor :election_officials
108
+
109
+ # A URL provided by this administrative body for confirming that the voter is
110
+ # registered to vote.
111
+ # Corresponds to the JSON property `electionRegistrationConfirmationUrl`
112
+ # @return [String]
113
+ attr_accessor :election_registration_confirmation_url
114
+
115
+ # A URL provided by this administrative body for looking up how to register to
116
+ # vote.
117
+ # Corresponds to the JSON property `electionRegistrationUrl`
118
+ # @return [String]
119
+ attr_accessor :election_registration_url
120
+
121
+ # A URL provided by this administrative body describing election rules to the
122
+ # voter.
123
+ # Corresponds to the JSON property `electionRulesUrl`
124
+ # @return [String]
125
+ attr_accessor :election_rules_url
126
+
127
+ # A description of the hours of operation for this administrative body.
128
+ # Corresponds to the JSON property `hoursOfOperation`
129
+ # @return [String]
130
+ attr_accessor :hours_of_operation
131
+
132
+ # The name of this election administrative body.
133
+ # Corresponds to the JSON property `name`
134
+ # @return [String]
135
+ attr_accessor :name
136
+
137
+ # A simple representation of an address.
138
+ # Corresponds to the JSON property `physicalAddress`
139
+ # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
140
+ attr_accessor :physical_address
141
+
142
+ # A description of the services this administrative body may provide.
143
+ # Corresponds to the JSON property `voter_services`
144
+ # @return [Array<String>]
145
+ attr_accessor :voter_services
146
+
147
+ # A URL provided by this administrative body for looking up where to vote.
148
+ # Corresponds to the JSON property `votingLocationFinderUrl`
149
+ # @return [String]
150
+ attr_accessor :voting_location_finder_url
151
+
152
+ def initialize(**args)
153
+ update!(**args)
154
+ end
155
+
156
+ # Update properties of this object
157
+ def update!(**args)
158
+ @absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
159
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
160
+ @ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
161
+ @correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
162
+ @election_info_url = args[:election_info_url] if args.key?(:election_info_url)
163
+ @election_officials = args[:election_officials] if args.key?(:election_officials)
164
+ @election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url)
165
+ @election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url)
166
+ @election_rules_url = args[:election_rules_url] if args.key?(:election_rules_url)
167
+ @hours_of_operation = args[:hours_of_operation] if args.key?(:hours_of_operation)
168
+ @name = args[:name] if args.key?(:name)
169
+ @physical_address = args[:physical_address] if args.key?(:physical_address)
170
+ @voter_services = args[:voter_services] if args.key?(:voter_services)
171
+ @voting_location_finder_url = args[:voting_location_finder_url] if args.key?(:voting_location_finder_url)
172
+ end
173
+ end
174
+
175
+ # Information about a candidate running for elected office.
176
+ class Candidate
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # The URL for the candidate's campaign web site.
180
+ # Corresponds to the JSON property `candidateUrl`
181
+ # @return [String]
182
+ attr_accessor :candidate_url
183
+
184
+ # A list of known (social) media channels for this candidate.
185
+ # Corresponds to the JSON property `channels`
186
+ # @return [Array<Google::Apis::CivicinfoV2::Channel>]
187
+ attr_accessor :channels
188
+
189
+ # The email address for the candidate's campaign.
190
+ # Corresponds to the JSON property `email`
191
+ # @return [String]
192
+ attr_accessor :email
193
+
194
+ # The candidate's name. If this is a joint ticket it will indicate the name of
195
+ # the candidate at the top of a ticket followed by a / and that name of
196
+ # candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"
197
+ # Corresponds to the JSON property `name`
198
+ # @return [String]
199
+ attr_accessor :name
200
+
201
+ # The order the candidate appears on the ballot for this contest.
202
+ # Corresponds to the JSON property `orderOnBallot`
203
+ # @return [String]
204
+ attr_accessor :order_on_ballot
205
+
206
+ # The full name of the party the candidate is a member of.
207
+ # Corresponds to the JSON property `party`
208
+ # @return [String]
209
+ attr_accessor :party
210
+
211
+ # The voice phone number for the candidate's campaign office.
212
+ # Corresponds to the JSON property `phone`
213
+ # @return [String]
214
+ attr_accessor :phone
215
+
216
+ # A URL for a photo of the candidate.
217
+ # Corresponds to the JSON property `photoUrl`
218
+ # @return [String]
219
+ attr_accessor :photo_url
220
+
221
+ def initialize(**args)
222
+ update!(**args)
223
+ end
224
+
225
+ # Update properties of this object
226
+ def update!(**args)
227
+ @candidate_url = args[:candidate_url] if args.key?(:candidate_url)
228
+ @channels = args[:channels] if args.key?(:channels)
229
+ @email = args[:email] if args.key?(:email)
230
+ @name = args[:name] if args.key?(:name)
231
+ @order_on_ballot = args[:order_on_ballot] if args.key?(:order_on_ballot)
232
+ @party = args[:party] if args.key?(:party)
233
+ @phone = args[:phone] if args.key?(:phone)
234
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
235
+ end
236
+ end
237
+
238
+ # A social media or web channel for a candidate.
239
+ class Channel
240
+ include Google::Apis::Core::Hashable
241
+
242
+ # The unique public identifier for the candidate's channel.
243
+ # Corresponds to the JSON property `id`
244
+ # @return [String]
245
+ attr_accessor :id
246
+
247
+ # The type of channel. The following is a list of types of channels, but is not
248
+ # exhaustive. More channel types may be added at a later time. One of:
249
+ # GooglePlus, YouTube, Facebook, Twitter
250
+ # Corresponds to the JSON property `type`
251
+ # @return [String]
252
+ attr_accessor :type
253
+
254
+ def initialize(**args)
255
+ update!(**args)
256
+ end
257
+
258
+ # Update properties of this object
259
+ def update!(**args)
260
+ @id = args[:id] if args.key?(:id)
261
+ @type = args[:type] if args.key?(:type)
262
+ end
263
+ end
264
+
265
+ # Information about a contest that appears on a voter's ballot.
266
+ class Contest
267
+ include Google::Apis::Core::Hashable
268
+
269
+ # A number specifying the position of this contest on the voter's ballot.
270
+ # Corresponds to the JSON property `ballotPlacement`
271
+ # @return [String]
272
+ attr_accessor :ballot_placement
273
+
274
+ # The candidate choices for this contest.
275
+ # Corresponds to the JSON property `candidates`
276
+ # @return [Array<Google::Apis::CivicinfoV2::Candidate>]
277
+ attr_accessor :candidates
278
+
279
+ # Describes the geographic scope of a contest.
280
+ # Corresponds to the JSON property `district`
281
+ # @return [Google::Apis::CivicinfoV2::ElectoralDistrict]
282
+ attr_accessor :district
283
+
284
+ # A description of any additional eligibility requirements for voting in this
285
+ # contest.
286
+ # Corresponds to the JSON property `electorateSpecifications`
287
+ # @return [String]
288
+ attr_accessor :electorate_specifications
289
+
290
+ # An ID for this object. IDs may change in future requests and should not be
291
+ # cached. Access to this field requires special access that can be requested
292
+ # from the Request more link on the Quotas page.
293
+ # Corresponds to the JSON property `id`
294
+ # @return [String]
295
+ attr_accessor :id
296
+
297
+ # The levels of government of the office for this contest. There may be more
298
+ # than one in cases where a jurisdiction effectively acts at two different
299
+ # levels of government; for example, the mayor of the District of Columbia acts
300
+ # at "locality" level, but also effectively at both "administrative-area-2" and "
301
+ # administrative-area-1".
302
+ # Corresponds to the JSON property `level`
303
+ # @return [Array<String>]
304
+ attr_accessor :level
305
+
306
+ # The number of candidates that will be elected to office in this contest.
307
+ # Corresponds to the JSON property `numberElected`
308
+ # @return [String]
309
+ attr_accessor :number_elected
310
+
311
+ # The number of candidates that a voter may vote for in this contest.
312
+ # Corresponds to the JSON property `numberVotingFor`
313
+ # @return [String]
314
+ attr_accessor :number_voting_for
315
+
316
+ # The name of the office for this contest.
317
+ # Corresponds to the JSON property `office`
318
+ # @return [String]
319
+ attr_accessor :office
320
+
321
+ # If this is a partisan election, the name of the party it is for.
322
+ # Corresponds to the JSON property `primaryParty`
323
+ # @return [String]
324
+ attr_accessor :primary_party
325
+
326
+ # The set of ballot responses for the referendum. A ballot response represents a
327
+ # line on the ballot. Common examples might include "yes" or "no" for referenda.
328
+ # This field is only populated for contests of type 'Referendum'.
329
+ # Corresponds to the JSON property `referendumBallotResponses`
330
+ # @return [Array<String>]
331
+ attr_accessor :referendum_ballot_responses
332
+
333
+ # Specifies a short summary of the referendum that is typically on the ballot
334
+ # below the title but above the text. This field is only populated for contests
335
+ # of type 'Referendum'.
336
+ # Corresponds to the JSON property `referendumBrief`
337
+ # @return [String]
338
+ attr_accessor :referendum_brief
339
+
340
+ # A statement in opposition to the referendum. It does not necessarily appear on
341
+ # the ballot. This field is only populated for contests of type 'Referendum'.
342
+ # Corresponds to the JSON property `referendumConStatement`
343
+ # @return [String]
344
+ attr_accessor :referendum_con_statement
345
+
346
+ # Specifies what effect abstaining (not voting) on the proposition will have (i.
347
+ # e. whether abstaining is considered a vote against it). This field is only
348
+ # populated for contests of type 'Referendum'.
349
+ # Corresponds to the JSON property `referendumEffectOfAbstain`
350
+ # @return [String]
351
+ attr_accessor :referendum_effect_of_abstain
352
+
353
+ # The threshold of votes that the referendum needs in order to pass, e.g. "two-
354
+ # thirds". This field is only populated for contests of type 'Referendum'.
355
+ # Corresponds to the JSON property `referendumPassageThreshold`
356
+ # @return [String]
357
+ attr_accessor :referendum_passage_threshold
358
+
359
+ # A statement in favor of the referendum. It does not necessarily appear on the
360
+ # ballot. This field is only populated for contests of type 'Referendum'.
361
+ # Corresponds to the JSON property `referendumProStatement`
362
+ # @return [String]
363
+ attr_accessor :referendum_pro_statement
364
+
365
+ # A brief description of the referendum. This field is only populated for
366
+ # contests of type 'Referendum'.
367
+ # Corresponds to the JSON property `referendumSubtitle`
368
+ # @return [String]
369
+ attr_accessor :referendum_subtitle
370
+
371
+ # The full text of the referendum. This field is only populated for contests of
372
+ # type 'Referendum'.
373
+ # Corresponds to the JSON property `referendumText`
374
+ # @return [String]
375
+ attr_accessor :referendum_text
376
+
377
+ # The title of the referendum (e.g. 'Proposition 42'). This field is only
378
+ # populated for contests of type 'Referendum'.
379
+ # Corresponds to the JSON property `referendumTitle`
380
+ # @return [String]
381
+ attr_accessor :referendum_title
382
+
383
+ # A link to the referendum. This field is only populated for contests of type '
384
+ # Referendum'.
385
+ # Corresponds to the JSON property `referendumUrl`
386
+ # @return [String]
387
+ attr_accessor :referendum_url
388
+
389
+ # The roles which this office fulfills.
390
+ # Corresponds to the JSON property `roles`
391
+ # @return [Array<String>]
392
+ attr_accessor :roles
393
+
394
+ # A list of sources for this contest. If multiple sources are listed, the data
395
+ # has been aggregated from those sources.
396
+ # Corresponds to the JSON property `sources`
397
+ # @return [Array<Google::Apis::CivicinfoV2::Source>]
398
+ attr_accessor :sources
399
+
400
+ # "Yes" or "No" depending on whether this a contest being held outside the
401
+ # normal election cycle.
402
+ # Corresponds to the JSON property `special`
403
+ # @return [String]
404
+ attr_accessor :special
405
+
406
+ # The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
407
+ # for contests with candidates. For referenda this will be 'Referendum'. For
408
+ # Retention contests this will typically be 'Retention'.
409
+ # Corresponds to the JSON property `type`
410
+ # @return [String]
411
+ attr_accessor :type
412
+
413
+ def initialize(**args)
414
+ update!(**args)
415
+ end
416
+
417
+ # Update properties of this object
418
+ def update!(**args)
419
+ @ballot_placement = args[:ballot_placement] if args.key?(:ballot_placement)
420
+ @candidates = args[:candidates] if args.key?(:candidates)
421
+ @district = args[:district] if args.key?(:district)
422
+ @electorate_specifications = args[:electorate_specifications] if args.key?(:electorate_specifications)
423
+ @id = args[:id] if args.key?(:id)
424
+ @level = args[:level] if args.key?(:level)
425
+ @number_elected = args[:number_elected] if args.key?(:number_elected)
426
+ @number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for)
427
+ @office = args[:office] if args.key?(:office)
428
+ @primary_party = args[:primary_party] if args.key?(:primary_party)
429
+ @referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses)
430
+ @referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief)
431
+ @referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement)
432
+ @referendum_effect_of_abstain = args[:referendum_effect_of_abstain] if args.key?(:referendum_effect_of_abstain)
433
+ @referendum_passage_threshold = args[:referendum_passage_threshold] if args.key?(:referendum_passage_threshold)
434
+ @referendum_pro_statement = args[:referendum_pro_statement] if args.key?(:referendum_pro_statement)
435
+ @referendum_subtitle = args[:referendum_subtitle] if args.key?(:referendum_subtitle)
436
+ @referendum_text = args[:referendum_text] if args.key?(:referendum_text)
437
+ @referendum_title = args[:referendum_title] if args.key?(:referendum_title)
438
+ @referendum_url = args[:referendum_url] if args.key?(:referendum_url)
439
+ @roles = args[:roles] if args.key?(:roles)
440
+ @sources = args[:sources] if args.key?(:sources)
441
+ @special = args[:special] if args.key?(:special)
442
+ @type = args[:type] if args.key?(:type)
443
+ end
444
+ end
445
+
446
+ #
447
+ class ContextParams
448
+ include Google::Apis::Core::Hashable
449
+
450
+ #
451
+ # Corresponds to the JSON property `clientProfile`
452
+ # @return [String]
453
+ attr_accessor :client_profile
454
+
455
+ def initialize(**args)
456
+ update!(**args)
457
+ end
458
+
459
+ # Update properties of this object
460
+ def update!(**args)
461
+ @client_profile = args[:client_profile] if args.key?(:client_profile)
462
+ end
463
+ end
464
+
465
+ # A request to look up representative information for a single division.
466
+ class DivisionRepresentativeInfoRequest
467
+ include Google::Apis::Core::Hashable
468
+
469
+ #
470
+ # Corresponds to the JSON property `contextParams`
471
+ # @return [Google::Apis::CivicinfoV2::ContextParams]
472
+ attr_accessor :context_params
473
+
474
+ def initialize(**args)
475
+ update!(**args)
476
+ end
477
+
478
+ # Update properties of this object
479
+ def update!(**args)
480
+ @context_params = args[:context_params] if args.key?(:context_params)
481
+ end
482
+ end
483
+
484
+ # A search request for political geographies.
485
+ class DivisionSearchRequest
486
+ include Google::Apis::Core::Hashable
487
+
488
+ #
489
+ # Corresponds to the JSON property `contextParams`
490
+ # @return [Google::Apis::CivicinfoV2::ContextParams]
491
+ attr_accessor :context_params
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ @context_params = args[:context_params] if args.key?(:context_params)
500
+ end
501
+ end
502
+
503
+ # The result of a division search query.
504
+ class DivisionSearchResponse
505
+ include Google::Apis::Core::Hashable
506
+
507
+ # Identifies what kind of resource this is. Value: the fixed string "civicinfo#
508
+ # divisionSearchResponse".
509
+ # Corresponds to the JSON property `kind`
510
+ # @return [String]
511
+ attr_accessor :kind
512
+
513
+ #
514
+ # Corresponds to the JSON property `results`
515
+ # @return [Array<Google::Apis::CivicinfoV2::DivisionSearchResult>]
516
+ attr_accessor :results
517
+
518
+ def initialize(**args)
519
+ update!(**args)
520
+ end
521
+
522
+ # Update properties of this object
523
+ def update!(**args)
524
+ @kind = args[:kind] if args.key?(:kind)
525
+ @results = args[:results] if args.key?(:results)
526
+ end
527
+ end
528
+
529
+ # Represents a political geographic division that matches the requested query.
530
+ class DivisionSearchResult
531
+ include Google::Apis::Core::Hashable
532
+
533
+ # Other Open Civic Data identifiers that refer to the same division -- for
534
+ # example, those that refer to other political divisions whose boundaries are
535
+ # defined to be coterminous with this one. For example, ocd-division/country:us/
536
+ # state:wy will include an alias of ocd-division/country:us/state:wy/cd:1, since
537
+ # Wyoming has only one Congressional district.
538
+ # Corresponds to the JSON property `aliases`
539
+ # @return [Array<String>]
540
+ attr_accessor :aliases
541
+
542
+ # The name of the division.
543
+ # Corresponds to the JSON property `name`
544
+ # @return [String]
545
+ attr_accessor :name
546
+
547
+ # The unique Open Civic Data identifier for this division.
548
+ # Corresponds to the JSON property `ocdId`
549
+ # @return [String]
550
+ attr_accessor :ocd_id
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @aliases = args[:aliases] if args.key?(:aliases)
559
+ @name = args[:name] if args.key?(:name)
560
+ @ocd_id = args[:ocd_id] if args.key?(:ocd_id)
561
+ end
562
+ end
563
+
564
+ # Information about the election that was queried.
565
+ class Election
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # Day of the election in YYYY-MM-DD format.
569
+ # Corresponds to the JSON property `electionDay`
570
+ # @return [String]
571
+ attr_accessor :election_day
572
+
573
+ # The unique ID of this election.
574
+ # Corresponds to the JSON property `id`
575
+ # @return [String]
576
+ attr_accessor :id
577
+
578
+ # A displayable name for the election.
579
+ # Corresponds to the JSON property `name`
580
+ # @return [String]
581
+ attr_accessor :name
582
+
583
+ # The political division of the election. Represented as an OCD Division ID.
584
+ # Voters within these political jurisdictions are covered by this election. This
585
+ # is typically a state such as ocd-division/country:us/state:ca or for the
586
+ # midterms or general election the entire US (i.e. ocd-division/country:us).
587
+ # Corresponds to the JSON property `ocdDivisionId`
588
+ # @return [String]
589
+ attr_accessor :ocd_division_id
590
+
591
+ def initialize(**args)
592
+ update!(**args)
593
+ end
594
+
595
+ # Update properties of this object
596
+ def update!(**args)
597
+ @election_day = args[:election_day] if args.key?(:election_day)
598
+ @id = args[:id] if args.key?(:id)
599
+ @name = args[:name] if args.key?(:name)
600
+ @ocd_division_id = args[:ocd_division_id] if args.key?(:ocd_division_id)
601
+ end
602
+ end
603
+
604
+ # Information about individual election officials.
605
+ class ElectionOfficial
606
+ include Google::Apis::Core::Hashable
607
+
608
+ # The email address of the election official.
609
+ # Corresponds to the JSON property `emailAddress`
610
+ # @return [String]
611
+ attr_accessor :email_address
612
+
613
+ # The fax number of the election official.
614
+ # Corresponds to the JSON property `faxNumber`
615
+ # @return [String]
616
+ attr_accessor :fax_number
617
+
618
+ # The full name of the election official.
619
+ # Corresponds to the JSON property `name`
620
+ # @return [String]
621
+ attr_accessor :name
622
+
623
+ # The office phone number of the election official.
624
+ # Corresponds to the JSON property `officePhoneNumber`
625
+ # @return [String]
626
+ attr_accessor :office_phone_number
627
+
628
+ # The title of the election official.
629
+ # Corresponds to the JSON property `title`
630
+ # @return [String]
631
+ attr_accessor :title
632
+
633
+ def initialize(**args)
634
+ update!(**args)
635
+ end
636
+
637
+ # Update properties of this object
638
+ def update!(**args)
639
+ @email_address = args[:email_address] if args.key?(:email_address)
640
+ @fax_number = args[:fax_number] if args.key?(:fax_number)
641
+ @name = args[:name] if args.key?(:name)
642
+ @office_phone_number = args[:office_phone_number] if args.key?(:office_phone_number)
643
+ @title = args[:title] if args.key?(:title)
644
+ end
645
+ end
646
+
647
+ #
648
+ class ElectionsQueryRequest
649
+ include Google::Apis::Core::Hashable
650
+
651
+ #
652
+ # Corresponds to the JSON property `contextParams`
653
+ # @return [Google::Apis::CivicinfoV2::ContextParams]
654
+ attr_accessor :context_params
655
+
656
+ def initialize(**args)
657
+ update!(**args)
658
+ end
659
+
660
+ # Update properties of this object
661
+ def update!(**args)
662
+ @context_params = args[:context_params] if args.key?(:context_params)
663
+ end
664
+ end
665
+
666
+ # The list of elections available for this version of the API.
667
+ class QueryElectionsResponse
668
+ include Google::Apis::Core::Hashable
669
+
670
+ # A list of available elections
671
+ # Corresponds to the JSON property `elections`
672
+ # @return [Array<Google::Apis::CivicinfoV2::Election>]
673
+ attr_accessor :elections
674
+
675
+ # Identifies what kind of resource this is. Value: the fixed string "civicinfo#
676
+ # electionsQueryResponse".
677
+ # Corresponds to the JSON property `kind`
678
+ # @return [String]
679
+ attr_accessor :kind
680
+
681
+ def initialize(**args)
682
+ update!(**args)
683
+ end
684
+
685
+ # Update properties of this object
686
+ def update!(**args)
687
+ @elections = args[:elections] if args.key?(:elections)
688
+ @kind = args[:kind] if args.key?(:kind)
689
+ end
690
+ end
691
+
692
+ # Describes the geographic scope of a contest.
693
+ class ElectoralDistrict
694
+ include Google::Apis::Core::Hashable
695
+
696
+ # An identifier for this district, relative to its scope. For example, the 34th
697
+ # State Senate district would have id "34" and a scope of stateUpper.
698
+ # Corresponds to the JSON property `id`
699
+ # @return [String]
700
+ attr_accessor :id
701
+
702
+ #
703
+ # Corresponds to the JSON property `kgForeignKey`
704
+ # @return [String]
705
+ attr_accessor :kg_foreign_key
706
+
707
+ # The name of the district.
708
+ # Corresponds to the JSON property `name`
709
+ # @return [String]
710
+ attr_accessor :name
711
+
712
+ # The geographic scope of this district. If unspecified the district's geography
713
+ # is not known. One of: national, statewide, congressional, stateUpper,
714
+ # stateLower, countywide, judicial, schoolBoard, cityWide, township,
715
+ # countyCouncil, cityCouncil, ward, special
716
+ # Corresponds to the JSON property `scope`
717
+ # @return [String]
718
+ attr_accessor :scope
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @id = args[:id] if args.key?(:id)
727
+ @kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key)
728
+ @name = args[:name] if args.key?(:name)
729
+ @scope = args[:scope] if args.key?(:scope)
730
+ end
731
+ end
732
+
733
+ # Describes a political geography.
734
+ class GeographicDivision
735
+ include Google::Apis::Core::Hashable
736
+
737
+ # Any other valid OCD IDs that refer to the same division.
738
+ # Because OCD IDs are meant to be human-readable and at least somewhat
739
+ # predictable, there are occasionally several identifiers for a single division.
740
+ # These identifiers are defined to be equivalent to one another, and one is
741
+ # always indicated as the primary identifier. The primary identifier will be
742
+ # returned in ocd_id above, and any other equivalent valid identifiers will be
743
+ # returned in this list.
744
+ # For example, if this division's OCD ID is ocd-division/country:us/district:dc,
745
+ # this will contain ocd-division/country:us/state:dc.
746
+ # Corresponds to the JSON property `alsoKnownAs`
747
+ # @return [Array<String>]
748
+ attr_accessor :also_known_as
749
+
750
+ # The name of the division.
751
+ # Corresponds to the JSON property `name`
752
+ # @return [String]
753
+ attr_accessor :name
754
+
755
+ # List of indices in the offices array, one for each office elected from this
756
+ # division. Will only be present if includeOffices was true (or absent) in the
757
+ # request.
758
+ # Corresponds to the JSON property `officeIndices`
759
+ # @return [Array<Fixnum>]
760
+ attr_accessor :office_indices
761
+
762
+ def initialize(**args)
763
+ update!(**args)
764
+ end
765
+
766
+ # Update properties of this object
767
+ def update!(**args)
768
+ @also_known_as = args[:also_known_as] if args.key?(:also_known_as)
769
+ @name = args[:name] if args.key?(:name)
770
+ @office_indices = args[:office_indices] if args.key?(:office_indices)
771
+ end
772
+ end
773
+
774
+ # Information about an Office held by one or more Officials.
775
+ class Office
776
+ include Google::Apis::Core::Hashable
777
+
778
+ # The OCD ID of the division with which this office is associated.
779
+ # Corresponds to the JSON property `divisionId`
780
+ # @return [String]
781
+ attr_accessor :division_id
782
+
783
+ # The levels of government of which this office is part. There may be more than
784
+ # one in cases where a jurisdiction effectively acts at two different levels of
785
+ # government; for example, the mayor of the District of Columbia acts at "
786
+ # locality" level, but also effectively at both "administrative-area-2" and "
787
+ # administrative-area-1".
788
+ # Corresponds to the JSON property `levels`
789
+ # @return [Array<String>]
790
+ attr_accessor :levels
791
+
792
+ # The human-readable name of the office.
793
+ # Corresponds to the JSON property `name`
794
+ # @return [String]
795
+ attr_accessor :name
796
+
797
+ # List of indices in the officials array of people who presently hold this
798
+ # office.
799
+ # Corresponds to the JSON property `officialIndices`
800
+ # @return [Array<Fixnum>]
801
+ attr_accessor :official_indices
802
+
803
+ # The roles which this office fulfills. Roles are not meant to be exhaustive, or
804
+ # to exactly specify the entire set of responsibilities of a given office, but
805
+ # are meant to be rough categories that are useful for general selection from or
806
+ # sorting of a list of offices.
807
+ # Corresponds to the JSON property `roles`
808
+ # @return [Array<String>]
809
+ attr_accessor :roles
810
+
811
+ # A list of sources for this office. If multiple sources are listed, the data
812
+ # has been aggregated from those sources.
813
+ # Corresponds to the JSON property `sources`
814
+ # @return [Array<Google::Apis::CivicinfoV2::Source>]
815
+ attr_accessor :sources
816
+
817
+ def initialize(**args)
818
+ update!(**args)
819
+ end
820
+
821
+ # Update properties of this object
822
+ def update!(**args)
823
+ @division_id = args[:division_id] if args.key?(:division_id)
824
+ @levels = args[:levels] if args.key?(:levels)
825
+ @name = args[:name] if args.key?(:name)
826
+ @official_indices = args[:official_indices] if args.key?(:official_indices)
827
+ @roles = args[:roles] if args.key?(:roles)
828
+ @sources = args[:sources] if args.key?(:sources)
829
+ end
830
+ end
831
+
832
+ # Information about a person holding an elected office.
833
+ class Official
834
+ include Google::Apis::Core::Hashable
835
+
836
+ # Addresses at which to contact the official.
837
+ # Corresponds to the JSON property `address`
838
+ # @return [Array<Google::Apis::CivicinfoV2::SimpleAddressType>]
839
+ attr_accessor :address
840
+
841
+ # A list of known (social) media channels for this official.
842
+ # Corresponds to the JSON property `channels`
843
+ # @return [Array<Google::Apis::CivicinfoV2::Channel>]
844
+ attr_accessor :channels
845
+
846
+ # The direct email addresses for the official.
847
+ # Corresponds to the JSON property `emails`
848
+ # @return [Array<String>]
849
+ attr_accessor :emails
850
+
851
+ # The official's name.
852
+ # Corresponds to the JSON property `name`
853
+ # @return [String]
854
+ attr_accessor :name
855
+
856
+ # The full name of the party the official belongs to.
857
+ # Corresponds to the JSON property `party`
858
+ # @return [String]
859
+ attr_accessor :party
860
+
861
+ # The official's public contact phone numbers.
862
+ # Corresponds to the JSON property `phones`
863
+ # @return [Array<String>]
864
+ attr_accessor :phones
865
+
866
+ # A URL for a photo of the official.
867
+ # Corresponds to the JSON property `photoUrl`
868
+ # @return [String]
869
+ attr_accessor :photo_url
870
+
871
+ # The official's public website URLs.
872
+ # Corresponds to the JSON property `urls`
873
+ # @return [Array<String>]
874
+ attr_accessor :urls
875
+
876
+ def initialize(**args)
877
+ update!(**args)
878
+ end
879
+
880
+ # Update properties of this object
881
+ def update!(**args)
882
+ @address = args[:address] if args.key?(:address)
883
+ @channels = args[:channels] if args.key?(:channels)
884
+ @emails = args[:emails] if args.key?(:emails)
885
+ @name = args[:name] if args.key?(:name)
886
+ @party = args[:party] if args.key?(:party)
887
+ @phones = args[:phones] if args.key?(:phones)
888
+ @photo_url = args[:photo_url] if args.key?(:photo_url)
889
+ @urls = args[:urls] if args.key?(:urls)
890
+ end
891
+ end
892
+
893
+ # A location where a voter can vote. This may be an early vote site, an election
894
+ # day voting location, or a drop off location for a completed ballot.
895
+ class PollingLocation
896
+ include Google::Apis::Core::Hashable
897
+
898
+ # A simple representation of an address.
899
+ # Corresponds to the JSON property `address`
900
+ # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
901
+ attr_accessor :address
902
+
903
+ # The last date that this early vote site or drop off location may be used. This
904
+ # field is not populated for polling locations.
905
+ # Corresponds to the JSON property `endDate`
906
+ # @return [String]
907
+ attr_accessor :end_date
908
+
909
+ # An ID for this object. IDs may change in future requests and should not be
910
+ # cached. Access to this field requires special access that can be requested
911
+ # from the Request more link on the Quotas page.
912
+ # Corresponds to the JSON property `id`
913
+ # @return [String]
914
+ attr_accessor :id
915
+
916
+ # The name of the early vote site or drop off location. This field is not
917
+ # populated for polling locations.
918
+ # Corresponds to the JSON property `name`
919
+ # @return [String]
920
+ attr_accessor :name
921
+
922
+ # Notes about this location (e.g. accessibility ramp or entrance to use).
923
+ # Corresponds to the JSON property `notes`
924
+ # @return [String]
925
+ attr_accessor :notes
926
+
927
+ # A description of when this location is open.
928
+ # Corresponds to the JSON property `pollingHours`
929
+ # @return [String]
930
+ attr_accessor :polling_hours
931
+
932
+ # A list of sources for this location. If multiple sources are listed the data
933
+ # has been aggregated from those sources.
934
+ # Corresponds to the JSON property `sources`
935
+ # @return [Array<Google::Apis::CivicinfoV2::Source>]
936
+ attr_accessor :sources
937
+
938
+ # The first date that this early vote site or drop off location may be used.
939
+ # This field is not populated for polling locations.
940
+ # Corresponds to the JSON property `startDate`
941
+ # @return [String]
942
+ attr_accessor :start_date
943
+
944
+ # The services provided by this early vote site or drop off location. This field
945
+ # is not populated for polling locations.
946
+ # Corresponds to the JSON property `voterServices`
947
+ # @return [String]
948
+ attr_accessor :voter_services
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @address = args[:address] if args.key?(:address)
957
+ @end_date = args[:end_date] if args.key?(:end_date)
958
+ @id = args[:id] if args.key?(:id)
959
+ @name = args[:name] if args.key?(:name)
960
+ @notes = args[:notes] if args.key?(:notes)
961
+ @polling_hours = args[:polling_hours] if args.key?(:polling_hours)
962
+ @sources = args[:sources] if args.key?(:sources)
963
+ @start_date = args[:start_date] if args.key?(:start_date)
964
+ @voter_services = args[:voter_services] if args.key?(:voter_services)
965
+ end
966
+ end
967
+
968
+ #
969
+ class PostalAddress
970
+ include Google::Apis::Core::Hashable
971
+
972
+ #
973
+ # Corresponds to the JSON property `addressLines`
974
+ # @return [Array<String>]
975
+ attr_accessor :address_lines
976
+
977
+ #
978
+ # Corresponds to the JSON property `administrativeAreaName`
979
+ # @return [String]
980
+ attr_accessor :administrative_area_name
981
+
982
+ #
983
+ # Corresponds to the JSON property `countryName`
984
+ # @return [String]
985
+ attr_accessor :country_name
986
+
987
+ #
988
+ # Corresponds to the JSON property `countryNameCode`
989
+ # @return [String]
990
+ attr_accessor :country_name_code
991
+
992
+ #
993
+ # Corresponds to the JSON property `dependentLocalityName`
994
+ # @return [String]
995
+ attr_accessor :dependent_locality_name
996
+
997
+ #
998
+ # Corresponds to the JSON property `dependentThoroughfareLeadingType`
999
+ # @return [String]
1000
+ attr_accessor :dependent_thoroughfare_leading_type
1001
+
1002
+ #
1003
+ # Corresponds to the JSON property `dependentThoroughfareName`
1004
+ # @return [String]
1005
+ attr_accessor :dependent_thoroughfare_name
1006
+
1007
+ #
1008
+ # Corresponds to the JSON property `dependentThoroughfarePostDirection`
1009
+ # @return [String]
1010
+ attr_accessor :dependent_thoroughfare_post_direction
1011
+
1012
+ #
1013
+ # Corresponds to the JSON property `dependentThoroughfarePreDirection`
1014
+ # @return [String]
1015
+ attr_accessor :dependent_thoroughfare_pre_direction
1016
+
1017
+ #
1018
+ # Corresponds to the JSON property `dependentThoroughfareTrailingType`
1019
+ # @return [String]
1020
+ attr_accessor :dependent_thoroughfare_trailing_type
1021
+
1022
+ #
1023
+ # Corresponds to the JSON property `dependentThoroughfaresConnector`
1024
+ # @return [String]
1025
+ attr_accessor :dependent_thoroughfares_connector
1026
+
1027
+ #
1028
+ # Corresponds to the JSON property `dependentThoroughfaresIndicator`
1029
+ # @return [String]
1030
+ attr_accessor :dependent_thoroughfares_indicator
1031
+
1032
+ #
1033
+ # Corresponds to the JSON property `dependentThoroughfaresType`
1034
+ # @return [String]
1035
+ attr_accessor :dependent_thoroughfares_type
1036
+
1037
+ #
1038
+ # Corresponds to the JSON property `firmName`
1039
+ # @return [String]
1040
+ attr_accessor :firm_name
1041
+
1042
+ #
1043
+ # Corresponds to the JSON property `isDisputed`
1044
+ # @return [Boolean]
1045
+ attr_accessor :is_disputed
1046
+ alias_method :is_disputed?, :is_disputed
1047
+
1048
+ #
1049
+ # Corresponds to the JSON property `languageCode`
1050
+ # @return [String]
1051
+ attr_accessor :language_code
1052
+
1053
+ #
1054
+ # Corresponds to the JSON property `localityName`
1055
+ # @return [String]
1056
+ attr_accessor :locality_name
1057
+
1058
+ #
1059
+ # Corresponds to the JSON property `postBoxNumber`
1060
+ # @return [String]
1061
+ attr_accessor :post_box_number
1062
+
1063
+ #
1064
+ # Corresponds to the JSON property `postalCodeNumber`
1065
+ # @return [String]
1066
+ attr_accessor :postal_code_number
1067
+
1068
+ #
1069
+ # Corresponds to the JSON property `postalCodeNumberExtension`
1070
+ # @return [String]
1071
+ attr_accessor :postal_code_number_extension
1072
+
1073
+ #
1074
+ # Corresponds to the JSON property `premiseName`
1075
+ # @return [String]
1076
+ attr_accessor :premise_name
1077
+
1078
+ #
1079
+ # Corresponds to the JSON property `recipientName`
1080
+ # @return [String]
1081
+ attr_accessor :recipient_name
1082
+
1083
+ #
1084
+ # Corresponds to the JSON property `sortingCode`
1085
+ # @return [String]
1086
+ attr_accessor :sorting_code
1087
+
1088
+ #
1089
+ # Corresponds to the JSON property `subAdministrativeAreaName`
1090
+ # @return [String]
1091
+ attr_accessor :sub_administrative_area_name
1092
+
1093
+ #
1094
+ # Corresponds to the JSON property `subPremiseName`
1095
+ # @return [String]
1096
+ attr_accessor :sub_premise_name
1097
+
1098
+ #
1099
+ # Corresponds to the JSON property `thoroughfareLeadingType`
1100
+ # @return [String]
1101
+ attr_accessor :thoroughfare_leading_type
1102
+
1103
+ #
1104
+ # Corresponds to the JSON property `thoroughfareName`
1105
+ # @return [String]
1106
+ attr_accessor :thoroughfare_name
1107
+
1108
+ #
1109
+ # Corresponds to the JSON property `thoroughfareNumber`
1110
+ # @return [String]
1111
+ attr_accessor :thoroughfare_number
1112
+
1113
+ #
1114
+ # Corresponds to the JSON property `thoroughfarePostDirection`
1115
+ # @return [String]
1116
+ attr_accessor :thoroughfare_post_direction
1117
+
1118
+ #
1119
+ # Corresponds to the JSON property `thoroughfarePreDirection`
1120
+ # @return [String]
1121
+ attr_accessor :thoroughfare_pre_direction
1122
+
1123
+ #
1124
+ # Corresponds to the JSON property `thoroughfareTrailingType`
1125
+ # @return [String]
1126
+ attr_accessor :thoroughfare_trailing_type
1127
+
1128
+ def initialize(**args)
1129
+ update!(**args)
1130
+ end
1131
+
1132
+ # Update properties of this object
1133
+ def update!(**args)
1134
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
1135
+ @administrative_area_name = args[:administrative_area_name] if args.key?(:administrative_area_name)
1136
+ @country_name = args[:country_name] if args.key?(:country_name)
1137
+ @country_name_code = args[:country_name_code] if args.key?(:country_name_code)
1138
+ @dependent_locality_name = args[:dependent_locality_name] if args.key?(:dependent_locality_name)
1139
+ @dependent_thoroughfare_leading_type = args[:dependent_thoroughfare_leading_type] if args.key?(:dependent_thoroughfare_leading_type)
1140
+ @dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name)
1141
+ @dependent_thoroughfare_post_direction = args[:dependent_thoroughfare_post_direction] if args.key?(:dependent_thoroughfare_post_direction)
1142
+ @dependent_thoroughfare_pre_direction = args[:dependent_thoroughfare_pre_direction] if args.key?(:dependent_thoroughfare_pre_direction)
1143
+ @dependent_thoroughfare_trailing_type = args[:dependent_thoroughfare_trailing_type] if args.key?(:dependent_thoroughfare_trailing_type)
1144
+ @dependent_thoroughfares_connector = args[:dependent_thoroughfares_connector] if args.key?(:dependent_thoroughfares_connector)
1145
+ @dependent_thoroughfares_indicator = args[:dependent_thoroughfares_indicator] if args.key?(:dependent_thoroughfares_indicator)
1146
+ @dependent_thoroughfares_type = args[:dependent_thoroughfares_type] if args.key?(:dependent_thoroughfares_type)
1147
+ @firm_name = args[:firm_name] if args.key?(:firm_name)
1148
+ @is_disputed = args[:is_disputed] if args.key?(:is_disputed)
1149
+ @language_code = args[:language_code] if args.key?(:language_code)
1150
+ @locality_name = args[:locality_name] if args.key?(:locality_name)
1151
+ @post_box_number = args[:post_box_number] if args.key?(:post_box_number)
1152
+ @postal_code_number = args[:postal_code_number] if args.key?(:postal_code_number)
1153
+ @postal_code_number_extension = args[:postal_code_number_extension] if args.key?(:postal_code_number_extension)
1154
+ @premise_name = args[:premise_name] if args.key?(:premise_name)
1155
+ @recipient_name = args[:recipient_name] if args.key?(:recipient_name)
1156
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
1157
+ @sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
1158
+ @sub_premise_name = args[:sub_premise_name] if args.key?(:sub_premise_name)
1159
+ @thoroughfare_leading_type = args[:thoroughfare_leading_type] if args.key?(:thoroughfare_leading_type)
1160
+ @thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name)
1161
+ @thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number)
1162
+ @thoroughfare_post_direction = args[:thoroughfare_post_direction] if args.key?(:thoroughfare_post_direction)
1163
+ @thoroughfare_pre_direction = args[:thoroughfare_pre_direction] if args.key?(:thoroughfare_pre_direction)
1164
+ @thoroughfare_trailing_type = args[:thoroughfare_trailing_type] if args.key?(:thoroughfare_trailing_type)
1165
+ end
1166
+ end
1167
+
1168
+ #
1169
+ class RepresentativeInfoData
1170
+ include Google::Apis::Core::Hashable
1171
+
1172
+ # Political geographic divisions that contain the requested address.
1173
+ # Corresponds to the JSON property `divisions`
1174
+ # @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
1175
+ attr_accessor :divisions
1176
+
1177
+ # Elected offices referenced by the divisions listed above. Will only be present
1178
+ # if includeOffices was true in the request.
1179
+ # Corresponds to the JSON property `offices`
1180
+ # @return [Array<Google::Apis::CivicinfoV2::Office>]
1181
+ attr_accessor :offices
1182
+
1183
+ # Officials holding the offices listed above. Will only be present if
1184
+ # includeOffices was true in the request.
1185
+ # Corresponds to the JSON property `officials`
1186
+ # @return [Array<Google::Apis::CivicinfoV2::Official>]
1187
+ attr_accessor :officials
1188
+
1189
+ def initialize(**args)
1190
+ update!(**args)
1191
+ end
1192
+
1193
+ # Update properties of this object
1194
+ def update!(**args)
1195
+ @divisions = args[:divisions] if args.key?(:divisions)
1196
+ @offices = args[:offices] if args.key?(:offices)
1197
+ @officials = args[:officials] if args.key?(:officials)
1198
+ end
1199
+ end
1200
+
1201
+ # A request for political geography and representative information for an
1202
+ # address.
1203
+ class RepresentativeInfoRequest
1204
+ include Google::Apis::Core::Hashable
1205
+
1206
+ #
1207
+ # Corresponds to the JSON property `contextParams`
1208
+ # @return [Google::Apis::CivicinfoV2::ContextParams]
1209
+ attr_accessor :context_params
1210
+
1211
+ def initialize(**args)
1212
+ update!(**args)
1213
+ end
1214
+
1215
+ # Update properties of this object
1216
+ def update!(**args)
1217
+ @context_params = args[:context_params] if args.key?(:context_params)
1218
+ end
1219
+ end
1220
+
1221
+ # The result of a representative info lookup query.
1222
+ class RepresentativeInfoResponse
1223
+ include Google::Apis::Core::Hashable
1224
+
1225
+ # Political geographic divisions that contain the requested address.
1226
+ # Corresponds to the JSON property `divisions`
1227
+ # @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
1228
+ attr_accessor :divisions
1229
+
1230
+ # Identifies what kind of resource this is. Value: the fixed string "civicinfo#
1231
+ # representativeInfoResponse".
1232
+ # Corresponds to the JSON property `kind`
1233
+ # @return [String]
1234
+ attr_accessor :kind
1235
+
1236
+ # A simple representation of an address.
1237
+ # Corresponds to the JSON property `normalizedInput`
1238
+ # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
1239
+ attr_accessor :normalized_input
1240
+
1241
+ # Elected offices referenced by the divisions listed above. Will only be present
1242
+ # if includeOffices was true in the request.
1243
+ # Corresponds to the JSON property `offices`
1244
+ # @return [Array<Google::Apis::CivicinfoV2::Office>]
1245
+ attr_accessor :offices
1246
+
1247
+ # Officials holding the offices listed above. Will only be present if
1248
+ # includeOffices was true in the request.
1249
+ # Corresponds to the JSON property `officials`
1250
+ # @return [Array<Google::Apis::CivicinfoV2::Official>]
1251
+ attr_accessor :officials
1252
+
1253
+ def initialize(**args)
1254
+ update!(**args)
1255
+ end
1256
+
1257
+ # Update properties of this object
1258
+ def update!(**args)
1259
+ @divisions = args[:divisions] if args.key?(:divisions)
1260
+ @kind = args[:kind] if args.key?(:kind)
1261
+ @normalized_input = args[:normalized_input] if args.key?(:normalized_input)
1262
+ @offices = args[:offices] if args.key?(:offices)
1263
+ @officials = args[:officials] if args.key?(:officials)
1264
+ end
1265
+ end
1266
+
1267
+ # A simple representation of an address.
1268
+ class SimpleAddressType
1269
+ include Google::Apis::Core::Hashable
1270
+
1271
+ # The city or town for the address.
1272
+ # Corresponds to the JSON property `city`
1273
+ # @return [String]
1274
+ attr_accessor :city
1275
+
1276
+ # The street name and number of this address.
1277
+ # Corresponds to the JSON property `line1`
1278
+ # @return [String]
1279
+ attr_accessor :line1
1280
+
1281
+ # The second line the address, if needed.
1282
+ # Corresponds to the JSON property `line2`
1283
+ # @return [String]
1284
+ attr_accessor :line2
1285
+
1286
+ # The third line of the address, if needed.
1287
+ # Corresponds to the JSON property `line3`
1288
+ # @return [String]
1289
+ attr_accessor :line3
1290
+
1291
+ # The name of the location.
1292
+ # Corresponds to the JSON property `locationName`
1293
+ # @return [String]
1294
+ attr_accessor :location_name
1295
+
1296
+ # The US two letter state abbreviation of the address.
1297
+ # Corresponds to the JSON property `state`
1298
+ # @return [String]
1299
+ attr_accessor :state
1300
+
1301
+ # The US Postal Zip Code of the address.
1302
+ # Corresponds to the JSON property `zip`
1303
+ # @return [String]
1304
+ attr_accessor :zip
1305
+
1306
+ def initialize(**args)
1307
+ update!(**args)
1308
+ end
1309
+
1310
+ # Update properties of this object
1311
+ def update!(**args)
1312
+ @city = args[:city] if args.key?(:city)
1313
+ @line1 = args[:line1] if args.key?(:line1)
1314
+ @line2 = args[:line2] if args.key?(:line2)
1315
+ @line3 = args[:line3] if args.key?(:line3)
1316
+ @location_name = args[:location_name] if args.key?(:location_name)
1317
+ @state = args[:state] if args.key?(:state)
1318
+ @zip = args[:zip] if args.key?(:zip)
1319
+ end
1320
+ end
1321
+
1322
+ # Contains information about the data source for the element containing it.
1323
+ class Source
1324
+ include Google::Apis::Core::Hashable
1325
+
1326
+ # The name of the data source.
1327
+ # Corresponds to the JSON property `name`
1328
+ # @return [String]
1329
+ attr_accessor :name
1330
+
1331
+ # Whether this data comes from an official government source.
1332
+ # Corresponds to the JSON property `official`
1333
+ # @return [Boolean]
1334
+ attr_accessor :official
1335
+ alias_method :official?, :official
1336
+
1337
+ def initialize(**args)
1338
+ update!(**args)
1339
+ end
1340
+
1341
+ # Update properties of this object
1342
+ def update!(**args)
1343
+ @name = args[:name] if args.key?(:name)
1344
+ @official = args[:official] if args.key?(:official)
1345
+ end
1346
+ end
1347
+
1348
+ # A request for information about a voter.
1349
+ class VoterInfoRequest
1350
+ include Google::Apis::Core::Hashable
1351
+
1352
+ #
1353
+ # Corresponds to the JSON property `contextParams`
1354
+ # @return [Google::Apis::CivicinfoV2::ContextParams]
1355
+ attr_accessor :context_params
1356
+
1357
+ #
1358
+ # Corresponds to the JSON property `voterInfoSegmentResult`
1359
+ # @return [Google::Apis::CivicinfoV2::VoterInfoSegmentResult]
1360
+ attr_accessor :voter_info_segment_result
1361
+
1362
+ def initialize(**args)
1363
+ update!(**args)
1364
+ end
1365
+
1366
+ # Update properties of this object
1367
+ def update!(**args)
1368
+ @context_params = args[:context_params] if args.key?(:context_params)
1369
+ @voter_info_segment_result = args[:voter_info_segment_result] if args.key?(:voter_info_segment_result)
1370
+ end
1371
+ end
1372
+
1373
+ # The result of a voter info lookup query.
1374
+ class VoterInfoResponse
1375
+ include Google::Apis::Core::Hashable
1376
+
1377
+ # Contests that will appear on the voter's ballot.
1378
+ # Corresponds to the JSON property `contests`
1379
+ # @return [Array<Google::Apis::CivicinfoV2::Contest>]
1380
+ attr_accessor :contests
1381
+
1382
+ # Locations where a voter is eligible to drop off a completed ballot. The voter
1383
+ # must have received and completed a ballot prior to arriving at the location.
1384
+ # The location may not have ballots available on the premises. These locations
1385
+ # could be open on or before election day as indicated in the pollingHours field.
1386
+ # Corresponds to the JSON property `dropOffLocations`
1387
+ # @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
1388
+ attr_accessor :drop_off_locations
1389
+
1390
+ # Locations where the voter is eligible to vote early, prior to election day.
1391
+ # Corresponds to the JSON property `earlyVoteSites`
1392
+ # @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
1393
+ attr_accessor :early_vote_sites
1394
+
1395
+ # Information about the election that was queried.
1396
+ # Corresponds to the JSON property `election`
1397
+ # @return [Google::Apis::CivicinfoV2::Election]
1398
+ attr_accessor :election
1399
+
1400
+ # Identifies what kind of resource this is. Value: the fixed string "civicinfo#
1401
+ # voterInfoResponse".
1402
+ # Corresponds to the JSON property `kind`
1403
+ # @return [String]
1404
+ attr_accessor :kind
1405
+
1406
+ # Specifies whether voters in the precinct vote only by mailing their ballots (
1407
+ # with the possible option of dropping off their ballots as well).
1408
+ # Corresponds to the JSON property `mailOnly`
1409
+ # @return [Boolean]
1410
+ attr_accessor :mail_only
1411
+ alias_method :mail_only?, :mail_only
1412
+
1413
+ # A simple representation of an address.
1414
+ # Corresponds to the JSON property `normalizedInput`
1415
+ # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
1416
+ attr_accessor :normalized_input
1417
+
1418
+ # If no election ID was specified in the query, and there was more than one
1419
+ # election with data for the given voter, this will contain information about
1420
+ # the other elections that could apply.
1421
+ # Corresponds to the JSON property `otherElections`
1422
+ # @return [Array<Google::Apis::CivicinfoV2::Election>]
1423
+ attr_accessor :other_elections
1424
+
1425
+ # Locations where the voter is eligible to vote on election day.
1426
+ # Corresponds to the JSON property `pollingLocations`
1427
+ # @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
1428
+ attr_accessor :polling_locations
1429
+
1430
+ #
1431
+ # Corresponds to the JSON property `precinctId`
1432
+ # @return [String]
1433
+ attr_accessor :precinct_id
1434
+
1435
+ # Local Election Information for the state that the voter votes in. For the US,
1436
+ # there will only be one element in this array.
1437
+ # Corresponds to the JSON property `state`
1438
+ # @return [Array<Google::Apis::CivicinfoV2::AdministrationRegion>]
1439
+ attr_accessor :state
1440
+
1441
+ def initialize(**args)
1442
+ update!(**args)
1443
+ end
1444
+
1445
+ # Update properties of this object
1446
+ def update!(**args)
1447
+ @contests = args[:contests] if args.key?(:contests)
1448
+ @drop_off_locations = args[:drop_off_locations] if args.key?(:drop_off_locations)
1449
+ @early_vote_sites = args[:early_vote_sites] if args.key?(:early_vote_sites)
1450
+ @election = args[:election] if args.key?(:election)
1451
+ @kind = args[:kind] if args.key?(:kind)
1452
+ @mail_only = args[:mail_only] if args.key?(:mail_only)
1453
+ @normalized_input = args[:normalized_input] if args.key?(:normalized_input)
1454
+ @other_elections = args[:other_elections] if args.key?(:other_elections)
1455
+ @polling_locations = args[:polling_locations] if args.key?(:polling_locations)
1456
+ @precinct_id = args[:precinct_id] if args.key?(:precinct_id)
1457
+ @state = args[:state] if args.key?(:state)
1458
+ end
1459
+ end
1460
+
1461
+ #
1462
+ class VoterInfoSegmentResult
1463
+ include Google::Apis::Core::Hashable
1464
+
1465
+ #
1466
+ # Corresponds to the JSON property `generatedMillis`
1467
+ # @return [String]
1468
+ attr_accessor :generated_millis
1469
+
1470
+ #
1471
+ # Corresponds to the JSON property `postalAddress`
1472
+ # @return [Google::Apis::CivicinfoV2::PostalAddress]
1473
+ attr_accessor :postal_address
1474
+
1475
+ # A request for information about a voter.
1476
+ # Corresponds to the JSON property `request`
1477
+ # @return [Google::Apis::CivicinfoV2::VoterInfoRequest]
1478
+ attr_accessor :request
1479
+
1480
+ # The result of a voter info lookup query.
1481
+ # Corresponds to the JSON property `response`
1482
+ # @return [Google::Apis::CivicinfoV2::VoterInfoResponse]
1483
+ attr_accessor :response
1484
+
1485
+ def initialize(**args)
1486
+ update!(**args)
1487
+ end
1488
+
1489
+ # Update properties of this object
1490
+ def update!(**args)
1491
+ @generated_millis = args[:generated_millis] if args.key?(:generated_millis)
1492
+ @postal_address = args[:postal_address] if args.key?(:postal_address)
1493
+ @request = args[:request] if args.key?(:request)
1494
+ @response = args[:response] if args.key?(:response)
1495
+ end
1496
+ end
1497
+ end
1498
+ end
1499
+ end