From 3c4795d9ee44c50c22ac8b83f82243dc31687e6d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 19 Nov 2024 13:13:13 +0000 Subject: [PATCH] feat: Automated regeneration of Apigee client --- clients/apigee/README.md | 2 +- .../lib/google_api/apigee/v1/metadata.ex | 2 +- ...ogle_cloud_apigee_v1_environment_config.ex | 9 +++ ...ment_config_client_ip_resolution_config.ex | 56 +++++++++++++++++++ ...esolution_config_header_index_algorithm.ex | 56 +++++++++++++++++++ clients/apigee/mix.exs | 2 +- 6 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config.ex create mode 100644 clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config_header_index_algorithm.ex diff --git a/clients/apigee/README.md b/clients/apigee/README.md index 98c3051e6a..14b144b798 100644 --- a/clients/apigee/README.md +++ b/clients/apigee/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_apigee, "~> 0.52"}] + [{:google_api_apigee, "~> 0.53"}] end ``` diff --git a/clients/apigee/lib/google_api/apigee/v1/metadata.ex b/clients/apigee/lib/google_api/apigee/v1/metadata.ex index 3e9295b8c2..464530b483 100644 --- a/clients/apigee/lib/google_api/apigee/v1/metadata.ex +++ b/clients/apigee/lib/google_api/apigee/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Apigee.V1 do API client metadata for GoogleApi.Apigee.V1. """ - @discovery_revision "20241011" + @discovery_revision "20241116" def discovery_revision(), do: @discovery_revision end diff --git a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config.ex b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config.ex index fc77438c97..875f0b6323 100644 --- a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config.ex +++ b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfig do * `addonsConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig.t`, *default:* `nil`) - The latest runtime configurations for add-ons. * `arcConfigLocation` (*type:* `String.t`, *default:* `nil`) - The location for the config blob of API Runtime Control, aka Envoy Adapter, for op-based authentication as a URI, e.g. a Cloud Storage URI. This is only used by Envoy-based gateways. + * `clientIpResolutionConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.t`, *default:* `nil`) - The algorithm to resolve IP. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Time that the environment configuration was created. * `dataCollectors` (*type:* `list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DataCollectorConfig.t)`, *default:* `nil`) - List of data collectors used by the deployments in the environment. * `debugMask` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DebugMask.t`, *default:* `nil`) - Debug mask that applies to all deployments in the environment. @@ -52,6 +53,9 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfig do :addonsConfig => GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig.t() | nil, :arcConfigLocation => String.t() | nil, + :clientIpResolutionConfig => + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.t() + | nil, :createTime => DateTime.t() | nil, :dataCollectors => list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DataCollectorConfig.t()) | nil, @@ -86,6 +90,11 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfig do field(:addonsConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig) field(:arcConfigLocation) + + field(:clientIpResolutionConfig, + as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig + ) + field(:createTime, as: DateTime) field(:dataCollectors, diff --git a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config.ex b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config.ex new file mode 100644 index 0000000000..ca6e8725a2 --- /dev/null +++ b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config.ex @@ -0,0 +1,56 @@ +# 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.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do + @moduledoc """ + Configuration for resolving the client ip. + + ## Attributes + + * `headerIndexAlgorithm` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.t`, *default:* `nil`) - Resolves the client ip based on a custom header. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :headerIndexAlgorithm => + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.t() + | nil + } + + field(:headerIndexAlgorithm, + as: + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do + def decode(value, options) do + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config_header_index_algorithm.ex b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config_header_index_algorithm.ex new file mode 100644 index 0000000000..83cac5ab76 --- /dev/null +++ b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config_client_ip_resolution_config_header_index_algorithm.ex @@ -0,0 +1,56 @@ +# 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.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do + @moduledoc """ + Resolves the client ip based on a custom header. + + ## Attributes + + * `ipHeaderIndex` (*type:* `integer()`, *default:* `nil`) - The index of the ip in the header. (By default, value is 0 if missing) + * `ipHeaderName` (*type:* `String.t`, *default:* `nil`) - The name of the header to extract the client ip from. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ipHeaderIndex => integer() | nil, + :ipHeaderName => String.t() | nil + } + + field(:ipHeaderIndex) + field(:ipHeaderName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do + def decode(value, options) do + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/apigee/mix.exs b/clients/apigee/mix.exs index 55d19a4bf9..d335b5a10e 100644 --- a/clients/apigee/mix.exs +++ b/clients/apigee/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Apigee.Mixfile do use Mix.Project - @version "0.52.1" + @version "0.53.0" def project() do [