Skip to content

Commit 534357b

Browse files
feat: Automated regeneration of AndroidPublisher client (googleapis#12350)
Auto-created at 2024-10-17 13:19:49 +0000 using the toys pull request generator.
1 parent 5e945fa commit 534357b

File tree

5 files changed

+57
-4
lines changed

5 files changed

+57
-4
lines changed

clients/android_publisher/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_android_publisher, "~> 0.39"}]
14+
[{:google_api_android_publisher, "~> 0.40"}]
1515
end
1616
```
1717

clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex

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

23-
@discovery_revision "20241003"
23+
@discovery_revision "20241016"
2424

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

clients/android_publisher/lib/google_api/android_publisher/v3/model/device_selector.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceSelector do
2626
* `forbiddenSystemFeatures` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SystemFeature.t)`, *default:* `nil`) - A device that has any of these system features is excluded by this selector, even if it matches all other conditions.
2727
* `includedDeviceIds` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.DeviceId.t)`, *default:* `nil`) - Device models included by this selector.
2828
* `requiredSystemFeatures` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SystemFeature.t)`, *default:* `nil`) - A device needs to have all these system features to be included by the selector.
29+
* `systemOnChips` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SystemOnChip.t)`, *default:* `nil`) - Optional. The SoCs included by this selector. Only works for Android S+ devices.
2930
"""
3031

3132
use GoogleApi.Gax.ModelBase
@@ -37,7 +38,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceSelector do
3738
list(GoogleApi.AndroidPublisher.V3.Model.SystemFeature.t()) | nil,
3839
:includedDeviceIds => list(GoogleApi.AndroidPublisher.V3.Model.DeviceId.t()) | nil,
3940
:requiredSystemFeatures =>
40-
list(GoogleApi.AndroidPublisher.V3.Model.SystemFeature.t()) | nil
41+
list(GoogleApi.AndroidPublisher.V3.Model.SystemFeature.t()) | nil,
42+
:systemOnChips => list(GoogleApi.AndroidPublisher.V3.Model.SystemOnChip.t()) | nil
4143
}
4244

4345
field(:deviceRam, as: GoogleApi.AndroidPublisher.V3.Model.DeviceRam)
@@ -54,6 +56,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceSelector do
5456
as: GoogleApi.AndroidPublisher.V3.Model.SystemFeature,
5557
type: :list
5658
)
59+
60+
field(:systemOnChips, as: GoogleApi.AndroidPublisher.V3.Model.SystemOnChip, type: :list)
5761
end
5862

5963
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceSelector do
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.AndroidPublisher.V3.Model.SystemOnChip do
19+
@moduledoc """
20+
Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices.
21+
22+
## Attributes
23+
24+
* `manufacturer` (*type:* `String.t`, *default:* `nil`) - Required. The designer of the SoC, eg. "Google" Value of build property "ro.soc.manufacturer" https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required.
25+
* `model` (*type:* `String.t`, *default:* `nil`) - Required. The model of the SoC, eg. "Tensor" Value of build property "ro.soc.model" https://developer.android.com/reference/android/os/Build#SOC_MODEL Required.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:manufacturer => String.t() | nil,
32+
:model => String.t() | nil
33+
}
34+
35+
field(:manufacturer)
36+
field(:model)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SystemOnChip do
40+
def decode(value, options) do
41+
GoogleApi.AndroidPublisher.V3.Model.SystemOnChip.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SystemOnChip do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/android_publisher/mix.exs

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

21-
@version "0.39.0"
21+
@version "0.40.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)