Skip to content

Commit b4a5cd1

Browse files
feat: Automated regeneration of NetworkServices client (googleapis#12400)
Auto-created at 2024-10-24 13:16:25 +0000 using the toys pull request generator.
1 parent 0d3ec5e commit b4a5cd1

15 files changed

+1085
-10
lines changed

clients/network_services/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_network_services, "~> 0.8"}]
14+
[{:google_api_network_services, "~> 0.9"}]
1515
end
1616
```
1717

clients/network_services/lib/google_api/network_services/v1/api/projects.ex

Lines changed: 657 additions & 1 deletion
Large diffs are not rendered by default.

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

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

23-
@discovery_revision "20240919"
23+
@discovery_revision "20241010"
2424

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

clients/network_services/lib/google_api/network_services/v1/model/extension_chain_extension.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ defmodule GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension do
2121
2222
## Attributes
2323
24-
* `authority` (*type:* `String.t`, *default:* `nil`) - Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions.
24+
* `authority` (*type:* `String.t`, *default:* `nil`) - Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions and must not be set.
2525
* `failOpen` (*type:* `boolean()`, *default:* `nil`) - Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset.
2626
* `forwardHeaders` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of the HTTP headers to forward to the extension (from the client or backend). If omitted, all headers are sent. Each element is a string indicating the header name.
27+
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.
2728
* `name` (*type:* `String.t`, *default:* `nil`) - Required. The name for this extension. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.
28-
* `service` (*type:* `String.t`, *default:* `nil`) - Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.
29+
* `service` (*type:* `String.t`, *default:* `nil`) - Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. To configure a plugin extension, this must be a reference to a [wasm plugin](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or `//networkservices.googleapis.com/projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}`.
2930
* `supportedEvents` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource.
30-
* `timeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for Callout extensions.
31+
* `timeout` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for callout extensions. This field is not supported for plugin extensions and must not be set.
3132
"""
3233

3334
use GoogleApi.Gax.ModelBase
@@ -36,6 +37,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension do
3637
:authority => String.t() | nil,
3738
:failOpen => boolean() | nil,
3839
:forwardHeaders => list(String.t()) | nil,
40+
:metadata => map() | nil,
3941
:name => String.t() | nil,
4042
:service => String.t() | nil,
4143
:supportedEvents => list(String.t()) | nil,
@@ -45,6 +47,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ExtensionChainExtension do
4547
field(:authority)
4648
field(:failOpen)
4749
field(:forwardHeaders, type: :list)
50+
field(:metadata, type: :map)
4851
field(:name)
4952
field(:service)
5053
field(:supportedEvents, type: :list)

clients/network_services/lib/google_api/network_services/v1/model/lb_route_extension.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.LbRouteExtension do
2727
* `forwardingRules` (*type:* `list(String.t)`, *default:* `nil`) - Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of labels associated with the `LbRouteExtension` resource. The format must comply with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud resources.
2929
* `loadBalancingScheme` (*type:* `String.t`, *default:* `nil`) - Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
30-
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.
30+
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
3232
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated.
3333
"""

clients/network_services/lib/google_api/network_services/v1/model/lb_traffic_extension.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.LbTrafficExtension do
2727
* `forwardingRules` (*type:* `list(String.t)`, *default:* `nil`) - Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of labels associated with the `LbTrafficExtension` resource. The format must comply with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud resources.
2929
* `loadBalancingScheme` (*type:* `String.t`, *default:* `nil`) - Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
30-
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.
30+
* `metadata` (*type:* `map()`, *default:* `nil`) - Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.
3131
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`.
3232
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was updated.
3333
"""
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.NetworkServices.V1.Model.ListWasmPluginVersionsResponse do
19+
@moduledoc """
20+
Response returned by the `ListWasmPluginVersions` method.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
25+
* `wasmPluginVersions` (*type:* `list(GoogleApi.NetworkServices.V1.Model.WasmPluginVersion.t)`, *default:* `nil`) - List of `WasmPluginVersion` resources.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:wasmPluginVersions =>
33+
list(GoogleApi.NetworkServices.V1.Model.WasmPluginVersion.t()) | nil
34+
}
35+
36+
field(:nextPageToken)
37+
38+
field(:wasmPluginVersions, as: GoogleApi.NetworkServices.V1.Model.WasmPluginVersion, type: :list)
39+
end
40+
41+
defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListWasmPluginVersionsResponse do
42+
def decode(value, options) do
43+
GoogleApi.NetworkServices.V1.Model.ListWasmPluginVersionsResponse.decode(value, options)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ListWasmPluginVersionsResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.NetworkServices.V1.Model.ListWasmPluginsResponse do
19+
@moduledoc """
20+
Response returned by the `ListWasmPlugins` method.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
25+
* `wasmPlugins` (*type:* `list(GoogleApi.NetworkServices.V1.Model.WasmPlugin.t)`, *default:* `nil`) - List of `WasmPlugin` resources.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:wasmPlugins => list(GoogleApi.NetworkServices.V1.Model.WasmPlugin.t()) | nil
33+
}
34+
35+
field(:nextPageToken)
36+
field(:wasmPlugins, as: GoogleApi.NetworkServices.V1.Model.WasmPlugin, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.NetworkServices.V1.Model.ListWasmPluginsResponse do
40+
def decode(value, options) do
41+
GoogleApi.NetworkServices.V1.Model.ListWasmPluginsResponse.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.NetworkServices.V1.Model.ListWasmPluginsResponse do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/network_services/lib/google_api/network_services/v1/model/service_lb_policy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.ServiceLbPolicy do
2727
* `failoverConfig` (*type:* `GoogleApi.NetworkServices.V1.Model.ServiceLbPolicyFailoverConfig.t`, *default:* `nil`) - Optional. Configuration related to health based failover.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the ServiceLbPolicy resource.
2929
* `loadBalancingAlgorithm` (*type:* `String.t`, *default:* `nil`) - Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
30-
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
30+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
3131
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when this resource was last updated.
3232
"""
3333

0 commit comments

Comments
 (0)