Skip to content

Commit 433778c

Browse files
feat: Automated regeneration of ServiceManagement client (googleapis#12966)
Auto-created at 2025-02-15 13:08:32 +0000 using the toys pull request generator.
1 parent 0885e17 commit 433778c

File tree

4 files changed

+56
-1
lines changed

4 files changed

+56
-1
lines changed

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

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

23-
@discovery_revision "20250202"
23+
@discovery_revision "20250210"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.ServiceManagement.V1.Model.Aspect do
19+
@moduledoc """
20+
Aspect represents Generic aspect. It is used to configure an aspect without making direct changes to service.proto
21+
22+
## Attributes
23+
24+
* `kind` (*type:* `String.t`, *default:* `nil`) - The type of this aspect configuration.
25+
* `spec` (*type:* `map()`, *default:* `nil`) - Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:kind => String.t() | nil,
32+
:spec => map() | nil
33+
}
34+
35+
field(:kind)
36+
field(:spec, type: :map)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.ServiceManagement.V1.Model.Aspect do
40+
def decode(value, options) do
41+
GoogleApi.ServiceManagement.V1.Model.Aspect.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.ServiceManagement.V1.Model.Aspect do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/service_management/lib/google_api/service_management/v1/model/backend_rule.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do
2525
* `deadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
2626
* `disableAuth` (*type:* `boolean()`, *default:* `nil`) - When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
2727
* `jwtAudience` (*type:* `String.t`, *default:* `nil`) - The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
28+
* `loadBalancingPolicy` (*type:* `String.t`, *default:* `nil`) - The load balancing policy used for connection to the application backend. Defined as an arbitrary string to accomondate custom load balancing policies supported by the underlying channel, but suggest most users use one of the standard policies, such as the default, "RoundRobin".
2829
* `minDeadline` (*type:* `float()`, *default:* `nil`) - Deprecated, do not use.
2930
* `operationDeadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for the completion of a long running operation. The default is no deadline.
3031
* `overridesByRequestProtocol` (*type:* `%{optional(String.t) => GoogleApi.ServiceManagement.V1.Model.BackendRule.t}`, *default:* `nil`) - The map between request protocol and the backend address.
@@ -40,6 +41,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do
4041
:deadline => float() | nil,
4142
:disableAuth => boolean() | nil,
4243
:jwtAudience => String.t() | nil,
44+
:loadBalancingPolicy => String.t() | nil,
4345
:minDeadline => float() | nil,
4446
:operationDeadline => float() | nil,
4547
:overridesByRequestProtocol =>
@@ -53,6 +55,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.BackendRule do
5355
field(:deadline)
5456
field(:disableAuth)
5557
field(:jwtAudience)
58+
field(:loadBalancingPolicy)
5659
field(:minDeadline)
5760
field(:operationDeadline)
5861

clients/service_management/lib/google_api/service_management/v1/model/service.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do
2222
## Attributes
2323
2424
* `apis` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Api.t)`, *default:* `nil`) - A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.
25+
* `aspects` (*type:* `list(GoogleApi.ServiceManagement.V1.Model.Aspect.t)`, *default:* `nil`) - Configuration aspects. This is a repeated field to allow multiple aspects to be configured. The kind field in each ConfigAspect specifies the type of aspect. The spec field contains the configuration for that aspect. The schema for the spec field is defined by the backend service owners.
2526
* `authentication` (*type:* `GoogleApi.ServiceManagement.V1.Model.Authentication.t`, *default:* `nil`) - Auth configuration.
2627
* `backend` (*type:* `GoogleApi.ServiceManagement.V1.Model.Backend.t`, *default:* `nil`) - API backend configuration.
2728
* `billing` (*type:* `GoogleApi.ServiceManagement.V1.Model.Billing.t`, *default:* `nil`) - Billing configuration.
@@ -55,6 +56,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do
5556

5657
@type t :: %__MODULE__{
5758
:apis => list(GoogleApi.ServiceManagement.V1.Model.Api.t()) | nil,
59+
:aspects => list(GoogleApi.ServiceManagement.V1.Model.Aspect.t()) | nil,
5860
:authentication => GoogleApi.ServiceManagement.V1.Model.Authentication.t() | nil,
5961
:backend => GoogleApi.ServiceManagement.V1.Model.Backend.t() | nil,
6062
:billing => GoogleApi.ServiceManagement.V1.Model.Billing.t() | nil,
@@ -86,6 +88,7 @@ defmodule GoogleApi.ServiceManagement.V1.Model.Service do
8688
}
8789

8890
field(:apis, as: GoogleApi.ServiceManagement.V1.Model.Api, type: :list)
91+
field(:aspects, as: GoogleApi.ServiceManagement.V1.Model.Aspect, type: :list)
8992
field(:authentication, as: GoogleApi.ServiceManagement.V1.Model.Authentication)
9093
field(:backend, as: GoogleApi.ServiceManagement.V1.Model.Backend)
9194
field(:billing, as: GoogleApi.ServiceManagement.V1.Model.Billing)

0 commit comments

Comments
 (0)