Skip to content

Commit

Permalink
feat: add access field in the v1 finding proto (#279)
Browse files Browse the repository at this point in the history
- [x] Regenerate this pull request now.

chore: use gapic-generator-python 0.62.1

docs: added more clarification around what event_time means on a v1 finding

fix: resolve DuplicateCredentialArgs error when using credentials_file

committer: parthea
PiperOrigin-RevId: 425964861

Source-Link: googleapis/googleapis@84b1a5a

Source-Link: googleapis/googleapis-gen@4fb761b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 8, 2022
1 parent 46eb8ee commit 255208e
Show file tree
Hide file tree
Showing 22 changed files with 497 additions and 168 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
SecurityCenterAsyncClient,
)

from google.cloud.securitycenter_v1.types.access import Access
from google.cloud.securitycenter_v1.types.access import Geolocation
from google.cloud.securitycenter_v1.types.asset import Asset
from google.cloud.securitycenter_v1.types.external_system import ExternalSystem
from google.cloud.securitycenter_v1.types.finding import Finding
Expand Down Expand Up @@ -153,6 +155,8 @@
__all__ = (
"SecurityCenterClient",
"SecurityCenterAsyncClient",
"Access",
"Geolocation",
"Asset",
"ExternalSystem",
"Finding",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from .services.security_center import SecurityCenterClient
from .services.security_center import SecurityCenterAsyncClient

from .types.access import Access
from .types.access import Geolocation
from .types.asset import Asset
from .types.external_system import ExternalSystem
from .types.finding import Finding
Expand Down Expand Up @@ -74,6 +76,7 @@

__all__ = (
"SecurityCenterAsyncClient",
"Access",
"Asset",
"BulkMuteFindingsRequest",
"BulkMuteFindingsResponse",
Expand All @@ -88,6 +91,7 @@
"ExternalSystem",
"Finding",
"Folder",
"Geolocation",
"GetMuteConfigRequest",
"GetNotificationConfigRequest",
"GetOrganizationSettingsRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.securitycenter_v1.services.security_center import pagers
from google.cloud.securitycenter_v1.types import access
from google.cloud.securitycenter_v1.types import external_system as gcs_external_system
from google.cloud.securitycenter_v1.types import finding
from google.cloud.securitycenter_v1.types import finding as gcs_finding
Expand Down Expand Up @@ -307,7 +308,7 @@ async def bulk_mute_findings(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -399,7 +400,7 @@ async def create_source(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent, source])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -501,7 +502,7 @@ async def create_finding(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent, finding_id, finding])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -598,7 +599,7 @@ async def create_mute_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent, mute_config, mute_config_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -701,7 +702,7 @@ async def create_notification_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent, config_id, notification_config])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -772,7 +773,7 @@ async def delete_mute_config(
sent along with the request as metadata.
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -839,7 +840,7 @@ async def delete_notification_config(
sent along with the request as metadata.
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -965,7 +966,7 @@ async def get_iam_policy(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([resource])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1050,7 +1051,7 @@ async def get_mute_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1128,7 +1129,7 @@ async def get_notification_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1213,7 +1214,7 @@ async def get_organization_settings(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1299,7 +1300,7 @@ async def get_source(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1487,7 +1488,7 @@ async def group_findings(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent, group_by])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1719,7 +1720,7 @@ async def list_mute_configs(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1802,7 +1803,7 @@ async def list_notification_configs(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1892,7 +1893,7 @@ async def list_sources(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1988,7 +1989,7 @@ async def run_asset_discovery(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([parent])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2093,7 +2094,7 @@ async def set_finding_state(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name, state, start_time])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2188,7 +2189,7 @@ async def set_mute(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([name, mute])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2317,7 +2318,7 @@ async def set_iam_policy(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([resource])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2399,7 +2400,7 @@ async def test_iam_permissions(
Response message for TestIamPermissions method.
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([resource, permissions])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2492,7 +2493,7 @@ async def update_external_system(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([external_system, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2580,7 +2581,7 @@ async def update_finding(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([finding])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2663,7 +2664,7 @@ async def update_mute_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([mute_config, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2755,7 +2756,7 @@ async def update_notification_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([notification_config, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2833,7 +2834,7 @@ async def update_organization_settings(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([organization_settings])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2910,7 +2911,7 @@ async def update_source(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([source])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2989,7 +2990,7 @@ async def update_security_marks(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([security_marks])
if request is not None and has_flattened_params:
Expand Down
Loading

0 comments on commit 255208e

Please sign in to comment.