Skip to content

Commit 1dc0e95

Browse files
feat: Automated regeneration of WorkloadManager client (#12798)
Auto-created at 2025-01-10 13:14:01 +0000 using the toys pull request generator.
1 parent 7b27c2f commit 1dc0e95

File tree

6 files changed

+62
-7
lines changed

6 files changed

+62
-7
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.11"}]
14+
[{:google_api_workload_manager, "~> 0.12"}]
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 "20241209"
23+
@discovery_revision "20250101"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +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
31+
* `resultSummary` (*type:* `GoogleApi.WorkloadManager.V1.Model.Summary.t`, *default:* `nil`) - Output only. [Output only] Result summary for the execution
3232
* `ruleResults` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t)`, *default:* `nil`) - Output only. execution result summary per rule
3333
* `runType` (*type:* `String.t`, *default:* `nil`) - type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
3434
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Start time stamp

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do
2525
* `databaseProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentDatabaseProperties.t`, *default:* `nil`) - Optional. The component is a SAP database.
2626
* `haHosts` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
2727
* `hostProject` (*type:* `String.t`, *default:* `nil`) - Required. Pantheon Project in which the resources reside.
28-
* `replicationSites` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t)`, *default:* `nil`) - Optional. A list of replication sites used in Disaster Recovery (DR) configurations.
28+
* `region` (*type:* `String.t`, *default:* `nil`) - Optional. The region this component's resources are primarily located in.
29+
* `replicationSites` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite.t)`, *default:* `nil`) - Optional. A list of replication sites used in Disaster Recovery (DR) configurations.
2930
* `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResource.t)`, *default:* `nil`) - Optional. The resources in a component.
3031
* `sid` (*type:* `String.t`, *default:* `nil`) - Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers.
3132
* `topologyType` (*type:* `String.t`, *default:* `nil`) - Optional. The detected topology of the component.
@@ -41,8 +42,10 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do
4142
GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentDatabaseProperties.t() | nil,
4243
:haHosts => list(String.t()) | nil,
4344
:hostProject => String.t() | nil,
45+
:region => String.t() | nil,
4446
:replicationSites =>
45-
list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t()) | nil,
47+
list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite.t())
48+
| nil,
4649
:resources => list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResource.t()) | nil,
4750
:sid => String.t() | nil,
4851
:topologyType => String.t() | nil
@@ -58,9 +61,10 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do
5861

5962
field(:haHosts, type: :list)
6063
field(:hostProject)
64+
field(:region)
6165

6266
field(:replicationSites,
63-
as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent,
67+
as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite,
6468
type: :list
6569
)
6670

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.SapDiscoveryComponentReplicationSite do
19+
@moduledoc """
20+
A replication site used in Disaster Recovery (DR) configurations.
21+
22+
## Attributes
23+
24+
* `component` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t`, *default:* `nil`) - Optional. The system component for the site.
25+
* `sourceSite` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the source site from which this one replicates.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:component => GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t() | nil,
32+
:sourceSite => String.t() | nil
33+
}
34+
35+
field(:component, as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent)
36+
field(:sourceSite)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite do
41+
def decode(value, options) do
42+
GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
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.11.0"
21+
@version "0.12.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)