source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsDatasets.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: 10.5 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\GoogleCloudAiplatformV1Dataset;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ExportDataRequest;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ImportDataRequest;
23use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListDatasetsResponse;
24use Google\Service\Aiplatform\GoogleCloudAiplatformV1SearchDataItemsResponse;
25use Google\Service\Aiplatform\GoogleLongrunningOperation;
26
27/**
28 * The "datasets" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $aiplatformService = new Google\Service\Aiplatform(...);
32 * $datasets = $aiplatformService->projects_locations_datasets;
33 * </code>
34 */
35class ProjectsLocationsDatasets extends \Google\Service\Resource
36{
37 /**
38 * Creates a Dataset. (datasets.create)
39 *
40 * @param string $parent Required. The resource name of the Location to create
41 * the Dataset in. Format: `projects/{project}/locations/{location}`
42 * @param GoogleCloudAiplatformV1Dataset $postBody
43 * @param array $optParams Optional parameters.
44 * @return GoogleLongrunningOperation
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, GoogleCloudAiplatformV1Dataset $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], GoogleLongrunningOperation::class);
52 }
53 /**
54 * Deletes a Dataset. (datasets.delete)
55 *
56 * @param string $name Required. The resource name of the Dataset to delete.
57 * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
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 * Exports data from a Dataset. (datasets.export)
70 *
71 * @param string $name Required. The name of the Dataset resource. Format:
72 * `projects/{project}/locations/{location}/datasets/{dataset}`
73 * @param GoogleCloudAiplatformV1ExportDataRequest $postBody
74 * @param array $optParams Optional parameters.
75 * @return GoogleLongrunningOperation
76 * @throws \Google\Service\Exception
77 */
78 public function export($name, GoogleCloudAiplatformV1ExportDataRequest $postBody, $optParams = [])
79 {
80 $params = ['name' => $name, 'postBody' => $postBody];
81 $params = array_merge($params, $optParams);
82 return $this->call('export', [$params], GoogleLongrunningOperation::class);
83 }
84 /**
85 * Gets a Dataset. (datasets.get)
86 *
87 * @param string $name Required. The name of the Dataset resource.
88 * @param array $optParams Optional parameters.
89 *
90 * @opt_param string readMask Mask specifying which fields to read.
91 * @return GoogleCloudAiplatformV1Dataset
92 * @throws \Google\Service\Exception
93 */
94 public function get($name, $optParams = [])
95 {
96 $params = ['name' => $name];
97 $params = array_merge($params, $optParams);
98 return $this->call('get', [$params], GoogleCloudAiplatformV1Dataset::class);
99 }
100 /**
101 * Imports data into a Dataset. (datasets.import)
102 *
103 * @param string $name Required. The name of the Dataset resource. Format:
104 * `projects/{project}/locations/{location}/datasets/{dataset}`
105 * @param GoogleCloudAiplatformV1ImportDataRequest $postBody
106 * @param array $optParams Optional parameters.
107 * @return GoogleLongrunningOperation
108 * @throws \Google\Service\Exception
109 */
110 public function import($name, GoogleCloudAiplatformV1ImportDataRequest $postBody, $optParams = [])
111 {
112 $params = ['name' => $name, 'postBody' => $postBody];
113 $params = array_merge($params, $optParams);
114 return $this->call('import', [$params], GoogleLongrunningOperation::class);
115 }
116 /**
117 * Lists Datasets in a Location. (datasets.listProjectsLocationsDatasets)
118 *
119 * @param string $parent Required. The name of the Dataset's parent resource.
120 * Format: `projects/{project}/locations/{location}`
121 * @param array $optParams Optional parameters.
122 *
123 * @opt_param string filter An expression for filtering the results of the
124 * request. For field names both snake_case and camelCase are supported. *
125 * `display_name`: supports = and != * `metadata_schema_uri`: supports = and !=
126 * * `labels` supports general map functions that is: * `labels.key=value` -
127 * key:value equality * `labels.key:* or labels:key - key existence * A key
128 * including a space must be quoted. `labels."a key"`. Some examples: *
129 * `displayName="myDisplayName"` * `labels.myKey="myValue"`
130 * @opt_param string orderBy A comma-separated list of fields to order by,
131 * sorted in ascending order. Use "desc" after a field name for descending.
132 * Supported fields: * `display_name` * `create_time` * `update_time`
133 * @opt_param int pageSize The standard list page size.
134 * @opt_param string pageToken The standard list page token.
135 * @opt_param string readMask Mask specifying which fields to read.
136 * @return GoogleCloudAiplatformV1ListDatasetsResponse
137 * @throws \Google\Service\Exception
138 */
139 public function listProjectsLocationsDatasets($parent, $optParams = [])
140 {
141 $params = ['parent' => $parent];
142 $params = array_merge($params, $optParams);
143 return $this->call('list', [$params], GoogleCloudAiplatformV1ListDatasetsResponse::class);
144 }
145 /**
146 * Updates a Dataset. (datasets.patch)
147 *
148 * @param string $name Output only. Identifier. The resource name of the
149 * Dataset.
150 * @param GoogleCloudAiplatformV1Dataset $postBody
151 * @param array $optParams Optional parameters.
152 *
153 * @opt_param string updateMask Required. The update mask applies to the
154 * resource. For the `FieldMask` definition, see google.protobuf.FieldMask.
155 * Updatable fields: * `display_name` * `description` * `labels`
156 * @return GoogleCloudAiplatformV1Dataset
157 * @throws \Google\Service\Exception
158 */
159 public function patch($name, GoogleCloudAiplatformV1Dataset $postBody, $optParams = [])
160 {
161 $params = ['name' => $name, 'postBody' => $postBody];
162 $params = array_merge($params, $optParams);
163 return $this->call('patch', [$params], GoogleCloudAiplatformV1Dataset::class);
164 }
165 /**
166 * Searches DataItems in a Dataset. (datasets.searchDataItems)
167 *
168 * @param string $dataset Required. The resource name of the Dataset from which
169 * to search DataItems. Format:
170 * `projects/{project}/locations/{location}/datasets/{dataset}`
171 * @param array $optParams Optional parameters.
172 *
173 * @opt_param string annotationFilters An expression that specifies what
174 * Annotations will be returned per DataItem. Annotations satisfied either of
175 * the conditions will be returned. * `annotation_spec_id` - for = or !=. Must
176 * specify `saved_query_id=` - saved query id that annotations should belong to.
177 * @opt_param string annotationsFilter An expression for filtering the
178 * Annotations that will be returned per DataItem. * `annotation_spec_id` - for
179 * = or !=.
180 * @opt_param int annotationsLimit If set, only up to this many of Annotations
181 * will be returned per DataItemView. The maximum value is 1000. If not set, the
182 * maximum value will be used.
183 * @opt_param string dataItemFilter An expression for filtering the DataItem
184 * that will be returned. * `data_item_id` - for = or !=. * `labeled` - for = or
185 * !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have
186 * at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the
187 * context of SavedQuery or DataLabelingJob. For example: * `data_item=1` *
188 * `has_annotation(5)`
189 * @opt_param string dataLabelingJob The resource name of a DataLabelingJob.
190 * Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_label
191 * ing_job}` If this field is set, all of the search will be done in the context
192 * of this DataLabelingJob.
193 * @opt_param string fieldMask Mask specifying which fields of DataItemView to
194 * read.
195 * @opt_param string orderBy A comma-separated list of fields to order by,
196 * sorted in ascending order. Use "desc" after a field name for descending.
197 * @opt_param string orderByAnnotation.orderBy A comma-separated list of
198 * annotation fields to order by, sorted in ascending order. Use "desc" after a
199 * field name for descending. Must also specify saved_query.
200 * @opt_param string orderByAnnotation.savedQuery Required. Saved query of the
201 * Annotation. Only Annotations belong to this saved query will be considered
202 * for ordering.
203 * @opt_param string orderByDataItem A comma-separated list of data item fields
204 * to order by, sorted in ascending order. Use "desc" after a field name for
205 * descending.
206 * @opt_param int pageSize Requested page size. Server may return fewer results
207 * than requested. Default and maximum page size is 100.
208 * @opt_param string pageToken A token identifying a page of results for the
209 * server to return Typically obtained via
210 * SearchDataItemsResponse.next_page_token of the previous
211 * DatasetService.SearchDataItems call.
212 * @opt_param string savedQuery The resource name of a SavedQuery(annotation set
213 * in UI). Format: `projects/{project}/locations/{location}/datasets/{dataset}/s
214 * avedQueries/{saved_query}` All of the search will be done in the context of
215 * this SavedQuery.
216 * @return GoogleCloudAiplatformV1SearchDataItemsResponse
217 * @throws \Google\Service\Exception
218 */
219 public function searchDataItems($dataset, $optParams = [])
220 {
221 $params = ['dataset' => $dataset];
222 $params = array_merge($params, $optParams);
223 return $this->call('searchDataItems', [$params], GoogleCloudAiplatformV1SearchDataItemsResponse::class);
224 }
225}
226
227// Adding a class alias for backwards compatibility with the previous class name.
228class_alias(ProjectsLocationsDatasets::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsDatasets');
Note: See TracBrowser for help on using the repository browser.