Skip to content

Commit 274e65e

Browse files
feat: Automated regeneration of Places client (googleapis#13080)
Auto-created at 2025-03-04 13:16:33 +0000 using the toys pull request generator.
1 parent b77383f commit 274e65e

File tree

5 files changed

+55
-3
lines changed

5 files changed

+55
-3
lines changed

clients/places/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_places, "~> 0.10"}]
14+
[{:google_api_places, "~> 0.11"}]
1515
end
1616
```
1717

clients/places/lib/google_api/places/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Places.V1 do
2020
API client metadata for GoogleApi.Places.V1.
2121
"""
2222

23-
@discovery_revision "20241231"
23+
@discovery_revision "20250302"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_place.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
7575
* `formattedAddress` (*type:* `String.t`, *default:* `nil`) - A full, human-readable address for this place.
7676
* `photos` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo.t)`, *default:* `nil`) - Information (including references) about photos of this place. A maximum of 10 photos can be returned.
7777
* `reservable` (*type:* `boolean()`, *default:* `nil`) - Specifies if the place supports reservations.
78+
* `timeZone` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeTimeZone.t`, *default:* `nil`) - IANA Time Zone Database time zone. For example "America/New_York".
7879
* `iconMaskBaseUri` (*type:* `String.t`, *default:* `nil`) - A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, ".svg" or ".png").
7980
* `servesDinner` (*type:* `boolean()`, *default:* `nil`) - Specifies if the place serves dinner.
8081
* `primaryType` (*type:* `String.t`, *default:* `nil`) - The primary type of the given result. This type must one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types
@@ -159,6 +160,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
159160
:formattedAddress => String.t() | nil,
160161
:photos => list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo.t()) | nil,
161162
:reservable => boolean() | nil,
163+
:timeZone => GoogleApi.Places.V1.Model.GoogleTypeTimeZone.t() | nil,
162164
:iconMaskBaseUri => String.t() | nil,
163165
:servesDinner => boolean() | nil,
164166
:primaryType => String.t() | nil,
@@ -260,6 +262,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
260262
field(:formattedAddress)
261263
field(:photos, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo, type: :list)
262264
field(:reservable)
265+
field(:timeZone, as: GoogleApi.Places.V1.Model.GoogleTypeTimeZone)
263266
field(:iconMaskBaseUri)
264267
field(:servesDinner)
265268
field(:primaryType)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Places.V1.Model.GoogleTypeTimeZone do
19+
@moduledoc """
20+
Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).
21+
22+
## Attributes
23+
24+
* `id` (*type:* `String.t`, *default:* `nil`) - IANA Time Zone Database time zone. For example "America/New_York".
25+
* `version` (*type:* `String.t`, *default:* `nil`) - Optional. IANA Time Zone Database version number. For example "2019a".
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:id => String.t() | nil,
32+
:version => String.t() | nil
33+
}
34+
35+
field(:id)
36+
field(:version)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleTypeTimeZone do
40+
def decode(value, options) do
41+
GoogleApi.Places.V1.Model.GoogleTypeTimeZone.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Places.V1.Model.GoogleTypeTimeZone do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/places/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Places.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.10.2"
21+
@version "0.11.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)