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 Apigee client #12564

Merged
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/apigee/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_apigee, "~> 0.52"}]
[{:google_api_apigee, "~> 0.53"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/apigee/lib/google_api/apigee/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion clients/apigee/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Apigee.Mixfile do
use Mix.Project

@version "0.52.1"
@version "0.53.0"

def project() do
[
Expand Down
Loading