Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#143)
Browse files Browse the repository at this point in the history
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.
1 change: 0 additions & 1 deletion docs/securitycenter_v1/security_center.rst
Expand Up @@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1.services.security_center.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/securitycenter_v1beta1/security_center.rst
Expand Up @@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1beta1.services.security_center.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/securitycenter_v1p1beta1/security_center.rst
Expand Up @@ -5,7 +5,6 @@ SecurityCenter
:members:
:inherited-members:


.. automodule:: google.cloud.securitycenter_v1p1beta1.services.security_center.pagers
:members:
:inherited-members:
30 changes: 16 additions & 14 deletions google/cloud/securitycenter/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -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,
Expand Down Expand Up @@ -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",
Expand All @@ -137,20 +147,12 @@
"ListNotificationConfigsResponse",
"ListSourcesRequest",
"ListSourcesResponse",
"NotificationConfig",
"NotificationMessage",
"OrganizationSettings",
"Resource",
"RunAssetDiscoveryRequest",
"RunAssetDiscoveryResponse",
"SecurityCenterAsyncClient",
"SecurityCenterClient",
"SecurityMarks",
"SetFindingStateRequest",
"Source",
"UpdateFindingRequest",
"UpdateNotificationConfigRequest",
"UpdateOrganizationSettingsRequest",
"UpdateSecurityMarksRequest",
"UpdateSourceRequest",
"Source",
)
9 changes: 6 additions & 3 deletions google/cloud/securitycenter_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -83,6 +86,7 @@
"Resource",
"RunAssetDiscoveryRequest",
"RunAssetDiscoveryResponse",
"SecurityCenterClient",
"SecurityMarks",
"SetFindingStateRequest",
"Source",
Expand All @@ -91,5 +95,4 @@
"UpdateOrganizationSettingsRequest",
"UpdateSecurityMarksRequest",
"UpdateSourceRequest",
"SecurityCenterClient",
)
253 changes: 253 additions & 0 deletions google/cloud/securitycenter_v1/gapic_metadata.json
@@ -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.