source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsFeatureOnlineStores.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 11.4 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\GoogleCloudAiplatformV1FeatureOnlineStore;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse;
22use Google\Service\Aiplatform\GoogleIamV1Policy;
23use Google\Service\Aiplatform\GoogleIamV1SetIamPolicyRequest;
24use Google\Service\Aiplatform\GoogleIamV1TestIamPermissionsResponse;
25use Google\Service\Aiplatform\GoogleLongrunningOperation;
26
27/**
28 * The "featureOnlineStores" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $aiplatformService = new Google\Service\Aiplatform(...);
32 * $featureOnlineStores = $aiplatformService->projects_locations_featureOnlineStores;
33 * </code>
34 */
35class ProjectsLocationsFeatureOnlineStores extends \Google\Service\Resource
36{
37 /**
38 * Creates a new FeatureOnlineStore in a given project and location.
39 * (featureOnlineStores.create)
40 *
41 * @param string $parent Required. The resource name of the Location to create
42 * FeatureOnlineStores. Format: `projects/{project}/locations/{location}`
43 * @param GoogleCloudAiplatformV1FeatureOnlineStore $postBody
44 * @param array $optParams Optional parameters.
45 *
46 * @opt_param string featureOnlineStoreId Required. The ID to use for this
47 * FeatureOnlineStore, which will become the final component of the
48 * FeatureOnlineStore's resource name. This value may be up to 60 characters,
49 * and valid characters are `[a-z0-9_]`. The first character cannot be a number.
50 * The value must be unique within the project and location.
51 * @return GoogleLongrunningOperation
52 * @throws \Google\Service\Exception
53 */
54 public function create($parent, GoogleCloudAiplatformV1FeatureOnlineStore $postBody, $optParams = [])
55 {
56 $params = ['parent' => $parent, 'postBody' => $postBody];
57 $params = array_merge($params, $optParams);
58 return $this->call('create', [$params], GoogleLongrunningOperation::class);
59 }
60 /**
61 * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain
62 * any FeatureViews. (featureOnlineStores.delete)
63 *
64 * @param string $name Required. The name of the FeatureOnlineStore to be
65 * deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores
66 * /{feature_online_store}`
67 * @param array $optParams Optional parameters.
68 *
69 * @opt_param bool force If set to true, any FeatureViews and Features for this
70 * FeatureOnlineStore will also be deleted. (Otherwise, the request will only
71 * work if the FeatureOnlineStore has no FeatureViews.)
72 * @return GoogleLongrunningOperation
73 * @throws \Google\Service\Exception
74 */
75 public function delete($name, $optParams = [])
76 {
77 $params = ['name' => $name];
78 $params = array_merge($params, $optParams);
79 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
80 }
81 /**
82 * Gets details of a single FeatureOnlineStore. (featureOnlineStores.get)
83 *
84 * @param string $name Required. The name of the FeatureOnlineStore resource.
85 * @param array $optParams Optional parameters.
86 * @return GoogleCloudAiplatformV1FeatureOnlineStore
87 * @throws \Google\Service\Exception
88 */
89 public function get($name, $optParams = [])
90 {
91 $params = ['name' => $name];
92 $params = array_merge($params, $optParams);
93 return $this->call('get', [$params], GoogleCloudAiplatformV1FeatureOnlineStore::class);
94 }
95 /**
96 * Gets the access control policy for a resource. Returns an empty policy if the
97 * resource exists and does not have a policy set.
98 * (featureOnlineStores.getIamPolicy)
99 *
100 * @param string $resource REQUIRED: The resource for which the policy is being
101 * requested. See [Resource
102 * names](https://cloud.google.com/apis/design/resource_names) for the
103 * appropriate value for this field.
104 * @param array $optParams Optional parameters.
105 *
106 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
107 * version that will be used to format the policy. Valid values are 0, 1, and 3.
108 * Requests specifying an invalid value will be rejected. Requests for policies
109 * with any conditional role bindings must specify version 3. Policies with no
110 * conditional role bindings may specify any valid value or leave the field
111 * unset. The policy in the response might use the policy version that you
112 * specified, or it might use a lower policy version. For example, if you
113 * specify version 3, but the policy has no conditional role bindings, the
114 * response uses version 1. To learn which resources support conditions in their
115 * IAM policies, see the [IAM
116 * documentation](https://cloud.google.com/iam/help/conditions/resource-
117 * policies).
118 * @return GoogleIamV1Policy
119 * @throws \Google\Service\Exception
120 */
121 public function getIamPolicy($resource, $optParams = [])
122 {
123 $params = ['resource' => $resource];
124 $params = array_merge($params, $optParams);
125 return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
126 }
127 /**
128 * Lists FeatureOnlineStores in a given project and location.
129 * (featureOnlineStores.listProjectsLocationsFeatureOnlineStores)
130 *
131 * @param string $parent Required. The resource name of the Location to list
132 * FeatureOnlineStores. Format: `projects/{project}/locations/{location}`
133 * @param array $optParams Optional parameters.
134 *
135 * @opt_param string filter Lists the FeatureOnlineStores that match the filter
136 * expression. The following fields are supported: * `create_time`: Supports
137 * `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339
138 * format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=`
139 * comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-
140 * value equality and key presence. Examples: * `create_time > "2020-01-01" OR
141 * update_time > "2020-01-01"` FeatureOnlineStores created or updated after
142 * 2020-01-01. * `labels.env = "prod"` FeatureOnlineStores with label "env" set
143 * to "prod".
144 * @opt_param string orderBy A comma-separated list of fields to order by,
145 * sorted in ascending order. Use "desc" after a field name for descending.
146 * Supported Fields: * `create_time` * `update_time`
147 * @opt_param int pageSize The maximum number of FeatureOnlineStores to return.
148 * The service may return fewer than this value. If unspecified, at most 100
149 * FeatureOnlineStores will be returned. The maximum value is 100; any value
150 * greater than 100 will be coerced to 100.
151 * @opt_param string pageToken A page token, received from a previous
152 * FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to
153 * retrieve the subsequent page. When paginating, all other parameters provided
154 * to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call
155 * that provided the page token.
156 * @return GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse
157 * @throws \Google\Service\Exception
158 */
159 public function listProjectsLocationsFeatureOnlineStores($parent, $optParams = [])
160 {
161 $params = ['parent' => $parent];
162 $params = array_merge($params, $optParams);
163 return $this->call('list', [$params], GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse::class);
164 }
165 /**
166 * Updates the parameters of a single FeatureOnlineStore.
167 * (featureOnlineStores.patch)
168 *
169 * @param string $name Identifier. Name of the FeatureOnlineStore. Format: `proj
170 * ects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`
171 * @param GoogleCloudAiplatformV1FeatureOnlineStore $postBody
172 * @param array $optParams Optional parameters.
173 *
174 * @opt_param string updateMask Field mask is used to specify the fields to be
175 * overwritten in the FeatureOnlineStore resource by the update. The fields
176 * specified in the update_mask are relative to the resource, not the full
177 * request. A field will be overwritten if it is in the mask. If the user does
178 * not provide a mask then only the non-empty fields present in the request will
179 * be overwritten. Set the update_mask to `*` to override all fields. Updatable
180 * fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` *
181 * `bigtable.enable_multi_region_replica`
182 * @return GoogleLongrunningOperation
183 * @throws \Google\Service\Exception
184 */
185 public function patch($name, GoogleCloudAiplatformV1FeatureOnlineStore $postBody, $optParams = [])
186 {
187 $params = ['name' => $name, 'postBody' => $postBody];
188 $params = array_merge($params, $optParams);
189 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
190 }
191 /**
192 * Sets the access control policy on the specified resource. Replaces any
193 * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
194 * `PERMISSION_DENIED` errors. (featureOnlineStores.setIamPolicy)
195 *
196 * @param string $resource REQUIRED: The resource for which the policy is being
197 * specified. See [Resource
198 * names](https://cloud.google.com/apis/design/resource_names) for the
199 * appropriate value for this field.
200 * @param GoogleIamV1SetIamPolicyRequest $postBody
201 * @param array $optParams Optional parameters.
202 * @return GoogleIamV1Policy
203 * @throws \Google\Service\Exception
204 */
205 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
206 {
207 $params = ['resource' => $resource, 'postBody' => $postBody];
208 $params = array_merge($params, $optParams);
209 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
210 }
211 /**
212 * Returns permissions that a caller has on the specified resource. If the
213 * resource does not exist, this will return an empty set of permissions, not a
214 * `NOT_FOUND` error. Note: This operation is designed to be used for building
215 * permission-aware UIs and command-line tools, not for authorization checking.
216 * This operation may "fail open" without warning.
217 * (featureOnlineStores.testIamPermissions)
218 *
219 * @param string $resource REQUIRED: The resource for which the policy detail is
220 * being requested. See [Resource
221 * names](https://cloud.google.com/apis/design/resource_names) for the
222 * appropriate value for this field.
223 * @param array $optParams Optional parameters.
224 *
225 * @opt_param string permissions The set of permissions to check for the
226 * `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not
227 * allowed. For more information see [IAM
228 * Overview](https://cloud.google.com/iam/docs/overview#permissions).
229 * @return GoogleIamV1TestIamPermissionsResponse
230 * @throws \Google\Service\Exception
231 */
232 public function testIamPermissions($resource, $optParams = [])
233 {
234 $params = ['resource' => $resource];
235 $params = array_merge($params, $optParams);
236 return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
237 }
238}
239
240// Adding a class alias for backwards compatibility with the previous class name.
241class_alias(ProjectsLocationsFeatureOnlineStores::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsFeatureOnlineStores');
Note: See TracBrowser for help on using the repository browser.