Skip to content

Commit 62bb44c

Browse files
feat: [google-cloud-securitycenter] Add AffectedResources proto (#14049)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Add AiModel proto feat: Add ChokePoint proto feat: Add IpRules proto feat: Add Job proto feat: Add Network proto feat: Add AffectedResources proto END_COMMIT_OVERRIDE PiperOrigin-RevId: 777661751 Source-Link: googleapis/googleapis@6e014b5 Source-Link: googleapis/googleapis-gen@0654d2a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiIwNjU0ZDJhZjMzMjc0NjY4NmJkYzNjOTQzM2RmZDMwNWVkZGVlNzA2In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8bd8937 commit 62bb44c

File tree

22 files changed

+1284
-14
lines changed

22 files changed

+1284
-14
lines changed

packages/google-cloud-securitycenter/google/cloud/securitycenter_v2/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020

2121
from .services.security_center import SecurityCenterAsyncClient, SecurityCenterClient
2222
from .types.access import Access, Geolocation, ServiceAccountDelegationInfo
23+
from .types.affected_resources import AffectedResources
24+
from .types.ai_model import AiModel
2325
from .types.application import Application
2426
from .types.attack_exposure import AttackExposure
2527
from .types.attack_path import AttackPath
2628
from .types.backup_disaster_recovery import BackupDisasterRecovery
2729
from .types.bigquery_export import BigQueryExport
30+
from .types.chokepoint import Chokepoint
2831
from .types.cloud_armor import (
2932
AdaptiveProtection,
3033
Attack,
@@ -51,13 +54,16 @@
5154
from .types.group_membership import GroupMembership
5255
from .types.iam_binding import IamBinding
5356
from .types.indicator import Indicator
57+
from .types.ip_rules import Allowed, Denied, IpRule, IpRules
58+
from .types.job import Job, JobState
5459
from .types.kernel_rootkit import KernelRootkit
5560
from .types.kubernetes import Kubernetes
5661
from .types.label import Label
5762
from .types.load_balancer import LoadBalancer
5863
from .types.log_entry import CloudLoggingEntry, LogEntry
5964
from .types.mitre_attack import MitreAttack
6065
from .types.mute_config import MuteConfig
66+
from .types.network import Network
6167
from .types.notebook import Notebook
6268
from .types.notification_config import NotificationConfig
6369
from .types.notification_message import NotificationMessage
@@ -77,6 +83,7 @@
7783
from .types.securitycenter_service import (
7884
BatchCreateResourceValueConfigsRequest,
7985
BatchCreateResourceValueConfigsResponse,
86+
BigQueryDestination,
8087
BulkMuteFindingsRequest,
8188
BulkMuteFindingsResponse,
8289
CreateBigQueryExportRequest,
@@ -89,6 +96,8 @@
8996
DeleteMuteConfigRequest,
9097
DeleteNotificationConfigRequest,
9198
DeleteResourceValueConfigRequest,
99+
ExportFindingsMetadata,
100+
ExportFindingsResponse,
92101
GetBigQueryExportRequest,
93102
GetMuteConfigRequest,
94103
GetNotificationConfigRequest,
@@ -130,9 +139,11 @@
130139
from .types.source import Source
131140
from .types.toxic_combination import ToxicCombination
132141
from .types.valued_resource import ResourceValueConfigMetadata, ValuedResource
142+
from .types.vertex_ai import VertexAi
133143
from .types.vulnerability import (
134144
Cve,
135145
Cvssv3,
146+
Cwe,
136147
Package,
137148
Reference,
138149
SecurityBulletin,
@@ -143,6 +154,9 @@
143154
"SecurityCenterAsyncClient",
144155
"Access",
145156
"AdaptiveProtection",
157+
"AffectedResources",
158+
"AiModel",
159+
"Allowed",
146160
"Application",
147161
"Attack",
148162
"AttackExposure",
@@ -152,9 +166,11 @@
152166
"BackupDisasterRecovery",
153167
"BatchCreateResourceValueConfigsRequest",
154168
"BatchCreateResourceValueConfigsResponse",
169+
"BigQueryDestination",
155170
"BigQueryExport",
156171
"BulkMuteFindingsRequest",
157172
"BulkMuteFindingsResponse",
173+
"Chokepoint",
158174
"CloudArmor",
159175
"CloudDlpDataProfile",
160176
"CloudDlpInspection",
@@ -173,6 +189,7 @@
173189
"CreateSourceRequest",
174190
"Cve",
175191
"Cvssv3",
192+
"Cwe",
176193
"DataAccessEvent",
177194
"DataFlowEvent",
178195
"DataRetentionDeletionEvent",
@@ -181,10 +198,13 @@
181198
"DeleteMuteConfigRequest",
182199
"DeleteNotificationConfigRequest",
183200
"DeleteResourceValueConfigRequest",
201+
"Denied",
184202
"Disk",
185203
"EnvironmentVariable",
186204
"ExfilResource",
187205
"Exfiltration",
206+
"ExportFindingsMetadata",
207+
"ExportFindingsResponse",
188208
"ExternalSystem",
189209
"File",
190210
"Finding",
@@ -204,6 +224,10 @@
204224
"GroupResult",
205225
"IamBinding",
206226
"Indicator",
227+
"IpRule",
228+
"IpRules",
229+
"Job",
230+
"JobState",
207231
"KernelRootkit",
208232
"Kubernetes",
209233
"Label",
@@ -227,6 +251,7 @@
227251
"LogEntry",
228252
"MitreAttack",
229253
"MuteConfig",
254+
"Network",
230255
"Notebook",
231256
"NotificationConfig",
232257
"NotificationMessage",
@@ -260,5 +285,6 @@
260285
"UpdateSecurityMarksRequest",
261286
"UpdateSourceRequest",
262287
"ValuedResource",
288+
"VertexAi",
263289
"Vulnerability",
264290
)

packages/google-cloud-securitycenter/google/cloud/securitycenter_v2/services/security_center/async_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,14 @@
5656
from google.cloud.securitycenter_v2.services.security_center import pagers
5757
from google.cloud.securitycenter_v2.types import (
5858
access,
59+
affected_resources,
60+
ai_model,
5961
application,
6062
attack_exposure,
6163
attack_path,
6264
backup_disaster_recovery,
6365
bigquery_export,
66+
chokepoint,
6467
cloud_armor,
6568
cloud_dlp_data_profile,
6669
cloud_dlp_inspection,
@@ -78,6 +81,8 @@
7881
group_membership,
7982
iam_binding,
8083
indicator,
84+
ip_rules,
85+
job,
8186
kernel_rootkit,
8287
kubernetes,
8388
load_balancer,
@@ -92,6 +97,7 @@
9297
from google.cloud.securitycenter_v2.types import (
9398
toxic_combination,
9499
valued_resource,
100+
vertex_ai,
95101
vulnerability,
96102
)
97103
from google.cloud.securitycenter_v2.types import external_system as gcs_external_system
@@ -107,7 +113,7 @@
107113
from google.cloud.securitycenter_v2.types import finding as gcs_finding
108114
from google.cloud.securitycenter_v2.types import mute_config
109115
from google.cloud.securitycenter_v2.types import mute_config as gcs_mute_config
110-
from google.cloud.securitycenter_v2.types import notebook
116+
from google.cloud.securitycenter_v2.types import network, notebook
111117
from google.cloud.securitycenter_v2.types import notification_config
112118
from google.cloud.securitycenter_v2.types import org_policy, process, resource
113119
from google.cloud.securitycenter_v2.types import resource_value_config

packages/google-cloud-securitycenter/google/cloud/securitycenter_v2/services/security_center/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,14 @@
7373
from google.cloud.securitycenter_v2.services.security_center import pagers
7474
from google.cloud.securitycenter_v2.types import (
7575
access,
76+
affected_resources,
77+
ai_model,
7678
application,
7779
attack_exposure,
7880
attack_path,
7981
backup_disaster_recovery,
8082
bigquery_export,
83+
chokepoint,
8184
cloud_armor,
8285
cloud_dlp_data_profile,
8386
cloud_dlp_inspection,
@@ -95,6 +98,8 @@
9598
group_membership,
9699
iam_binding,
97100
indicator,
101+
ip_rules,
102+
job,
98103
kernel_rootkit,
99104
kubernetes,
100105
load_balancer,
@@ -109,6 +114,7 @@
109114
from google.cloud.securitycenter_v2.types import (
110115
toxic_combination,
111116
valued_resource,
117+
vertex_ai,
112118
vulnerability,
113119
)
114120
from google.cloud.securitycenter_v2.types import external_system as gcs_external_system
@@ -124,7 +130,7 @@
124130
from google.cloud.securitycenter_v2.types import finding as gcs_finding
125131
from google.cloud.securitycenter_v2.types import mute_config
126132
from google.cloud.securitycenter_v2.types import mute_config as gcs_mute_config
127-
from google.cloud.securitycenter_v2.types import notebook
133+
from google.cloud.securitycenter_v2.types import network, notebook
128134
from google.cloud.securitycenter_v2.types import notification_config
129135
from google.cloud.securitycenter_v2.types import org_policy, process, resource
130136
from google.cloud.securitycenter_v2.types import resource_value_config

packages/google-cloud-securitycenter/google/cloud/securitycenter_v2/types/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
# limitations under the License.
1515
#
1616
from .access import Access, Geolocation, ServiceAccountDelegationInfo
17+
from .affected_resources import AffectedResources
18+
from .ai_model import AiModel
1719
from .application import Application
1820
from .attack_exposure import AttackExposure
1921
from .attack_path import AttackPath
2022
from .backup_disaster_recovery import BackupDisasterRecovery
2123
from .bigquery_export import BigQueryExport
24+
from .chokepoint import Chokepoint
2225
from .cloud_armor import (
2326
AdaptiveProtection,
2427
Attack,
@@ -45,13 +48,16 @@
4548
from .group_membership import GroupMembership
4649
from .iam_binding import IamBinding
4750
from .indicator import Indicator
51+
from .ip_rules import Allowed, Denied, IpRule, IpRules
52+
from .job import Job, JobState
4853
from .kernel_rootkit import KernelRootkit
4954
from .kubernetes import Kubernetes
5055
from .label import Label
5156
from .load_balancer import LoadBalancer
5257
from .log_entry import CloudLoggingEntry, LogEntry
5358
from .mitre_attack import MitreAttack
5459
from .mute_config import MuteConfig
60+
from .network import Network
5561
from .notebook import Notebook
5662
from .notification_config import NotificationConfig
5763
from .notification_message import NotificationMessage
@@ -71,6 +77,7 @@
7177
from .securitycenter_service import (
7278
BatchCreateResourceValueConfigsRequest,
7379
BatchCreateResourceValueConfigsResponse,
80+
BigQueryDestination,
7481
BulkMuteFindingsRequest,
7582
BulkMuteFindingsResponse,
7683
CreateBigQueryExportRequest,
@@ -83,6 +90,8 @@
8390
DeleteMuteConfigRequest,
8491
DeleteNotificationConfigRequest,
8592
DeleteResourceValueConfigRequest,
93+
ExportFindingsMetadata,
94+
ExportFindingsResponse,
8695
GetBigQueryExportRequest,
8796
GetMuteConfigRequest,
8897
GetNotificationConfigRequest,
@@ -124,9 +133,11 @@
124133
from .source import Source
125134
from .toxic_combination import ToxicCombination
126135
from .valued_resource import ResourceValueConfigMetadata, ValuedResource
136+
from .vertex_ai import VertexAi
127137
from .vulnerability import (
128138
Cve,
129139
Cvssv3,
140+
Cwe,
130141
Package,
131142
Reference,
132143
SecurityBulletin,
@@ -137,11 +148,14 @@
137148
"Access",
138149
"Geolocation",
139150
"ServiceAccountDelegationInfo",
151+
"AffectedResources",
152+
"AiModel",
140153
"Application",
141154
"AttackExposure",
142155
"AttackPath",
143156
"BackupDisasterRecovery",
144157
"BigQueryExport",
158+
"Chokepoint",
145159
"AdaptiveProtection",
146160
"Attack",
147161
"CloudArmor",
@@ -168,6 +182,12 @@
168182
"GroupMembership",
169183
"IamBinding",
170184
"Indicator",
185+
"Allowed",
186+
"Denied",
187+
"IpRule",
188+
"IpRules",
189+
"Job",
190+
"JobState",
171191
"KernelRootkit",
172192
"Kubernetes",
173193
"Label",
@@ -176,6 +196,7 @@
176196
"LogEntry",
177197
"MitreAttack",
178198
"MuteConfig",
199+
"Network",
179200
"Notebook",
180201
"NotificationConfig",
181202
"NotificationMessage",
@@ -194,6 +215,7 @@
194215
"SecurityPosture",
195216
"BatchCreateResourceValueConfigsRequest",
196217
"BatchCreateResourceValueConfigsResponse",
218+
"BigQueryDestination",
197219
"BulkMuteFindingsRequest",
198220
"BulkMuteFindingsResponse",
199221
"CreateBigQueryExportRequest",
@@ -206,6 +228,8 @@
206228
"DeleteMuteConfigRequest",
207229
"DeleteNotificationConfigRequest",
208230
"DeleteResourceValueConfigRequest",
231+
"ExportFindingsMetadata",
232+
"ExportFindingsResponse",
209233
"GetBigQueryExportRequest",
210234
"GetMuteConfigRequest",
211235
"GetNotificationConfigRequest",
@@ -247,8 +271,10 @@
247271
"ToxicCombination",
248272
"ResourceValueConfigMetadata",
249273
"ValuedResource",
274+
"VertexAi",
250275
"Cve",
251276
"Cvssv3",
277+
"Cwe",
252278
"Package",
253279
"Reference",
254280
"SecurityBulletin",
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from __future__ import annotations
17+
18+
from typing import MutableMapping, MutableSequence
19+
20+
import proto # type: ignore
21+
22+
__protobuf__ = proto.module(
23+
package="google.cloud.securitycenter.v2",
24+
manifest={
25+
"AffectedResources",
26+
},
27+
)
28+
29+
30+
class AffectedResources(proto.Message):
31+
r"""Details about resources affected by this finding.
32+
33+
Attributes:
34+
count (int):
35+
The count of resources affected by the
36+
finding.
37+
"""
38+
39+
count: int = proto.Field(
40+
proto.INT64,
41+
number=1,
42+
)
43+
44+
45+
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)