Skip to content

Commit afa684f

Browse files
Pglinsmandandhlee
authored andcommitted
docs: update snippets_list_assets tags (#77)
1 parent 0a57f75 commit afa684f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

securitycenter/snippets/snippets_list_assets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def group_assets(organization_id):
160160
def group_filtered_assets(organization_id):
161161
"""Demonstrates grouping assets by type with a filter. """
162162
i = 0
163-
# [START group_all_assets]
163+
# [START group_all_assets_with_filter]
164164
from google.cloud import securitycenter
165165

166166
client = securitycenter.SecurityCenterClient()
@@ -179,13 +179,13 @@ def group_filtered_assets(organization_id):
179179
)
180180
for i, result in enumerate(result_iterator):
181181
print((i + 1), result)
182-
# [END group_all_assets]
182+
# [END group_all_assets_with_filter]
183183
# only one asset type is a project
184184
return i
185185

186186

187187
def group_assets_by_changes(organization_id):
188-
"""Demonstrates grouping assets by there changes over a period of time."""
188+
"""Demonstrates grouping assets by their changes over a period of time."""
189189
i = 0
190190
# [START group_all_assets_by_change]
191191
from datetime import timedelta

0 commit comments

Comments
 (0)