Skip to content

Commit 482a5b9

Browse files
feat: Automated regeneration of Apigee client (googleapis#12742)
Auto-created at 2024-12-19 13:12:35 +0000 using the toys pull request generator.
1 parent 317a900 commit 482a5b9

File tree

6 files changed

+124
-3
lines changed

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.53"}]
14+
[{:google_api_apigee, "~> 0.54"}]
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 "20241210"
23+
@discovery_revision "20241213"
2424

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Environment do
2222
## Attributes
2323
2424
* `apiProxyType` (*type:* `String.t`, *default:* `nil`) - Optional. API Proxy type supported by the environment. The type can be set when creating the Environment and cannot be changed.
25+
* `clientIpResolutionConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig.t`, *default:* `nil`) - Optional. The algorithm to resolve IP. This will affect Analytics, API Security, and other features that use the client ip. To remove a client ip resolution config, update the field to an empty value. Example: '{ "clientIpResolutionConfig" = {} }' For more information, see: https://cloud.google.com/apigee/docs/api-platform/system-administration/client-ip-resolution.
2526
* `createdAt` (*type:* `String.t`, *default:* `nil`) - Output only. Creation time of this environment as milliseconds since epoch.
2627
* `deploymentType` (*type:* `String.t`, *default:* `nil`) - Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
2728
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the environment.
@@ -40,6 +41,9 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Environment do
4041

4142
@type t :: %__MODULE__{
4243
:apiProxyType => String.t() | nil,
44+
:clientIpResolutionConfig =>
45+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig.t()
46+
| nil,
4347
:createdAt => String.t() | nil,
4448
:deploymentType => String.t() | nil,
4549
:description => String.t() | nil,
@@ -55,6 +59,11 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Environment do
5559
}
5660

5761
field(:apiProxyType)
62+
63+
field(:clientIpResolutionConfig,
64+
as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig
65+
)
66+
5867
field(:createdAt)
5968
field(:deploymentType)
6069
field(:description)
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.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig do
19+
@moduledoc """
20+
Configuration for resolving the client ip.
21+
22+
## Attributes
23+
24+
* `headerIndexAlgorithm` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.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.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.t()
32+
| nil
33+
}
34+
35+
field(:headerIndexAlgorithm,
36+
as:
37+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig do
43+
def decode(value, options) do
44+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig.decode(
45+
value,
46+
options
47+
)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder,
52+
for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig 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.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm do
19+
@moduledoc """
20+
Resolves the client ip based on a custom header.
21+
22+
## Attributes
23+
24+
* `ipHeaderIndex` (*type:* `integer()`, *default:* `nil`) - Required. The index of the ip in the header. Positive indices 0, 1, 2, 3 chooses indices from the left (first ips) Negative indices -1, -2, -3 chooses indices from the right (last ips)
25+
* `ipHeaderName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the header to extract the client ip from. We are currently only supporting the X-Forwarded-For header.
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.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm do
42+
def decode(value, options) do
43+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm 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.53.1"
21+
@version "0.54.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)