* $aiplatformService = new Google\Service\Aiplatform(...); * $migratableResources = $aiplatformService->projects_locations_migratableResources; * */ class ProjectsLocationsMigratableResources extends \Google\Service\Resource { /** * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and * datalabeling.googleapis.com to Vertex AI. (migratableResources.batchMigrate) * * @param string $parent Required. The location of the migrated resource will * live in. Format: `projects/{project}/locations/{location}` * @param GoogleCloudAiplatformV1BatchMigrateResourcesRequest $postBody * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function batchMigrate($parent, GoogleCloudAiplatformV1BatchMigrateResourcesRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('batchMigrate', [$params], GoogleLongrunningOperation::class); } /** * Searches all of the resources in automl.googleapis.com, * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to * Vertex AI's given location. (migratableResources.search) * * @param string $parent Required. The location that the migratable resources * should be searched from. It's the Vertex AI location that the resources can * be migrated to, not the resources' original location. Format: * `projects/{project}/locations/{location}` * @param GoogleCloudAiplatformV1SearchMigratableResourcesRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudAiplatformV1SearchMigratableResourcesResponse * @throws \Google\Service\Exception */ public function search($parent, GoogleCloudAiplatformV1SearchMigratableResourcesRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('search', [$params], GoogleCloudAiplatformV1SearchMigratableResourcesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsMigratableResources::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsMigratableResources');