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\Document\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Document\GoogleCloudDocumentaiV1Evaluation;
|
---|
21 | use Google\Service\Document\GoogleCloudDocumentaiV1ListEvaluationsResponse;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "evaluations" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $documentaiService = new Google\Service\Document(...);
|
---|
28 | * $evaluations = $documentaiService->projects_locations_processors_processorVersions_evaluations;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class ProjectsLocationsProcessorsProcessorVersionsEvaluations extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Retrieves a specific evaluation. (evaluations.get)
|
---|
35 | *
|
---|
36 | * @param string $name Required. The resource name of the Evaluation to get. `pr
|
---|
37 | * ojects/{project}/locations/{location}/processors/{processor}/processorVersion
|
---|
38 | * s/{processorVersion}/evaluations/{evaluation}`
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return GoogleCloudDocumentaiV1Evaluation
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function get($name, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['name' => $name];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('get', [$params], GoogleCloudDocumentaiV1Evaluation::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * Retrieves a set of evaluations for a given processor version.
|
---|
51 | * (evaluations.listProjectsLocationsProcessorsProcessorVersionsEvaluations)
|
---|
52 | *
|
---|
53 | * @param string $parent Required. The resource name of the ProcessorVersion to
|
---|
54 | * list evaluations for. `projects/{project}/locations/{location}/processors/{pr
|
---|
55 | * ocessor}/processorVersions/{processorVersion}`
|
---|
56 | * @param array $optParams Optional parameters.
|
---|
57 | *
|
---|
58 | * @opt_param int pageSize The standard list page size. If unspecified, at most
|
---|
59 | * `5` evaluations are returned. The maximum value is `100`. Values above `100`
|
---|
60 | * are coerced to `100`.
|
---|
61 | * @opt_param string pageToken A page token, received from a previous
|
---|
62 | * `ListEvaluations` call. Provide this to retrieve the subsequent page.
|
---|
63 | * @return GoogleCloudDocumentaiV1ListEvaluationsResponse
|
---|
64 | * @throws \Google\Service\Exception
|
---|
65 | */
|
---|
66 | public function listProjectsLocationsProcessorsProcessorVersionsEvaluations($parent, $optParams = [])
|
---|
67 | {
|
---|
68 | $params = ['parent' => $parent];
|
---|
69 | $params = array_merge($params, $optParams);
|
---|
70 | return $this->call('list', [$params], GoogleCloudDocumentaiV1ListEvaluationsResponse::class);
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|
74 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
75 | class_alias(ProjectsLocationsProcessorsProcessorVersionsEvaluations::class, 'Google_Service_Document_Resource_ProjectsLocationsProcessorsProcessorVersionsEvaluations');
|
---|