source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsDatasetsDatasetVersions.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: 6.0 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\GoogleCloudAiplatformV1DatasetVersion;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListDatasetVersionsResponse;
22use Google\Service\Aiplatform\GoogleLongrunningOperation;
23
24/**
25 * The "datasetVersions" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $aiplatformService = new Google\Service\Aiplatform(...);
29 * $datasetVersions = $aiplatformService->projects_locations_datasets_datasetVersions;
30 * </code>
31 */
32class ProjectsLocationsDatasetsDatasetVersions extends \Google\Service\Resource
33{
34 /**
35 * Create a version from a Dataset. (datasetVersions.create)
36 *
37 * @param string $parent Required. The name of the Dataset resource. Format:
38 * `projects/{project}/locations/{location}/datasets/{dataset}`
39 * @param GoogleCloudAiplatformV1DatasetVersion $postBody
40 * @param array $optParams Optional parameters.
41 * @return GoogleLongrunningOperation
42 * @throws \Google\Service\Exception
43 */
44 public function create($parent, GoogleCloudAiplatformV1DatasetVersion $postBody, $optParams = [])
45 {
46 $params = ['parent' => $parent, 'postBody' => $postBody];
47 $params = array_merge($params, $optParams);
48 return $this->call('create', [$params], GoogleLongrunningOperation::class);
49 }
50 /**
51 * Deletes a Dataset version. (datasetVersions.delete)
52 *
53 * @param string $name Required. The resource name of the Dataset version to
54 * delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/d
55 * atasetVersions/{dataset_version}`
56 * @param array $optParams Optional parameters.
57 * @return GoogleLongrunningOperation
58 * @throws \Google\Service\Exception
59 */
60 public function delete($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
65 }
66 /**
67 * Gets a Dataset version. (datasetVersions.get)
68 *
69 * @param string $name Required. The resource name of the Dataset version to
70 * delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/d
71 * atasetVersions/{dataset_version}`
72 * @param array $optParams Optional parameters.
73 *
74 * @opt_param string readMask Mask specifying which fields to read.
75 * @return GoogleCloudAiplatformV1DatasetVersion
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], GoogleCloudAiplatformV1DatasetVersion::class);
83 }
84 /**
85 * Lists DatasetVersions in a Dataset.
86 * (datasetVersions.listProjectsLocationsDatasetsDatasetVersions)
87 *
88 * @param string $parent Required. The resource name of the Dataset to list
89 * DatasetVersions from. Format:
90 * `projects/{project}/locations/{location}/datasets/{dataset}`
91 * @param array $optParams Optional parameters.
92 *
93 * @opt_param string filter Optional. The standard list filter.
94 * @opt_param string orderBy Optional. A comma-separated list of fields to order
95 * by, sorted in ascending order. Use "desc" after a field name for descending.
96 * @opt_param int pageSize Optional. The standard list page size.
97 * @opt_param string pageToken Optional. The standard list page token.
98 * @opt_param string readMask Optional. Mask specifying which fields to read.
99 * @return GoogleCloudAiplatformV1ListDatasetVersionsResponse
100 * @throws \Google\Service\Exception
101 */
102 public function listProjectsLocationsDatasetsDatasetVersions($parent, $optParams = [])
103 {
104 $params = ['parent' => $parent];
105 $params = array_merge($params, $optParams);
106 return $this->call('list', [$params], GoogleCloudAiplatformV1ListDatasetVersionsResponse::class);
107 }
108 /**
109 * Updates a DatasetVersion. (datasetVersions.patch)
110 *
111 * @param string $name Output only. Identifier. The resource name of the
112 * DatasetVersion.
113 * @param GoogleCloudAiplatformV1DatasetVersion $postBody
114 * @param array $optParams Optional parameters.
115 *
116 * @opt_param string updateMask Required. The update mask applies to the
117 * resource. For the `FieldMask` definition, see google.protobuf.FieldMask.
118 * Updatable fields: * `display_name`
119 * @return GoogleCloudAiplatformV1DatasetVersion
120 * @throws \Google\Service\Exception
121 */
122 public function patch($name, GoogleCloudAiplatformV1DatasetVersion $postBody, $optParams = [])
123 {
124 $params = ['name' => $name, 'postBody' => $postBody];
125 $params = array_merge($params, $optParams);
126 return $this->call('patch', [$params], GoogleCloudAiplatformV1DatasetVersion::class);
127 }
128 /**
129 * Restores a dataset version. (datasetVersions.restore)
130 *
131 * @param string $name Required. The name of the DatasetVersion resource.
132 * Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVe
133 * rsions/{dataset_version}`
134 * @param array $optParams Optional parameters.
135 * @return GoogleLongrunningOperation
136 * @throws \Google\Service\Exception
137 */
138 public function restore($name, $optParams = [])
139 {
140 $params = ['name' => $name];
141 $params = array_merge($params, $optParams);
142 return $this->call('restore', [$params], GoogleLongrunningOperation::class);
143 }
144}
145
146// Adding a class alias for backwards compatibility with the previous class name.
147class_alias(ProjectsLocationsDatasetsDatasetVersions::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsDatasetsDatasetVersions');
Note: See TracBrowser for help on using the repository browser.