google-apis-civicinfo_v2 0.18.0 → 0.20.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: 8fcd8e85574b9e5be6bbe580a3505bc90b54418045cfab92e34352287e7e540e
4
- data.tar.gz: 3660256d05d9e4e7d4f7512d1ec20391f136f4918863fc45c72af5708728a38e
3
+ metadata.gz: 8c4a72ce76dd8766cc75eac8d0808b59ebee4dfccb62843fdf36b6a7c274ad81
4
+ data.tar.gz: 8cca7cadfded83c2f8f167c1bd4d7d7fd959fb3276df90a217755fc9200a166c
5
5
  SHA512:
6
- metadata.gz: 0f91d69340cc395b439f1309317298294702fe02aff94329bf2da7469f036384800a01d8403b9def70b6804e4f0b0263defb3ab95b92ce7f1dd8dcc641cb8a1e
7
- data.tar.gz: 7c02fe93433519aaec82593fce1a1b9eb6d76e38660bdd5dda48ef8001de9ea16ffbd95303036b7411afd7941a5db0f242107f0dba4d1cf5b8464c53115f6295
6
+ metadata.gz: ece5f2b74c0245415484153aa71a1dbd12bb25a18f80c7f81d6452951d8d17d61e07312ca2c153dd22127e694cabcd50512bc33571ceb8986e2d121bed86f659
7
+ data.tar.gz: 6396f4f4816f250421dd56a9a9a6a25119085656028882d79b3c6220053ad73db42bca327ad015f2a2cbeebfc2c1a68864826cbafa3a5771fe55949a75d54fc9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-civicinfo_v2
2
2
 
3
+ ### v0.20.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20230711
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.19.0 (2023-06-18)
9
+
10
+ * Regenerated from discovery document revision 20230613
11
+
3
12
  ### v0.18.0 (2023-06-11)
4
13
 
5
14
  * Regenerated from discovery document revision 20230606
@@ -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 whitelisted as "partner projects".
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.18.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230606"
25
+ REVISION = "20230711"
26
26
  end
27
27
  end
28
28
  end
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/civic-information/
35
35
  class CivicInfoService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://civicinfo.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://civicinfo.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-civicinfo_v2',
49
51
  client_version: Google::Apis::CivicinfoV2::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -84,6 +86,8 @@ module Google
84
86
  end
85
87
 
86
88
  # List of available elections to query.
89
+ # @param [Boolean] production_data_only
90
+ # Whether to include data that has not been allowlisted yet
87
91
  # @param [String] fields
88
92
  # Selector specifying which fields to include in a partial response.
89
93
  # @param [String] quota_user
@@ -101,10 +105,11 @@ module Google
101
105
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
106
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
107
  # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def query_election(fields: nil, quota_user: nil, options: nil, &block)
108
+ def query_election(production_data_only: nil, fields: nil, quota_user: nil, options: nil, &block)
105
109
  command = make_simple_command(:get, 'civicinfo/v2/elections', options)
106
110
  command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
107
111
  command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
112
+ command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
108
113
  command.query['fields'] = fields unless fields.nil?
109
114
  command.query['quotaUser'] = quota_user unless quota_user.nil?
110
115
  execute_or_queue_command(command, &block)
@@ -122,6 +127,10 @@ module Google
122
127
  # otherElections response field.
123
128
  # @param [Boolean] official_only
124
129
  # If set to true, only data from official state sources will be returned.
130
+ # @param [Boolean] production_data_only
131
+ # Whether to include data that has not been vetted yet. Should only be made
132
+ # available to internal IPs or trusted partners. This is a non-discoverable
133
+ # parameter in the One Platform API config.
125
134
  # @param [Boolean] return_all_available_data
126
135
  # If set to true, the query will return the success code and include any partial
127
136
  # information when it is unable to determine a matching address or unable to
@@ -143,13 +152,14 @@ module Google
143
152
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
154
  # @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)
155
+ 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
156
  command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
148
157
  command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
149
158
  command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
150
159
  command.query['address'] = address unless address.nil?
151
160
  command.query['electionId'] = election_id unless election_id.nil?
152
161
  command.query['officialOnly'] = official_only unless official_only.nil?
162
+ command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
153
163
  command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
154
164
  command.query['fields'] = fields unless fields.nil?
155
165
  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.18.0
4
+ version: 0.20.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 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.20.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Civic Information API V2