* $aiplatformService = new Google\Service\Aiplatform(...); * $reasoningEngines = $aiplatformService->projects_locations_reasoningEngines; * */ class ProjectsLocationsReasoningEngines extends \Google\Service\Resource { /** * Creates a reasoning engine. (reasoningEngines.create) * * @param string $parent Required. The resource name of the Location to create * the ReasoningEngine in. Format: `projects/{project}/locations/{location}` * @param GoogleCloudAiplatformV1ReasoningEngine $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function create($parent, GoogleCloudAiplatformV1ReasoningEngine $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleLongrunningOperation::class); } /** * Deletes a reasoning engine. (reasoningEngines.delete) * * @param string $name Required. The name of the ReasoningEngine resource to be * deleted. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], GoogleLongrunningOperation::class); } /** * Gets a reasoning engine. (reasoningEngines.get) * * @param string $name Required. The name of the ReasoningEngine resource. * Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @param array $optParams Optional parameters. * @return GoogleCloudAiplatformV1ReasoningEngine * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudAiplatformV1ReasoningEngine::class); } /** * Lists reasoning engines in a location. * (reasoningEngines.listProjectsLocationsReasoningEngines) * * @param string $parent Required. The resource name of the Location to list the * ReasoningEngines from. Format: `projects/{project}/locations/{location}` * @param array $optParams Optional parameters. * * @opt_param string filter Optional. The standard list filter. More detail in * [AIP-160](https://google.aip.dev/160). * @opt_param int pageSize Optional. The standard list page size. * @opt_param string pageToken Optional. The standard list page token. * @return GoogleCloudAiplatformV1ListReasoningEnginesResponse * @throws \Google\Service\Exception */ public function listProjectsLocationsReasoningEngines($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudAiplatformV1ListReasoningEnginesResponse::class); } /** * Updates a reasoning engine. (reasoningEngines.patch) * * @param string $name Identifier. The resource name of the ReasoningEngine. * @param GoogleCloudAiplatformV1ReasoningEngine $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Optional. Mask specifying which fields to * update. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function patch($name, GoogleCloudAiplatformV1ReasoningEngine $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], GoogleLongrunningOperation::class); } /** * Queries using a reasoning engine. (reasoningEngines.query) * * @param string $name Required. The name of the ReasoningEngine resource to * use. Format: * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @param GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudAiplatformV1QueryReasoningEngineResponse * @throws \Google\Service\Exception */ public function query($name, GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('query', [$params], GoogleCloudAiplatformV1QueryReasoningEngineResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsReasoningEngines::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEngines');