| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | 21 | def list_assets(project_id, asset_types, page_size): | |
| 22 | 22 | # [START asset_quickstart_list_assets] | |
| 23 | - from google.cloud import asset_v1p5beta1 | ||
| 23 | + from google.cloud import asset_v1 | ||
| 24 | 24 | ||
| 25 | 25 | # TODO project_id = 'Your Google Cloud Project ID' | |
| 26 | 26 | # TODO asset_types = 'Your asset type list, e.g., | |
@@ -29,10 +29,10 @@ def list_assets(project_id, asset_types, page_size): | |||
| 29 | 29 | # 1000 (both inclusively)' | |
| 30 | 30 | ||
| 31 | 31 | project_resource = "projects/{}".format(project_id) | |
| 32 | - content_type = asset_v1p5beta1.ContentType.RESOURCE | ||
| 33 | - client = asset_v1p5beta1.AssetServiceClient() | ||
| 32 | + content_type = asset_v1.ContentType.RESOURCE | ||
| 33 | + client = asset_v1.AssetServiceClient() | ||
| 34 | 34 | ||
| 35 | - # Call ListAssets v1p5beta1 to list assets. | ||
| 35 | + # Call ListAssets v1 to list assets. | ||
| 36 | 36 | response = client.list_assets( | |
| 37 | 37 | request={ | |
| 38 | 38 | "parent": project_resource, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments