[e3d4e0a] | 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\GoogleCloudAiplatformV1ListStudiesResponse;
|
---|
| 21 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1LookupStudyRequest;
|
---|
| 22 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1Study;
|
---|
| 23 | use Google\Service\Aiplatform\GoogleProtobufEmpty;
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * The "studies" collection of methods.
|
---|
| 27 | * Typical usage is:
|
---|
| 28 | * <code>
|
---|
| 29 | * $aiplatformService = new Google\Service\Aiplatform(...);
|
---|
| 30 | * $studies = $aiplatformService->projects_locations_studies;
|
---|
| 31 | * </code>
|
---|
| 32 | */
|
---|
| 33 | class ProjectsLocationsStudies extends \Google\Service\Resource
|
---|
| 34 | {
|
---|
| 35 | /**
|
---|
| 36 | * Creates a Study. A resource name will be generated after creation of the
|
---|
| 37 | * Study. (studies.create)
|
---|
| 38 | *
|
---|
| 39 | * @param string $parent Required. The resource name of the Location to create
|
---|
| 40 | * the CustomJob in. Format: `projects/{project}/locations/{location}`
|
---|
| 41 | * @param GoogleCloudAiplatformV1Study $postBody
|
---|
| 42 | * @param array $optParams Optional parameters.
|
---|
| 43 | * @return GoogleCloudAiplatformV1Study
|
---|
| 44 | * @throws \Google\Service\Exception
|
---|
| 45 | */
|
---|
| 46 | public function create($parent, GoogleCloudAiplatformV1Study $postBody, $optParams = [])
|
---|
| 47 | {
|
---|
| 48 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 49 | $params = array_merge($params, $optParams);
|
---|
| 50 | return $this->call('create', [$params], GoogleCloudAiplatformV1Study::class);
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * Deletes a Study. (studies.delete)
|
---|
| 54 | *
|
---|
| 55 | * @param string $name Required. The name of the Study resource to be deleted.
|
---|
| 56 | * Format: `projects/{project}/locations/{location}/studies/{study}`
|
---|
| 57 | * @param array $optParams Optional parameters.
|
---|
| 58 | * @return GoogleProtobufEmpty
|
---|
| 59 | * @throws \Google\Service\Exception
|
---|
| 60 | */
|
---|
| 61 | public function delete($name, $optParams = [])
|
---|
| 62 | {
|
---|
| 63 | $params = ['name' => $name];
|
---|
| 64 | $params = array_merge($params, $optParams);
|
---|
| 65 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * Gets a Study by name. (studies.get)
|
---|
| 69 | *
|
---|
| 70 | * @param string $name Required. The name of the Study resource. Format:
|
---|
| 71 | * `projects/{project}/locations/{location}/studies/{study}`
|
---|
| 72 | * @param array $optParams Optional parameters.
|
---|
| 73 | * @return GoogleCloudAiplatformV1Study
|
---|
| 74 | * @throws \Google\Service\Exception
|
---|
| 75 | */
|
---|
| 76 | public function get($name, $optParams = [])
|
---|
| 77 | {
|
---|
| 78 | $params = ['name' => $name];
|
---|
| 79 | $params = array_merge($params, $optParams);
|
---|
| 80 | return $this->call('get', [$params], GoogleCloudAiplatformV1Study::class);
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * Lists all the studies in a region for an associated project.
|
---|
| 84 | * (studies.listProjectsLocationsStudies)
|
---|
| 85 | *
|
---|
| 86 | * @param string $parent Required. The resource name of the Location to list the
|
---|
| 87 | * Study from. Format: `projects/{project}/locations/{location}`
|
---|
| 88 | * @param array $optParams Optional parameters.
|
---|
| 89 | *
|
---|
| 90 | * @opt_param int pageSize Optional. The maximum number of studies to return per
|
---|
| 91 | * "page" of results. If unspecified, service will pick an appropriate default.
|
---|
| 92 | * @opt_param string pageToken Optional. A page token to request the next page
|
---|
| 93 | * of results. If unspecified, there are no subsequent pages.
|
---|
| 94 | * @return GoogleCloudAiplatformV1ListStudiesResponse
|
---|
| 95 | * @throws \Google\Service\Exception
|
---|
| 96 | */
|
---|
| 97 | public function listProjectsLocationsStudies($parent, $optParams = [])
|
---|
| 98 | {
|
---|
| 99 | $params = ['parent' => $parent];
|
---|
| 100 | $params = array_merge($params, $optParams);
|
---|
| 101 | return $this->call('list', [$params], GoogleCloudAiplatformV1ListStudiesResponse::class);
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * Looks a study up using the user-defined display_name field instead of the
|
---|
| 105 | * fully qualified resource name. (studies.lookup)
|
---|
| 106 | *
|
---|
| 107 | * @param string $parent Required. The resource name of the Location to get the
|
---|
| 108 | * Study from. Format: `projects/{project}/locations/{location}`
|
---|
| 109 | * @param GoogleCloudAiplatformV1LookupStudyRequest $postBody
|
---|
| 110 | * @param array $optParams Optional parameters.
|
---|
| 111 | * @return GoogleCloudAiplatformV1Study
|
---|
| 112 | * @throws \Google\Service\Exception
|
---|
| 113 | */
|
---|
| 114 | public function lookup($parent, GoogleCloudAiplatformV1LookupStudyRequest $postBody, $optParams = [])
|
---|
| 115 | {
|
---|
| 116 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 117 | $params = array_merge($params, $optParams);
|
---|
| 118 | return $this->call('lookup', [$params], GoogleCloudAiplatformV1Study::class);
|
---|
| 119 | }
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 123 | class_alias(ProjectsLocationsStudies::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsStudies');
|
---|