1616
1717package com .example .asset ;
1818
19- // [START asset_quickstart_list_assets]
20- // Imports the Google Cloud client library
21-
19+ import com .google .cloud .asset .v1 .AssetServiceClient ;
20+ import com .google .cloud .asset .v1 .AssetServiceClient .ListAssetsPagedResponse ;
21+ import com .google .cloud .asset .v1 .ContentType ;
22+ import com .google .cloud .asset .v1 .ListAssetsRequest ;
2223import com .google .cloud .asset .v1 .ProjectName ;
23- import com .google .cloud .asset .v1p5beta1 .AssetServiceClient ;
24- import com .google .cloud .asset .v1p5beta1 .AssetServiceClient .ListAssetsPagedResponse ;
25- import com .google .cloud .asset .v1p5beta1 .ContentType ;
26- import com .google .cloud .asset .v1p5beta1 .ListAssetsRequest ;
2724import java .util .Arrays ;
2825
26+ // [START asset_quickstart_list_assets]
27+ // Imports the Google Cloud client library
28+
2929public class ListAssetsExample {
3030
3131 public static void listAssets () throws Exception {
@@ -38,7 +38,7 @@ public static void listAssets() throws Exception {
3838 String [] assetTypes = {"YOUR_ASSET_TYPES_TO_LIST" };
3939 // The asset content type to list. E.g., ContentType.CONTENT_TYPE_UNSPECIFIED.
4040 // See full list of content types at
41- // https://cloud.google.com/asset-inventory/docs/reference/rpc/google.cloud.asset.v1p5beta1 #contenttype
41+ // https://cloud.google.com/asset-inventory/docs/reference/rpc/google.cloud.asset.v1 #contenttype
4242 ContentType contentType = ContentType .CONTENT_TYPE_UNSPECIFIED ;
4343 listAssets (projectId , assetTypes , contentType );
4444 }
0 commit comments