Skip to content

Commit 3817bfd

Browse files
feat: Automated regeneration of NetworkServices client (googleapis#12877)
Auto-created at 2025-01-26 13:14:10 +0000 using the toys pull request generator.
1 parent 6fc5d5f commit 3817bfd

File tree

9 files changed

+29
-9
lines changed

9 files changed

+29
-9
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.10"}]
14+
[{:google_api_network_services, "~> 0.11"}]
1515
end
1616
```
1717

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
21582158
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
21592159
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
21602160
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2161+
* `:etag` (*type:* `String.t`) - Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
21612162
* `opts` (*type:* `keyword()`) - Call options
21622163
21632164
## Returns
@@ -2192,7 +2193,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
21922193
:prettyPrint => :query,
21932194
:quotaUser => :query,
21942195
:uploadType => :query,
2195-
:upload_protocol => :query
2196+
:upload_protocol => :query,
2197+
:etag => :query
21962198
}
21972199

21982200
request =
@@ -2522,6 +2524,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
25222524
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
25232525
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
25242526
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2527+
* `:etag` (*type:* `String.t`) - Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
25252528
* `opts` (*type:* `keyword()`) - Call options
25262529
25272530
## Returns
@@ -2556,7 +2559,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
25562559
:prettyPrint => :query,
25572560
:quotaUser => :query,
25582561
:uploadType => :query,
2559-
:upload_protocol => :query
2562+
:upload_protocol => :query,
2563+
:etag => :query
25602564
}
25612565

25622566
request =
@@ -5086,6 +5090,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
50865090
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
50875091
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
50885092
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
5093+
* `:etag` (*type:* `String.t`) - Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
50895094
* `opts` (*type:* `keyword()`) - Call options
50905095
50915096
## Returns
@@ -5120,7 +5125,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
51205125
:prettyPrint => :query,
51215126
:quotaUser => :query,
51225127
:uploadType => :query,
5123-
:upload_protocol => :query
5128+
:upload_protocol => :query,
5129+
:etag => :query
51245130
}
51255131

51265132
request =
@@ -5450,6 +5456,7 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
54505456
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
54515457
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
54525458
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
5459+
* `:etag` (*type:* `String.t`) - Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
54535460
* `opts` (*type:* `keyword()`) - Call options
54545461
54555462
## Returns
@@ -5484,7 +5491,8 @@ defmodule GoogleApi.NetworkServices.V1.Api.Projects do
54845491
:prettyPrint => :query,
54855492
:quotaUser => :query,
54865493
:uploadType => :query,
5487-
:upload_protocol => :query
5494+
:upload_protocol => :query,
5495+
:etag => :query
54885496
}
54895497

54905498
request =

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 "20241118"
23+
@discovery_revision "20250120"
2424

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.NetworkServices.V1.Model.Gateway do
1919
@moduledoc """
20-
Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 33
20+
Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
2121
2222
## Attributes
2323
@@ -33,7 +33,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.Gateway do
3333
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. The relative resource name identifying the VPC network that is using this configuration. For example: `projects/*/global/networks/network-1`. Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
3434
* `ports` (*type:* `list(integer())`, *default:* `nil`) - Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
3535
* `routingMode` (*type:* `String.t`, *default:* `nil`) - Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.
36-
* `scope` (*type:* `String.t`, *default:* `nil`) - Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
36+
* `scope` (*type:* `String.t`, *default:* `nil`) - Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single configuration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
3737
* `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. Server-defined URL of this resource
3838
* `serverTlsPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
3939
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Optional. The relative resource name identifying the subnetwork in which this SWG is allocated. For example: `projects/*/regions/us-central1/subnetworks/network-1` Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRoute do
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters.
26+
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
2627
* `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
2728
* `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Service hostnames with an optional port for which this route describes traffic. Format: [:] Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`. If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
2829
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the GrpcRoute resource.
@@ -38,6 +39,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRoute do
3839
@type t :: %__MODULE__{
3940
:createTime => DateTime.t() | nil,
4041
:description => String.t() | nil,
42+
:etag => String.t() | nil,
4143
:gateways => list(String.t()) | nil,
4244
:hostnames => list(String.t()) | nil,
4345
:labels => map() | nil,
@@ -50,6 +52,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.GrpcRoute do
5052

5153
field(:createTime, as: DateTime)
5254
field(:description)
55+
field(:etag)
5356
field(:gateways, type: :list)
5457
field(:hostnames, type: :list)
5558
field(:labels, type: :map)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRoute do
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters.
26+
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
2627
* `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this HttpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
2728
* `hostnames` (*type:* `list(String.t)`, *default:* `nil`) - Required. Hostnames define a set of hosts that should match against the HTTP host header to select a HttpRoute to process the request. Hostname is the fully qualified domain name of a network host, as defined by RFC 1123 with the exception that: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label. Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed. The routes associated with a Mesh or Gateways must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected. For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh (or Gateways under the same scope), it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`.
2829
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the HttpRoute resource.
@@ -38,6 +39,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRoute do
3839
@type t :: %__MODULE__{
3940
:createTime => DateTime.t() | nil,
4041
:description => String.t() | nil,
42+
:etag => String.t() | nil,
4143
:gateways => list(String.t()) | nil,
4244
:hostnames => list(String.t()) | nil,
4345
:labels => map() | nil,
@@ -50,6 +52,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.HttpRoute do
5052

5153
field(:createTime, as: DateTime)
5254
field(:description)
55+
field(:etag)
5356
field(:gateways, type: :list)
5457
field(:hostnames, type: :list)
5558
field(:labels, type: :map)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRoute do
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters.
26+
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
2627
* `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
2728
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the TcpRoute resource.
2829
* `meshes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR
@@ -37,6 +38,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRoute do
3738
@type t :: %__MODULE__{
3839
:createTime => DateTime.t() | nil,
3940
:description => String.t() | nil,
41+
:etag => String.t() | nil,
4042
:gateways => list(String.t()) | nil,
4143
:labels => map() | nil,
4244
:meshes => list(String.t()) | nil,
@@ -48,6 +50,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TcpRoute do
4850

4951
field(:createTime, as: DateTime)
5052
field(:description)
53+
field(:etag)
5154
field(:gateways, type: :list)
5255
field(:labels, type: :map)
5356
field(:meshes, type: :list)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the resource was created.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A free-text description of the resource. Max length 1024 characters.
26+
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
2627
* `gateways` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/*/locations/global/gateways/`
2728
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Set of label tags associated with the TlsRoute resource.
2829
* `meshes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Meshes defines a list of meshes this TlsRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: `projects/*/locations/global/meshes/` The attached Mesh should be of a type SIDECAR
@@ -37,6 +38,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do
3738
@type t :: %__MODULE__{
3839
:createTime => DateTime.t() | nil,
3940
:description => String.t() | nil,
41+
:etag => String.t() | nil,
4042
:gateways => list(String.t()) | nil,
4143
:labels => map() | nil,
4244
:meshes => list(String.t()) | nil,
@@ -48,6 +50,7 @@ defmodule GoogleApi.NetworkServices.V1.Model.TlsRoute do
4850

4951
field(:createTime, as: DateTime)
5052
field(:description)
53+
field(:etag)
5154
field(:gateways, type: :list)
5255
field(:labels, type: :map)
5356
field(:meshes, type: :list)

clients/network_services/mix.exs

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

21-
@version "0.10.1"
21+
@version "0.11.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)