Skip to content

Commit 1c41bf8

Browse files
feat: Automated regeneration of Testing client (googleapis#12179)
Auto-created at 2024-09-20 13:13:33 +0000 using the toys pull request generator.
1 parent 33da0f1 commit 1c41bf8

File tree

5 files changed

+52
-3
lines changed

5 files changed

+52
-3
lines changed

clients/testing/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_testing, "~> 0.31"}]
14+
[{:google_api_testing, "~> 0.32"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20240315"
23+
@discovery_revision "20240917"
2424

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

clients/testing/lib/google_api/testing/v1/model/android_model.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
2626
* `form` (*type:* `String.t`, *default:* `nil`) - Whether this device is virtual or physical.
2727
* `formFactor` (*type:* `String.t`, *default:* `nil`) - Whether this device is a phone, tablet, wearable, etc.
2828
* `id` (*type:* `String.t`, *default:* `nil`) - The unique opaque id for this model. Use this for invoking the TestExecutionService.
29+
* `labInfo` (*type:* `GoogleApi.Testing.V1.Model.LabInfo.t`, *default:* `nil`) - Output only. Lab info of this device.
2930
* `lowFpsVideoRecording` (*type:* `boolean()`, *default:* `nil`) - True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config.
3031
* `manufacturer` (*type:* `String.t`, *default:* `nil`) - The manufacturer of this device.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - The human-readable marketing name for this device model. Examples: "Nexus 5", "Galaxy S5".
@@ -47,6 +48,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
4748
:form => String.t() | nil,
4849
:formFactor => String.t() | nil,
4950
:id => String.t() | nil,
51+
:labInfo => GoogleApi.Testing.V1.Model.LabInfo.t() | nil,
5052
:lowFpsVideoRecording => boolean() | nil,
5153
:manufacturer => String.t() | nil,
5254
:name => String.t() | nil,
@@ -65,6 +67,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
6567
field(:form)
6668
field(:formFactor)
6769
field(:id)
70+
field(:labInfo, as: GoogleApi.Testing.V1.Model.LabInfo)
6871
field(:lowFpsVideoRecording)
6972
field(:manufacturer)
7073
field(:name)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Testing.V1.Model.LabInfo do
19+
@moduledoc """
20+
Lab specific information for a device.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Lab name where the device is hosted. If empty, the device is hosted in a Google owned lab.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:name => String.t() | nil
31+
}
32+
33+
field(:name)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.LabInfo do
37+
def decode(value, options) do
38+
GoogleApi.Testing.V1.Model.LabInfo.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.LabInfo do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/testing/mix.exs

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

21-
@version "0.31.0"
21+
@version "0.32.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)