google-apis-civicinfo_v2 0.24.0 → 0.25.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.25.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.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240910"
25
+ REVISION = "20250320"
26
26
  end
27
27
  end
28
28
  end
@@ -22,180 +22,271 @@ 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 CivicinfoApiprotosV2RepresentativeInfoData
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 CivicinfoApiprotosV2RepresentativeInfoResponse
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 CivicinfoApiprotosV2VoterInfoResponse
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 CivicinfoSchemaV2AdministrationRegion
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 CivicinfoSchemaV2AdministrativeBody
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 CivicinfoSchemaV2Candidate
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 CivicinfoSchemaV2Channel
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 CivicinfoSchemaV2Contest
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 CivicinfoSchemaV2Election
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 CivicinfoSchemaV2ElectionOfficial
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 CivicinfoSchemaV2ElectoralDistrict
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 CivicinfoSchemaV2GeographicDivision
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 CivicinfoSchemaV2Office
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 CivicinfoSchemaV2Official
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
133
+ class CivicinfoSchemaV2PollingLocation
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class SimpleAddressType
139
+ class CivicinfoSchemaV2Precinct
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class Source
145
+ class CivicinfoSchemaV2SimpleAddressType
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class VoterInfoResponse
151
+ class CivicinfoSchemaV2Source
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
- class AdministrationRegion
157
+ class CivicinfoApiprotosV2DivisionByAddressResponse
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :election_administration_body, as: 'electionAdministrationBody', class: Google::Apis::CivicinfoV2::AdministrativeBody, decorator: Google::Apis::CivicinfoV2::AdministrativeBody::Representation
160
+ hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision::Representation
161
161
 
162
- property :local_jurisdiction, as: 'local_jurisdiction', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
162
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
163
+
164
+ end
165
+ end
166
+
167
+ class CivicinfoApiprotosV2DivisionSearchResponse
168
+ # @private
169
+ class Representation < Google::Apis::Core::JsonRepresentation
170
+ property :kind, as: 'kind'
171
+ collection :results, as: 'results', class: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResult, decorator: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResult::Representation
172
+
173
+ end
174
+ end
175
+
176
+ class CivicinfoApiprotosV2DivisionSearchResult
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ collection :aliases, as: 'aliases'
180
+ property :name, as: 'name'
181
+ property :ocd_id, as: 'ocdId'
182
+ end
183
+ end
184
+
185
+ class CivicinfoApiprotosV2ElectionsQueryResponse
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ collection :elections, as: 'elections', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
189
+
190
+ property :kind, as: 'kind'
191
+ end
192
+ end
193
+
194
+ class CivicinfoApiprotosV2RepresentativeInfoData
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision::Representation
198
+
199
+ collection :offices, as: 'offices', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office::Representation
200
+
201
+ collection :officials, as: 'officials', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official::Representation
202
+
203
+ end
204
+ end
205
+
206
+ class CivicinfoApiprotosV2RepresentativeInfoResponse
207
+ # @private
208
+ class Representation < Google::Apis::Core::JsonRepresentation
209
+ hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision::Representation
210
+
211
+ property :kind, as: 'kind'
212
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
213
+
214
+ collection :offices, as: 'offices', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office::Representation
215
+
216
+ collection :officials, as: 'officials', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official::Representation
217
+
218
+ end
219
+ end
220
+
221
+ class CivicinfoApiprotosV2VoterInfoResponse
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ collection :contests, as: 'contests', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Contest, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Contest::Representation
225
+
226
+ collection :drop_off_locations, as: 'dropOffLocations', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
227
+
228
+ collection :early_vote_sites, as: 'earlyVoteSites', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
229
+
230
+ property :election, as: 'election', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
231
+
232
+ property :kind, as: 'kind'
233
+ property :mail_only, as: 'mailOnly'
234
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
235
+
236
+ collection :other_elections, as: 'otherElections', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election::Representation
237
+
238
+ collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation::Representation
239
+
240
+ property :precinct_id, as: 'precinctId'
241
+ collection :precincts, as: 'precincts', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Precinct, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Precinct::Representation
242
+
243
+ collection :state, as: 'state', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion::Representation
244
+
245
+ end
246
+ end
247
+
248
+ class CivicinfoSchemaV2AdministrationRegion
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :election_administration_body, as: 'electionAdministrationBody', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody::Representation
252
+
253
+ property :local_jurisdiction, as: 'local_jurisdiction', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion::Representation
163
254
 
164
255
  property :name, as: 'name'
165
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
256
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
166
257
 
167
258
  end
168
259
  end
169
260
 
170
- class AdministrativeBody
261
+ class CivicinfoSchemaV2AdministrativeBody
171
262
  # @private
172
263
  class Representation < Google::Apis::Core::JsonRepresentation
173
264
  property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
174
265
  property :ballot_info_url, as: 'ballotInfoUrl'
175
- property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
266
+ property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
176
267
 
177
268
  property :election_info_url, as: 'electionInfoUrl'
178
269
  property :election_notice_text, as: 'electionNoticeText'
179
270
  property :election_notice_url, as: 'electionNoticeUrl'
180
- collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::ElectionOfficial, decorator: Google::Apis::CivicinfoV2::ElectionOfficial::Representation
271
+ collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectionOfficial, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectionOfficial::Representation
181
272
 
182
273
  property :election_registration_confirmation_url, as: 'electionRegistrationConfirmationUrl'
183
274
  property :election_registration_url, as: 'electionRegistrationUrl'
184
275
  property :election_rules_url, as: 'electionRulesUrl'
185
276
  property :hours_of_operation, as: 'hoursOfOperation'
186
277
  property :name, as: 'name'
187
- property :physical_address, as: 'physicalAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
278
+ property :physical_address, as: 'physicalAddress', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
188
279
 
189
280
  collection :voter_services, as: 'voter_services'
190
281
  property :voting_location_finder_url, as: 'votingLocationFinderUrl'
191
282
  end
192
283
  end
193
284
 
194
- class Candidate
285
+ class CivicinfoSchemaV2Candidate
195
286
  # @private
196
287
  class Representation < Google::Apis::Core::JsonRepresentation
197
288
  property :candidate_url, as: 'candidateUrl'
198
- collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
289
+ collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel::Representation
199
290
 
200
291
  property :email, as: 'email'
201
292
  property :name, as: 'name'
@@ -206,7 +297,7 @@ module Google
206
297
  end
207
298
  end
208
299
 
209
- class Channel
300
+ class CivicinfoSchemaV2Channel
210
301
  # @private
211
302
  class Representation < Google::Apis::Core::JsonRepresentation
212
303
  property :id, as: 'id'
@@ -214,14 +305,14 @@ module Google
214
305
  end
215
306
  end
216
307
 
217
- class Contest
308
+ class CivicinfoSchemaV2Contest
218
309
  # @private
219
310
  class Representation < Google::Apis::Core::JsonRepresentation
220
311
  property :ballot_placement, :numeric_string => true, as: 'ballotPlacement'
221
312
  property :ballot_title, as: 'ballotTitle'
222
- collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::Candidate, decorator: Google::Apis::CivicinfoV2::Candidate::Representation
313
+ collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Candidate, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Candidate::Representation
223
314
 
224
- property :district, as: 'district', class: Google::Apis::CivicinfoV2::ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::ElectoralDistrict::Representation
315
+ property :district, as: 'district', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectoralDistrict::Representation
225
316
 
226
317
  property :electorate_specifications, as: 'electorateSpecifications'
227
318
  collection :level, as: 'level'
@@ -240,42 +331,14 @@ module Google
240
331
  property :referendum_title, as: 'referendumTitle'
241
332
  property :referendum_url, as: 'referendumUrl'
242
333
  collection :roles, as: 'roles'
243
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
334
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
244
335
 
245
336
  property :special, as: 'special'
246
337
  property :type, as: 'type'
247
338
  end
248
339
  end
249
340
 
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
341
+ class CivicinfoSchemaV2Election
279
342
  # @private
280
343
  class Representation < Google::Apis::Core::JsonRepresentation
281
344
  property :election_day, as: 'electionDay'
@@ -286,7 +349,7 @@ module Google
286
349
  end
287
350
  end
288
351
 
289
- class ElectionOfficial
352
+ class CivicinfoSchemaV2ElectionOfficial
290
353
  # @private
291
354
  class Representation < Google::Apis::Core::JsonRepresentation
292
355
  property :email_address, as: 'emailAddress'
@@ -297,16 +360,7 @@ module Google
297
360
  end
298
361
  end
299
362
 
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
363
+ class CivicinfoSchemaV2ElectoralDistrict
310
364
  # @private
311
365
  class Representation < Google::Apis::Core::JsonRepresentation
312
366
  property :id, as: 'id'
@@ -315,7 +369,7 @@ module Google
315
369
  end
316
370
  end
317
371
 
318
- class GeographicDivision
372
+ class CivicinfoSchemaV2GeographicDivision
319
373
  # @private
320
374
  class Representation < Google::Apis::Core::JsonRepresentation
321
375
  collection :also_known_as, as: 'alsoKnownAs'
@@ -324,7 +378,7 @@ module Google
324
378
  end
325
379
  end
326
380
 
327
- class Office
381
+ class CivicinfoSchemaV2Office
328
382
  # @private
329
383
  class Representation < Google::Apis::Core::JsonRepresentation
330
384
  property :division_id, as: 'divisionId'
@@ -332,17 +386,17 @@ module Google
332
386
  property :name, as: 'name'
333
387
  collection :official_indices, as: 'officialIndices'
334
388
  collection :roles, as: 'roles'
335
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
389
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
336
390
 
337
391
  end
338
392
  end
339
393
 
340
- class Official
394
+ class CivicinfoSchemaV2Official
341
395
  # @private
342
396
  class Representation < Google::Apis::Core::JsonRepresentation
343
- collection :address, as: 'address', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
397
+ collection :address, as: 'address', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
344
398
 
345
- collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
399
+ collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel::Representation
346
400
 
347
401
  collection :emails, as: 'emails'
348
402
  property :name, as: 'name'
@@ -353,10 +407,10 @@ module Google
353
407
  end
354
408
  end
355
409
 
356
- class PollingLocation
410
+ class CivicinfoSchemaV2PollingLocation
357
411
  # @private
358
412
  class Representation < Google::Apis::Core::JsonRepresentation
359
- property :address, as: 'address', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
413
+ property :address, as: 'address', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType::Representation
360
414
 
361
415
  property :end_date, as: 'endDate'
362
416
  property :latitude, as: 'latitude'
@@ -364,14 +418,14 @@ module Google
364
418
  property :name, as: 'name'
365
419
  property :notes, as: 'notes'
366
420
  property :polling_hours, as: 'pollingHours'
367
- collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::Source, decorator: Google::Apis::CivicinfoV2::Source::Representation
421
+ collection :sources, as: 'sources', class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source, decorator: Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source::Representation
368
422
 
369
423
  property :start_date, as: 'startDate'
370
424
  property :voter_services, as: 'voterServices'
371
425
  end
372
426
  end
373
427
 
374
- class Precinct
428
+ class CivicinfoSchemaV2Precinct
375
429
  # @private
376
430
  class Representation < Google::Apis::Core::JsonRepresentation
377
431
  property :administration_region_id, as: 'administrationRegionId'
@@ -391,34 +445,7 @@ module Google
391
445
  end
392
446
  end
393
447
 
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
448
+ class CivicinfoSchemaV2SimpleAddressType
422
449
  # @private
423
450
  class Representation < Google::Apis::Core::JsonRepresentation
424
451
  property :city, as: 'city'
@@ -431,40 +458,13 @@ module Google
431
458
  end
432
459
  end
433
460
 
434
- class Source
461
+ class CivicinfoSchemaV2Source
435
462
  # @private
436
463
  class Representation < Google::Apis::Core::JsonRepresentation
437
464
  property :name, as: 'name'
438
465
  property :official, as: 'official'
439
466
  end
440
467
  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
468
  end
469
469
  end
470
470
  end