source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsFeatureGroupsFeatures.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: 9.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\GoogleCloudAiplatformV1BatchCreateFeaturesRequest;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1Feature;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListFeaturesResponse;
23use Google\Service\Aiplatform\GoogleLongrunningOperation;
24
25/**
26 * The "features" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $aiplatformService = new Google\Service\Aiplatform(...);
30 * $features = $aiplatformService->projects_locations_featureGroups_features;
31 * </code>
32 */
33class ProjectsLocationsFeatureGroupsFeatures extends \Google\Service\Resource
34{
35 /**
36 * Creates a batch of Features in a given FeatureGroup. (features.batchCreate)
37 *
38 * @param string $parent Required. The resource name of the
39 * EntityType/FeatureGroup to create the batch of Features under. Format: `proje
40 * cts/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{
41 * entity_type}`
42 * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
43 * @param GoogleCloudAiplatformV1BatchCreateFeaturesRequest $postBody
44 * @param array $optParams Optional parameters.
45 * @return GoogleLongrunningOperation
46 * @throws \Google\Service\Exception
47 */
48 public function batchCreate($parent, GoogleCloudAiplatformV1BatchCreateFeaturesRequest $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('batchCreate', [$params], GoogleLongrunningOperation::class);
53 }
54 /**
55 * Creates a new Feature in a given FeatureGroup. (features.create)
56 *
57 * @param string $parent Required. The resource name of the EntityType or
58 * FeatureGroup to create a Feature. Format for entity_type as parent: `projects
59 * /{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{ent
60 * ity_type}` Format for feature_group as parent:
61 * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
62 * @param GoogleCloudAiplatformV1Feature $postBody
63 * @param array $optParams Optional parameters.
64 *
65 * @opt_param string featureId Required. The ID to use for the Feature, which
66 * will become the final component of the Feature's resource name. This value
67 * may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
68 * character cannot be a number. The value must be unique within an
69 * EntityType/FeatureGroup.
70 * @return GoogleLongrunningOperation
71 * @throws \Google\Service\Exception
72 */
73 public function create($parent, GoogleCloudAiplatformV1Feature $postBody, $optParams = [])
74 {
75 $params = ['parent' => $parent, 'postBody' => $postBody];
76 $params = array_merge($params, $optParams);
77 return $this->call('create', [$params], GoogleLongrunningOperation::class);
78 }
79 /**
80 * Deletes a single Feature. (features.delete)
81 *
82 * @param string $name Required. The name of the Features to be deleted. Format:
83 * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT
84 * ypes/{entity_type}/features/{feature}` `projects/{project}/locations/{locatio
85 * n}/featureGroups/{feature_group}/features/{feature}`
86 * @param array $optParams Optional parameters.
87 * @return GoogleLongrunningOperation
88 * @throws \Google\Service\Exception
89 */
90 public function delete($name, $optParams = [])
91 {
92 $params = ['name' => $name];
93 $params = array_merge($params, $optParams);
94 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
95 }
96 /**
97 * Gets details of a single Feature. (features.get)
98 *
99 * @param string $name Required. The name of the Feature resource. Format for
100 * entity_type as parent: `projects/{project}/locations/{location}/featurestores
101 * /{featurestore}/entityTypes/{entity_type}` Format for feature_group as
102 * parent:
103 * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
104 * @param array $optParams Optional parameters.
105 * @return GoogleCloudAiplatformV1Feature
106 * @throws \Google\Service\Exception
107 */
108 public function get($name, $optParams = [])
109 {
110 $params = ['name' => $name];
111 $params = array_merge($params, $optParams);
112 return $this->call('get', [$params], GoogleCloudAiplatformV1Feature::class);
113 }
114 /**
115 * Lists Features in a given FeatureGroup.
116 * (features.listProjectsLocationsFeatureGroupsFeatures)
117 *
118 * @param string $parent Required. The resource name of the Location to list
119 * Features. Format for entity_type as parent: `projects/{project}/locations/{lo
120 * cation}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for
121 * feature_group as parent:
122 * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
123 * @param array $optParams Optional parameters.
124 *
125 * @opt_param string filter Lists the Features that match the filter expression.
126 * The following filters are supported: * `value_type`: Supports = and !=
127 * comparisons. * `create_time`: Supports =, !=, <, >, >=, and <= comparisons.
128 * Values must be in RFC 3339 format. * `update_time`: Supports =, !=, <, >, >=,
129 * and <= comparisons. Values must be in RFC 3339 format. * `labels`: Supports
130 * key-value equality as well as key presence. Examples: * `value_type = DOUBLE`
131 * --> Features whose type is DOUBLE. * `create_time >
132 * \"2020-01-31T15:30:00.000000Z\" OR update_time >
133 * \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created or updated after
134 * 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod`
135 * --> Features having both (active: yes) and (env: prod) labels. * `labels.env:
136 * *` --> Any Feature which has a label with 'env' as the key.
137 * @opt_param int latestStatsCount Only applicable for Vertex AI Feature Store
138 * (Legacy). If set, return the most recent
139 * ListFeaturesRequest.latest_stats_count of stats for each Feature in response.
140 * Valid value is [0, 10]. If number of stats exists <
141 * ListFeaturesRequest.latest_stats_count, return all existing stats.
142 * @opt_param string orderBy A comma-separated list of fields to order by,
143 * sorted in ascending order. Use "desc" after a field name for descending.
144 * Supported fields: * `feature_id` * `value_type` (Not supported for
145 * FeatureRegistry Feature) * `create_time` * `update_time`
146 * @opt_param int pageSize The maximum number of Features to return. The service
147 * may return fewer than this value. If unspecified, at most 1000 Features will
148 * be returned. The maximum value is 1000; any value greater than 1000 will be
149 * coerced to 1000.
150 * @opt_param string pageToken A page token, received from a previous
151 * FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures
152 * call. Provide this to retrieve the subsequent page. When paginating, all
153 * other parameters provided to FeaturestoreService.ListFeatures or
154 * FeatureRegistryService.ListFeatures must match the call that provided the
155 * page token.
156 * @opt_param string readMask Mask specifying which fields to read.
157 * @return GoogleCloudAiplatformV1ListFeaturesResponse
158 * @throws \Google\Service\Exception
159 */
160 public function listProjectsLocationsFeatureGroupsFeatures($parent, $optParams = [])
161 {
162 $params = ['parent' => $parent];
163 $params = array_merge($params, $optParams);
164 return $this->call('list', [$params], GoogleCloudAiplatformV1ListFeaturesResponse::class);
165 }
166 /**
167 * Updates the parameters of a single Feature. (features.patch)
168 *
169 * @param string $name Immutable. Name of the Feature. Format: `projects/{projec
170 * t}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type
171 * }/features/{feature}` `projects/{project}/locations/{location}/featureGroups/
172 * {feature_group}/features/{feature}` The last part feature is assigned by the
173 * client. The feature can be up to 64 characters long and can consist only of
174 * ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting
175 * with a letter. The value will be unique given an entity type.
176 * @param GoogleCloudAiplatformV1Feature $postBody
177 * @param array $optParams Optional parameters.
178 *
179 * @opt_param string updateMask Field mask is used to specify the fields to be
180 * overwritten in the Features resource by the update. The fields specified in
181 * the update_mask are relative to the resource, not the full request. A field
182 * will be overwritten if it is in the mask. If the user does not provide a mask
183 * then only the non-empty fields present in the request will be overwritten.
184 * Set the update_mask to `*` to override all fields. Updatable fields: *
185 * `description` * `labels` * `disable_monitoring` (Not supported for
186 * FeatureRegistryService Feature) * `point_of_contact` (Not supported for
187 * FeaturestoreService FeatureStore)
188 * @return GoogleLongrunningOperation
189 * @throws \Google\Service\Exception
190 */
191 public function patch($name, GoogleCloudAiplatformV1Feature $postBody, $optParams = [])
192 {
193 $params = ['name' => $name, 'postBody' => $postBody];
194 $params = array_merge($params, $optParams);
195 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
196 }
197}
198
199// Adding a class alias for backwards compatibility with the previous class name.
200class_alias(ProjectsLocationsFeatureGroupsFeatures::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsFeatureGroupsFeatures');
Note: See TracBrowser for help on using the repository browser.