Skip to content

Commit 5a7fa6a

Browse files
feat: Automated regeneration of SecurityCenter client (#13264)
Auto-created at 2025-03-29 13:16:47 +0000 using the toys pull request generator.
1 parent c652804 commit 5a7fa6a

File tree

5 files changed

+109
-1
lines changed

5 files changed

+109
-1
lines changed

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

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

23-
@discovery_revision "20250315"
23+
@discovery_revision "20250326"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.SecurityCenter.V1.Model.AffectedResources do
19+
@moduledoc """
20+
Details about resources affected by this finding.
21+
22+
## Attributes
23+
24+
* `count` (*type:* `String.t`, *default:* `nil`) - The count of resources affected by the finding.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:count => String.t() | nil
31+
}
32+
33+
field(:count)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.AffectedResources do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.AffectedResources.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.AffectedResources do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/security_center/lib/google_api/security_center/v1/model/finding.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
5050
* `application` (*type:* `GoogleApi.SecurityCenter.V1.Model.Application.t`, *default:* `nil`) - Represents an application associated with the finding.
5151
* `files` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.File.t)`, *default:* `nil`) - File associated with the finding.
5252
* `iamBindings` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.IamBinding.t)`, *default:* `nil`) - Represents IAM bindings associated with the finding.
53+
* `affectedResources` (*type:* `GoogleApi.SecurityCenter.V1.Model.AffectedResources.t`, *default:* `nil`) - AffectedResources associated with the finding.
5354
* `containers` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Container.t)`, *default:* `nil`) - Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.
5455
* `externalUri` (*type:* `String.t`, *default:* `nil`) - The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
5556
* `securityMarks` (*type:* `GoogleApi.SecurityCenter.V1.Model.SecurityMarks.t`, *default:* `nil`) - Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
@@ -115,6 +116,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
115116
:application => GoogleApi.SecurityCenter.V1.Model.Application.t() | nil,
116117
:files => list(GoogleApi.SecurityCenter.V1.Model.File.t()) | nil,
117118
:iamBindings => list(GoogleApi.SecurityCenter.V1.Model.IamBinding.t()) | nil,
119+
:affectedResources => GoogleApi.SecurityCenter.V1.Model.AffectedResources.t() | nil,
118120
:containers => list(GoogleApi.SecurityCenter.V1.Model.Container.t()) | nil,
119121
:externalUri => String.t() | nil,
120122
:securityMarks => GoogleApi.SecurityCenter.V1.Model.SecurityMarks.t() | nil,
@@ -186,6 +188,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
186188
field(:application, as: GoogleApi.SecurityCenter.V1.Model.Application)
187189
field(:files, as: GoogleApi.SecurityCenter.V1.Model.File, type: :list)
188190
field(:iamBindings, as: GoogleApi.SecurityCenter.V1.Model.IamBinding, type: :list)
191+
field(:affectedResources, as: GoogleApi.SecurityCenter.V1.Model.AffectedResources)
189192
field(:containers, as: GoogleApi.SecurityCenter.V1.Model.Container, type: :list)
190193
field(:externalUri)
191194
field(:securityMarks, as: GoogleApi.SecurityCenter.V1.Model.SecurityMarks)
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.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources do
19+
@moduledoc """
20+
Details about resources affected by this finding.
21+
22+
## Attributes
23+
24+
* `count` (*type:* `String.t`, *default:* `nil`) - The count of resources affected by the finding.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:count => String.t() | nil
31+
}
32+
33+
field(:count)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources do
38+
def decode(value, options) do
39+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_finding.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
5050
* `application` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Application.t`, *default:* `nil`) - Represents an application associated with the finding.
5151
* `files` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2File.t)`, *default:* `nil`) - File associated with the finding.
5252
* `iamBindings` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IamBinding.t)`, *default:* `nil`) - Represents IAM bindings associated with the finding.
53+
* `affectedResources` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources.t`, *default:* `nil`) - AffectedResources associated with the finding.
5354
* `containers` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Container.t)`, *default:* `nil`) - Containers associated with the finding. This field provides information for both Kubernetes and non-Kubernetes containers.
5455
* `externalUri` (*type:* `String.t`, *default:* `nil`) - The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
5556
* `securityMarks` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2SecurityMarks.t`, *default:* `nil`) - Output only. User specified security marks. These marks are entirely managed by the user and come from the SecurityMarks resource that belongs to the finding.
@@ -143,6 +144,9 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
143144
:iamBindings =>
144145
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IamBinding.t())
145146
| nil,
147+
:affectedResources =>
148+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources.t()
149+
| nil,
146150
:containers =>
147151
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Container.t()) | nil,
148152
:externalUri => String.t() | nil,
@@ -283,6 +287,10 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
283287
type: :list
284288
)
285289

290+
field(:affectedResources,
291+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2AffectedResources
292+
)
293+
286294
field(:containers,
287295
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Container,
288296
type: :list

0 commit comments

Comments
 (0)