Skip to content

Commit 89aee59

Browse files
feat: Automated regeneration of SecurityCenter client (googleapis#13196)
Auto-created at 2025-03-20 13:14:50 +0000 using the toys pull request generator.
1 parent 2867c16 commit 89aee59

File tree

5 files changed

+102
-1
lines changed

5 files changed

+102
-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 "20250308"
23+
@discovery_revision "20250315"
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.Chokepoint do
19+
@moduledoc """
20+
Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
21+
22+
## Attributes
23+
24+
* `relatedFindings` (*type:* `list(String.t)`, *default:* `nil`) - List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:relatedFindings => list(String.t()) | nil
31+
}
32+
33+
field(:relatedFindings, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Chokepoint do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.Chokepoint.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Chokepoint 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
@@ -26,6 +26,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
2626
* `groupMemberships` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GroupMembership.t)`, *default:* `nil`) - Contains details about groups of which this finding is a member. A group is a collection of findings that are related in some way. This field cannot be updated. Its value is ignored in all update requests.
2727
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the finding was created in Security Command Center.
2828
* `state` (*type:* `String.t`, *default:* `nil`) - The state of the finding.
29+
* `chokepoint` (*type:* `GoogleApi.SecurityCenter.V1.Model.Chokepoint.t`, *default:* `nil`) - Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). This field cannot be updated. Its value is ignored in all update requests.
2930
* `orgPolicies` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.OrgPolicy.t)`, *default:* `nil`) - Contains information about the org policies associated with the finding.
3031
* `database` (*type:* `GoogleApi.SecurityCenter.V1.Model.Database.t`, *default:* `nil`) - Database associated with the finding.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".
@@ -88,6 +89,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
8889
:groupMemberships => list(GoogleApi.SecurityCenter.V1.Model.GroupMembership.t()) | nil,
8990
:createTime => DateTime.t() | nil,
9091
:state => String.t() | nil,
92+
:chokepoint => GoogleApi.SecurityCenter.V1.Model.Chokepoint.t() | nil,
9193
:orgPolicies => list(GoogleApi.SecurityCenter.V1.Model.OrgPolicy.t()) | nil,
9294
:database => GoogleApi.SecurityCenter.V1.Model.Database.t() | nil,
9395
:name => String.t() | nil,
@@ -155,6 +157,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
155157
field(:groupMemberships, as: GoogleApi.SecurityCenter.V1.Model.GroupMembership, type: :list)
156158
field(:createTime, as: DateTime)
157159
field(:state)
160+
field(:chokepoint, as: GoogleApi.SecurityCenter.V1.Model.Chokepoint)
158161
field(:orgPolicies, as: GoogleApi.SecurityCenter.V1.Model.OrgPolicy, type: :list)
159162
field(:database, as: GoogleApi.SecurityCenter.V1.Model.Database)
160163
field(:name)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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.GoogleCloudSecuritycenterV2Chokepoint do
19+
@moduledoc """
20+
Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
21+
22+
## Attributes
23+
24+
* `relatedFindings` (*type:* `list(String.t)`, *default:* `nil`) - List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:relatedFindings => list(String.t()) | nil
31+
}
32+
33+
field(:relatedFindings, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint do
38+
def decode(value, options) do
39+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint.decode(value, options)
40+
end
41+
end
42+
43+
defimpl Poison.Encoder,
44+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint do
45+
def encode(value, options) do
46+
GoogleApi.Gax.ModelBase.encode(value, options)
47+
end
48+
end

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
2626
* `groupMemberships` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2GroupMembership.t)`, *default:* `nil`) - Contains details about groups of which this finding is a member. A group is a collection of findings that are related in some way. This field cannot be updated. Its value is ignored in all update requests.
2727
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time at which the finding was created in Security Command Center.
2828
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the finding.
29+
* `chokepoint` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint.t`, *default:* `nil`) - Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations). This field cannot be updated. Its value is ignored in all update requests.
2930
* `orgPolicies` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2OrgPolicy.t)`, *default:* `nil`) - Contains information about the org policies associated with the finding.
3031
* `database` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Database.t`, *default:* `nil`) - Database associated with the finding.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - The [relative resource name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) of the finding. The following list shows some examples: + `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}` + `organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/findings/{finding_id}` + `folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/findings/{finding_id}` + `projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}`
@@ -91,6 +92,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
9192
| nil,
9293
:createTime => DateTime.t() | nil,
9394
:state => String.t() | nil,
95+
:chokepoint =>
96+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint.t() | nil,
9497
:orgPolicies =>
9598
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2OrgPolicy.t()) | nil,
9699
:database =>
@@ -213,6 +216,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
213216

214217
field(:createTime, as: DateTime)
215218
field(:state)
219+
field(:chokepoint, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Chokepoint)
216220

217221
field(:orgPolicies,
218222
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2OrgPolicy,

0 commit comments

Comments
 (0)