1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Aiplatform\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1BatchMigrateResourcesRequest;
|
---|
21 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1SearchMigratableResourcesRequest;
|
---|
22 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1SearchMigratableResourcesResponse;
|
---|
23 | use Google\Service\Aiplatform\GoogleLongrunningOperation;
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * The "migratableResources" collection of methods.
|
---|
27 | * Typical usage is:
|
---|
28 | * <code>
|
---|
29 | * $aiplatformService = new Google\Service\Aiplatform(...);
|
---|
30 | * $migratableResources = $aiplatformService->projects_locations_migratableResources;
|
---|
31 | * </code>
|
---|
32 | */
|
---|
33 | class ProjectsLocationsMigratableResources extends \Google\Service\Resource
|
---|
34 | {
|
---|
35 | /**
|
---|
36 | * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
|
---|
37 | * datalabeling.googleapis.com to Vertex AI. (migratableResources.batchMigrate)
|
---|
38 | *
|
---|
39 | * @param string $parent Required. The location of the migrated resource will
|
---|
40 | * live in. Format: `projects/{project}/locations/{location}`
|
---|
41 | * @param GoogleCloudAiplatformV1BatchMigrateResourcesRequest $postBody
|
---|
42 | * @param array $optParams Optional parameters.
|
---|
43 | * @return GoogleLongrunningOperation
|
---|
44 | * @throws \Google\Service\Exception
|
---|
45 | */
|
---|
46 | public function batchMigrate($parent, GoogleCloudAiplatformV1BatchMigrateResourcesRequest $postBody, $optParams = [])
|
---|
47 | {
|
---|
48 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
49 | $params = array_merge($params, $optParams);
|
---|
50 | return $this->call('batchMigrate', [$params], GoogleLongrunningOperation::class);
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * Searches all of the resources in automl.googleapis.com,
|
---|
54 | * datalabeling.googleapis.com and ml.googleapis.com that can be migrated to
|
---|
55 | * Vertex AI's given location. (migratableResources.search)
|
---|
56 | *
|
---|
57 | * @param string $parent Required. The location that the migratable resources
|
---|
58 | * should be searched from. It's the Vertex AI location that the resources can
|
---|
59 | * be migrated to, not the resources' original location. Format:
|
---|
60 | * `projects/{project}/locations/{location}`
|
---|
61 | * @param GoogleCloudAiplatformV1SearchMigratableResourcesRequest $postBody
|
---|
62 | * @param array $optParams Optional parameters.
|
---|
63 | * @return GoogleCloudAiplatformV1SearchMigratableResourcesResponse
|
---|
64 | * @throws \Google\Service\Exception
|
---|
65 | */
|
---|
66 | public function search($parent, GoogleCloudAiplatformV1SearchMigratableResourcesRequest $postBody, $optParams = [])
|
---|
67 | {
|
---|
68 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
69 | $params = array_merge($params, $optParams);
|
---|
70 | return $this->call('search', [$params], GoogleCloudAiplatformV1SearchMigratableResourcesResponse::class);
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|
74 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
75 | class_alias(ProjectsLocationsMigratableResources::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsMigratableResources');
|
---|