From 479def5899b2389583aed4eb5f7571e822ece220 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 30 Oct 2024 13:17:12 +0000 Subject: [PATCH] feat: Automated regeneration of Container client --- clients/container/README.md | 2 +- .../lib/google_api/container/v1/metadata.ex | 2 +- .../container/v1/model/cluster_update.ex | 4 ++ .../v1/model/desired_enterprise_config.ex | 46 +++++++++++++++++++ .../container/v1/model/enterprise_config.ex | 5 +- clients/container/mix.exs | 2 +- 6 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 clients/container/lib/google_api/container/v1/model/desired_enterprise_config.ex diff --git a/clients/container/README.md b/clients/container/README.md index d49806bcad..72f5f3c7cb 100644 --- a/clients/container/README.md +++ b/clients/container/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_container, "~> 0.53"}] + [{:google_api_container, "~> 0.54"}] end ``` diff --git a/clients/container/lib/google_api/container/v1/metadata.ex b/clients/container/lib/google_api/container/v1/metadata.ex index 5a1e590d02..6801cbb29a 100644 --- a/clients/container/lib/google_api/container/v1/metadata.ex +++ b/clients/container/lib/google_api/container/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Container.V1 do API client metadata for GoogleApi.Container.V1. """ - @discovery_revision "20241008" + @discovery_revision "20241017" def discovery_revision(), do: @discovery_revision end diff --git a/clients/container/lib/google_api/container/v1/model/cluster_update.ex b/clients/container/lib/google_api/container/v1/model/cluster_update.ex index 22599fc4fe..2a59dfbcd5 100644 --- a/clients/container/lib/google_api/container/v1/model/cluster_update.ex +++ b/clients/container/lib/google_api/container/v1/model/cluster_update.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do * `desiredK8sBetaApis` (*type:* `GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t`, *default:* `nil`) - Desired Beta APIs to be enabled for cluster. * `enableK8sBetaApis` (*type:* `GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t`, *default:* `nil`) - Kubernetes open source beta apis enabled on the cluster. Only beta apis * `desiredLoggingConfig` (*type:* `GoogleApi.Container.V1.Model.LoggingConfig.t`, *default:* `nil`) - The desired logging configuration. + * `desiredEnterpriseConfig` (*type:* `GoogleApi.Container.V1.Model.DesiredEnterpriseConfig.t`, *default:* `nil`) - The desired enterprise configuration for the cluster. * `desiredGcfsConfig` (*type:* `GoogleApi.Container.V1.Model.GcfsConfig.t`, *default:* `nil`) - The desired GCFS config for the cluster * `desiredDefaultEnablePrivateNodes` (*type:* `boolean()`, *default:* `nil`) - Override the default setting of whether future created nodes have private IP addresses only, namely NetworkConfig.default_enable_private_nodes * `desiredDatapathProvider` (*type:* `String.t`, *default:* `nil`) - The desired datapath provider for the cluster. @@ -95,6 +96,8 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do :desiredK8sBetaApis => GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t() | nil, :enableK8sBetaApis => GoogleApi.Container.V1.Model.K8sBetaAPIConfig.t() | nil, :desiredLoggingConfig => GoogleApi.Container.V1.Model.LoggingConfig.t() | nil, + :desiredEnterpriseConfig => + GoogleApi.Container.V1.Model.DesiredEnterpriseConfig.t() | nil, :desiredGcfsConfig => GoogleApi.Container.V1.Model.GcfsConfig.t() | nil, :desiredDefaultEnablePrivateNodes => boolean() | nil, :desiredDatapathProvider => String.t() | nil, @@ -185,6 +188,7 @@ defmodule GoogleApi.Container.V1.Model.ClusterUpdate do field(:desiredK8sBetaApis, as: GoogleApi.Container.V1.Model.K8sBetaAPIConfig) field(:enableK8sBetaApis, as: GoogleApi.Container.V1.Model.K8sBetaAPIConfig) field(:desiredLoggingConfig, as: GoogleApi.Container.V1.Model.LoggingConfig) + field(:desiredEnterpriseConfig, as: GoogleApi.Container.V1.Model.DesiredEnterpriseConfig) field(:desiredGcfsConfig, as: GoogleApi.Container.V1.Model.GcfsConfig) field(:desiredDefaultEnablePrivateNodes) field(:desiredDatapathProvider) diff --git a/clients/container/lib/google_api/container/v1/model/desired_enterprise_config.ex b/clients/container/lib/google_api/container/v1/model/desired_enterprise_config.ex new file mode 100644 index 0000000000..1300446092 --- /dev/null +++ b/clients/container/lib/google_api/container/v1/model/desired_enterprise_config.ex @@ -0,0 +1,46 @@ +# 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.Container.V1.Model.DesiredEnterpriseConfig do + @moduledoc """ + DesiredEnterpriseConfig is a wrapper used for updating enterprise_config. + + ## Attributes + + * `desiredTier` (*type:* `String.t`, *default:* `nil`) - desired_tier specifies the desired tier of the cluster. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :desiredTier => String.t() | nil + } + + field(:desiredTier) +end + +defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.DesiredEnterpriseConfig do + def decode(value, options) do + GoogleApi.Container.V1.Model.DesiredEnterpriseConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Container.V1.Model.DesiredEnterpriseConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/container/lib/google_api/container/v1/model/enterprise_config.ex b/clients/container/lib/google_api/container/v1/model/enterprise_config.ex index a604582bb7..8d729da108 100644 --- a/clients/container/lib/google_api/container/v1/model/enterprise_config.ex +++ b/clients/container/lib/google_api/container/v1/model/enterprise_config.ex @@ -22,15 +22,18 @@ defmodule GoogleApi.Container.V1.Model.EnterpriseConfig do ## Attributes * `clusterTier` (*type:* `String.t`, *default:* `nil`) - Output only. cluster_tier indicates the effective tier of the cluster. + * `desiredTier` (*type:* `String.t`, *default:* `nil`) - desired_tier specifies the desired tier of the cluster. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :clusterTier => String.t() | nil + :clusterTier => String.t() | nil, + :desiredTier => String.t() | nil } field(:clusterTier) + field(:desiredTier) end defimpl Poison.Decoder, for: GoogleApi.Container.V1.Model.EnterpriseConfig do diff --git a/clients/container/mix.exs b/clients/container/mix.exs index 02a42e7a38..9c23476a98 100644 --- a/clients/container/mix.exs +++ b/clients/container/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Container.Mixfile do use Mix.Project - @version "0.53.0" + @version "0.54.0" def project() do [