Skip to content

Commit

Permalink
feat: add support for admin_search in SearchCatalog() API method (#6529)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553406785
Source-Link: googleapis/googleapis@ce38ea0
Source-Link: googleapis/googleapis-gen@cbd7291
Copy-Tag: eyJwIjoiRGF0YUNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6ImNiZDcyOTFlMWU0Mzg5MTg1ZGQ1OGFjZTJkYmFhZDU1ZGVhMDRjNzcifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Aug 3, 2023
1 parent b529f09 commit 2f52106
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
Binary file modified DataCatalog/metadata/V1/Datacatalog.php
Binary file not shown.
10 changes: 10 additions & 0 deletions DataCatalog/src/V1/Gapic/DataCatalogGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2060,6 +2060,12 @@ public function renameTagTemplateFieldEnumValue($name, $newEnumValueDisplayName,
* `default`.
*
* If this parameter is omitted, it defaults to the descending `relevance`.
* @type bool $adminSearch
* Optional. If set, uses searchAll permission granted on organizations from
* `include_org_ids` and projects from `include_project_ids` instead of the
* fine grained per resource permissions when filtering the search results.
* The only allowed `order_by` criteria for admin_search mode is `default`.
* Using this flags guarantees a full recall of the search results.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
Expand Down Expand Up @@ -2087,6 +2093,10 @@ public function searchCatalog($scope, $query, array $optionalArgs = [])
$request->setOrderBy($optionalArgs['orderBy']);
}

if (isset($optionalArgs['adminSearch'])) {
$request->setAdminSearch($optionalArgs['adminSearch']);
}

return $this->getPagedListResponse('SearchCatalog', $optionalArgs, SearchCatalogResponse::class, $request);
}

Expand Down
50 changes: 50 additions & 0 deletions DataCatalog/src/V1/SearchCatalogRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f52106

Please sign in to comment.