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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/civicinfo_v2/classes.rb +375 -375
- data/lib/google/apis/civicinfo_v2/gem_version.rb +3 -3
- data/lib/google/apis/civicinfo_v2/representations.rb +143 -143
- data/lib/google/apis/civicinfo_v2/service.rb +24 -24
- metadata +4 -7
@@ -22,19 +22,314 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CivicinfoV2
|
24
24
|
|
25
|
+
#
|
26
|
+
class CivicinfoApiprotosV2DivisionByAddressResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
#
|
30
|
+
# Corresponds to the JSON property `divisions`
|
31
|
+
# @return [Hash<String,Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision>]
|
32
|
+
attr_accessor :divisions
|
33
|
+
|
34
|
+
# A simple representation of an address.
|
35
|
+
# Corresponds to the JSON property `normalizedInput`
|
36
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
37
|
+
attr_accessor :normalized_input
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@divisions = args[:divisions] if args.key?(:divisions)
|
46
|
+
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# The result of a division search query.
|
51
|
+
class CivicinfoApiprotosV2DivisionSearchResponse
|
52
|
+
include Google::Apis::Core::Hashable
|
53
|
+
|
54
|
+
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
55
|
+
# divisionSearchResponse".
|
56
|
+
# Corresponds to the JSON property `kind`
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :kind
|
59
|
+
|
60
|
+
#
|
61
|
+
# Corresponds to the JSON property `results`
|
62
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResult>]
|
63
|
+
attr_accessor :results
|
64
|
+
|
65
|
+
def initialize(**args)
|
66
|
+
update!(**args)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Update properties of this object
|
70
|
+
def update!(**args)
|
71
|
+
@kind = args[:kind] if args.key?(:kind)
|
72
|
+
@results = args[:results] if args.key?(:results)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Represents a political geographic division that matches the requested query.
|
77
|
+
class CivicinfoApiprotosV2DivisionSearchResult
|
78
|
+
include Google::Apis::Core::Hashable
|
79
|
+
|
80
|
+
# Other Open Civic Data identifiers that refer to the same division -- for
|
81
|
+
# example, those that refer to other political divisions whose boundaries are
|
82
|
+
# defined to be coterminous with this one. For example, ocd-division/country:us/
|
83
|
+
# state:wy will include an alias of ocd-division/country:us/state:wy/cd:1, since
|
84
|
+
# Wyoming has only one Congressional district.
|
85
|
+
# Corresponds to the JSON property `aliases`
|
86
|
+
# @return [Array<String>]
|
87
|
+
attr_accessor :aliases
|
88
|
+
|
89
|
+
# The name of the division.
|
90
|
+
# Corresponds to the JSON property `name`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :name
|
93
|
+
|
94
|
+
# The unique Open Civic Data identifier for this division
|
95
|
+
# Corresponds to the JSON property `ocdId`
|
96
|
+
# @return [String]
|
97
|
+
attr_accessor :ocd_id
|
98
|
+
|
99
|
+
def initialize(**args)
|
100
|
+
update!(**args)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Update properties of this object
|
104
|
+
def update!(**args)
|
105
|
+
@aliases = args[:aliases] if args.key?(:aliases)
|
106
|
+
@name = args[:name] if args.key?(:name)
|
107
|
+
@ocd_id = args[:ocd_id] if args.key?(:ocd_id)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# The list of elections available for this version of the API.
|
112
|
+
class CivicinfoApiprotosV2ElectionsQueryResponse
|
113
|
+
include Google::Apis::Core::Hashable
|
114
|
+
|
115
|
+
# A list of available elections
|
116
|
+
# Corresponds to the JSON property `elections`
|
117
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election>]
|
118
|
+
attr_accessor :elections
|
119
|
+
|
120
|
+
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
121
|
+
# electionsQueryResponse".
|
122
|
+
# Corresponds to the JSON property `kind`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :kind
|
125
|
+
|
126
|
+
def initialize(**args)
|
127
|
+
update!(**args)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Update properties of this object
|
131
|
+
def update!(**args)
|
132
|
+
@elections = args[:elections] if args.key?(:elections)
|
133
|
+
@kind = args[:kind] if args.key?(:kind)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
class CivicinfoApiprotosV2RepresentativeInfoData
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
# A map of political geographic divisions that contain the requested address,
|
142
|
+
# keyed by the unique Open Civic Data identifier for this division.
|
143
|
+
# Corresponds to the JSON property `divisions`
|
144
|
+
# @return [Hash<String,Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision>]
|
145
|
+
attr_accessor :divisions
|
146
|
+
|
147
|
+
# Elected offices referenced by the divisions listed above. Will only be present
|
148
|
+
# if includeOffices was true in the request.
|
149
|
+
# Corresponds to the JSON property `offices`
|
150
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office>]
|
151
|
+
attr_accessor :offices
|
152
|
+
|
153
|
+
# Officials holding the offices listed above. Will only be present if
|
154
|
+
# includeOffices was true in the request.
|
155
|
+
# Corresponds to the JSON property `officials`
|
156
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official>]
|
157
|
+
attr_accessor :officials
|
158
|
+
|
159
|
+
def initialize(**args)
|
160
|
+
update!(**args)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Update properties of this object
|
164
|
+
def update!(**args)
|
165
|
+
@divisions = args[:divisions] if args.key?(:divisions)
|
166
|
+
@offices = args[:offices] if args.key?(:offices)
|
167
|
+
@officials = args[:officials] if args.key?(:officials)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# The result of a representative info lookup query.
|
172
|
+
class CivicinfoApiprotosV2RepresentativeInfoResponse
|
173
|
+
include Google::Apis::Core::Hashable
|
174
|
+
|
175
|
+
# A map of political geographic divisions that contain the requested address,
|
176
|
+
# keyed by the unique Open Civic Data identifier for this division.
|
177
|
+
# Corresponds to the JSON property `divisions`
|
178
|
+
# @return [Hash<String,Google::Apis::CivicinfoV2::CivicinfoSchemaV2GeographicDivision>]
|
179
|
+
attr_accessor :divisions
|
180
|
+
|
181
|
+
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
182
|
+
# representativeInfoResponse".
|
183
|
+
# Corresponds to the JSON property `kind`
|
184
|
+
# @return [String]
|
185
|
+
attr_accessor :kind
|
186
|
+
|
187
|
+
# A simple representation of an address.
|
188
|
+
# Corresponds to the JSON property `normalizedInput`
|
189
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
190
|
+
attr_accessor :normalized_input
|
191
|
+
|
192
|
+
# Elected offices referenced by the divisions listed above. Will only be present
|
193
|
+
# if includeOffices was true in the request.
|
194
|
+
# Corresponds to the JSON property `offices`
|
195
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Office>]
|
196
|
+
attr_accessor :offices
|
197
|
+
|
198
|
+
# Officials holding the offices listed above. Will only be present if
|
199
|
+
# includeOffices was true in the request.
|
200
|
+
# Corresponds to the JSON property `officials`
|
201
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Official>]
|
202
|
+
attr_accessor :officials
|
203
|
+
|
204
|
+
def initialize(**args)
|
205
|
+
update!(**args)
|
206
|
+
end
|
207
|
+
|
208
|
+
# Update properties of this object
|
209
|
+
def update!(**args)
|
210
|
+
@divisions = args[:divisions] if args.key?(:divisions)
|
211
|
+
@kind = args[:kind] if args.key?(:kind)
|
212
|
+
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
213
|
+
@offices = args[:offices] if args.key?(:offices)
|
214
|
+
@officials = args[:officials] if args.key?(:officials)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# The result of a voter info lookup query.
|
219
|
+
class CivicinfoApiprotosV2VoterInfoResponse
|
220
|
+
include Google::Apis::Core::Hashable
|
221
|
+
|
222
|
+
# Contests that will appear on the voter's ballot.
|
223
|
+
# Corresponds to the JSON property `contests`
|
224
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Contest>]
|
225
|
+
attr_accessor :contests
|
226
|
+
|
227
|
+
# Locations where a voter is eligible to drop off a completed ballot. The voter
|
228
|
+
# must have received and completed a ballot prior to arriving at the location.
|
229
|
+
# The location may not have ballots available on the premises. These locations
|
230
|
+
# could be open on or before election day as indicated in the pollingHours field.
|
231
|
+
# Corresponds to the JSON property `dropOffLocations`
|
232
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation>]
|
233
|
+
attr_accessor :drop_off_locations
|
234
|
+
|
235
|
+
# Locations where the voter is eligible to vote early, prior to election day.
|
236
|
+
# Corresponds to the JSON property `earlyVoteSites`
|
237
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation>]
|
238
|
+
attr_accessor :early_vote_sites
|
239
|
+
|
240
|
+
# Information about the election that was queried.
|
241
|
+
# Corresponds to the JSON property `election`
|
242
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election]
|
243
|
+
attr_accessor :election
|
244
|
+
|
245
|
+
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
246
|
+
# voterInfoResponse".
|
247
|
+
# Corresponds to the JSON property `kind`
|
248
|
+
# @return [String]
|
249
|
+
attr_accessor :kind
|
250
|
+
|
251
|
+
# Specifies whether voters in the precinct vote only by mailing their ballots (
|
252
|
+
# with the possible option of dropping off their ballots as well).
|
253
|
+
# Corresponds to the JSON property `mailOnly`
|
254
|
+
# @return [Boolean]
|
255
|
+
attr_accessor :mail_only
|
256
|
+
alias_method :mail_only?, :mail_only
|
257
|
+
|
258
|
+
# A simple representation of an address.
|
259
|
+
# Corresponds to the JSON property `normalizedInput`
|
260
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
261
|
+
attr_accessor :normalized_input
|
262
|
+
|
263
|
+
# When there are multiple elections for a voter address, the otherElections
|
264
|
+
# field is populated in the API response and there are two possibilities: 1. If
|
265
|
+
# the earliest election is not the intended election, specify the election ID of
|
266
|
+
# the desired election in a second API request using the electionId field. 2. If
|
267
|
+
# these elections occur on the same day, the API doesn?t return any polling
|
268
|
+
# location, contest, or election official information to ensure that an
|
269
|
+
# additional query is made. For user-facing applications, we recommend
|
270
|
+
# displaying these elections to the user to disambiguate. A second API request
|
271
|
+
# using the electionId field should be made for the election that is relevant to
|
272
|
+
# the user.
|
273
|
+
# Corresponds to the JSON property `otherElections`
|
274
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Election>]
|
275
|
+
attr_accessor :other_elections
|
276
|
+
|
277
|
+
# Locations where the voter is eligible to vote on election day.
|
278
|
+
# Corresponds to the JSON property `pollingLocations`
|
279
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2PollingLocation>]
|
280
|
+
attr_accessor :polling_locations
|
281
|
+
|
282
|
+
#
|
283
|
+
# Corresponds to the JSON property `precinctId`
|
284
|
+
# @return [String]
|
285
|
+
attr_accessor :precinct_id
|
286
|
+
|
287
|
+
# The precincts that match this voter's address. Will only be returned for
|
288
|
+
# project IDs which have been allowlisted as "partner projects".
|
289
|
+
# Corresponds to the JSON property `precincts`
|
290
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Precinct>]
|
291
|
+
attr_accessor :precincts
|
292
|
+
|
293
|
+
# Local Election Information for the state that the voter votes in. For the US,
|
294
|
+
# there will only be one element in this array.
|
295
|
+
# Corresponds to the JSON property `state`
|
296
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion>]
|
297
|
+
attr_accessor :state
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
@contests = args[:contests] if args.key?(:contests)
|
306
|
+
@drop_off_locations = args[:drop_off_locations] if args.key?(:drop_off_locations)
|
307
|
+
@early_vote_sites = args[:early_vote_sites] if args.key?(:early_vote_sites)
|
308
|
+
@election = args[:election] if args.key?(:election)
|
309
|
+
@kind = args[:kind] if args.key?(:kind)
|
310
|
+
@mail_only = args[:mail_only] if args.key?(:mail_only)
|
311
|
+
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
312
|
+
@other_elections = args[:other_elections] if args.key?(:other_elections)
|
313
|
+
@polling_locations = args[:polling_locations] if args.key?(:polling_locations)
|
314
|
+
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
|
315
|
+
@precincts = args[:precincts] if args.key?(:precincts)
|
316
|
+
@state = args[:state] if args.key?(:state)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
25
320
|
# Describes information about a regional election administrative area.
|
26
|
-
class
|
321
|
+
class CivicinfoSchemaV2AdministrationRegion
|
27
322
|
include Google::Apis::Core::Hashable
|
28
323
|
|
29
324
|
# Information about an election administrative body (e.g. County Board of
|
30
325
|
# Elections).
|
31
326
|
# Corresponds to the JSON property `electionAdministrationBody`
|
32
|
-
# @return [Google::Apis::CivicinfoV2::
|
327
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody]
|
33
328
|
attr_accessor :election_administration_body
|
34
329
|
|
35
330
|
# Describes information about a regional election administrative area.
|
36
331
|
# Corresponds to the JSON property `local_jurisdiction`
|
37
|
-
# @return [Google::Apis::CivicinfoV2::
|
332
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion]
|
38
333
|
attr_accessor :local_jurisdiction
|
39
334
|
|
40
335
|
# The name of the jurisdiction.
|
@@ -45,7 +340,7 @@ module Google
|
|
45
340
|
# A list of sources for this area. If multiple sources are listed the data has
|
46
341
|
# been aggregated from those sources.
|
47
342
|
# Corresponds to the JSON property `sources`
|
48
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
343
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>]
|
49
344
|
attr_accessor :sources
|
50
345
|
|
51
346
|
def initialize(**args)
|
@@ -63,7 +358,7 @@ module Google
|
|
63
358
|
|
64
359
|
# Information about an election administrative body (e.g. County Board of
|
65
360
|
# Elections).
|
66
|
-
class
|
361
|
+
class CivicinfoSchemaV2AdministrativeBody
|
67
362
|
include Google::Apis::Core::Hashable
|
68
363
|
|
69
364
|
# A URL provided by this administrative body for information on absentee voting.
|
@@ -79,7 +374,7 @@ module Google
|
|
79
374
|
|
80
375
|
# A simple representation of an address.
|
81
376
|
# Corresponds to the JSON property `correspondenceAddress`
|
82
|
-
# @return [Google::Apis::CivicinfoV2::
|
377
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
83
378
|
attr_accessor :correspondence_address
|
84
379
|
|
85
380
|
# A URL provided by this administrative body for looking up general election
|
@@ -102,7 +397,7 @@ module Google
|
|
102
397
|
|
103
398
|
# The election officials for this election administrative body.
|
104
399
|
# Corresponds to the JSON property `electionOfficials`
|
105
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
400
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectionOfficial>]
|
106
401
|
attr_accessor :election_officials
|
107
402
|
|
108
403
|
# A URL provided by this administrative body for confirming that the voter is
|
@@ -135,7 +430,7 @@ module Google
|
|
135
430
|
|
136
431
|
# A simple representation of an address.
|
137
432
|
# Corresponds to the JSON property `physicalAddress`
|
138
|
-
# @return [Google::Apis::CivicinfoV2::
|
433
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
139
434
|
attr_accessor :physical_address
|
140
435
|
|
141
436
|
# A description of the services this administrative body may provide.
|
@@ -173,7 +468,7 @@ module Google
|
|
173
468
|
end
|
174
469
|
|
175
470
|
# Information about a candidate running for elected office.
|
176
|
-
class
|
471
|
+
class CivicinfoSchemaV2Candidate
|
177
472
|
include Google::Apis::Core::Hashable
|
178
473
|
|
179
474
|
# The URL for the candidate's campaign web site.
|
@@ -183,7 +478,7 @@ module Google
|
|
183
478
|
|
184
479
|
# A list of known (social) media channels for this candidate.
|
185
480
|
# Corresponds to the JSON property `channels`
|
186
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
481
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel>]
|
187
482
|
attr_accessor :channels
|
188
483
|
|
189
484
|
# The email address for the candidate's campaign.
|
@@ -236,7 +531,7 @@ module Google
|
|
236
531
|
end
|
237
532
|
|
238
533
|
# A social media or web channel for a candidate.
|
239
|
-
class
|
534
|
+
class CivicinfoSchemaV2Channel
|
240
535
|
include Google::Apis::Core::Hashable
|
241
536
|
|
242
537
|
# The unique public identifier for the candidate's channel.
|
@@ -263,7 +558,7 @@ module Google
|
|
263
558
|
end
|
264
559
|
|
265
560
|
# Information about a contest that appears on a voter's ballot.
|
266
|
-
class
|
561
|
+
class CivicinfoSchemaV2Contest
|
267
562
|
include Google::Apis::Core::Hashable
|
268
563
|
|
269
564
|
# A number specifying the position of this contest on the voter's ballot.
|
@@ -278,12 +573,12 @@ module Google
|
|
278
573
|
|
279
574
|
# The candidate choices for this contest.
|
280
575
|
# Corresponds to the JSON property `candidates`
|
281
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
576
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Candidate>]
|
282
577
|
attr_accessor :candidates
|
283
578
|
|
284
579
|
# Describes the geographic scope of a contest.
|
285
580
|
# Corresponds to the JSON property `district`
|
286
|
-
# @return [Google::Apis::CivicinfoV2::
|
581
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2ElectoralDistrict]
|
287
582
|
attr_accessor :district
|
288
583
|
|
289
584
|
# A description of any additional eligibility requirements for voting in this
|
@@ -373,147 +668,40 @@ module Google
|
|
373
668
|
attr_accessor :referendum_text
|
374
669
|
|
375
670
|
# The title of the referendum (e.g. 'Proposition 42'). This field is only
|
376
|
-
# populated for contests of type 'Referendum'.
|
377
|
-
# Corresponds to the JSON property `referendumTitle`
|
378
|
-
# @return [String]
|
379
|
-
attr_accessor :referendum_title
|
380
|
-
|
381
|
-
# A link to the referendum. This field is only populated for contests of type '
|
382
|
-
# Referendum'.
|
383
|
-
# Corresponds to the JSON property `referendumUrl`
|
384
|
-
# @return [String]
|
385
|
-
attr_accessor :referendum_url
|
386
|
-
|
387
|
-
# The roles which this office fulfills.
|
388
|
-
# Corresponds to the JSON property `roles`
|
389
|
-
# @return [Array<String>]
|
390
|
-
attr_accessor :roles
|
391
|
-
|
392
|
-
# A list of sources for this contest. If multiple sources are listed, the data
|
393
|
-
# has been aggregated from those sources.
|
394
|
-
# Corresponds to the JSON property `sources`
|
395
|
-
# @return [Array<Google::Apis::CivicinfoV2::Source>]
|
396
|
-
attr_accessor :sources
|
397
|
-
|
398
|
-
# "Yes" or "No" depending on whether this a contest being held outside the
|
399
|
-
# normal election cycle.
|
400
|
-
# Corresponds to the JSON property `special`
|
401
|
-
# @return [String]
|
402
|
-
attr_accessor :special
|
403
|
-
|
404
|
-
# The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
|
405
|
-
# for contests with candidates. For referenda this will be 'Referendum'. For
|
406
|
-
# Retention contests this will typically be 'Retention'.
|
407
|
-
# Corresponds to the JSON property `type`
|
408
|
-
# @return [String]
|
409
|
-
attr_accessor :type
|
410
|
-
|
411
|
-
def initialize(**args)
|
412
|
-
update!(**args)
|
413
|
-
end
|
414
|
-
|
415
|
-
# Update properties of this object
|
416
|
-
def update!(**args)
|
417
|
-
@ballot_placement = args[:ballot_placement] if args.key?(:ballot_placement)
|
418
|
-
@ballot_title = args[:ballot_title] if args.key?(:ballot_title)
|
419
|
-
@candidates = args[:candidates] if args.key?(:candidates)
|
420
|
-
@district = args[:district] if args.key?(:district)
|
421
|
-
@electorate_specifications = args[:electorate_specifications] if args.key?(:electorate_specifications)
|
422
|
-
@level = args[:level] if args.key?(:level)
|
423
|
-
@number_elected = args[:number_elected] if args.key?(:number_elected)
|
424
|
-
@number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for)
|
425
|
-
@office = args[:office] if args.key?(:office)
|
426
|
-
@primary_parties = args[:primary_parties] if args.key?(:primary_parties)
|
427
|
-
@referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses)
|
428
|
-
@referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief)
|
429
|
-
@referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement)
|
430
|
-
@referendum_effect_of_abstain = args[:referendum_effect_of_abstain] if args.key?(:referendum_effect_of_abstain)
|
431
|
-
@referendum_passage_threshold = args[:referendum_passage_threshold] if args.key?(:referendum_passage_threshold)
|
432
|
-
@referendum_pro_statement = args[:referendum_pro_statement] if args.key?(:referendum_pro_statement)
|
433
|
-
@referendum_subtitle = args[:referendum_subtitle] if args.key?(:referendum_subtitle)
|
434
|
-
@referendum_text = args[:referendum_text] if args.key?(:referendum_text)
|
435
|
-
@referendum_title = args[:referendum_title] if args.key?(:referendum_title)
|
436
|
-
@referendum_url = args[:referendum_url] if args.key?(:referendum_url)
|
437
|
-
@roles = args[:roles] if args.key?(:roles)
|
438
|
-
@sources = args[:sources] if args.key?(:sources)
|
439
|
-
@special = args[:special] if args.key?(:special)
|
440
|
-
@type = args[:type] if args.key?(:type)
|
441
|
-
end
|
442
|
-
end
|
443
|
-
|
444
|
-
#
|
445
|
-
class DivisionByAddressResponse
|
446
|
-
include Google::Apis::Core::Hashable
|
447
|
-
|
448
|
-
#
|
449
|
-
# Corresponds to the JSON property `divisions`
|
450
|
-
# @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
|
451
|
-
attr_accessor :divisions
|
452
|
-
|
453
|
-
# A simple representation of an address.
|
454
|
-
# Corresponds to the JSON property `normalizedInput`
|
455
|
-
# @return [Google::Apis::CivicinfoV2::SimpleAddressType]
|
456
|
-
attr_accessor :normalized_input
|
457
|
-
|
458
|
-
def initialize(**args)
|
459
|
-
update!(**args)
|
460
|
-
end
|
461
|
-
|
462
|
-
# Update properties of this object
|
463
|
-
def update!(**args)
|
464
|
-
@divisions = args[:divisions] if args.key?(:divisions)
|
465
|
-
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
|
-
# The result of a division search query.
|
470
|
-
class SearchDivisionResponse
|
471
|
-
include Google::Apis::Core::Hashable
|
472
|
-
|
473
|
-
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
474
|
-
# divisionSearchResponse".
|
475
|
-
# Corresponds to the JSON property `kind`
|
476
|
-
# @return [String]
|
477
|
-
attr_accessor :kind
|
478
|
-
|
479
|
-
#
|
480
|
-
# Corresponds to the JSON property `results`
|
481
|
-
# @return [Array<Google::Apis::CivicinfoV2::DivisionSearchResult>]
|
482
|
-
attr_accessor :results
|
483
|
-
|
484
|
-
def initialize(**args)
|
485
|
-
update!(**args)
|
486
|
-
end
|
487
|
-
|
488
|
-
# Update properties of this object
|
489
|
-
def update!(**args)
|
490
|
-
@kind = args[:kind] if args.key?(:kind)
|
491
|
-
@results = args[:results] if args.key?(:results)
|
492
|
-
end
|
493
|
-
end
|
671
|
+
# populated for contests of type 'Referendum'.
|
672
|
+
# Corresponds to the JSON property `referendumTitle`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :referendum_title
|
494
675
|
|
495
|
-
|
496
|
-
|
497
|
-
|
676
|
+
# A link to the referendum. This field is only populated for contests of type '
|
677
|
+
# Referendum'.
|
678
|
+
# Corresponds to the JSON property `referendumUrl`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :referendum_url
|
498
681
|
|
499
|
-
#
|
500
|
-
#
|
501
|
-
# defined to be coterminous with this one. For example, ocd-division/country:us/
|
502
|
-
# state:wy will include an alias of ocd-division/country:us/state:wy/cd:1, since
|
503
|
-
# Wyoming has only one Congressional district.
|
504
|
-
# Corresponds to the JSON property `aliases`
|
682
|
+
# The roles which this office fulfills.
|
683
|
+
# Corresponds to the JSON property `roles`
|
505
684
|
# @return [Array<String>]
|
506
|
-
attr_accessor :
|
685
|
+
attr_accessor :roles
|
507
686
|
|
508
|
-
#
|
509
|
-
#
|
687
|
+
# A list of sources for this contest. If multiple sources are listed, the data
|
688
|
+
# has been aggregated from those sources.
|
689
|
+
# Corresponds to the JSON property `sources`
|
690
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>]
|
691
|
+
attr_accessor :sources
|
692
|
+
|
693
|
+
# "Yes" or "No" depending on whether this a contest being held outside the
|
694
|
+
# normal election cycle.
|
695
|
+
# Corresponds to the JSON property `special`
|
510
696
|
# @return [String]
|
511
|
-
attr_accessor :
|
697
|
+
attr_accessor :special
|
512
698
|
|
513
|
-
# The
|
514
|
-
#
|
699
|
+
# The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
|
700
|
+
# for contests with candidates. For referenda this will be 'Referendum'. For
|
701
|
+
# Retention contests this will typically be 'Retention'.
|
702
|
+
# Corresponds to the JSON property `type`
|
515
703
|
# @return [String]
|
516
|
-
attr_accessor :
|
704
|
+
attr_accessor :type
|
517
705
|
|
518
706
|
def initialize(**args)
|
519
707
|
update!(**args)
|
@@ -521,14 +709,35 @@ module Google
|
|
521
709
|
|
522
710
|
# Update properties of this object
|
523
711
|
def update!(**args)
|
524
|
-
@
|
525
|
-
@
|
526
|
-
@
|
712
|
+
@ballot_placement = args[:ballot_placement] if args.key?(:ballot_placement)
|
713
|
+
@ballot_title = args[:ballot_title] if args.key?(:ballot_title)
|
714
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
715
|
+
@district = args[:district] if args.key?(:district)
|
716
|
+
@electorate_specifications = args[:electorate_specifications] if args.key?(:electorate_specifications)
|
717
|
+
@level = args[:level] if args.key?(:level)
|
718
|
+
@number_elected = args[:number_elected] if args.key?(:number_elected)
|
719
|
+
@number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for)
|
720
|
+
@office = args[:office] if args.key?(:office)
|
721
|
+
@primary_parties = args[:primary_parties] if args.key?(:primary_parties)
|
722
|
+
@referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses)
|
723
|
+
@referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief)
|
724
|
+
@referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement)
|
725
|
+
@referendum_effect_of_abstain = args[:referendum_effect_of_abstain] if args.key?(:referendum_effect_of_abstain)
|
726
|
+
@referendum_passage_threshold = args[:referendum_passage_threshold] if args.key?(:referendum_passage_threshold)
|
727
|
+
@referendum_pro_statement = args[:referendum_pro_statement] if args.key?(:referendum_pro_statement)
|
728
|
+
@referendum_subtitle = args[:referendum_subtitle] if args.key?(:referendum_subtitle)
|
729
|
+
@referendum_text = args[:referendum_text] if args.key?(:referendum_text)
|
730
|
+
@referendum_title = args[:referendum_title] if args.key?(:referendum_title)
|
731
|
+
@referendum_url = args[:referendum_url] if args.key?(:referendum_url)
|
732
|
+
@roles = args[:roles] if args.key?(:roles)
|
733
|
+
@sources = args[:sources] if args.key?(:sources)
|
734
|
+
@special = args[:special] if args.key?(:special)
|
735
|
+
@type = args[:type] if args.key?(:type)
|
527
736
|
end
|
528
737
|
end
|
529
738
|
|
530
739
|
# Information about the election that was queried.
|
531
|
-
class
|
740
|
+
class CivicinfoSchemaV2Election
|
532
741
|
include Google::Apis::Core::Hashable
|
533
742
|
|
534
743
|
# Day of the election in YYYY-MM-DD format.
|
@@ -574,7 +783,7 @@ module Google
|
|
574
783
|
end
|
575
784
|
|
576
785
|
# Information about individual election officials.
|
577
|
-
class
|
786
|
+
class CivicinfoSchemaV2ElectionOfficial
|
578
787
|
include Google::Apis::Core::Hashable
|
579
788
|
|
580
789
|
# The email address of the election official.
|
@@ -616,34 +825,8 @@ module Google
|
|
616
825
|
end
|
617
826
|
end
|
618
827
|
|
619
|
-
# The list of elections available for this version of the API.
|
620
|
-
class QueryElectionsResponse
|
621
|
-
include Google::Apis::Core::Hashable
|
622
|
-
|
623
|
-
# A list of available elections
|
624
|
-
# Corresponds to the JSON property `elections`
|
625
|
-
# @return [Array<Google::Apis::CivicinfoV2::Election>]
|
626
|
-
attr_accessor :elections
|
627
|
-
|
628
|
-
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
629
|
-
# electionsQueryResponse".
|
630
|
-
# Corresponds to the JSON property `kind`
|
631
|
-
# @return [String]
|
632
|
-
attr_accessor :kind
|
633
|
-
|
634
|
-
def initialize(**args)
|
635
|
-
update!(**args)
|
636
|
-
end
|
637
|
-
|
638
|
-
# Update properties of this object
|
639
|
-
def update!(**args)
|
640
|
-
@elections = args[:elections] if args.key?(:elections)
|
641
|
-
@kind = args[:kind] if args.key?(:kind)
|
642
|
-
end
|
643
|
-
end
|
644
|
-
|
645
828
|
# Describes the geographic scope of a contest.
|
646
|
-
class
|
829
|
+
class CivicinfoSchemaV2ElectoralDistrict
|
647
830
|
include Google::Apis::Core::Hashable
|
648
831
|
|
649
832
|
# An identifier for this district, relative to its scope. For example, the 34th
|
@@ -678,7 +861,7 @@ module Google
|
|
678
861
|
end
|
679
862
|
|
680
863
|
# Describes a political geography.
|
681
|
-
class
|
864
|
+
class CivicinfoSchemaV2GeographicDivision
|
682
865
|
include Google::Apis::Core::Hashable
|
683
866
|
|
684
867
|
# Any other valid OCD IDs that refer to the same division.\n\nBecause OCD IDs
|
@@ -718,7 +901,7 @@ module Google
|
|
718
901
|
end
|
719
902
|
|
720
903
|
# Information about an Office held by one or more Officials.
|
721
|
-
class
|
904
|
+
class CivicinfoSchemaV2Office
|
722
905
|
include Google::Apis::Core::Hashable
|
723
906
|
|
724
907
|
# The OCD ID of the division with which this office is associated.
|
@@ -757,7 +940,7 @@ module Google
|
|
757
940
|
# A list of sources for this office. If multiple sources are listed, the data
|
758
941
|
# has been aggregated from those sources.
|
759
942
|
# Corresponds to the JSON property `sources`
|
760
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
943
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>]
|
761
944
|
attr_accessor :sources
|
762
945
|
|
763
946
|
def initialize(**args)
|
@@ -776,17 +959,17 @@ module Google
|
|
776
959
|
end
|
777
960
|
|
778
961
|
# Information about a person holding an elected office.
|
779
|
-
class
|
962
|
+
class CivicinfoSchemaV2Official
|
780
963
|
include Google::Apis::Core::Hashable
|
781
964
|
|
782
965
|
# Addresses at which to contact the official.
|
783
966
|
# Corresponds to the JSON property `address`
|
784
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
967
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType>]
|
785
968
|
attr_accessor :address
|
786
969
|
|
787
970
|
# A list of known (social) media channels for this official.
|
788
971
|
# Corresponds to the JSON property `channels`
|
789
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
972
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Channel>]
|
790
973
|
attr_accessor :channels
|
791
974
|
|
792
975
|
# The direct email addresses for the official.
|
@@ -838,12 +1021,12 @@ module Google
|
|
838
1021
|
|
839
1022
|
# A location where a voter can vote. This may be an early vote site, an election
|
840
1023
|
# day voting location, or a drop off location for a completed ballot.
|
841
|
-
class
|
1024
|
+
class CivicinfoSchemaV2PollingLocation
|
842
1025
|
include Google::Apis::Core::Hashable
|
843
1026
|
|
844
1027
|
# A simple representation of an address.
|
845
1028
|
# Corresponds to the JSON property `address`
|
846
|
-
# @return [Google::Apis::CivicinfoV2::
|
1029
|
+
# @return [Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType]
|
847
1030
|
attr_accessor :address
|
848
1031
|
|
849
1032
|
# The last date that this early vote site or drop off location may be used. This
|
@@ -883,7 +1066,7 @@ module Google
|
|
883
1066
|
# A list of sources for this location. If multiple sources are listed the data
|
884
1067
|
# has been aggregated from those sources.
|
885
1068
|
# Corresponds to the JSON property `sources`
|
886
|
-
# @return [Array<Google::Apis::CivicinfoV2::
|
1069
|
+
# @return [Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>]
|
887
1070
|
attr_accessor :sources
|
888
1071
|
|
889
1072
|
# The first date that this early vote site or drop off location may be used.
|
@@ -918,7 +1101,7 @@ module Google
|
|
918
1101
|
end
|
919
1102
|
|
920
1103
|
#
|
921
|
-
class
|
1104
|
+
class CivicinfoSchemaV2Precinct
|
922
1105
|
include Google::Apis::Core::Hashable
|
923
1106
|
|
924
1107
|
# ID of the AdministrationRegion message for this precinct. Corresponds to
|
@@ -1019,89 +1202,8 @@ module Google
|
|
1019
1202
|
end
|
1020
1203
|
end
|
1021
1204
|
|
1022
|
-
#
|
1023
|
-
class RepresentativeInfoData
|
1024
|
-
include Google::Apis::Core::Hashable
|
1025
|
-
|
1026
|
-
# A map of political geographic divisions that contain the requested address,
|
1027
|
-
# keyed by the unique Open Civic Data identifier for this division.
|
1028
|
-
# Corresponds to the JSON property `divisions`
|
1029
|
-
# @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
|
1030
|
-
attr_accessor :divisions
|
1031
|
-
|
1032
|
-
# Elected offices referenced by the divisions listed above. Will only be present
|
1033
|
-
# if includeOffices was true in the request.
|
1034
|
-
# Corresponds to the JSON property `offices`
|
1035
|
-
# @return [Array<Google::Apis::CivicinfoV2::Office>]
|
1036
|
-
attr_accessor :offices
|
1037
|
-
|
1038
|
-
# Officials holding the offices listed above. Will only be present if
|
1039
|
-
# includeOffices was true in the request.
|
1040
|
-
# Corresponds to the JSON property `officials`
|
1041
|
-
# @return [Array<Google::Apis::CivicinfoV2::Official>]
|
1042
|
-
attr_accessor :officials
|
1043
|
-
|
1044
|
-
def initialize(**args)
|
1045
|
-
update!(**args)
|
1046
|
-
end
|
1047
|
-
|
1048
|
-
# Update properties of this object
|
1049
|
-
def update!(**args)
|
1050
|
-
@divisions = args[:divisions] if args.key?(:divisions)
|
1051
|
-
@offices = args[:offices] if args.key?(:offices)
|
1052
|
-
@officials = args[:officials] if args.key?(:officials)
|
1053
|
-
end
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
# The result of a representative info lookup query.
|
1057
|
-
class RepresentativeInfoResponse
|
1058
|
-
include Google::Apis::Core::Hashable
|
1059
|
-
|
1060
|
-
# A map of political geographic divisions that contain the requested address,
|
1061
|
-
# keyed by the unique Open Civic Data identifier for this division.
|
1062
|
-
# Corresponds to the JSON property `divisions`
|
1063
|
-
# @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
|
1064
|
-
attr_accessor :divisions
|
1065
|
-
|
1066
|
-
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
1067
|
-
# representativeInfoResponse".
|
1068
|
-
# Corresponds to the JSON property `kind`
|
1069
|
-
# @return [String]
|
1070
|
-
attr_accessor :kind
|
1071
|
-
|
1072
|
-
# A simple representation of an address.
|
1073
|
-
# Corresponds to the JSON property `normalizedInput`
|
1074
|
-
# @return [Google::Apis::CivicinfoV2::SimpleAddressType]
|
1075
|
-
attr_accessor :normalized_input
|
1076
|
-
|
1077
|
-
# Elected offices referenced by the divisions listed above. Will only be present
|
1078
|
-
# if includeOffices was true in the request.
|
1079
|
-
# Corresponds to the JSON property `offices`
|
1080
|
-
# @return [Array<Google::Apis::CivicinfoV2::Office>]
|
1081
|
-
attr_accessor :offices
|
1082
|
-
|
1083
|
-
# Officials holding the offices listed above. Will only be present if
|
1084
|
-
# includeOffices was true in the request.
|
1085
|
-
# Corresponds to the JSON property `officials`
|
1086
|
-
# @return [Array<Google::Apis::CivicinfoV2::Official>]
|
1087
|
-
attr_accessor :officials
|
1088
|
-
|
1089
|
-
def initialize(**args)
|
1090
|
-
update!(**args)
|
1091
|
-
end
|
1092
|
-
|
1093
|
-
# Update properties of this object
|
1094
|
-
def update!(**args)
|
1095
|
-
@divisions = args[:divisions] if args.key?(:divisions)
|
1096
|
-
@kind = args[:kind] if args.key?(:kind)
|
1097
|
-
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
1098
|
-
@offices = args[:offices] if args.key?(:offices)
|
1099
|
-
@officials = args[:officials] if args.key?(:officials)
|
1100
|
-
end
|
1101
|
-
end
|
1102
|
-
|
1103
1205
|
# A simple representation of an address.
|
1104
|
-
class
|
1206
|
+
class CivicinfoSchemaV2SimpleAddressType
|
1105
1207
|
include Google::Apis::Core::Hashable
|
1106
1208
|
|
1107
1209
|
# The city or town for the address.
|
@@ -1156,7 +1258,7 @@ module Google
|
|
1156
1258
|
end
|
1157
1259
|
|
1158
1260
|
# Contains information about the data source for the element containing it.
|
1159
|
-
class
|
1261
|
+
class CivicinfoSchemaV2Source
|
1160
1262
|
include Google::Apis::Core::Hashable
|
1161
1263
|
|
1162
1264
|
# The name of the data source.
|
@@ -1180,108 +1282,6 @@ module Google
|
|
1180
1282
|
@official = args[:official] if args.key?(:official)
|
1181
1283
|
end
|
1182
1284
|
end
|
1183
|
-
|
1184
|
-
# The result of a voter info lookup query.
|
1185
|
-
class VoterInfoResponse
|
1186
|
-
include Google::Apis::Core::Hashable
|
1187
|
-
|
1188
|
-
# Contests that will appear on the voter's ballot.
|
1189
|
-
# Corresponds to the JSON property `contests`
|
1190
|
-
# @return [Array<Google::Apis::CivicinfoV2::Contest>]
|
1191
|
-
attr_accessor :contests
|
1192
|
-
|
1193
|
-
# Locations where a voter is eligible to drop off a completed ballot. The voter
|
1194
|
-
# must have received and completed a ballot prior to arriving at the location.
|
1195
|
-
# The location may not have ballots available on the premises. These locations
|
1196
|
-
# could be open on or before election day as indicated in the pollingHours field.
|
1197
|
-
# Corresponds to the JSON property `dropOffLocations`
|
1198
|
-
# @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
|
1199
|
-
attr_accessor :drop_off_locations
|
1200
|
-
|
1201
|
-
# Locations where the voter is eligible to vote early, prior to election day.
|
1202
|
-
# Corresponds to the JSON property `earlyVoteSites`
|
1203
|
-
# @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
|
1204
|
-
attr_accessor :early_vote_sites
|
1205
|
-
|
1206
|
-
# Information about the election that was queried.
|
1207
|
-
# Corresponds to the JSON property `election`
|
1208
|
-
# @return [Google::Apis::CivicinfoV2::Election]
|
1209
|
-
attr_accessor :election
|
1210
|
-
|
1211
|
-
# Identifies what kind of resource this is. Value: the fixed string "civicinfo#
|
1212
|
-
# voterInfoResponse".
|
1213
|
-
# Corresponds to the JSON property `kind`
|
1214
|
-
# @return [String]
|
1215
|
-
attr_accessor :kind
|
1216
|
-
|
1217
|
-
# Specifies whether voters in the precinct vote only by mailing their ballots (
|
1218
|
-
# with the possible option of dropping off their ballots as well).
|
1219
|
-
# Corresponds to the JSON property `mailOnly`
|
1220
|
-
# @return [Boolean]
|
1221
|
-
attr_accessor :mail_only
|
1222
|
-
alias_method :mail_only?, :mail_only
|
1223
|
-
|
1224
|
-
# A simple representation of an address.
|
1225
|
-
# Corresponds to the JSON property `normalizedInput`
|
1226
|
-
# @return [Google::Apis::CivicinfoV2::SimpleAddressType]
|
1227
|
-
attr_accessor :normalized_input
|
1228
|
-
|
1229
|
-
# When there are multiple elections for a voter address, the otherElections
|
1230
|
-
# field is populated in the API response and there are two possibilities: 1. If
|
1231
|
-
# the earliest election is not the intended election, specify the election ID of
|
1232
|
-
# the desired election in a second API request using the electionId field. 2. If
|
1233
|
-
# these elections occur on the same day, the API doesn?t return any polling
|
1234
|
-
# location, contest, or election official information to ensure that an
|
1235
|
-
# additional query is made. For user-facing applications, we recommend
|
1236
|
-
# displaying these elections to the user to disambiguate. A second API request
|
1237
|
-
# using the electionId field should be made for the election that is relevant to
|
1238
|
-
# the user.
|
1239
|
-
# Corresponds to the JSON property `otherElections`
|
1240
|
-
# @return [Array<Google::Apis::CivicinfoV2::Election>]
|
1241
|
-
attr_accessor :other_elections
|
1242
|
-
|
1243
|
-
# Locations where the voter is eligible to vote on election day.
|
1244
|
-
# Corresponds to the JSON property `pollingLocations`
|
1245
|
-
# @return [Array<Google::Apis::CivicinfoV2::PollingLocation>]
|
1246
|
-
attr_accessor :polling_locations
|
1247
|
-
|
1248
|
-
#
|
1249
|
-
# Corresponds to the JSON property `precinctId`
|
1250
|
-
# @return [String]
|
1251
|
-
attr_accessor :precinct_id
|
1252
|
-
|
1253
|
-
# The precincts that match this voter's address. Will only be returned for
|
1254
|
-
# project IDs which have been allowlisted as "partner projects".
|
1255
|
-
# Corresponds to the JSON property `precincts`
|
1256
|
-
# @return [Array<Google::Apis::CivicinfoV2::Precinct>]
|
1257
|
-
attr_accessor :precincts
|
1258
|
-
|
1259
|
-
# Local Election Information for the state that the voter votes in. For the US,
|
1260
|
-
# there will only be one element in this array.
|
1261
|
-
# Corresponds to the JSON property `state`
|
1262
|
-
# @return [Array<Google::Apis::CivicinfoV2::AdministrationRegion>]
|
1263
|
-
attr_accessor :state
|
1264
|
-
|
1265
|
-
def initialize(**args)
|
1266
|
-
update!(**args)
|
1267
|
-
end
|
1268
|
-
|
1269
|
-
# Update properties of this object
|
1270
|
-
def update!(**args)
|
1271
|
-
@contests = args[:contests] if args.key?(:contests)
|
1272
|
-
@drop_off_locations = args[:drop_off_locations] if args.key?(:drop_off_locations)
|
1273
|
-
@early_vote_sites = args[:early_vote_sites] if args.key?(:early_vote_sites)
|
1274
|
-
@election = args[:election] if args.key?(:election)
|
1275
|
-
@kind = args[:kind] if args.key?(:kind)
|
1276
|
-
@mail_only = args[:mail_only] if args.key?(:mail_only)
|
1277
|
-
@normalized_input = args[:normalized_input] if args.key?(:normalized_input)
|
1278
|
-
@other_elections = args[:other_elections] if args.key?(:other_elections)
|
1279
|
-
@polling_locations = args[:polling_locations] if args.key?(:polling_locations)
|
1280
|
-
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
|
1281
|
-
@precincts = args[:precincts] if args.key?(:precincts)
|
1282
|
-
@state = args[:state] if args.key?(:state)
|
1283
|
-
end
|
1284
|
-
end
|
1285
1285
|
end
|
1286
1286
|
end
|
1287
1287
|
end
|