google-apis-civicinfo_v2 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CivicinfoV2
18
18
  # Version of the google-apis-civicinfo_v2 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240910"
25
+ REVISION = "20250430"
26
26
  end
27
27
  end
28
28
  end
@@ -22,180 +22,220 @@ module Google
22
22
  module Apis
23
23
  module CivicinfoV2
24
24
 
25
- class AdministrationRegion
25
+ class CivicinfoApiprotosV2DivisionByAddressResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class AdministrativeBody
31
+ class CivicinfoApiprotosV2DivisionSearchResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Candidate
37
+ class CivicinfoApiprotosV2DivisionSearchResult
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Channel
43
+ class CivicinfoApiprotosV2ElectionsQueryResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class Contest
49
+ class CivicinfoApiprotosV2VoterInfoResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class DivisionByAddressResponse
55
+ class CivicinfoSchemaV2AdministrationRegion
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class SearchDivisionResponse
61
+ class CivicinfoSchemaV2AdministrativeBody
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class DivisionSearchResult
67
+ class CivicinfoSchemaV2Candidate
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class Election
73
+ class CivicinfoSchemaV2Channel
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class ElectionOfficial
79
+ class CivicinfoSchemaV2Contest
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class QueryElectionsResponse
85
+ class CivicinfoSchemaV2Election
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class ElectoralDistrict
91
+ class CivicinfoSchemaV2ElectionOfficial
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class GeographicDivision
97
+ class CivicinfoSchemaV2ElectoralDistrict
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class Office
103
+ class CivicinfoSchemaV2GeographicDivision
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class Official
109
+ class CivicinfoSchemaV2PollingLocation
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class PollingLocation
115
+ class CivicinfoSchemaV2Precinct
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class Precinct
121
+ class CivicinfoSchemaV2SimpleAddressType
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class RepresentativeInfoData
127
+ class CivicinfoSchemaV2Source
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class RepresentativeInfoResponse
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
133
+ class CivicinfoApiprotosV2DivisionByAddressResponse
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision::Representation
135
137
 
136
- include Google::Apis::Core::JsonObjectSupport
138
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
139
+
140
+ end
137
141
  end
138
142
 
139
- class SimpleAddressType
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
143
+ class CivicinfoApiprotosV2DivisionSearchResponse
144
+ # @private
145
+ class Representation < Google::Apis::Core::JsonRepresentation
146
+ property :kind, as: 'kind'
147
+ collection :results, as: 'results', class: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResult, decorator: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResult::Representation
141
148
 
142
- include Google::Apis::Core::JsonObjectSupport
149
+ end
143
150
  end
144
151
 
145
- class Source
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
152
+ class CivicinfoApiprotosV2DivisionSearchResult
153
+ # @private
154
+ class Representation < Google::Apis::Core::JsonRepresentation
155
+ collection :aliases, as: 'aliases'
156
+ property :name, as: 'name'
157
+ property :ocd_id, as: 'ocdId'
158
+ end
159
+ end
147
160
 
148
- include Google::Apis::Core::JsonObjectSupport
161
+ class CivicinfoApiprotosV2ElectionsQueryResponse
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ collection :elections, as: 'elections', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
165
+
166
+ property :kind, as: 'kind'
167
+ end
149
168
  end
150
169
 
151
- class VoterInfoResponse
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
170
+ class CivicinfoApiprotosV2VoterInfoResponse
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ collection :contests, as: 'contests', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Contest, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Contest::Representation
153
174
 
154
- include Google::Apis::Core::JsonObjectSupport
175
+ collection :drop_off_locations, as: 'dropOffLocations', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
176
+
177
+ collection :early_vote_sites, as: 'earlyVoteSites', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
178
+
179
+ property :election, as: 'election', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
180
+
181
+ property :kind, as: 'kind'
182
+ property :mail_only, as: 'mailOnly'
183
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
184
+
185
+ collection :other_elections, as: 'otherElections', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
186
+
187
+ collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
188
+
189
+ property :precinct_id, as: 'precinctId'
190
+ collection :precincts, as: 'precincts', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Precinct, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Precinct::Representation
191
+
192
+ collection :state, as: 'state', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion::Representation
193
+
194
+ end
155
195
  end
156
196
 
157
- class AdministrationRegion
197
+ class CivicinfoSchemaV2AdministrationRegion
158
198
  # @private
159
199
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :election_administration_body, as: 'electionAdministrationBody', class: Google::Apis::CivicinfoV2::AdministrativeBody, decorator: Google::Apis::CivicinfoV2::AdministrativeBody::Representation
200
+ property :election_administration_body, as: 'electionAdministrationBody', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody::Representation
161
201
 
162
- property :local_jurisdiction, as: 'local_jurisdiction', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
202
+ property :local_jurisdiction, as: 'local_jurisdiction', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion::Representation
163
203
 
164
204
  property :name, as: 'name'
165
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
205
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
166
206
 
167
207
  end
168
208
  end
169
209
 
170
- class AdministrativeBody
210
+ class CivicinfoSchemaV2AdministrativeBody
171
211
  # @private
172
212
  class Representation < Google::Apis::Core::JsonRepresentation
173
213
  property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
174
214
  property :ballot_info_url, as: 'ballotInfoUrl'
175
- property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
215
+ property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
176
216
 
177
217
  property :election_info_url, as: 'electionInfoUrl'
178
218
  property :election_notice_text, as: 'electionNoticeText'
179
219
  property :election_notice_url, as: 'electionNoticeUrl'
180
- collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::ElectionOfficial, decorator: Google::Apis::CivicinfoV2::ElectionOfficial::Representation
220
+ collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectionOfficial, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectionOfficial::Representation
181
221
 
182
222
  property :election_registration_confirmation_url, as: 'electionRegistrationConfirmationUrl'
183
223
  property :election_registration_url, as: 'electionRegistrationUrl'
184
224
  property :election_rules_url, as: 'electionRulesUrl'
185
225
  property :hours_of_operation, as: 'hoursOfOperation'
186
226
  property :name, as: 'name'
187
- property :physical_address, as: 'physicalAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
227
+ property :physical_address, as: 'physicalAddress', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
188
228
 
189
229
  collection :voter_services, as: 'voter_services'
190
230
  property :voting_location_finder_url, as: 'votingLocationFinderUrl'
191
231
  end
192
232
  end
193
233
 
194
- class Candidate
234
+ class CivicinfoSchemaV2Candidate
195
235
  # @private
196
236
  class Representation < Google::Apis::Core::JsonRepresentation
197
237
  property :candidate_url, as: 'candidateUrl'
198
- collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
238
+ collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel::Representation
199
239
 
200
240
  property :email, as: 'email'
201
241
  property :name, as: 'name'
@@ -206,7 +246,7 @@ module Google
206
246
  end
207
247
  end
208
248
 
209
- class Channel
249
+ class CivicinfoSchemaV2Channel
210
250
  # @private
211
251
  class Representation < Google::Apis::Core::JsonRepresentation
212
252
  property :id, as: 'id'
@@ -214,14 +254,14 @@ module Google
214
254
  end
215
255
  end
216
256
 
217
- class Contest
257
+ class CivicinfoSchemaV2Contest
218
258
  # @private
219
259
  class Representation < Google::Apis::Core::JsonRepresentation
220
260
  property :ballot_placement, :numeric_string => true, as: 'ballotPlacement'
221
261
  property :ballot_title, as: 'ballotTitle'
222
- collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::Candidate, decorator: Google::Apis::CivicinfoV2::Candidate::Representation
262
+ collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Candidate, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Candidate::Representation
223
263
 
224
- property :district, as: 'district', class: Google::Apis::CivicinfoV2::ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::ElectoralDistrict::Representation
264
+ property :district, as: 'district', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectoralDistrict::Representation
225
265
 
226
266
  property :electorate_specifications, as: 'electorateSpecifications'
227
267
  collection :level, as: 'level'
@@ -240,42 +280,14 @@ module Google
240
280
  property :referendum_title, as: 'referendumTitle'
241
281
  property :referendum_url, as: 'referendumUrl'
242
282
  collection :roles, as: 'roles'
243
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
283
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
244
284
 
245
285
  property :special, as: 'special'
246
286
  property :type, as: 'type'
247
287
  end
248
288
  end
249
289
 
250
- class DivisionByAddressResponse
251
- # @private
252
- class Representation < Google::Apis::Core::JsonRepresentation
253
- hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::GeographicDivision, decorator: Google::Apis::CivicinfoV2::GeographicDivision::Representation
254
-
255
- property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
256
-
257
- end
258
- end
259
-
260
- class SearchDivisionResponse
261
- # @private
262
- class Representation < Google::Apis::Core::JsonRepresentation
263
- property :kind, as: 'kind'
264
- collection :results, as: 'results', class: Google::Apis::CivicinfoV2::DivisionSearchResult, decorator: Google::Apis::CivicinfoV2::DivisionSearchResult::Representation
265
-
266
- end
267
- end
268
-
269
- class DivisionSearchResult
270
- # @private
271
- class Representation < Google::Apis::Core::JsonRepresentation
272
- collection :aliases, as: 'aliases'
273
- property :name, as: 'name'
274
- property :ocd_id, as: 'ocdId'
275
- end
276
- end
277
-
278
- class Election
290
+ class CivicinfoSchemaV2Election
279
291
  # @private
280
292
  class Representation < Google::Apis::Core::JsonRepresentation
281
293
  property :election_day, as: 'electionDay'
@@ -286,7 +298,7 @@ module Google
286
298
  end
287
299
  end
288
300
 
289
- class ElectionOfficial
301
+ class CivicinfoSchemaV2ElectionOfficial
290
302
  # @private
291
303
  class Representation < Google::Apis::Core::JsonRepresentation
292
304
  property :email_address, as: 'emailAddress'
@@ -297,16 +309,7 @@ module Google
297
309
  end
298
310
  end
299
311
 
300
- class QueryElectionsResponse
301
- # @private
302
- class Representation < Google::Apis::Core::JsonRepresentation
303
- collection :elections, as: 'elections', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation
304
-
305
- property :kind, as: 'kind'
306
- end
307
- end
308
-
309
- class ElectoralDistrict
312
+ class CivicinfoSchemaV2ElectoralDistrict
310
313
  # @private
311
314
  class Representation < Google::Apis::Core::JsonRepresentation
312
315
  property :id, as: 'id'
@@ -315,7 +318,7 @@ module Google
315
318
  end
316
319
  end
317
320
 
318
- class GeographicDivision
321
+ class CivicinfoSchemaV2GeographicDivision
319
322
  # @private
320
323
  class Representation < Google::Apis::Core::JsonRepresentation
321
324
  collection :also_known_as, as: 'alsoKnownAs'
@@ -324,39 +327,10 @@ module Google
324
327
  end
325
328
  end
326
329
 
327
- class Office
330
+ class CivicinfoSchemaV2PollingLocation
328
331
  # @private
329
332
  class Representation < Google::Apis::Core::JsonRepresentation
330
- property :division_id, as: 'divisionId'
331
- collection :levels, as: 'levels'
332
- property :name, as: 'name'
333
- collection :official_indices, as: 'officialIndices'
334
- collection :roles, as: 'roles'
335
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
336
-
337
- end
338
- end
339
-
340
- class Official
341
- # @private
342
- class Representation < Google::Apis::Core::JsonRepresentation
343
- collection :address, as: 'address', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
344
-
345
- collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
346
-
347
- collection :emails, as: 'emails'
348
- property :name, as: 'name'
349
- property :party, as: 'party'
350
- collection :phones, as: 'phones'
351
- property :photo_url, as: 'photoUrl'
352
- collection :urls, as: 'urls'
353
- end
354
- end
355
-
356
- class PollingLocation
357
- # @private
358
- class Representation < Google::Apis::Core::JsonRepresentation
359
- property :address, as: 'address', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
333
+ property :address, as: 'address', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
360
334
 
361
335
  property :end_date, as: 'endDate'
362
336
  property :latitude, as: 'latitude'
@@ -364,14 +338,14 @@ module Google
364
338
  property :name, as: 'name'
365
339
  property :notes, as: 'notes'
366
340
  property :polling_hours, as: 'pollingHours'
367
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
341
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
368
342
 
369
343
  property :start_date, as: 'startDate'
370
344
  property :voter_services, as: 'voterServices'
371
345
  end
372
346
  end
373
347
 
374
- class Precinct
348
+ class CivicinfoSchemaV2Precinct
375
349
  # @private
376
350
  class Representation < Google::Apis::Core::JsonRepresentation
377
351
  property :administration_region_id, as: 'administrationRegionId'
@@ -391,34 +365,7 @@ module Google
391
365
  end
392
366
  end
393
367
 
394
- class RepresentativeInfoData
395
- # @private
396
- class Representation < Google::Apis::Core::JsonRepresentation
397
- hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::GeographicDivision, decorator: Google::Apis::CivicinfoV2::GeographicDivision::Representation
398
-
399
- collection :offices, as: 'offices', class: Google::Apis::CivicinfoV2::Office, decorator: Google::Apis::CivicinfoV2::Office::Representation
400
-
401
- collection :officials, as: 'officials', class: Google::Apis::CivicinfoV2::Official, decorator: Google::Apis::CivicinfoV2::Official::Representation
402
-
403
- end
404
- end
405
-
406
- class RepresentativeInfoResponse
407
- # @private
408
- class Representation < Google::Apis::Core::JsonRepresentation
409
- hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::GeographicDivision, decorator: Google::Apis::CivicinfoV2::GeographicDivision::Representation
410
-
411
- property :kind, as: 'kind'
412
- property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
413
-
414
- collection :offices, as: 'offices', class: Google::Apis::CivicinfoV2::Office, decorator: Google::Apis::CivicinfoV2::Office::Representation
415
-
416
- collection :officials, as: 'officials', class: Google::Apis::CivicinfoV2::Official, decorator: Google::Apis::CivicinfoV2::Official::Representation
417
-
418
- end
419
- end
420
-
421
- class SimpleAddressType
368
+ class CivicinfoSchemaV2SimpleAddressType
422
369
  # @private
423
370
  class Representation < Google::Apis::Core::JsonRepresentation
424
371
  property :city, as: 'city'
@@ -431,40 +378,13 @@ module Google
431
378
  end
432
379
  end
433
380
 
434
- class Source
381
+ class CivicinfoSchemaV2Source
435
382
  # @private
436
383
  class Representation < Google::Apis::Core::JsonRepresentation
437
384
  property :name, as: 'name'
438
385
  property :official, as: 'official'
439
386
  end
440
387
  end
441
-
442
- class VoterInfoResponse
443
- # @private
444
- class Representation < Google::Apis::Core::JsonRepresentation
445
- collection :contests, as: 'contests', class: Google::Apis::CivicinfoV2::Contest, decorator: Google::Apis::CivicinfoV2::Contest::Representation
446
-
447
- collection :drop_off_locations, as: 'dropOffLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
448
-
449
- collection :early_vote_sites, as: 'earlyVoteSites', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
450
-
451
- property :election, as: 'election', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation
452
-
453
- property :kind, as: 'kind'
454
- property :mail_only, as: 'mailOnly'
455
- property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
456
-
457
- collection :other_elections, as: 'otherElections', class: Google::Apis::CivicinfoV2::Election, decorator: Google::Apis::CivicinfoV2::Election::Representation
458
-
459
- collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
460
-
461
- property :precinct_id, as: 'precinctId'
462
- collection :precincts, as: 'precincts', class: Google::Apis::CivicinfoV2::Precinct, decorator: Google::Apis::CivicinfoV2::Precinct::Representation
463
-
464
- collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
465
-
466
- end
467
- end
468
388
  end
469
389
  end
470
390
  end