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

Commit

Permalink
docs: update snippets_list_assets tags (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pglinsman committed Oct 30, 2020
1 parent c7e301f commit 11aef56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/snippets/snippets_list_assets.py
Expand Up @@ -160,7 +160,7 @@ def group_assets(organization_id):
def group_filtered_assets(organization_id):
"""Demonstrates grouping assets by type with a filter. """
i = 0
# [START group_all_assets]
# [START group_all_assets_with_filter]
from google.cloud import securitycenter

client = securitycenter.SecurityCenterClient()
Expand All @@ -179,13 +179,13 @@ def group_filtered_assets(organization_id):
)
for i, result in enumerate(result_iterator):
print((i + 1), result)
# [END group_all_assets]
# [END group_all_assets_with_filter]
# only one asset type is a project
return i


def group_assets_by_changes(organization_id):
"""Demonstrates grouping assets by there changes over a period of time."""
"""Demonstrates grouping assets by their changes over a period of time."""
i = 0
# [START group_all_assets_by_change]
from datetime import timedelta
Expand Down

0 comments on commit 11aef56

Please sign in to comment.