Skip to content

Commit 43a295b

Browse files
feat: Automated regeneration of ServiceNetworking client (googleapis#12938)
Auto-created at 2025-02-07 13:17:00 +0000 using the toys pull request generator.
1 parent 1f8278f commit 43a295b

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

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

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

23-
@discovery_revision "20250202"
23+
@discovery_revision "20250205"
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.ServiceNetworking.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.ServiceNetworking.V1.Model.Aspect do
40+
def decode(value, options) do
41+
GoogleApi.ServiceNetworking.V1.Model.Aspect.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.ServiceNetworking.V1.Model.Aspect do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.Service do
2222
## Attributes
2323
2424
* `apis` (*type:* `list(GoogleApi.ServiceNetworking.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.ServiceNetworking.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.ServiceNetworking.V1.Model.Authentication.t`, *default:* `nil`) - Auth configuration.
2627
* `backend` (*type:* `GoogleApi.ServiceNetworking.V1.Model.Backend.t`, *default:* `nil`) - API backend configuration.
2728
* `billing` (*type:* `GoogleApi.ServiceNetworking.V1.Model.Billing.t`, *default:* `nil`) - Billing configuration.
@@ -55,6 +56,7 @@ defmodule GoogleApi.ServiceNetworking.V1.Model.Service do
5556

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

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

0 commit comments

Comments
 (0)