Skip to content

Commit

Permalink
feat: Automated regeneration of Testing client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Sep 20, 2024
1 parent 088588e commit 39ba193
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_testing, "~> 0.31"}]
[{:google_api_testing, "~> 0.32"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/testing/lib/google_api/testing/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Testing.V1 do
API client metadata for GoogleApi.Testing.V1.
"""

@discovery_revision "20240315"
@discovery_revision "20240917"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
* `form` (*type:* `String.t`, *default:* `nil`) - Whether this device is virtual or physical.
* `formFactor` (*type:* `String.t`, *default:* `nil`) - Whether this device is a phone, tablet, wearable, etc.
* `id` (*type:* `String.t`, *default:* `nil`) - The unique opaque id for this model. Use this for invoking the TestExecutionService.
* `labInfo` (*type:* `GoogleApi.Testing.V1.Model.LabInfo.t`, *default:* `nil`) - Output only. Lab info of this device.
* `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.
* `manufacturer` (*type:* `String.t`, *default:* `nil`) - The manufacturer of this device.
* `name` (*type:* `String.t`, *default:* `nil`) - The human-readable marketing name for this device model. Examples: "Nexus 5", "Galaxy S5".
Expand All @@ -47,6 +48,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
:form => String.t() | nil,
:formFactor => String.t() | nil,
:id => String.t() | nil,
:labInfo => GoogleApi.Testing.V1.Model.LabInfo.t() | nil,
:lowFpsVideoRecording => boolean() | nil,
:manufacturer => String.t() | nil,
:name => String.t() | nil,
Expand All @@ -65,6 +67,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do
field(:form)
field(:formFactor)
field(:id)
field(:labInfo, as: GoogleApi.Testing.V1.Model.LabInfo)
field(:lowFpsVideoRecording)
field(:manufacturer)
field(:name)
Expand Down
46 changes: 46 additions & 0 deletions clients/testing/lib/google_api/testing/v1/model/lab_info.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Testing.V1.Model.LabInfo do
@moduledoc """
Lab specific information for a device.
## Attributes
* `name` (*type:* `String.t`, *default:* `nil`) - Lab name where the device is hosted. If empty, the device is hosted in a Google owned lab.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:name => String.t() | nil
}

field(:name)
end

defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.LabInfo do
def decode(value, options) do
GoogleApi.Testing.V1.Model.LabInfo.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.LabInfo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/testing/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Testing.Mixfile do
use Mix.Project

@version "0.31.0"
@version "0.32.0"

def project() do
[
Expand Down

0 comments on commit 39ba193

Please sign in to comment.