Skip to content

Commit e87d72d

Browse files
feat(civicinfo): update the api
#### civicinfo:v2 The following keys were added: - resources.elections.methods.electionQuery.parameters.productionDataOnly (Total Keys: 3) - resources.elections.methods.voterInfoQuery.parameters.productionDataOnly (Total Keys: 3)
1 parent b972347 commit e87d72d

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

docs/dyn/civicinfo_v2.elections.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ <h2>Instance Methods</h2>
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
81-
<code><a href="#electionQuery">electionQuery(x__xgafv=None)</a></code></p>
81+
<code><a href="#electionQuery">electionQuery(productionDataOnly=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">List of available elections to query.</p>
8383
<p class="toc_element">
84-
<code><a href="#voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, returnAllAvailableData=None, x__xgafv=None)</a></code></p>
84+
<code><a href="#voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, productionDataOnly=None, returnAllAvailableData=None, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Looks up information relevant to a voter based on the voter's registered address.</p>
8686
<h3>Method Details</h3>
8787
<div class="method">
@@ -90,10 +90,11 @@ <h3>Method Details</h3>
9090
</div>
9191

9292
<div class="method">
93-
<code class="details" id="electionQuery">electionQuery(x__xgafv=None)</code>
93+
<code class="details" id="electionQuery">electionQuery(productionDataOnly=None, x__xgafv=None)</code>
9494
<pre>List of available elections to query.
9595

9696
Args:
97+
productionDataOnly: boolean, Whether to include data that has not been allowlisted yet
9798
x__xgafv: string, V1 error format.
9899
Allowed values
99100
1 - v1 error format
@@ -117,13 +118,14 @@ <h3>Method Details</h3>
117118
</div>
118119

119120
<div class="method">
120-
<code class="details" id="voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, returnAllAvailableData=None, x__xgafv=None)</code>
121+
<code class="details" id="voterInfoQuery">voterInfoQuery(address, electionId=None, officialOnly=None, productionDataOnly=None, returnAllAvailableData=None, x__xgafv=None)</code>
121122
<pre>Looks up information relevant to a voter based on the voter&#x27;s registered address.
122123

123124
Args:
124125
address: string, The registered address of the voter to look up. (required)
125126
electionId: string, The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections. If no election ID is specified in the query and there is more than one election with data for the given voter, the additional elections are provided in the otherElections response field.
126127
officialOnly: boolean, If set to true, only data from official state sources will be returned.
128+
productionDataOnly: boolean, Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config.
127129
returnAllAvailableData: boolean, If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries.
128130
x__xgafv: string, V1 error format.
129131
Allowed values
@@ -304,7 +306,7 @@ <h3>Method Details</h3>
304306
},
305307
],
306308
&quot;precinctId&quot;: &quot;A String&quot;,
307-
&quot;precincts&quot;: [ # The precincts that match this voter&#x27;s address. Will only be returned for project IDs which have been whitelisted as &quot;partner projects&quot;.
309+
&quot;precincts&quot;: [ # The precincts that match this voter&#x27;s address. Will only be returned for project IDs which have been allowlisted as &quot;partner projects&quot;.
308310
{
309311
&quot;administrationRegionId&quot;: &quot;A String&quot;, # ID of the AdministrationRegion message for this precinct. Corresponds to LocalityId xml tag.
310312
&quot;contestId&quot;: [ # ID(s) of the Contest message(s) for this precinct.

googleapiclient/discovery_cache/documents/civicinfo.v2.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,14 @@
125125
"httpMethod": "GET",
126126
"id": "civicinfo.elections.electionQuery",
127127
"parameterOrder": [],
128-
"parameters": {},
128+
"parameters": {
129+
"productionDataOnly": {
130+
"default": "true",
131+
"description": "Whether to include data that has not been allowlisted yet",
132+
"location": "query",
133+
"type": "boolean"
134+
}
135+
},
129136
"path": "civicinfo/v2/elections",
130137
"response": {
131138
"$ref": "ElectionsQueryResponse"
@@ -159,6 +166,12 @@
159166
"location": "query",
160167
"type": "boolean"
161168
},
169+
"productionDataOnly": {
170+
"default": "true",
171+
"description": "Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config.",
172+
"location": "query",
173+
"type": "boolean"
174+
},
162175
"returnAllAvailableData": {
163176
"default": "false",
164177
"description": "If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries.",
@@ -352,7 +365,7 @@
352365
}
353366
}
354367
},
355-
"revision": "20230606",
368+
"revision": "20230627",
356369
"rootUrl": "https://civicinfo.googleapis.com/",
357370
"schemas": {
358371
"AdministrationRegion": {
@@ -1341,7 +1354,7 @@
13411354
"type": "string"
13421355
},
13431356
"precincts": {
1344-
"description": "The precincts that match this voter's address. Will only be returned for project IDs which have been whitelisted as \"partner projects\".",
1357+
"description": "The precincts that match this voter's address. Will only be returned for project IDs which have been allowlisted as \"partner projects\".",
13451358
"items": {
13461359
"$ref": "Precinct"
13471360
},

0 commit comments

Comments
 (0)