Skip to content

Commit eda4398

Browse files
feat: Automated regeneration of Apigee client (googleapis#12564)
Auto-created at 2024-11-19 13:13:13 +0000 using the toys pull request generator.
1 parent 1a37a3d commit eda4398

6 files changed

+124
-3
lines changed

clients/apigee/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_apigee, "~> 0.52"}]
14+
[{:google_api_apigee, "~> 0.53"}]
1515
end
1616
```
1717

clients/apigee/lib/google_api/apigee/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Apigee.V1 do
2020
API client metadata for GoogleApi.Apigee.V1.
2121
"""
2222

23-
@discovery_revision "20241011"
23+
@discovery_revision "20241116"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment_config.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfig do
2323
2424
* `addonsConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig.t`, *default:* `nil`) - The latest runtime configurations for add-ons.
2525
* `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.
26+
* `clientIpResolutionConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.t`, *default:* `nil`) - The algorithm to resolve IP.
2627
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Time that the environment configuration was created.
2728
* `dataCollectors` (*type:* `list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DataCollectorConfig.t)`, *default:* `nil`) - List of data collectors used by the deployments in the environment.
2829
* `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
5253
:addonsConfig =>
5354
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig.t() | nil,
5455
:arcConfigLocation => String.t() | nil,
56+
:clientIpResolutionConfig =>
57+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.t()
58+
| nil,
5559
:createTime => DateTime.t() | nil,
5660
:dataCollectors =>
5761
list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1DataCollectorConfig.t()) | nil,
@@ -86,6 +90,11 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfig do
8690

8791
field(:addonsConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1RuntimeAddonsConfig)
8892
field(:arcConfigLocation)
93+
94+
field(:clientIpResolutionConfig,
95+
as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig
96+
)
97+
8998
field(:createTime, as: DateTime)
9099

91100
field(:dataCollectors,
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do
19+
@moduledoc """
20+
Configuration for resolving the client ip.
21+
22+
## Attributes
23+
24+
* `headerIndexAlgorithm` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.t`, *default:* `nil`) - Resolves the client ip based on a custom header.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:headerIndexAlgorithm =>
31+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.t()
32+
| nil
33+
}
34+
35+
field(:headerIndexAlgorithm,
36+
as:
37+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do
43+
def decode(value, options) do
44+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig.decode(
45+
value,
46+
options
47+
)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder,
52+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do
19+
@moduledoc """
20+
Resolves the client ip based on a custom header.
21+
22+
## Attributes
23+
24+
* `ipHeaderIndex` (*type:* `integer()`, *default:* `nil`) - The index of the ip in the header. (By default, value is 0 if missing)
25+
* `ipHeaderName` (*type:* `String.t`, *default:* `nil`) - The name of the header to extract the client ip from.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:ipHeaderIndex => integer() | nil,
32+
:ipHeaderName => String.t() | nil
33+
}
34+
35+
field(:ipHeaderIndex)
36+
field(:ipHeaderName)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do
42+
def decode(value, options) do
43+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

clients/apigee/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Apigee.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.52.1"
21+
@version "0.53.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)