-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [google-cloud-securitycenter] added more information about DDoS…
… attack in cloud armor proto (#13527) BEGIN_COMMIT_OVERRIDE feat: added more information about DDoS attack in cloud armor proto feat: added data access event fields to finding proto docs: Clarified comments for tag_values field in resource_value_config to make it clear that field represents tag value ids, not tag values END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: added data access event fields to finding proto docs: Clarified comments for tag_values field in resource_value_config to make it clear that field represents tag value ids, not tag values PiperOrigin-RevId: 726529258 Source-Link: googleapis/googleapis@f2ce5f2 Source-Link: googleapis/googleapis-gen@853c69d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiI4NTNjNjlkMDQ1NjZmNDljNDE3MGMzYzViNmI1ZWQzZjMwNzVjNDk0In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
770cf0f
commit 7fb3f49
Showing
17 changed files
with
541 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
...ges/google-cloud-securitycenter/google/cloud/securitycenter_v2/types/data_access_event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
from __future__ import annotations | ||
|
||
from typing import MutableMapping, MutableSequence | ||
|
||
from google.protobuf import timestamp_pb2 # type: ignore | ||
import proto # type: ignore | ||
|
||
__protobuf__ = proto.module( | ||
package="google.cloud.securitycenter.v2", | ||
manifest={ | ||
"DataAccessEvent", | ||
}, | ||
) | ||
|
||
|
||
class DataAccessEvent(proto.Message): | ||
r"""Details about a data access attempt made by a principal not | ||
authorized under applicable data security policy. | ||
Attributes: | ||
event_id (str): | ||
Unique identifier for data access event. | ||
principal_email (str): | ||
The email address of the principal that | ||
accessed the data. The principal could be a user | ||
account, service account, Google group, or | ||
other. | ||
operation (google.cloud.securitycenter_v2.types.DataAccessEvent.Operation): | ||
The operation performed by the principal to | ||
access the data. | ||
event_time (google.protobuf.timestamp_pb2.Timestamp): | ||
Timestamp of data access event. | ||
""" | ||
|
||
class Operation(proto.Enum): | ||
r"""The operation of a data access event. | ||
Values: | ||
OPERATION_UNSPECIFIED (0): | ||
The operation is unspecified. | ||
READ (1): | ||
Represents a read operation. | ||
MOVE (2): | ||
Represents a move operation. | ||
COPY (3): | ||
Represents a copy operation. | ||
""" | ||
OPERATION_UNSPECIFIED = 0 | ||
READ = 1 | ||
MOVE = 2 | ||
COPY = 3 | ||
|
||
event_id: str = proto.Field( | ||
proto.STRING, | ||
number=1, | ||
) | ||
principal_email: str = proto.Field( | ||
proto.STRING, | ||
number=2, | ||
) | ||
operation: Operation = proto.Field( | ||
proto.ENUM, | ||
number=3, | ||
enum=Operation, | ||
) | ||
event_time: timestamp_pb2.Timestamp = proto.Field( | ||
proto.MESSAGE, | ||
number=4, | ||
message=timestamp_pb2.Timestamp, | ||
) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
96 changes: 96 additions & 0 deletions
96
packages/google-cloud-securitycenter/google/cloud/securitycenter_v2/types/data_flow_event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
from __future__ import annotations | ||
|
||
from typing import MutableMapping, MutableSequence | ||
|
||
from google.protobuf import timestamp_pb2 # type: ignore | ||
import proto # type: ignore | ||
|
||
__protobuf__ = proto.module( | ||
package="google.cloud.securitycenter.v2", | ||
manifest={ | ||
"DataFlowEvent", | ||
}, | ||
) | ||
|
||
|
||
class DataFlowEvent(proto.Message): | ||
r"""Details about a data flow event, in which either the data is | ||
moved to or is accessed from a non-compliant geo-location, as | ||
defined in the applicable data security policy. | ||
Attributes: | ||
event_id (str): | ||
Unique identifier for data flow event. | ||
principal_email (str): | ||
The email address of the principal that | ||
initiated the data flow event. The principal | ||
could be a user account, service account, Google | ||
group, or other. | ||
operation (google.cloud.securitycenter_v2.types.DataFlowEvent.Operation): | ||
The operation performed by the principal for | ||
the data flow event. | ||
violated_location (str): | ||
Non-compliant location of the principal or | ||
the data destination. | ||
event_time (google.protobuf.timestamp_pb2.Timestamp): | ||
Timestamp of data flow event. | ||
""" | ||
|
||
class Operation(proto.Enum): | ||
r"""The operation of a data flow event. | ||
Values: | ||
OPERATION_UNSPECIFIED (0): | ||
The operation is unspecified. | ||
READ (1): | ||
Represents a read operation. | ||
MOVE (2): | ||
Represents a move operation. | ||
COPY (3): | ||
Represents a copy operation. | ||
""" | ||
OPERATION_UNSPECIFIED = 0 | ||
READ = 1 | ||
MOVE = 2 | ||
COPY = 3 | ||
|
||
event_id: str = proto.Field( | ||
proto.STRING, | ||
number=1, | ||
) | ||
principal_email: str = proto.Field( | ||
proto.STRING, | ||
number=2, | ||
) | ||
operation: Operation = proto.Field( | ||
proto.ENUM, | ||
number=3, | ||
enum=Operation, | ||
) | ||
violated_location: str = proto.Field( | ||
proto.STRING, | ||
number=4, | ||
) | ||
event_time: timestamp_pb2.Timestamp = proto.Field( | ||
proto.MESSAGE, | ||
number=5, | ||
message=timestamp_pb2.Timestamp, | ||
) | ||
|
||
|
||
__all__ = tuple(sorted(__protobuf__.manifest)) |
Oops, something went wrong.