source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsModelsEvaluations.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 3.8 KB
Line 
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
18namespace Google\Service\Aiplatform\Resource;
19
20use Google\Service\Aiplatform\GoogleCloudAiplatformV1ImportModelEvaluationRequest;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListModelEvaluationsResponse;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ModelEvaluation;
23
24/**
25 * The "evaluations" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $aiplatformService = new Google\Service\Aiplatform(...);
29 * $evaluations = $aiplatformService->projects_locations_models_evaluations;
30 * </code>
31 */
32class ProjectsLocationsModelsEvaluations extends \Google\Service\Resource
33{
34 /**
35 * Gets a ModelEvaluation. (evaluations.get)
36 *
37 * @param string $name Required. The name of the ModelEvaluation resource.
38 * Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{
39 * evaluation}`
40 * @param array $optParams Optional parameters.
41 * @return GoogleCloudAiplatformV1ModelEvaluation
42 * @throws \Google\Service\Exception
43 */
44 public function get($name, $optParams = [])
45 {
46 $params = ['name' => $name];
47 $params = array_merge($params, $optParams);
48 return $this->call('get', [$params], GoogleCloudAiplatformV1ModelEvaluation::class);
49 }
50 /**
51 * Imports an externally generated ModelEvaluation. (evaluations.import)
52 *
53 * @param string $parent Required. The name of the parent model resource.
54 * Format: `projects/{project}/locations/{location}/models/{model}`
55 * @param GoogleCloudAiplatformV1ImportModelEvaluationRequest $postBody
56 * @param array $optParams Optional parameters.
57 * @return GoogleCloudAiplatformV1ModelEvaluation
58 * @throws \Google\Service\Exception
59 */
60 public function import($parent, GoogleCloudAiplatformV1ImportModelEvaluationRequest $postBody, $optParams = [])
61 {
62 $params = ['parent' => $parent, 'postBody' => $postBody];
63 $params = array_merge($params, $optParams);
64 return $this->call('import', [$params], GoogleCloudAiplatformV1ModelEvaluation::class);
65 }
66 /**
67 * Lists ModelEvaluations in a Model.
68 * (evaluations.listProjectsLocationsModelsEvaluations)
69 *
70 * @param string $parent Required. The resource name of the Model to list the
71 * ModelEvaluations from. Format:
72 * `projects/{project}/locations/{location}/models/{model}`
73 * @param array $optParams Optional parameters.
74 *
75 * @opt_param string filter The standard list filter.
76 * @opt_param int pageSize The standard list page size.
77 * @opt_param string pageToken The standard list page token. Typically obtained
78 * via ListModelEvaluationsResponse.next_page_token of the previous
79 * ModelService.ListModelEvaluations call.
80 * @opt_param string readMask Mask specifying which fields to read.
81 * @return GoogleCloudAiplatformV1ListModelEvaluationsResponse
82 * @throws \Google\Service\Exception
83 */
84 public function listProjectsLocationsModelsEvaluations($parent, $optParams = [])
85 {
86 $params = ['parent' => $parent];
87 $params = array_merge($params, $optParams);
88 return $this->call('list', [$params], GoogleCloudAiplatformV1ListModelEvaluationsResponse::class);
89 }
90}
91
92// Adding a class alias for backwards compatibility with the previous class name.
93class_alias(ProjectsLocationsModelsEvaluations::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsModelsEvaluations');
Note: See TracBrowser for help on using the repository browser.