* $cloudsearchService = new Google\Service\CloudSearch(...); * $searchapplications = $cloudsearchService->searchapplications; * */ class SettingsSearchapplications extends \Google\Service\Resource { /** * Creates a search application. **Note:** This API requires an admin account to * execute. (searchapplications.create) * * @param SearchApplication $postBody * @param array $optParams Optional parameters. * @return Operation */ public function create(SearchApplication $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], Operation::class); } /** * Deletes a search application. **Note:** This API requires an admin account to * execute. (searchapplications.delete) * * @param string $name The name of the search application to be deleted. Format: * applications/{application_id}. * @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 Operation */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], Operation::class); } /** * Gets the specified search application. **Note:** This API requires an admin * account to execute. (searchapplications.get) * * @param string $name Name of the search application. Format: * searchapplications/{application_id}. * @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 SearchApplication */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], SearchApplication::class); } /** * Lists all search applications. **Note:** This API requires an admin account * to execute. (searchapplications.listSettingsSearchapplications) * * @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. * @opt_param int pageSize The maximum number of items to return. * @opt_param string pageToken The next_page_token value returned from a * previous List request, if any. The default value is 10 * @return ListSearchApplicationsResponse */ public function listSettingsSearchapplications($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListSearchApplicationsResponse::class); } /** * Resets a search application to default settings. This will return an empty * response. **Note:** This API requires an admin account to execute. * (searchapplications.reset) * * @param string $name The name of the search application to be reset. Format: * applications/{application_id}. * @param ResetSearchApplicationRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function reset($name, ResetSearchApplicationRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('reset', [$params], Operation::class); } /** * Updates a search application. **Note:** This API requires an admin account to * execute. (searchapplications.update) * * @param string $name Name of the Search Application. Format: * searchapplications/{application_id}. * @param SearchApplication $postBody * @param array $optParams Optional parameters. * @return Operation */ public function update($name, SearchApplication $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SettingsSearchapplications::class, 'Google_Service_CloudSearch_Resource_SettingsSearchapplications');