google-apis-civicinfo_v2 0.23.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: 0f81db3ed2cff9ce64e757b85a7d2b6086198b876eb8b46d566c014be1d31a6d
4
- data.tar.gz: 4155008478f8994bd9e6bc554db2c4be0f07f449c5a3c35f5ee5b389deb8d4f6
3
+ metadata.gz: 412c6ff7e33f64243b34a14dc2f9ca65f6af83cefff17523ce93d3f384c62b9e
4
+ data.tar.gz: 4e20be13393e4f8a5c531a51e45d440c356665e0b383372d11af999b575c711a
5
5
  SHA512:
6
- metadata.gz: 3347ad507a5d56c0a73d7c912eacd4404d55d9e797b20084c7bb560444b08394e0355f350860fbd603732fe32c5de87f84f056e1588b0dcaa944cdc1a20ef3ff
7
- data.tar.gz: 63a9a99ef10ead71cfee8232abb705437531ff81e9ab378fd385dc442a3d127943aa136bd778ad79b8bf367e1c7d302e6a3a6ed50cc0613926ef44b7041e50a6
6
+ metadata.gz: 47cdc39acedc1eedb1e9ff74ff3d381d4db303d694cc3dc05387ff932191c303316a1a457ddb98955fd3f7f288a81c801c115b8695806dda5906f094c297a3a9
7
+ data.tar.gz: 86ed754a4eaa1070dcd9c5b3fd505e8b801293b062bfd10588dc20b706d743f95ab5195744ff528a68c6a9093b5368f1c6d95f991bcfc9f692a0c81db782e02e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ### v0.23.0 (2024-06-16)
4
9
 
5
10
  * Regenerated from discovery document revision 20240611
@@ -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.23.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 = "20240611"
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
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.23.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-06-16 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.23.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: []