* $cloudsearchService = new Google\Service\CloudSearch(...); * $items = $cloudsearchService->items; * */ class DebugDatasourcesItems extends \Google\Service\Resource { /** * Checks whether an item is accessible by specified principal. Principal must * be a user; groups and domain values aren't supported. **Note:** This API * requires an admin account to execute. (items.checkAccess) * * @param string $name Item name, format: * datasources/{source_id}/items/{item_id} * @param Principal $postBody * @param array $optParams Optional parameters. * * @opt_param bool debugOptions.enableDebugging If you are asked by Google to * help with debugging, set this field. Otherwise, ignore this field. * @return CheckAccessResponse */ public function checkAccess($name, Principal $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('checkAccess', [$params], CheckAccessResponse::class); } /** * Fetches the item whose viewUrl exactly matches that of the URL provided in * the request. **Note:** This API requires an admin account to execute. * (items.searchByViewUrl) * * @param string $name Source name, format: datasources/{source_id} * @param SearchItemsByViewUrlRequest $postBody * @param array $optParams Optional parameters. * @return SearchItemsByViewUrlResponse */ public function searchByViewUrl($name, SearchItemsByViewUrlRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('searchByViewUrl', [$params], SearchItemsByViewUrlResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DebugDatasourcesItems::class, 'Google_Service_CloudSearch_Resource_DebugDatasourcesItems');