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