source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsReasoningEngines.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: 5.9 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\GoogleCloudAiplatformV1ListReasoningEnginesResponse;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1QueryReasoningEngineRequest;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1QueryReasoningEngineResponse;
23use Google\Service\Aiplatform\GoogleCloudAiplatformV1ReasoningEngine;
24use Google\Service\Aiplatform\GoogleLongrunningOperation;
25
26/**
27 * The "reasoningEngines" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $aiplatformService = new Google\Service\Aiplatform(...);
31 * $reasoningEngines = $aiplatformService->projects_locations_reasoningEngines;
32 * </code>
33 */
34class ProjectsLocationsReasoningEngines extends \Google\Service\Resource
35{
36 /**
37 * Creates a reasoning engine. (reasoningEngines.create)
38 *
39 * @param string $parent Required. The resource name of the Location to create
40 * the ReasoningEngine in. Format: `projects/{project}/locations/{location}`
41 * @param GoogleCloudAiplatformV1ReasoningEngine $postBody
42 * @param array $optParams Optional parameters.
43 * @return GoogleLongrunningOperation
44 * @throws \Google\Service\Exception
45 */
46 public function create($parent, GoogleCloudAiplatformV1ReasoningEngine $postBody, $optParams = [])
47 {
48 $params = ['parent' => $parent, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('create', [$params], GoogleLongrunningOperation::class);
51 }
52 /**
53 * Deletes a reasoning engine. (reasoningEngines.delete)
54 *
55 * @param string $name Required. The name of the ReasoningEngine resource to be
56 * deleted. Format:
57 * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
58 * @param array $optParams Optional parameters.
59 * @return GoogleLongrunningOperation
60 * @throws \Google\Service\Exception
61 */
62 public function delete($name, $optParams = [])
63 {
64 $params = ['name' => $name];
65 $params = array_merge($params, $optParams);
66 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
67 }
68 /**
69 * Gets a reasoning engine. (reasoningEngines.get)
70 *
71 * @param string $name Required. The name of the ReasoningEngine resource.
72 * Format:
73 * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
74 * @param array $optParams Optional parameters.
75 * @return GoogleCloudAiplatformV1ReasoningEngine
76 * @throws \Google\Service\Exception
77 */
78 public function get($name, $optParams = [])
79 {
80 $params = ['name' => $name];
81 $params = array_merge($params, $optParams);
82 return $this->call('get', [$params], GoogleCloudAiplatformV1ReasoningEngine::class);
83 }
84 /**
85 * Lists reasoning engines in a location.
86 * (reasoningEngines.listProjectsLocationsReasoningEngines)
87 *
88 * @param string $parent Required. The resource name of the Location to list the
89 * ReasoningEngines from. Format: `projects/{project}/locations/{location}`
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param string filter Optional. The standard list filter. More detail in
93 * [AIP-160](https://google.aip.dev/160).
94 * @opt_param int pageSize Optional. The standard list page size.
95 * @opt_param string pageToken Optional. The standard list page token.
96 * @return GoogleCloudAiplatformV1ListReasoningEnginesResponse
97 * @throws \Google\Service\Exception
98 */
99 public function listProjectsLocationsReasoningEngines($parent, $optParams = [])
100 {
101 $params = ['parent' => $parent];
102 $params = array_merge($params, $optParams);
103 return $this->call('list', [$params], GoogleCloudAiplatformV1ListReasoningEnginesResponse::class);
104 }
105 /**
106 * Updates a reasoning engine. (reasoningEngines.patch)
107 *
108 * @param string $name Identifier. The resource name of the ReasoningEngine.
109 * @param GoogleCloudAiplatformV1ReasoningEngine $postBody
110 * @param array $optParams Optional parameters.
111 *
112 * @opt_param string updateMask Optional. Mask specifying which fields to
113 * update.
114 * @return GoogleLongrunningOperation
115 * @throws \Google\Service\Exception
116 */
117 public function patch($name, GoogleCloudAiplatformV1ReasoningEngine $postBody, $optParams = [])
118 {
119 $params = ['name' => $name, 'postBody' => $postBody];
120 $params = array_merge($params, $optParams);
121 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
122 }
123 /**
124 * Queries using a reasoning engine. (reasoningEngines.query)
125 *
126 * @param string $name Required. The name of the ReasoningEngine resource to
127 * use. Format:
128 * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
129 * @param GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody
130 * @param array $optParams Optional parameters.
131 * @return GoogleCloudAiplatformV1QueryReasoningEngineResponse
132 * @throws \Google\Service\Exception
133 */
134 public function query($name, GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody, $optParams = [])
135 {
136 $params = ['name' => $name, 'postBody' => $postBody];
137 $params = array_merge($params, $optParams);
138 return $this->call('query', [$params], GoogleCloudAiplatformV1QueryReasoningEngineResponse::class);
139 }
140}
141
142// Adding a class alias for backwards compatibility with the previous class name.
143class_alias(ProjectsLocationsReasoningEngines::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEngines');
Note: See TracBrowser for help on using the repository browser.