google-apis-civicinfo_v2 0.18.0 → 0.19.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91dc259a942a6251263b9388d060f9ac4ccd171139b8f50ea23dcb679a6616d3
|
4
|
+
data.tar.gz: 5fefccf086d620fad9155f95b9c201309b6ca7ebdabc0c7ff2f35133aa25fea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26859d69a7989a828ddeb8d336ce35d3e585e7265ae5d72eecc4c98b38240e314e6ca269a16e226d3af415de76c306290d92e7a0c196eebc4f3f5c3467d2d44e
|
7
|
+
data.tar.gz: '0854c87eaf1c7e1857c5d70dde1ed386db58aa827daca87044333f547a5a452a824f812f310756ff22135daa65ec862e4332869a5e031fdf18e20539ed335383'
|
data/CHANGELOG.md
CHANGED
@@ -1226,7 +1226,7 @@ module Google
|
|
1226
1226
|
attr_accessor :precinct_id
|
1227
1227
|
|
1228
1228
|
# The precincts that match this voter's address. Will only be returned for
|
1229
|
-
# project IDs which have been
|
1229
|
+
# project IDs which have been allowlisted as "partner projects".
|
1230
1230
|
# Corresponds to the JSON property `precincts`
|
1231
1231
|
# @return [Array<Google::Apis::CivicinfoV2::Precinct>]
|
1232
1232
|
attr_accessor :precincts
|
@@ -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.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230613"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -84,6 +84,8 @@ module Google
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# List of available elections to query.
|
87
|
+
# @param [Boolean] production_data_only
|
88
|
+
# Whether to include data that has not been allowlisted yet
|
87
89
|
# @param [String] fields
|
88
90
|
# Selector specifying which fields to include in a partial response.
|
89
91
|
# @param [String] quota_user
|
@@ -101,10 +103,11 @@ module Google
|
|
101
103
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
104
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
105
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
-
def query_election(fields: nil, quota_user: nil, options: nil, &block)
|
106
|
+
def query_election(production_data_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
105
107
|
command = make_simple_command(:get, 'civicinfo/v2/elections', options)
|
106
108
|
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
|
107
109
|
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
|
110
|
+
command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
|
108
111
|
command.query['fields'] = fields unless fields.nil?
|
109
112
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
110
113
|
execute_or_queue_command(command, &block)
|
@@ -122,6 +125,10 @@ module Google
|
|
122
125
|
# otherElections response field.
|
123
126
|
# @param [Boolean] official_only
|
124
127
|
# If set to true, only data from official state sources will be returned.
|
128
|
+
# @param [Boolean] production_data_only
|
129
|
+
# Whether to include data that has not been vetted yet. Should only be made
|
130
|
+
# available to internal IPs or trusted partners. This is a non-discoverable
|
131
|
+
# parameter in the One Platform API config.
|
125
132
|
# @param [Boolean] return_all_available_data
|
126
133
|
# If set to true, the query will return the success code and include any partial
|
127
134
|
# information when it is unable to determine a matching address or unable to
|
@@ -143,13 +150,14 @@ module Google
|
|
143
150
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
151
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
152
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
-
def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
+
def query_voter_info(address, election_id: nil, official_only: nil, production_data_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
154
|
command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
|
148
155
|
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
149
156
|
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
|
150
157
|
command.query['address'] = address unless address.nil?
|
151
158
|
command.query['electionId'] = election_id unless election_id.nil?
|
152
159
|
command.query['officialOnly'] = official_only unless official_only.nil?
|
160
|
+
command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
|
153
161
|
command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
|
154
162
|
command.query['fields'] = fields unless fields.nil?
|
155
163
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-civicinfo_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|