File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright 2020 Google LLC.
3+ * Copyright 2021 Google LLC.
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
2121use Google \Cloud \Asset \V1 \AssetServiceClient ;
2222
2323/**
24- * @param string $scope Scope of the search
25- * @param string $query (Optional) Query statement
26- * @param string|array $assetTypes (Optional) Asset types to search for
27- * @param int $pageSize (Optional) Size of each result page
28- * @param string $pageToken (Optional) Token produced by the preceding call
29- * @param string $orderBy (Optional) Fields to sort the results
24+ * @param string $projectId the project Id for list assets.
3025 */
3126function list_assets (string $ projectId )
3227{
@@ -36,7 +31,7 @@ function list_assets(string $projectId)
3631 // Run request
3732 $ response = $ client ->listAssets ("projects/ $ project " );
3833
39- // Print the asset names in the first page of the result
34+ // Print the asset names in the result
4035 foreach ($ response ->getPage () as $ asset ) {
4136 print ($ asset ->getName () . PHP_EOL );
4237 }
You can’t perform that action at this time.
0 commit comments