Skip to content

Commit aa54bc9

Browse files
committed
Fix ListAssets code comments.
1 parent 62df2f9 commit aa54bc9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

asset/src/list_assets.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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.
@@ -21,12 +21,7 @@
2121
use 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
*/
3126
function 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
}

0 commit comments

Comments
 (0)