google-apis-places_v1 0.31.0 → 0.32.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: bce7fffbeb8d079d17ada9a22f375637e07480c1ea61d51eaf23d3cf9027465b
4
- data.tar.gz: 8f9f5a6853a51b2e39d05a1da485fd5f3dcfa909292ccecf4459d1abb44123dc
3
+ metadata.gz: 28bb5e3debc08c98d64cd4f72049a961a953e6fc37c2fd151b4530545e5f751c
4
+ data.tar.gz: 63d90169f373ca24f7166a35403ab5f1c5557529d75052399215e68a5fc0305c
5
5
  SHA512:
6
- metadata.gz: 26cd7ed76473f0c5026b9ff6a5b1dcacde6f3d7a70eba99d86fdb828057471774e381370c25a94727c4c28285536c1e49f015bcd299c2554e7ce191cf5aba51e
7
- data.tar.gz: b0fc6cbff0c2ee4a4754d38348bf90d8959b2681aac2b1ce9d85d20f0502be13febeb74b5cf21847b7dfc0c2c6058b697df74487edb32541848c3ab5943b1224
6
+ metadata.gz: 3c01a3acda73dd7bc1c08d5a7870a12000e427946ebb89d62a4bd78bbc3bb7f71dd70e3661243ecb81f47812dde1f5fc02b7faa53825fb2a4f44df91633d142e
7
+ data.tar.gz: 648eb90150ca532bd1dc1e5aeb9c89cd52733a69651417a15376046f60ee4e67743109de7c61cc70dde9b663befbde39cc49cc2af9c93e5893b2ff3ec496275a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.32.0 (2025-03-16)
4
+
5
+ * Regenerated from discovery document revision 20250312
6
+
3
7
  ### v0.31.0 (2025-03-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20250302
@@ -1372,6 +1372,20 @@ module Google
1372
1372
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode]
1373
1373
  attr_accessor :plus_code
1374
1374
 
1375
+ # Represents a postal address. For example for postal delivery or payments
1376
+ # addresses. Given a postal address, a postal service can deliver items to a
1377
+ # premise, P.O. Box or similar. It is not intended to model geographical
1378
+ # locations (roads, towns, mountains). In typical usage an address would be
1379
+ # created by user input or from importing existing data, depending on the type
1380
+ # of process. Advice on address input / editing: - Use an internationalization-
1381
+ # ready address widget such as https://github.com/google/libaddressinput) -
1382
+ # Users should not be presented with UI elements for input or editing of fields
1383
+ # outside countries where that field is used. For more guidance on how to use
1384
+ # this schema, see: https://support.google.com/business/answer/6397478
1385
+ # Corresponds to the JSON property `postalAddress`
1386
+ # @return [Google::Apis::PlacesV1::GoogleTypePostalAddress]
1387
+ attr_accessor :postal_address
1388
+
1375
1389
  # Price level of the place.
1376
1390
  # Corresponds to the JSON property `priceLevel`
1377
1391
  # @return [String]
@@ -1618,6 +1632,7 @@ module Google
1618
1632
  @payment_options = args[:payment_options] if args.key?(:payment_options)
1619
1633
  @photos = args[:photos] if args.key?(:photos)
1620
1634
  @plus_code = args[:plus_code] if args.key?(:plus_code)
1635
+ @postal_address = args[:postal_address] if args.key?(:postal_address)
1621
1636
  @price_level = args[:price_level] if args.key?(:price_level)
1622
1637
  @price_range = args[:price_range] if args.key?(:price_range)
1623
1638
  @primary_type = args[:primary_type] if args.key?(:primary_type)
@@ -2220,8 +2235,13 @@ module Google
2220
2235
  end
2221
2236
  end
2222
2237
 
2223
- # Place resource name and id of sub destinations that relate to the place. For
2224
- # example, different terminals are different destinations of an airport.
2238
+ # Sub-destinations are specific places associated with a main place. These
2239
+ # provide more specific destinations for users who are searching inside a large
2240
+ # or complex place, like an airport, national park, university, or stadium. For
2241
+ # example, sub-destinations at an airport might include associated terminals and
2242
+ # parking lots. Sub-destinations return the place ID and place resource name,
2243
+ # which can be used in subsequent Place Details (new) requests to fetch richer
2244
+ # details, including the sub-destination's display name and location.
2225
2245
  class GoogleMapsPlacesV1PlaceSubDestination
2226
2246
  include Google::Apis::Core::Hashable
2227
2247
 
@@ -3237,6 +3257,140 @@ module Google
3237
3257
  end
3238
3258
  end
3239
3259
 
3260
+ # Represents a postal address. For example for postal delivery or payments
3261
+ # addresses. Given a postal address, a postal service can deliver items to a
3262
+ # premise, P.O. Box or similar. It is not intended to model geographical
3263
+ # locations (roads, towns, mountains). In typical usage an address would be
3264
+ # created by user input or from importing existing data, depending on the type
3265
+ # of process. Advice on address input / editing: - Use an internationalization-
3266
+ # ready address widget such as https://github.com/google/libaddressinput) -
3267
+ # Users should not be presented with UI elements for input or editing of fields
3268
+ # outside countries where that field is used. For more guidance on how to use
3269
+ # this schema, see: https://support.google.com/business/answer/6397478
3270
+ class GoogleTypePostalAddress
3271
+ include Google::Apis::Core::Hashable
3272
+
3273
+ # Unstructured address lines describing the lower levels of an address. Because
3274
+ # values in address_lines do not have type information and may sometimes contain
3275
+ # multiple values in a single field (For example "Austin, TX"), it is important
3276
+ # that the line order is clear. The order of address lines should be "envelope
3277
+ # order" for the country/region of the address. In places where this can vary (
3278
+ # For example Japan), address_language is used to make it explicit (For example "
3279
+ # ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large).
3280
+ # This way, the most specific line of an address can be selected based on the
3281
+ # language. The minimum permitted structural representation of an address
3282
+ # consists of a region_code with all remaining information placed in the
3283
+ # address_lines. It would be possible to format such an address very
3284
+ # approximately without geocoding, but no semantic reasoning could be made about
3285
+ # any of the address components until it was at least partially resolved.
3286
+ # Creating an address only containing a region_code and address_lines, and then
3287
+ # geocoding is the recommended way to handle completely unstructured addresses (
3288
+ # as opposed to guessing which parts of the address should be localities or
3289
+ # administrative areas).
3290
+ # Corresponds to the JSON property `addressLines`
3291
+ # @return [Array<String>]
3292
+ attr_accessor :address_lines
3293
+
3294
+ # Optional. Highest administrative subdivision which is used for postal
3295
+ # addresses of a country or region. For example, this can be a state, a province,
3296
+ # an oblast, or a prefecture. Specifically, for Spain this is the province and
3297
+ # not the autonomous community (For example "Barcelona" and not "Catalonia").
3298
+ # Many countries don't use an administrative area in postal addresses. For
3299
+ # example in Switzerland this should be left unpopulated.
3300
+ # Corresponds to the JSON property `administrativeArea`
3301
+ # @return [String]
3302
+ attr_accessor :administrative_area
3303
+
3304
+ # Optional. BCP-47 language code of the contents of this address (if known).
3305
+ # This is often the UI language of the input form or is expected to match one of
3306
+ # the languages used in the address' country/region, or their transliterated
3307
+ # equivalents. This can affect formatting in certain countries, but is not
3308
+ # critical to the correctness of the data and will never affect any validation
3309
+ # or other non-formatting related operations. If this value is not known, it
3310
+ # should be omitted (rather than specifying a possibly incorrect default).
3311
+ # Examples: "zh-Hant", "ja", "ja-Latn", "en".
3312
+ # Corresponds to the JSON property `languageCode`
3313
+ # @return [String]
3314
+ attr_accessor :language_code
3315
+
3316
+ # Optional. Generally refers to the city/town portion of the address. Examples:
3317
+ # US city, IT comune, UK post town. In regions of the world where localities are
3318
+ # not well defined or do not fit into this structure well, leave locality empty
3319
+ # and use address_lines.
3320
+ # Corresponds to the JSON property `locality`
3321
+ # @return [String]
3322
+ attr_accessor :locality
3323
+
3324
+ # Optional. The name of the organization at the address.
3325
+ # Corresponds to the JSON property `organization`
3326
+ # @return [String]
3327
+ attr_accessor :organization
3328
+
3329
+ # Optional. Postal code of the address. Not all countries use or require postal
3330
+ # codes to be present, but where they are used, they may trigger additional
3331
+ # validation with other parts of the address (For example state/zip validation
3332
+ # in the U.S.A.).
3333
+ # Corresponds to the JSON property `postalCode`
3334
+ # @return [String]
3335
+ attr_accessor :postal_code
3336
+
3337
+ # Optional. The recipient at the address. This field may, under certain
3338
+ # circumstances, contain multiline information. For example, it might contain "
3339
+ # care of" information.
3340
+ # Corresponds to the JSON property `recipients`
3341
+ # @return [Array<String>]
3342
+ attr_accessor :recipients
3343
+
3344
+ # Required. CLDR region code of the country/region of the address. This is never
3345
+ # inferred and it is up to the user to ensure the value is correct. See https://
3346
+ # cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/
3347
+ # territory_information.html for details. Example: "CH" for Switzerland.
3348
+ # Corresponds to the JSON property `regionCode`
3349
+ # @return [String]
3350
+ attr_accessor :region_code
3351
+
3352
+ # The schema revision of the `PostalAddress`. This must be set to 0, which is
3353
+ # the latest revision. All new revisions **must** be backward compatible with
3354
+ # old revisions.
3355
+ # Corresponds to the JSON property `revision`
3356
+ # @return [Fixnum]
3357
+ attr_accessor :revision
3358
+
3359
+ # Optional. Additional, country-specific, sorting code. This is not used in most
3360
+ # regions. Where it is used, the value is either a string like "CEDEX",
3361
+ # optionally followed by a number (For example "CEDEX 7"), or just a number
3362
+ # alone, representing the "sector code" (Jamaica), "delivery area indicator" (
3363
+ # Malawi) or "post office indicator" (For example Côte d'Ivoire).
3364
+ # Corresponds to the JSON property `sortingCode`
3365
+ # @return [String]
3366
+ attr_accessor :sorting_code
3367
+
3368
+ # Optional. Sublocality of the address. For example, this can be neighborhoods,
3369
+ # boroughs, districts.
3370
+ # Corresponds to the JSON property `sublocality`
3371
+ # @return [String]
3372
+ attr_accessor :sublocality
3373
+
3374
+ def initialize(**args)
3375
+ update!(**args)
3376
+ end
3377
+
3378
+ # Update properties of this object
3379
+ def update!(**args)
3380
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
3381
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
3382
+ @language_code = args[:language_code] if args.key?(:language_code)
3383
+ @locality = args[:locality] if args.key?(:locality)
3384
+ @organization = args[:organization] if args.key?(:organization)
3385
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
3386
+ @recipients = args[:recipients] if args.key?(:recipients)
3387
+ @region_code = args[:region_code] if args.key?(:region_code)
3388
+ @revision = args[:revision] if args.key?(:revision)
3389
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
3390
+ @sublocality = args[:sublocality] if args.key?(:sublocality)
3391
+ end
3392
+ end
3393
+
3240
3394
  # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
3241
3395
  # time-zones).
3242
3396
  class GoogleTypeTimeZone
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PlacesV1
18
18
  # Version of the google-apis-places_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250302"
25
+ REVISION = "20250312"
26
26
  end
27
27
  end
28
28
  end
@@ -418,6 +418,12 @@ module Google
418
418
  include Google::Apis::Core::JsonObjectSupport
419
419
  end
420
420
 
421
+ class GoogleTypePostalAddress
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
421
427
  class GoogleTypeTimeZone
422
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
429
 
@@ -787,6 +793,8 @@ module Google
787
793
 
788
794
  property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
789
795
 
796
+ property :postal_address, as: 'postalAddress', class: Google::Apis::PlacesV1::GoogleTypePostalAddress, decorator: Google::Apis::PlacesV1::GoogleTypePostalAddress::Representation
797
+
790
798
  property :price_level, as: 'priceLevel'
791
799
  property :price_range, as: 'priceRange', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange::Representation
792
800
 
@@ -1212,6 +1220,23 @@ module Google
1212
1220
  end
1213
1221
  end
1214
1222
 
1223
+ class GoogleTypePostalAddress
1224
+ # @private
1225
+ class Representation < Google::Apis::Core::JsonRepresentation
1226
+ collection :address_lines, as: 'addressLines'
1227
+ property :administrative_area, as: 'administrativeArea'
1228
+ property :language_code, as: 'languageCode'
1229
+ property :locality, as: 'locality'
1230
+ property :organization, as: 'organization'
1231
+ property :postal_code, as: 'postalCode'
1232
+ collection :recipients, as: 'recipients'
1233
+ property :region_code, as: 'regionCode'
1234
+ property :revision, as: 'revision'
1235
+ property :sorting_code, as: 'sortingCode'
1236
+ property :sublocality, as: 'sublocality'
1237
+ end
1238
+ end
1239
+
1215
1240
  class GoogleTypeTimeZone
1216
1241
  # @private
1217
1242
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-places_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-09 00:00:00.000000000 Z
10
+ date: 2025-03-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.31.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.32.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
62
62
  rdoc_options: []
63
63
  require_paths: