google-apis-civicinfo_v2 0.22.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07eb9c6c19031d5ddf4140f838590b85cb5873d0ad3bc57e39f99a0431f92ea5
4
- data.tar.gz: 1b17c971e0b904fc112d70118616e14593d797ab7e642643d817a0f7d89fdb95
3
+ metadata.gz: 412c6ff7e33f64243b34a14dc2f9ca65f6af83cefff17523ce93d3f384c62b9e
4
+ data.tar.gz: 4e20be13393e4f8a5c531a51e45d440c356665e0b383372d11af999b575c711a
5
5
  SHA512:
6
- metadata.gz: 6bf1fdc8b9430813dd4943b911313ad994163cd89c038c047035e0749385836f983e6d5cb20e997d032055e07dc9107f46bb7970ec7d1656c460f347e4558cc6
7
- data.tar.gz: f8aafc4fafa926e667d4a9d2558f5e5511bdbaff5b7212e3e46e2612b43e9353e5682b9d7b33bc536ecd34b29c8dec8f285b4fc936ee9420b11b580a93b3662c
6
+ metadata.gz: 47cdc39acedc1eedb1e9ff74ff3d381d4db303d694cc3dc05387ff932191c303316a1a457ddb98955fd3f7f288a81c801c115b8695806dda5906f094c297a3a9
7
+ data.tar.gz: 86ed754a4eaa1070dcd9c5b3fd505e8b801293b062bfd10588dc20b706d743f95ab5195744ff528a68c6a9093b5368f1c6d95f991bcfc9f692a0c81db782e02e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-civicinfo_v2
2
2
 
3
+ ### v0.24.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240910
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.23.0 (2024-06-16)
9
+
10
+ * Regenerated from discovery document revision 20240611
11
+
3
12
  ### v0.22.0 (2024-05-19)
4
13
 
5
14
  * Regenerated using generator version 0.15.0
@@ -441,6 +441,31 @@ module Google
441
441
  end
442
442
  end
443
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
+
444
469
  # The result of a division search query.
445
470
  class SearchDivisionResponse
446
471
  include Google::Apis::Core::Hashable
@@ -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.22.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230711"
25
+ REVISION = "20240910"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class DivisionByAddressResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class SearchDivisionResponse
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -241,6 +247,16 @@ module Google
241
247
  end
242
248
  end
243
249
 
250
+ class DivisionByAddressResponse
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ hash :divisions, as: 'divisions', class: Google::Apis::CivicinfoV2::GeographicDivision, decorator: Google::Apis::CivicinfoV2::GeographicDivision::Representation
254
+
255
+ property :normalized_input, as: 'normalizedInput', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
256
+
257
+ end
258
+ end
259
+
244
260
  class SearchDivisionResponse
245
261
  # @private
246
262
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,6 +52,35 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Lookup OCDIDs and names for divisions related to an address.
56
+ # @param [String] address
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::CivicinfoV2::DivisionByAddressResponse] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::CivicinfoV2::DivisionByAddressResponse]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def query_division_division_by_address(address: nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'civicinfo/v2/divisionsByAddress', options)
76
+ command.response_representation = Google::Apis::CivicinfoV2::DivisionByAddressResponse::Representation
77
+ command.response_class = Google::Apis::CivicinfoV2::DivisionByAddressResponse
78
+ command.query['address'] = address unless address.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
55
84
  # Searches for political divisions by their natural name or OCD ID.
56
85
  # @param [String] query
57
86
  # The search query. Queries can cover any parts of a OCD ID or a human readable
@@ -152,7 +181,7 @@ module Google
152
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
184
+ def query_voter_info(address: nil, election_id: nil, official_only: nil, production_data_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
156
185
  command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
157
186
  command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
158
187
  command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
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.22.0
4
+ version: 0.24.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: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-09-15 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.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.24.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: []