Skip to content

Commit 0f8a571

Browse files
feat: Automated regeneration of Testing client (googleapis#12508)
Auto-created at 2024-11-10 13:16:17 +0000 using the toys pull request generator.
1 parent 0065e19 commit 0f8a571

File tree

5 files changed

+56
-4
lines changed

5 files changed

+56
-4
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.32"}]
14+
[{:google_api_testing, "~> 0.33"}]
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 "20240917"
23+
@discovery_revision "20241105"
2424

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do
3030
* `services` (*type:* `list(GoogleApi.Testing.V1.Model.Service.t)`, *default:* `nil`) - Services contained in the tag.
3131
* `targetSdkVersion` (*type:* `integer()`, *default:* `nil`) - Specifies the API Level on which the application is designed to run.
3232
* `usesFeature` (*type:* `list(GoogleApi.Testing.V1.Model.UsesFeature.t)`, *default:* `nil`) - Feature usage tags defined in the manifest.
33-
* `usesPermission` (*type:* `list(String.t)`, *default:* `nil`) - Permissions declared to be used by the application
33+
* `usesPermission` (*type:* `list(String.t)`, *default:* `nil`) -
34+
* `usesPermissionTags` (*type:* `list(GoogleApi.Testing.V1.Model.UsesPermissionTag.t)`, *default:* `nil`) - Permissions declared to be used by the application
3435
* `versionCode` (*type:* `String.t`, *default:* `nil`) - Version number used internally by the app.
3536
* `versionName` (*type:* `String.t`, *default:* `nil`) - Version number shown to users.
3637
"""
@@ -48,6 +49,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do
4849
:targetSdkVersion => integer() | nil,
4950
:usesFeature => list(GoogleApi.Testing.V1.Model.UsesFeature.t()) | nil,
5051
:usesPermission => list(String.t()) | nil,
52+
:usesPermissionTags => list(GoogleApi.Testing.V1.Model.UsesPermissionTag.t()) | nil,
5153
:versionCode => String.t() | nil,
5254
:versionName => String.t() | nil
5355
}
@@ -62,6 +64,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do
6264
field(:targetSdkVersion)
6365
field(:usesFeature, as: GoogleApi.Testing.V1.Model.UsesFeature, type: :list)
6466
field(:usesPermission, type: :list)
67+
field(:usesPermissionTags, as: GoogleApi.Testing.V1.Model.UsesPermissionTag, type: :list)
6568
field(:versionCode)
6669
field(:versionName)
6770
end
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.Testing.V1.Model.UsesPermissionTag do
19+
@moduledoc """
20+
The tag within a manifest. https://developer.android.com/guide/topics/manifest/uses-permission-element.html
21+
22+
## Attributes
23+
24+
* `maxSdkVersion` (*type:* `integer()`, *default:* `nil`) - The android:name value
25+
* `name` (*type:* `String.t`, *default:* `nil`) - The android:name value
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:maxSdkVersion => integer() | nil,
32+
:name => String.t() | nil
33+
}
34+
35+
field(:maxSdkVersion)
36+
field(:name)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.UsesPermissionTag do
40+
def decode(value, options) do
41+
GoogleApi.Testing.V1.Model.UsesPermissionTag.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.UsesPermissionTag do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.32.0"
21+
@version "0.33.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)