Skip to content

Commit

Permalink
docs: update snippets_list_assets tags (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pglinsman authored and Eric Schmidt committed Mar 13, 2023
1 parent 318acd4 commit 1d2d286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions securitycenter/snippets/snippets_list_assets.py
Original file line number Diff line number Diff line change
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 1d2d286

Please sign in to comment.