Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/google-cloud-securitycenter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ In order to use this library, you first need to go through the following steps:
1. `Select or create a Cloud Platform project.`_
2. `Enable billing for your project.`_
3. `Enable the Google Cloud Security Command Center.`_
4. `Setup Authentication.`_
4. `Set up Authentication.`_

.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
.. _Enable the Google Cloud Security Command Center.: https://cloud.google.com/security-command-center
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html

Installation
~~~~~~~~~~~~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
from .types.connection import Connection
from .types.contact_details import Contact, ContactDetails
from .types.container import Container
from .types.data_access_event import DataAccessEvent
from .types.data_flow_event import DataFlowEvent
from .types.data_retention_deletion_event import DataRetentionDeletionEvent
from .types.database import Database
from .types.disk import Disk
from .types.exfiltration import ExfilResource, Exfiltration
from .types.external_system import ExternalSystem
from .types.file import File
Expand Down Expand Up @@ -169,11 +173,15 @@
"CreateSourceRequest",
"Cve",
"Cvssv3",
"DataAccessEvent",
"DataFlowEvent",
"DataRetentionDeletionEvent",
"Database",
"DeleteBigQueryExportRequest",
"DeleteMuteConfigRequest",
"DeleteNotificationConfigRequest",
"DeleteResourceValueConfigRequest",
"Disk",
"EnvironmentVariable",
"ExfilResource",
"Exfiltration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
compliance,
connection,
container,
data_access_event,
data_flow_event,
data_retention_deletion_event,
database,
disk,
exfiltration,
)
from google.cloud.securitycenter_v2.types import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@
compliance,
connection,
container,
data_access_event,
data_flow_event,
data_retention_deletion_event,
database,
disk,
exfiltration,
)
from google.cloud.securitycenter_v2.types import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,10 @@ def _get_http_options():
"method": "get",
"uri": "/v2/{parent=organizations/*/simulations/*}/attackPaths",
},
{
"method": "get",
"uri": "/v2/{parent=organizations/*}/attackPaths",
},
{
"method": "get",
"uri": "/v2/{parent=organizations/*/simulations/*/valuedResources/*}/attackPaths",
Expand Down Expand Up @@ -1794,6 +1798,10 @@ def _get_http_options():
"method": "get",
"uri": "/v2/{parent=organizations/*/simulations/*/attackExposureResults/*}/valuedResources",
},
{
"method": "get",
"uri": "/v2/{parent=organizations/*}/valuedResources",
},
]
return http_options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
from .connection import Connection
from .contact_details import Contact, ContactDetails
from .container import Container
from .data_access_event import DataAccessEvent
from .data_flow_event import DataFlowEvent
from .data_retention_deletion_event import DataRetentionDeletionEvent
from .database import Database
from .disk import Disk
from .exfiltration import ExfilResource, Exfiltration
from .external_system import ExternalSystem
from .file import File
Expand Down Expand Up @@ -150,7 +154,11 @@
"Contact",
"ContactDetails",
"Container",
"DataAccessEvent",
"DataFlowEvent",
"DataRetentionDeletionEvent",
"Database",
"Disk",
"ExfilResource",
"Exfiltration",
"ExternalSystem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,35 @@ class Attack(proto.Message):
r"""Information about DDoS attack volume and classification.

Attributes:
volume_pps (int):
volume_pps_long (int):
Total PPS (packets per second) volume of
attack.
volume_bps (int):
volume_bps_long (int):
Total BPS (bytes per second) volume of
attack.
classification (str):
Type of attack, for example, 'SYN-flood',
'NTP-udp', or 'CHARGEN-udp'.
volume_pps (int):
Total PPS (packets per second) volume of attack. Deprecated
- refer to volume_pps_long instead.
volume_bps (int):
Total BPS (bytes per second) volume of attack. Deprecated -
refer to volume_bps_long instead.
"""

volume_pps_long: int = proto.Field(
proto.INT64,
number=4,
)
volume_bps_long: int = proto.Field(
proto.INT64,
number=5,
)
classification: str = proto.Field(
proto.STRING,
number=3,
)
volume_pps: int = proto.Field(
proto.INT32,
number=1,
Expand All @@ -206,10 +224,6 @@ class Attack(proto.Message):
proto.INT32,
number=2,
)
classification: str = proto.Field(
proto.STRING,
number=3,
)


__all__ = tuple(sorted(__protobuf__.manifest))
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))
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))
Loading