Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of WorkloadManager client #12798

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/workload_manager/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_workload_manager, "~> 0.11"}]
[{:google_api_workload_manager, "~> 0.12"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.WorkloadManager.V1 do
API client metadata for GoogleApi.WorkloadManager.V1.
"""

@discovery_revision "20241209"
@discovery_revision "20250101"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule GoogleApi.WorkloadManager.V1.Model.Execution do
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs
* `name` (*type:* `String.t`, *default:* `nil`) - The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}
* `notices` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.Notice.t)`, *default:* `nil`) - Output only. Additional information generated by the execution
* `resultSummary` (*type:* `GoogleApi.WorkloadManager.V1.Model.Summary.t`, *default:* `nil`) - Output only. [Output only] Result summary
* `resultSummary` (*type:* `GoogleApi.WorkloadManager.V1.Model.Summary.t`, *default:* `nil`) - Output only. [Output only] Result summary for the execution
* `ruleResults` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.RuleExecutionResult.t)`, *default:* `nil`) - Output only. execution result summary per rule
* `runType` (*type:* `String.t`, *default:* `nil`) - type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. [Output only] Start time stamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do
* `databaseProperties` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentDatabaseProperties.t`, *default:* `nil`) - Optional. The component is a SAP database.
* `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.
* `hostProject` (*type:* `String.t`, *default:* `nil`) - Required. Pantheon Project in which the resources reside.
* `replicationSites` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t)`, *default:* `nil`) - Optional. A list of replication sites used in Disaster Recovery (DR) configurations.
* `region` (*type:* `String.t`, *default:* `nil`) - Optional. The region this component's resources are primarily located in.
* `replicationSites` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite.t)`, *default:* `nil`) - Optional. A list of replication sites used in Disaster Recovery (DR) configurations.
* `resources` (*type:* `list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResource.t)`, *default:* `nil`) - Optional. The resources in a component.
* `sid` (*type:* `String.t`, *default:* `nil`) - Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers.
* `topologyType` (*type:* `String.t`, *default:* `nil`) - Optional. The detected topology of the component.
Expand All @@ -41,8 +42,10 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do
GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentDatabaseProperties.t() | nil,
:haHosts => list(String.t()) | nil,
:hostProject => String.t() | nil,
:region => String.t() | nil,
:replicationSites =>
list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t()) | nil,
list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite.t())
| nil,
:resources => list(GoogleApi.WorkloadManager.V1.Model.SapDiscoveryResource.t()) | nil,
:sid => String.t() | nil,
:topologyType => String.t() | nil
Expand All @@ -58,9 +61,10 @@ defmodule GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent do

field(:haHosts, type: :list)
field(:hostProject)
field(:region)

field(:replicationSites,
as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent,
as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite,
type: :list
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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.WorkloadManager.V1.Model.SapDiscoveryComponentReplicationSite do
@moduledoc """
A replication site used in Disaster Recovery (DR) configurations.

## Attributes

* `component` (*type:* `GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t`, *default:* `nil`) - Optional. The system component for the site.
* `sourceSite` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the source site from which this one replicates.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:component => GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent.t() | nil,
:sourceSite => String.t() | nil
}

field(:component, as: GoogleApi.WorkloadManager.V1.Model.SapDiscoveryComponent)
field(:sourceSite)
end

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

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

@version "0.11.0"
@version "0.12.0"

def project() do
[
Expand Down
Loading