Skip to content

Commit e16b009

Browse files
feat: Automated regeneration of WorkloadManager client (#12722)
Auto-created at 2024-12-14 13:14:51 +0000 using the toys pull request generator.
1 parent b0aad8d commit e16b009

File tree

9 files changed

+125
-5
lines changed

9 files changed

+125
-5
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.10"}]
14+
[{:google_api_workload_manager, "~> 0.11"}]
1515
end
1616
```
1717

clients/workload_manager/lib/google_api/workload_manager/v1/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ defmodule GoogleApi.WorkloadManager.V1.Api.Projects do
992992
end
993993

994994
@doc """
995-
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
995+
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
996996
997997
## Parameters
998998

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 "20241016"
23+
@discovery_revision "20241209"
2424

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Evaluation do
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Create time stamp
2626
* `customRulesBucket` (*type:* `String.t`, *default:* `nil`) - The Cloud Storage bucket name for custom rules.
2727
* `description` (*type:* `String.t`, *default:* `nil`) - Description of the Evaluation
28+
* `evaluationType` (*type:* `String.t`, *default:* `nil`) - Evaluation type
2829
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs
2930
* `name` (*type:* `String.t`, *default:* `nil`) - name of resource names have the form 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
3031
* `resourceFilter` (*type:* `GoogleApi.WorkloadManager.V1.Model.ResourceFilter.t`, *default:* `nil`) - annotations as key value pairs
@@ -43,6 +44,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Evaluation do
4344
:createTime => DateTime.t() | nil,
4445
:customRulesBucket => String.t() | nil,
4546
:description => String.t() | nil,
47+
:evaluationType => String.t() | nil,
4648
:labels => map() | nil,
4749
:name => String.t() | nil,
4850
:resourceFilter => GoogleApi.WorkloadManager.V1.Model.ResourceFilter.t() | nil,
@@ -57,6 +59,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Evaluation do
5759
field(:createTime, as: DateTime)
5860
field(:customRulesBucket)
5961
field(:description)
62+
field(:evaluationType)
6063
field(:labels, type: :map)
6164
field(:name)
6265
field(:resourceFilter, as: GoogleApi.WorkloadManager.V1.Model.ResourceFilter)

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
@@ -28,6 +28,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
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}
3030
* `notices` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.Notice.t)`, *default:* `nil`) - Output only. Additional information generated by the execution
31+
* `resultSummary` (*type:* `GoogleApi.WorkloadManager.V1.Model.Summary.t`, *default:* `nil`) - Output only. [Output only] Result summary
3132
* `ruleResults` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t)`, *default:* `nil`) - Output only. execution result summary per rule
3233
* `runType` (*type:* `String.t`, *default:* `nil`) - type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
3334
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Start time stamp
@@ -45,6 +46,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
4546
:labels => map() | nil,
4647
:name => String.t() | nil,
4748
:notices => list(GoogleApi.WorkloadManager.V1.Model.Notice.t()) | nil,
49+
:resultSummary => GoogleApi.WorkloadManager.V1.Model.Summary.t() | nil,
4850
:ruleResults => list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t()) | nil,
4951
:runType => String.t() | nil,
5052
:startTime => DateTime.t() | nil,
@@ -63,6 +65,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
6365
field(:labels, type: :map)
6466
field(:name)
6567
field(:notices, as: GoogleApi.WorkloadManager.V1.Model.Notice, type: :list)
68+
field(:resultSummary, as: GoogleApi.WorkloadManager.V1.Model.Summary)
6669
field(:ruleResults, as: GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult, type: :list)
6770
field(:runType)
6871
field(:startTime, as: DateTime)

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Insight do
2626
* `sapValidation` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapValidation.t`, *default:* `nil`) - The insights data for the SAP workload validation.
2727
* `sentTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Create time stamp
2828
* `sqlserverValidation` (*type:* `GoogleApi.WorkloadManager.V1.Model.SqlserverValidation.t`, *default:* `nil`) - The insights data for the sqlserver workload validation.
29+
* `torsoValidation` (*type:* `GoogleApi.WorkloadManager.V1.Model.TorsoValidation.t`, *default:* `nil`) - The insights data for workload validation of torso workloads.
2930
"""
3031

3132
use GoogleApi.Gax.ModelBase
@@ -35,14 +36,17 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Insight do
3536
:sapDiscovery => GoogleApi.WorkloadManager.V1.Model.SapDiscovery.t() | nil,
3637
:sapValidation => GoogleApi.WorkloadManager.V1.Model.SapValidation.t() | nil,
3738
:sentTime => DateTime.t() | nil,
38-
:sqlserverValidation => GoogleApi.WorkloadManager.V1.Model.SqlserverValidation.t() | nil
39+
:sqlserverValidation =>
40+
GoogleApi.WorkloadManager.V1.Model.SqlserverValidation.t() | nil,
41+
:torsoValidation => GoogleApi.WorkloadManager.V1.Model.TorsoValidation.t() | nil
3942
}
4043

4144
field(:instanceId)
4245
field(:sapDiscovery, as: GoogleApi.WorkloadManager.V1.Model.SapDiscovery)
4346
field(:sapValidation, as: GoogleApi.WorkloadManager.V1.Model.SapValidation)
4447
field(:sentTime, as: DateTime)
4548
field(:sqlserverValidation, as: GoogleApi.WorkloadManager.V1.Model.SqlserverValidation)
49+
field(:torsoValidation, as: GoogleApi.WorkloadManager.V1.Model.TorsoValidation)
4650
end
4751

4852
defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Insight do
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Summary do
19+
@moduledoc """
20+
Message for execution summary
21+
22+
## Attributes
23+
24+
* `failures` (*type:* `String.t`, *default:* `nil`) - Output only. Number of failures
25+
* `newFailures` (*type:* `String.t`, *default:* `nil`) - Output only. Number of new failures compared to the previous execution
26+
* `newFixes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of new fixes compared to the previous execution
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:failures => String.t() | nil,
33+
:newFailures => String.t() | nil,
34+
:newFixes => String.t() | nil
35+
}
36+
37+
field(:failures)
38+
field(:newFailures)
39+
field(:newFixes)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.Summary do
43+
def decode(value, options) do
44+
GoogleApi.WorkloadManager.V1.Model.Summary.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.Summary do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
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.TorsoValidation do
19+
@moduledoc """
20+
The schema of torso workload validation data.
21+
22+
## Attributes
23+
24+
* `agentVersion` (*type:* `String.t`, *default:* `nil`) - Required. agent_version lists the version of the agent that collected this data.
25+
* `instanceName` (*type:* `String.t`, *default:* `nil`) - Required. instance_name lists the human readable name of the instance that the data comes from.
26+
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. project_id lists the human readable cloud project that the data comes from.
27+
* `validationDetails` (*type:* `map()`, *default:* `nil`) - Required. validation_details contains the pairs of validation data: field name & field value.
28+
* `workloadType` (*type:* `String.t`, *default:* `nil`) - Required. workload_type specifies the type of torso workload.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:agentVersion => String.t() | nil,
35+
:instanceName => String.t() | nil,
36+
:projectId => String.t() | nil,
37+
:validationDetails => map() | nil,
38+
:workloadType => String.t() | nil
39+
}
40+
41+
field(:agentVersion)
42+
field(:instanceName)
43+
field(:projectId)
44+
field(:validationDetails, type: :map)
45+
field(:workloadType)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.WorkloadManager.V1.Model.TorsoValidation do
49+
def decode(value, options) do
50+
GoogleApi.WorkloadManager.V1.Model.TorsoValidation.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.WorkloadManager.V1.Model.TorsoValidation 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.10.0"
21+
@version "0.11.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)