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

Commit 667729a

Browse files
feat: Adding project/folder level parents to notification configs in SCC (#403)
* feat: Adding project/folder level parents to notification configs in SCC PiperOrigin-RevId: 481230115 Source-Link: googleapis/googleapis@94efa50 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cf106b5c0d4f727a8bfc8e23749330421f40b817 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2YxMDZiNWMwZDRmNzI3YThiZmM4ZTIzNzQ5MzMwNDIxZjQwYjgxNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 76a6ff7 commit 667729a

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

google/cloud/securitycenter_v1/services/security_center/async_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ async def sample_create_notification_config():
840840
notification config.
841841
parent (:class:`str`):
842842
Required. Resource name of the new notification config's
843-
parent. Its format is "organizations/[organization_id]".
843+
parent. Its format is "organizations/[organization_id]",
844+
"folders/[folder_id]", or "projects/[project_id]".
844845
845846
This corresponds to the ``parent`` field
846847
on the ``request`` instance; if ``request`` is provided, this
@@ -2492,7 +2493,8 @@ async def sample_list_notification_configs():
24922493
parent (:class:`str`):
24932494
Required. Name of the organization to list notification
24942495
configs. Its format is
2495-
"organizations/[organization_id]".
2496+
"organizations/[organization_id]",
2497+
"folders/[folder_id]", or "projects/[project_id]".
24962498
24972499
This corresponds to the ``parent`` field
24982500
on the ``request`` instance; if ``request`` is provided, this

google/cloud/securitycenter_v1/services/security_center/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,8 @@ def sample_create_notification_config():
12111211
notification config.
12121212
parent (str):
12131213
Required. Resource name of the new notification config's
1214-
parent. Its format is "organizations/[organization_id]".
1214+
parent. Its format is "organizations/[organization_id]",
1215+
"folders/[folder_id]", or "projects/[project_id]".
12151216
12161217
This corresponds to the ``parent`` field
12171218
on the ``request`` instance; if ``request`` is provided, this
@@ -2795,7 +2796,8 @@ def sample_list_notification_configs():
27952796
parent (str):
27962797
Required. Name of the organization to list notification
27972798
configs. Its format is
2798-
"organizations/[organization_id]".
2799+
"organizations/[organization_id]",
2800+
"folders/[folder_id]", or "projects/[project_id]".
27992801
28002802
This corresponds to the ``parent`` field
28012803
on the ``request`` instance; if ``request`` is provided, this

google/cloud/securitycenter_v1/types/securitycenter_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ class CreateNotificationConfigRequest(proto.Message):
220220
Attributes:
221221
parent (str):
222222
Required. Resource name of the new notification config's
223-
parent. Its format is "organizations/[organization_id]".
223+
parent. Its format is "organizations/[organization_id]",
224+
"folders/[folder_id]", or "projects/[project_id]".
224225
config_id (str):
225226
Required.
226227
Unique identifier provided by the client within
@@ -957,7 +958,8 @@ class ListNotificationConfigsRequest(proto.Message):
957958
Attributes:
958959
parent (str):
959960
Required. Name of the organization to list notification
960-
configs. Its format is "organizations/[organization_id]".
961+
configs. Its format is "organizations/[organization_id]",
962+
"folders/[folder_id]", or "projects/[project_id]".
961963
page_token (str):
962964
The value returned by the last
963965
``ListNotificationConfigsResponse``; indicates that this is

0 commit comments

Comments
 (0)