Skip to content

Commit bebaa7f

Browse files
Add commented variables to make samples more friendly to copy and use (#4365)
1 parent 599ab03 commit bebaa7f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

asset/cloud-client/quickstart_searchalliampolicies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def search_all_iam_policies(scope, query=None, page_size=None):
2222
# [START asset_quickstart_search_all_iam_policies]
2323
from google.cloud import asset_v1
2424

25+
# TODO scope = 'Scope of the search'
26+
# TODO query = 'Query statement'
27+
# TODO page_size = Size of each result page
28+
2529
client = asset_v1.AssetServiceClient()
2630
response = client.search_all_iam_policies(
2731
scope, query=query, page_size=page_size)

asset/cloud-client/quickstart_searchallresources.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def search_all_resources(scope,
2626
# [START asset_quickstart_search_all_resources]
2727
from google.cloud import asset_v1
2828

29+
# TODO scope = 'Scope of the search'
30+
# TODO query = 'Query statement'
31+
# TODO asset_types = 'List of asset types to search for'
32+
# TODO page_size = Size of each result page
33+
# TODO order_by = 'Fields to sort the results'
34+
2935
client = asset_v1.AssetServiceClient()
3036
response = client.search_all_resources(
3137
scope,

0 commit comments

Comments
 (0)