Skip to content

Commit 1280168

Browse files
feat: Automated regeneration of SecurityCenter client (googleapis#13026)
Auto-created at 2025-02-23 13:11:07 +0000 using the toys pull request generator.
1 parent 72bfa62 commit 1280168

17 files changed

+747
-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 "20250207"
23+
@discovery_revision "20250218"
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.Allowed do
19+
@moduledoc """
20+
Allowed IP rule.
21+
22+
## Attributes
23+
24+
* `ipRules` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.IpRule.t)`, *default:* `nil`) - Optional. Optional list of allowed IP rules.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:ipRules => list(GoogleApi.SecurityCenter.V1.Model.IpRule.t()) | nil
31+
}
32+
33+
field(:ipRules, as: GoogleApi.SecurityCenter.V1.Model.IpRule, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Allowed do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.Allowed.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Allowed do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
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.Denied do
19+
@moduledoc """
20+
Denied IP rule.
21+
22+
## Attributes
23+
24+
* `ipRules` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.IpRule.t)`, *default:* `nil`) - Optional. Optional list of denied IP rules.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:ipRules => list(GoogleApi.SecurityCenter.V1.Model.IpRule.t()) | nil
31+
}
32+
33+
field(:ipRules, as: GoogleApi.SecurityCenter.V1.Model.IpRule, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Denied do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.Denied.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Denied 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
3131
* `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}".
3232
* `dataFlowEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.DataFlowEvent.t)`, *default:* `nil`) - Data flow events associated with the finding.
3333
* `vulnerability` (*type:* `GoogleApi.SecurityCenter.V1.Model.Vulnerability.t`, *default:* `nil`) - Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
34+
* `ipRules` (*type:* `GoogleApi.SecurityCenter.V1.Model.IpRules.t`, *default:* `nil`) - IP rules associated with the finding.
3435
* `mute` (*type:* `String.t`, *default:* `nil`) - Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.
3536
* `moduleName` (*type:* `String.t`, *default:* `nil`) - Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
3637
* `dataRetentionDeletionEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent.t)`, *default:* `nil`) - Data retention deletion events associated with the finding.
@@ -59,7 +60,9 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
5960
* `processes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Process.t)`, *default:* `nil`) - Represents operating system processes associated with the Finding.
6061
* `logEntries` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.LogEntry.t)`, *default:* `nil`) - Log entries that are relevant to the finding.
6162
* `cloudArmor` (*type:* `GoogleApi.SecurityCenter.V1.Model.CloudArmor.t`, *default:* `nil`) - Fields related to Cloud Armor findings.
63+
* `networks` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Network.t)`, *default:* `nil`) - Represents the VPC networks that the resource is attached to.
6264
* `disk` (*type:* `GoogleApi.SecurityCenter.V1.Model.Disk.t`, *default:* `nil`) - Disk associated with the finding.
65+
* `job` (*type:* `GoogleApi.SecurityCenter.V1.Model.Job.t`, *default:* `nil`) - Job associated with the finding.
6366
* `access` (*type:* `GoogleApi.SecurityCenter.V1.Model.Access.t`, *default:* `nil`) - Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
6467
* `resourceName` (*type:* `String.t`, *default:* `nil`) - For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
6568
* `mitreAttack` (*type:* `GoogleApi.SecurityCenter.V1.Model.MitreAttack.t`, *default:* `nil`) - MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
@@ -90,6 +93,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
9093
:name => String.t() | nil,
9194
:dataFlowEvents => list(GoogleApi.SecurityCenter.V1.Model.DataFlowEvent.t()) | nil,
9295
:vulnerability => GoogleApi.SecurityCenter.V1.Model.Vulnerability.t() | nil,
96+
:ipRules => GoogleApi.SecurityCenter.V1.Model.IpRules.t() | nil,
9397
:mute => String.t() | nil,
9498
:moduleName => String.t() | nil,
9599
:dataRetentionDeletionEvents =>
@@ -125,7 +129,9 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
125129
:processes => list(GoogleApi.SecurityCenter.V1.Model.Process.t()) | nil,
126130
:logEntries => list(GoogleApi.SecurityCenter.V1.Model.LogEntry.t()) | nil,
127131
:cloudArmor => GoogleApi.SecurityCenter.V1.Model.CloudArmor.t() | nil,
132+
:networks => list(GoogleApi.SecurityCenter.V1.Model.Network.t()) | nil,
128133
:disk => GoogleApi.SecurityCenter.V1.Model.Disk.t() | nil,
134+
:job => GoogleApi.SecurityCenter.V1.Model.Job.t() | nil,
129135
:access => GoogleApi.SecurityCenter.V1.Model.Access.t() | nil,
130136
:resourceName => String.t() | nil,
131137
:mitreAttack => GoogleApi.SecurityCenter.V1.Model.MitreAttack.t() | nil,
@@ -154,6 +160,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
154160
field(:name)
155161
field(:dataFlowEvents, as: GoogleApi.SecurityCenter.V1.Model.DataFlowEvent, type: :list)
156162
field(:vulnerability, as: GoogleApi.SecurityCenter.V1.Model.Vulnerability)
163+
field(:ipRules, as: GoogleApi.SecurityCenter.V1.Model.IpRules)
157164
field(:mute)
158165
field(:moduleName)
159166

@@ -192,7 +199,9 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
192199
field(:processes, as: GoogleApi.SecurityCenter.V1.Model.Process, type: :list)
193200
field(:logEntries, as: GoogleApi.SecurityCenter.V1.Model.LogEntry, type: :list)
194201
field(:cloudArmor, as: GoogleApi.SecurityCenter.V1.Model.CloudArmor)
202+
field(:networks, as: GoogleApi.SecurityCenter.V1.Model.Network, type: :list)
195203
field(:disk, as: GoogleApi.SecurityCenter.V1.Model.Disk)
204+
field(:job, as: GoogleApi.SecurityCenter.V1.Model.Job)
196205
field(:access, as: GoogleApi.SecurityCenter.V1.Model.Access)
197206
field(:resourceName)
198207
field(:mitreAttack, as: GoogleApi.SecurityCenter.V1.Model.MitreAttack)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.GoogleCloudSecuritycenterV2Allowed do
19+
@moduledoc """
20+
Allowed IP rule.
21+
22+
## Attributes
23+
24+
* `ipRules` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule.t)`, *default:* `nil`) - Optional. Optional list of allowed IP rules.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:ipRules =>
31+
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule.t()) | nil
32+
}
33+
34+
field(:ipRules,
35+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule,
36+
type: :list
37+
)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Allowed do
41+
def decode(value, options) do
42+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Allowed.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Allowed do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.GoogleCloudSecuritycenterV2Denied do
19+
@moduledoc """
20+
Denied IP rule.
21+
22+
## Attributes
23+
24+
* `ipRules` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule.t)`, *default:* `nil`) - Optional. Optional list of denied IP rules.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:ipRules =>
31+
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule.t()) | nil
32+
}
33+
34+
field(:ipRules,
35+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRule,
36+
type: :list
37+
)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Denied do
41+
def decode(value, options) do
42+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Denied.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Denied do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
3131
* `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}`
3232
* `dataFlowEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataFlowEvent.t)`, *default:* `nil`) - Data flow events associated with the finding.
3333
* `vulnerability` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerability.t`, *default:* `nil`) - Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
34+
* `ipRules` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRules.t`, *default:* `nil`) - IP rules associated with the finding.
3435
* `mute` (*type:* `String.t`, *default:* `nil`) - Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.
3536
* `moduleName` (*type:* `String.t`, *default:* `nil`) - Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
3637
* `dataRetentionDeletionEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent.t)`, *default:* `nil`) - Data retention deletion events associated with the finding.
@@ -59,7 +60,9 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
5960
* `processes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Process.t)`, *default:* `nil`) - Represents operating system processes associated with the Finding.
6061
* `logEntries` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2LogEntry.t)`, *default:* `nil`) - Log entries that are relevant to the finding.
6162
* `cloudArmor` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2CloudArmor.t`, *default:* `nil`) - Fields related to Cloud Armor findings.
63+
* `networks` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Network.t)`, *default:* `nil`) - Represents the VPC networks that the resource is attached to.
6264
* `disk` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk.t`, *default:* `nil`) - Disk associated with the finding.
65+
* `job` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Job.t`, *default:* `nil`) - Job associated with the finding.
6366
* `access` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Access.t`, *default:* `nil`) - Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
6467
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string.
6568
* `mitreAttack` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2MitreAttack.t`, *default:* `nil`) - MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
@@ -98,6 +101,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
98101
| nil,
99102
:vulnerability =>
100103
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerability.t() | nil,
104+
:ipRules =>
105+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRules.t() | nil,
101106
:mute => String.t() | nil,
102107
:moduleName => String.t() | nil,
103108
:dataRetentionDeletionEvents =>
@@ -161,7 +166,10 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
161166
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2LogEntry.t()) | nil,
162167
:cloudArmor =>
163168
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2CloudArmor.t() | nil,
169+
:networks =>
170+
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Network.t()) | nil,
164171
:disk => GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk.t() | nil,
172+
:job => GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Job.t() | nil,
165173
:access =>
166174
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Access.t() | nil,
167175
:resourceName => String.t() | nil,
@@ -223,6 +231,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
223231
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerability
224232
)
225233

234+
field(:ipRules, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IpRules)
226235
field(:mute)
227236
field(:moduleName)
228237

@@ -313,7 +322,14 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
313322
)
314323

315324
field(:cloudArmor, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2CloudArmor)
325+
326+
field(:networks,
327+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Network,
328+
type: :list
329+
)
330+
316331
field(:disk, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk)
332+
field(:job, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Job)
317333
field(:access, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Access)
318334
field(:resourceName)
319335

0 commit comments

Comments
 (0)