google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -22,7 +22,7 @@ module Google
22
22
  module BooksV1
23
23
  # Books API
24
24
  #
25
- # Lets you search for books and manage your Google Books library.
25
+ # Searches for books and manages your Google Books library.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/books_v1'
@@ -1979,6 +1979,9 @@ module Google
1979
1979
  # Restrict results to books with this language code.
1980
1980
  # @param [String] library_restrict
1981
1981
  # Restrict search to this user's library.
1982
+ # @param [String] max_allowed_maturity_rating
1983
+ # The maximum allowed maturity rating of returned recommendations. Books with a
1984
+ # higher maturity rating are filtered out.
1982
1985
  # @param [Fixnum] max_results
1983
1986
  # Maximum number of results to return.
1984
1987
  # @param [String] order_by
@@ -2016,7 +2019,7 @@ module Google
2016
2019
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2017
2020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2018
2021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2019
- def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2022
+ def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2020
2023
  command = make_simple_command(:get, 'volumes', options)
2021
2024
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2022
2025
  command.response_class = Google::Apis::BooksV1::Volumes
@@ -2024,6 +2027,7 @@ module Google
2024
2027
  command.query['filter'] = filter unless filter.nil?
2025
2028
  command.query['langRestrict'] = lang_restrict unless lang_restrict.nil?
2026
2029
  command.query['libraryRestrict'] = library_restrict unless library_restrict.nil?
2030
+ command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
2027
2031
  command.query['maxResults'] = max_results unless max_results.nil?
2028
2032
  command.query['orderBy'] = order_by unless order_by.nil?
2029
2033
  command.query['partner'] = partner unless partner.nil?
@@ -2090,7 +2094,7 @@ module Google
2090
2094
 
2091
2095
  # Return a list of books in My Library.
2092
2096
  # @param [Array<String>, String] acquire_method
2093
- # How the book was aquired
2097
+ # How the book was acquired
2094
2098
  # @param [String] country
2095
2099
  # ISO-3166-1 code to override the IP-based location.
2096
2100
  # @param [String] locale
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20160517'
28
+ REVISION = '20161101'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -20,12 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Google Civic Information API
22
22
  #
23
- # An API for accessing civic information.
23
+ # Provides polling places, early vote locations, contest data, election
24
+ # officials, and government representatives for U.S. residential addresses.
24
25
  #
25
26
  # @see https://developers.google.com/civic-information
26
27
  module CivicinfoV2
27
28
  VERSION = 'V2'
28
- REVISION = '20150820'
29
+ REVISION = '20161102'
29
30
  end
30
31
  end
31
32
  end
@@ -79,6 +79,11 @@ module Google
79
79
  # @return [String]
80
80
  attr_accessor :absentee_voting_info_url
81
81
 
82
+ #
83
+ # Corresponds to the JSON property `addressLines`
84
+ # @return [Array<String>]
85
+ attr_accessor :address_lines
86
+
82
87
  # A URL provided by this administrative body to give contest information to the
83
88
  # voter.
84
89
  # Corresponds to the JSON property `ballotInfoUrl`
@@ -151,6 +156,7 @@ module Google
151
156
  # Update properties of this object
152
157
  def update!(**args)
153
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)
154
160
  @ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
155
161
  @correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
156
162
  @election_info_url = args[:election_info_url] if args.key?(:election_info_url)
@@ -185,7 +191,9 @@ module Google
185
191
  # @return [String]
186
192
  attr_accessor :email
187
193
 
188
- # The candidate's name.
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"
189
197
  # Corresponds to the JSON property `name`
190
198
  # @return [String]
191
199
  attr_accessor :name
@@ -316,9 +324,8 @@ module Google
316
324
  attr_accessor :primary_party
317
325
 
318
326
  # The set of ballot responses for the referendum. A ballot response represents a
319
- # line on the ballot. Common examples might include "yes" or "no" for referenda,
320
- # or a judge's name for a retention contest. This field is only populated for
321
- # contests of type 'Referendum'.
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'.
322
329
  # Corresponds to the JSON property `referendumBallotResponses`
323
330
  # @return [Array<String>]
324
331
  attr_accessor :referendum_ballot_responses
@@ -397,7 +404,8 @@ module Google
397
404
  attr_accessor :special
398
405
 
399
406
  # The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
400
- # for contests with candidates. For referenda this will be 'Referendum'.
407
+ # for contests with candidates. For referenda this will be 'Referendum'. For
408
+ # Retention contests this will typically be 'Retention'.
401
409
  # Corresponds to the JSON property `type`
402
410
  # @return [String]
403
411
  attr_accessor :type
@@ -435,6 +443,63 @@ module Google
435
443
  end
436
444
  end
437
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
+
438
503
  # The result of a division search query.
439
504
  class DivisionSearchResponse
440
505
  include Google::Apis::Core::Hashable
@@ -579,6 +644,25 @@ module Google
579
644
  end
580
645
  end
581
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
+
582
666
  # The list of elections available for this version of the API.
583
667
  class QueryElectionsResponse
584
668
  include Google::Apis::Core::Hashable
@@ -615,6 +699,11 @@ module Google
615
699
  # @return [String]
616
700
  attr_accessor :id
617
701
 
702
+ #
703
+ # Corresponds to the JSON property `kgForeignKey`
704
+ # @return [String]
705
+ attr_accessor :kg_foreign_key
706
+
618
707
  # The name of the district.
619
708
  # Corresponds to the JSON property `name`
620
709
  # @return [String]
@@ -635,6 +724,7 @@ module Google
635
724
  # Update properties of this object
636
725
  def update!(**args)
637
726
  @id = args[:id] if args.key?(:id)
727
+ @kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key)
638
728
  @name = args[:name] if args.key?(:name)
639
729
  @scope = args[:scope] if args.key?(:scope)
640
730
  end
@@ -875,6 +965,206 @@ module Google
875
965
  end
876
966
  end
877
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
+
878
1168
  #
879
1169
  class RepresentativeInfoData
880
1170
  include Google::Apis::Core::Hashable
@@ -908,6 +1198,26 @@ module Google
908
1198
  end
909
1199
  end
910
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
+
911
1221
  # The result of a representative info lookup query.
912
1222
  class RepresentativeInfoResponse
913
1223
  include Google::Apis::Core::Hashable
@@ -1035,6 +1345,31 @@ module Google
1035
1345
  end
1036
1346
  end
1037
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
+
1038
1373
  # The result of a voter info lookup query.
1039
1374
  class VoterInfoResponse
1040
1375
  include Google::Apis::Core::Hashable
@@ -1122,6 +1457,43 @@ module Google
1122
1457
  @state = args[:state] if args.key?(:state)
1123
1458
  end
1124
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
1125
1497
  end
1126
1498
  end
1127
1499
  end