Skip to content

Commit 6dea7fd

Browse files
feat: Automated regeneration of WorkloadManager client (googleapis#12370)
Auto-created at 2024-10-20 13:15:55 +0000 using the toys pull request generator.
1 parent cf70d0b commit 6dea7fd

File tree

5 files changed

+64
-3
lines changed

5 files changed

+64
-3
lines changed

clients/workload_manager/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_workload_manager, "~> 0.8"}]
14+
[{:google_api_workload_manager, "~> 0.9"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241002"
23+
@discovery_revision "20241009"
2424

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

clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
2727
* `inventoryTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Inventory time stamp
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs
2929
* `name` (*type:* `String.t`, *default:* `nil`) - The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}
30+
* `ruleResults` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t)`, *default:* `nil`) - Output only. execution result summary per rule
3031
* `runType` (*type:* `String.t`, *default:* `nil`) - type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
3132
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Start time stamp
3233
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. [Output only] State
@@ -42,6 +43,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
4243
:inventoryTime => DateTime.t() | nil,
4344
:labels => map() | nil,
4445
:name => String.t() | nil,
46+
:ruleResults => list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t()) | nil,
4547
:runType => String.t() | nil,
4648
:startTime => DateTime.t() | nil,
4749
:state => String.t() | nil
@@ -58,6 +60,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
5860
field(:inventoryTime, as: DateTime)
5961
field(:labels, type: :map)
6062
field(:name)
63+
field(:ruleResults, as: GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult, type: :list)
6164
field(:runType)
6265
field(:startTime, as: DateTime)
6366
field(:state)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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.WorkloadManager.V1.Model.RuleExecutionResult do
19+
@moduledoc """
20+
Message for execution result summary per rule
21+
22+
## Attributes
23+
24+
* `message` (*type:* `String.t`, *default:* `nil`) - Execution message, if any
25+
* `resultCount` (*type:* `String.t`, *default:* `nil`) - Number of violations
26+
* `rule` (*type:* `String.t`, *default:* `nil`) - rule name
27+
* `scannedResourceCount` (*type:* `String.t`, *default:* `nil`) - Number of total scanned resources
28+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The execution status
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:message => String.t() | nil,
35+
:resultCount => String.t() | nil,
36+
:rule => String.t() | nil,
37+
:scannedResourceCount => String.t() | nil,
38+
:state => String.t() | nil
39+
}
40+
41+
field(:message)
42+
field(:resultCount)
43+
field(:rule)
44+
field(:scannedResourceCount)
45+
field(:state)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult do
49+
def decode(value, options) do
50+
GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end

clients/workload_manager/mix.exs

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

21-
@version "0.8.0"
21+
@version "0.9.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)