[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\GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest;
|
---|
| 21 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse;
|
---|
| 22 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse;
|
---|
| 23 | use Google\Service\Aiplatform\GoogleCloudAiplatformV1ModelEvaluationSlice;
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * The "slices" collection of methods.
|
---|
| 27 | * Typical usage is:
|
---|
| 28 | * <code>
|
---|
| 29 | * $aiplatformService = new Google\Service\Aiplatform(...);
|
---|
| 30 | * $slices = $aiplatformService->projects_locations_models_evaluations_slices;
|
---|
| 31 | * </code>
|
---|
| 32 | */
|
---|
| 33 | class ProjectsLocationsModelsEvaluationsSlices extends \Google\Service\Resource
|
---|
| 34 | {
|
---|
| 35 | /**
|
---|
| 36 | * Imports a list of externally generated EvaluatedAnnotations.
|
---|
| 37 | * (slices.batchImport)
|
---|
| 38 | *
|
---|
| 39 | * @param string $parent Required. The name of the parent ModelEvaluationSlice
|
---|
| 40 | * resource. Format: `projects/{project}/locations/{location}/models/{model}/eva
|
---|
| 41 | * luations/{evaluation}/slices/{slice}`
|
---|
| 42 | * @param GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest $postBody
|
---|
| 43 | * @param array $optParams Optional parameters.
|
---|
| 44 | * @return GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse
|
---|
| 45 | * @throws \Google\Service\Exception
|
---|
| 46 | */
|
---|
| 47 | public function batchImport($parent, GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest $postBody, $optParams = [])
|
---|
| 48 | {
|
---|
| 49 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 50 | $params = array_merge($params, $optParams);
|
---|
| 51 | return $this->call('batchImport', [$params], GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsResponse::class);
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * Gets a ModelEvaluationSlice. (slices.get)
|
---|
| 55 | *
|
---|
| 56 | * @param string $name Required. The name of the ModelEvaluationSlice resource.
|
---|
| 57 | * Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{
|
---|
| 58 | * evaluation}/slices/{slice}`
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | * @return GoogleCloudAiplatformV1ModelEvaluationSlice
|
---|
| 61 | * @throws \Google\Service\Exception
|
---|
| 62 | */
|
---|
| 63 | public function get($name, $optParams = [])
|
---|
| 64 | {
|
---|
| 65 | $params = ['name' => $name];
|
---|
| 66 | $params = array_merge($params, $optParams);
|
---|
| 67 | return $this->call('get', [$params], GoogleCloudAiplatformV1ModelEvaluationSlice::class);
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * Lists ModelEvaluationSlices in a ModelEvaluation.
|
---|
| 71 | * (slices.listProjectsLocationsModelsEvaluationsSlices)
|
---|
| 72 | *
|
---|
| 73 | * @param string $parent Required. The resource name of the ModelEvaluation to
|
---|
| 74 | * list the ModelEvaluationSlices from. Format: `projects/{project}/locations/{l
|
---|
| 75 | * ocation}/models/{model}/evaluations/{evaluation}`
|
---|
| 76 | * @param array $optParams Optional parameters.
|
---|
| 77 | *
|
---|
| 78 | * @opt_param string filter The standard list filter. * `slice.dimension` - for
|
---|
| 79 | * =.
|
---|
| 80 | * @opt_param int pageSize The standard list page size.
|
---|
| 81 | * @opt_param string pageToken The standard list page token. Typically obtained
|
---|
| 82 | * via ListModelEvaluationSlicesResponse.next_page_token of the previous
|
---|
| 83 | * ModelService.ListModelEvaluationSlices call.
|
---|
| 84 | * @opt_param string readMask Mask specifying which fields to read.
|
---|
| 85 | * @return GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse
|
---|
| 86 | * @throws \Google\Service\Exception
|
---|
| 87 | */
|
---|
| 88 | public function listProjectsLocationsModelsEvaluationsSlices($parent, $optParams = [])
|
---|
| 89 | {
|
---|
| 90 | $params = ['parent' => $parent];
|
---|
| 91 | $params = array_merge($params, $optParams);
|
---|
| 92 | return $this->call('list', [$params], GoogleCloudAiplatformV1ListModelEvaluationSlicesResponse::class);
|
---|
| 93 | }
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 97 | class_alias(ProjectsLocationsModelsEvaluationsSlices::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsModelsEvaluationsSlices');
|
---|