Skip to content
Permalink
Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#143)
feat: add canonical_name and folder fields
    Assets and findings may be created in organizations, folders or projects, however in the current API version the name field for resources will always be prefixed by "organizations/...", for historical reasons. The "canonical_name" field shows the actual location of the resource, and in requests either the name or "canonical name" can be used for the "name" in the request.
    The "folder" field contains the folders in the resource's ancestry.
    PiperOrigin-RevId: 372965035
    Source-Link: googleapis/googleapis@0a992df

feat: support self-signed JWT flow for service accounts

fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 19, 2021
1 parent 1fd53d1 commit 16a33f4
Show file tree
Hide file tree
Showing 84 changed files with 4,774 additions and 4,200 deletions.
@@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1.services.security_center.pagers
:members:
:inherited-members:
@@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1beta1.services.security_center.pagers
:members:
:inherited-members:
@@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1p1beta1.services.security_center.pagers
:members:
:inherited-members:
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,14 +14,16 @@
# limitations under the License.
#

from google.cloud.securitycenter_v1.services.security_center.async_client import (
SecurityCenterAsyncClient,
)
from google.cloud.securitycenter_v1.services.security_center.client import (
SecurityCenterClient,
)
from google.cloud.securitycenter_v1.services.security_center.async_client import (
SecurityCenterAsyncClient,
)

from google.cloud.securitycenter_v1.types.asset import Asset
from google.cloud.securitycenter_v1.types.finding import Finding
from google.cloud.securitycenter_v1.types.folder import Folder
from google.cloud.securitycenter_v1.types.notification_config import NotificationConfig
from google.cloud.securitycenter_v1.types.notification_message import (
NotificationMessage,
@@ -115,12 +116,21 @@
from google.cloud.securitycenter_v1.types.source import Source

__all__ = (
"SecurityCenterClient",
"SecurityCenterAsyncClient",
"Asset",
"Finding",
"Folder",
"NotificationConfig",
"NotificationMessage",
"OrganizationSettings",
"Resource",
"RunAssetDiscoveryResponse",
"SecurityMarks",
"CreateFindingRequest",
"CreateNotificationConfigRequest",
"CreateSourceRequest",
"DeleteNotificationConfigRequest",
"Finding",
"GetNotificationConfigRequest",
"GetOrganizationSettingsRequest",
"GetSourceRequest",
@@ -137,20 +147,12 @@
"ListNotificationConfigsResponse",
"ListSourcesRequest",
"ListSourcesResponse",
"NotificationConfig",
"NotificationMessage",
"OrganizationSettings",
"Resource",
"RunAssetDiscoveryRequest",
"RunAssetDiscoveryResponse",
"SecurityCenterAsyncClient",
"SecurityCenterClient",
"SecurityMarks",
"SetFindingStateRequest",
"Source",
"UpdateFindingRequest",
"UpdateNotificationConfigRequest",
"UpdateOrganizationSettingsRequest",
"UpdateSecurityMarksRequest",
"UpdateSourceRequest",
"Source",
)
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +15,11 @@
#

from .services.security_center import SecurityCenterClient
from .services.security_center import SecurityCenterAsyncClient

from .types.asset import Asset
from .types.finding import Finding
from .types.folder import Folder
from .types.notification_config import NotificationConfig
from .types.notification_message import NotificationMessage
from .types.organization_settings import OrganizationSettings
@@ -53,14 +55,15 @@
from .types.securitycenter_service import UpdateSourceRequest
from .types.source import Source


__all__ = (
"SecurityCenterAsyncClient",
"Asset",
"CreateFindingRequest",
"CreateNotificationConfigRequest",
"CreateSourceRequest",
"DeleteNotificationConfigRequest",
"Finding",
"Folder",
"GetNotificationConfigRequest",
"GetOrganizationSettingsRequest",
"GetSourceRequest",
@@ -83,6 +86,7 @@
"Resource",
"RunAssetDiscoveryRequest",
"RunAssetDiscoveryResponse",
"SecurityCenterClient",
"SecurityMarks",
"SetFindingStateRequest",
"Source",
@@ -91,5 +95,4 @@
"UpdateOrganizationSettingsRequest",
"UpdateSecurityMarksRequest",
"UpdateSourceRequest",
"SecurityCenterClient",
)
@@ -0,0 +1,253 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.securitycenter_v1",
"protoPackage": "google.cloud.securitycenter.v1",
"schema": "1.0",
"services": {
"SecurityCenter": {
"clients": {
"grpc": {
"libraryClient": "SecurityCenterClient",
"rpcs": {
"CreateFinding": {
"methods": [
"create_finding"
]
},
"CreateNotificationConfig": {
"methods": [
"create_notification_config"
]
},
"CreateSource": {
"methods": [
"create_source"
]
},
"DeleteNotificationConfig": {
"methods": [
"delete_notification_config"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetNotificationConfig": {
"methods": [
"get_notification_config"
]
},
"GetOrganizationSettings": {
"methods": [
"get_organization_settings"
]
},
"GetSource": {
"methods": [
"get_source"
]
},
"GroupAssets": {
"methods": [
"group_assets"
]
},
"GroupFindings": {
"methods": [
"group_findings"
]
},
"ListAssets": {
"methods": [
"list_assets"
]
},
"ListFindings": {
"methods": [
"list_findings"
]
},
"ListNotificationConfigs": {
"methods": [
"list_notification_configs"
]
},
"ListSources": {
"methods": [
"list_sources"
]
},
"RunAssetDiscovery": {
"methods": [
"run_asset_discovery"
]
},
"SetFindingState": {
"methods": [
"set_finding_state"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateFinding": {
"methods": [
"update_finding"
]
},
"UpdateNotificationConfig": {
"methods": [
"update_notification_config"
]
},
"UpdateOrganizationSettings": {
"methods": [
"update_organization_settings"
]
},
"UpdateSecurityMarks": {
"methods": [
"update_security_marks"
]
},
"UpdateSource": {
"methods": [
"update_source"
]
}
}
},
"grpc-async": {
"libraryClient": "SecurityCenterAsyncClient",
"rpcs": {
"CreateFinding": {
"methods": [
"create_finding"
]
},
"CreateNotificationConfig": {
"methods": [
"create_notification_config"
]
},
"CreateSource": {
"methods": [
"create_source"
]
},
"DeleteNotificationConfig": {
"methods": [
"delete_notification_config"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetNotificationConfig": {
"methods": [
"get_notification_config"
]
},
"GetOrganizationSettings": {
"methods": [
"get_organization_settings"
]
},
"GetSource": {
"methods": [
"get_source"
]
},
"GroupAssets": {
"methods": [
"group_assets"
]
},
"GroupFindings": {
"methods": [
"group_findings"
]
},
"ListAssets": {
"methods": [
"list_assets"
]
},
"ListFindings": {
"methods": [
"list_findings"
]
},
"ListNotificationConfigs": {
"methods": [
"list_notification_configs"
]
},
"ListSources": {
"methods": [
"list_sources"
]
},
"RunAssetDiscovery": {
"methods": [
"run_asset_discovery"
]
},
"SetFindingState": {
"methods": [
"set_finding_state"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateFinding": {
"methods": [
"update_finding"
]
},
"UpdateNotificationConfig": {
"methods": [
"update_notification_config"
]
},
"UpdateOrganizationSettings": {
"methods": [
"update_organization_settings"
]
},
"UpdateSecurityMarks": {
"methods": [
"update_security_marks"
]
},
"UpdateSource": {
"methods": [
"update_source"
]
}
}
}
}
}
}
}

0 comments on commit 16a33f4

Please sign in to comment.