diff --git a/clients/workload_manager/README.md b/clients/workload_manager/README.md index a0ac890051..944453cb0a 100644 --- a/clients/workload_manager/README.md +++ b/clients/workload_manager/README.md @@ -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 ``` diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex index c8e8da9af3..5fe9aabc5d 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/metadata.ex @@ -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 diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex index a86b8fb275..8c7ad9461c 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/execution.ex @@ -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 diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component.ex index d32de404c0..09747b516e 100644 --- a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component.ex +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component.ex @@ -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. @@ -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 @@ -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 ) diff --git a/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_replication_site.ex b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_replication_site.ex new file mode 100644 index 0000000000..6d721658da --- /dev/null +++ b/clients/workload_manager/lib/google_api/workload_manager/v1/model/sap_discovery_component_replication_site.ex @@ -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 diff --git a/clients/workload_manager/mix.exs b/clients/workload_manager/mix.exs index 9824ae7095..287c5fd073 100644 --- a/clients/workload_manager/mix.exs +++ b/clients/workload_manager/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.WorkloadManager.Mixfile do use Mix.Project - @version "0.11.0" + @version "0.12.0" def project() do [