Skip to content

Commit 33ca958

Browse files
feat: Automated regeneration of Logging client (#13154)
Auto-created at 2025-03-14 13:11:09 +0000 using the toys pull request generator.
1 parent 3658667 commit 33ca958

File tree

6 files changed

+212
-1
lines changed

6 files changed

+212
-1
lines changed

clients/logging/lib/google_api/logging/v2/metadata.ex

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

23-
@discovery_revision "20250207"
23+
@discovery_revision "20250307"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Logging.V2.Model.AppHub do
19+
@moduledoc """
20+
Metadata associated with App Hub.
21+
22+
## Attributes
23+
24+
* `application` (*type:* `GoogleApi.Logging.V2.Model.AppHubApplication.t`, *default:* `nil`) - Metadata associated with the application.
25+
* `service` (*type:* `GoogleApi.Logging.V2.Model.AppHubService.t`, *default:* `nil`) - Metadata associated with the service.
26+
* `workload` (*type:* `GoogleApi.Logging.V2.Model.AppHubWorkload.t`, *default:* `nil`) - Metadata associated with the workload.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:application => GoogleApi.Logging.V2.Model.AppHubApplication.t() | nil,
33+
:service => GoogleApi.Logging.V2.Model.AppHubService.t() | nil,
34+
:workload => GoogleApi.Logging.V2.Model.AppHubWorkload.t() | nil
35+
}
36+
37+
field(:application, as: GoogleApi.Logging.V2.Model.AppHubApplication)
38+
field(:service, as: GoogleApi.Logging.V2.Model.AppHubService)
39+
field(:workload, as: GoogleApi.Logging.V2.Model.AppHubWorkload)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AppHub do
43+
def decode(value, options) do
44+
GoogleApi.Logging.V2.Model.AppHub.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AppHub do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Logging.V2.Model.AppHubApplication do
19+
@moduledoc """
20+
Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations//applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below.
21+
22+
## Attributes
23+
24+
* `container` (*type:* `String.t`, *default:* `nil`) - Resource container that owns the application. Example: "projects/management_project"
25+
* `id` (*type:* `String.t`, *default:* `nil`) - Application Id. Example: "my-app"
26+
* `location` (*type:* `String.t`, *default:* `nil`) - Location associated with the Application. Example: "us-east1"
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:container => String.t() | nil,
33+
:id => String.t() | nil,
34+
:location => String.t() | nil
35+
}
36+
37+
field(:container)
38+
field(:id)
39+
field(:location)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AppHubApplication do
43+
def decode(value, options) do
44+
GoogleApi.Logging.V2.Model.AppHubApplication.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AppHubApplication do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Logging.V2.Model.AppHubService do
19+
@moduledoc """
20+
Metadata associated with an App Hub service.
21+
22+
## Attributes
23+
24+
* `criticalityType` (*type:* `String.t`, *default:* `nil`) - Service criticality type Example: "CRITICAL"
25+
* `environmentType` (*type:* `String.t`, *default:* `nil`) - Service environment type Example: "DEV"
26+
* `id` (*type:* `String.t`, *default:* `nil`) - Service Id. Example: "my-service"
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:criticalityType => String.t() | nil,
33+
:environmentType => String.t() | nil,
34+
:id => String.t() | nil
35+
}
36+
37+
field(:criticalityType)
38+
field(:environmentType)
39+
field(:id)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AppHubService do
43+
def decode(value, options) do
44+
GoogleApi.Logging.V2.Model.AppHubService.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AppHubService do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Logging.V2.Model.AppHubWorkload do
19+
@moduledoc """
20+
Metadata associated with an App Hub workload.
21+
22+
## Attributes
23+
24+
* `criticalityType` (*type:* `String.t`, *default:* `nil`) - Workload criticality type Example: "CRITICAL"
25+
* `environmentType` (*type:* `String.t`, *default:* `nil`) - Workload environment type Example: "DEV"
26+
* `id` (*type:* `String.t`, *default:* `nil`) - Workload Id. Example: "my-workload"
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:criticalityType => String.t() | nil,
33+
:environmentType => String.t() | nil,
34+
:id => String.t() | nil
35+
}
36+
37+
field(:criticalityType)
38+
field(:environmentType)
39+
field(:id)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AppHubWorkload do
43+
def decode(value, options) do
44+
GoogleApi.Logging.V2.Model.AppHubWorkload.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AppHubWorkload do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/logging/lib/google_api/logging/v2/model/log_entry.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Logging.V2.Model.LogEntry do
2121
2222
## Attributes
2323
24+
* `apphub` (*type:* `GoogleApi.Logging.V2.Model.AppHub.t`, *default:* `nil`) - Output only. AppHub application metadata associated with this LogEntry. May be empty if there is no associated AppHub application or multiple associated applications (such as for VPC flow logs)
2425
* `errorGroups` (*type:* `list(GoogleApi.Logging.V2.Model.LogErrorGroup.t)`, *default:* `nil`) - Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn't available during log routing (https://cloud.google.com/logging/docs/routing/overview)
2526
* `httpRequest` (*type:* `GoogleApi.Logging.V2.Model.HttpRequest.t`, *default:* `nil`) - Optional. Information about the HTTP request associated with this log entry, if applicable.
2627
* `insertId` (*type:* `String.t`, *default:* `nil`) - Optional. A unique identifier for the log entry. If you provide a value, then Logging considers other log entries in the same project, with the same timestamp, and with the same insert_id to be duplicates which are removed in a single query result. However, there are no guarantees of de-duplication in the export of logs.If the insert_id is omitted when writing a log entry, the Logging API assigns its own unique identifier in this field.In queries, the insert_id is also used to order log entries that have the same log_name and timestamp values.
@@ -45,6 +46,7 @@ defmodule GoogleApi.Logging.V2.Model.LogEntry do
4546
use GoogleApi.Gax.ModelBase
4647

4748
@type t :: %__MODULE__{
49+
:apphub => GoogleApi.Logging.V2.Model.AppHub.t() | nil,
4850
:errorGroups => list(GoogleApi.Logging.V2.Model.LogErrorGroup.t()) | nil,
4951
:httpRequest => GoogleApi.Logging.V2.Model.HttpRequest.t() | nil,
5052
:insertId => String.t() | nil,
@@ -66,6 +68,7 @@ defmodule GoogleApi.Logging.V2.Model.LogEntry do
6668
:traceSampled => boolean() | nil
6769
}
6870

71+
field(:apphub, as: GoogleApi.Logging.V2.Model.AppHub)
6972
field(:errorGroups, as: GoogleApi.Logging.V2.Model.LogErrorGroup, type: :list)
7073
field(:httpRequest, as: GoogleApi.Logging.V2.Model.HttpRequest)
7174
field(:insertId)

0 commit comments

Comments
 (0)