source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsMetadataStoresArtifacts.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.3 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\GoogleCloudAiplatformV1Artifact;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1LineageSubgraph;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListArtifactsResponse;
23use Google\Service\Aiplatform\GoogleCloudAiplatformV1PurgeArtifactsRequest;
24use Google\Service\Aiplatform\GoogleLongrunningOperation;
25
26/**
27 * The "artifacts" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $aiplatformService = new Google\Service\Aiplatform(...);
31 * $artifacts = $aiplatformService->projects_locations_metadataStores_artifacts;
32 * </code>
33 */
34class ProjectsLocationsMetadataStoresArtifacts extends \Google\Service\Resource
35{
36 /**
37 * Creates an Artifact associated with a MetadataStore. (artifacts.create)
38 *
39 * @param string $parent Required. The resource name of the MetadataStore where
40 * the Artifact should be created. Format:
41 * `projects/{project}/locations/{location}/metadataStores/{metadatastore}`
42 * @param GoogleCloudAiplatformV1Artifact $postBody
43 * @param array $optParams Optional parameters.
44 *
45 * @opt_param string artifactId The {artifact} portion of the resource name with
46 * the format: `projects/{project}/locations/{location}/metadataStores/{metadata
47 * store}/artifacts/{artifact}` If not provided, the Artifact's ID will be a
48 * UUID generated by the service. Must be 4-128 characters in length. Valid
49 * characters are `/a-z-/`. Must be unique across all Artifacts in the parent
50 * MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or
51 * PERMISSION_DENIED if the caller can't view the preexisting Artifact.)
52 * @return GoogleCloudAiplatformV1Artifact
53 * @throws \Google\Service\Exception
54 */
55 public function create($parent, GoogleCloudAiplatformV1Artifact $postBody, $optParams = [])
56 {
57 $params = ['parent' => $parent, 'postBody' => $postBody];
58 $params = array_merge($params, $optParams);
59 return $this->call('create', [$params], GoogleCloudAiplatformV1Artifact::class);
60 }
61 /**
62 * Deletes an Artifact. (artifacts.delete)
63 *
64 * @param string $name Required. The resource name of the Artifact to delete.
65 * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastor
66 * e}/artifacts/{artifact}`
67 * @param array $optParams Optional parameters.
68 *
69 * @opt_param string etag Optional. The etag of the Artifact to delete. If this
70 * is provided, it must match the server's etag. Otherwise, the request will
71 * fail with a FAILED_PRECONDITION.
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 * Retrieves a specific Artifact. (artifacts.get)
83 *
84 * @param string $name Required. The resource name of the Artifact to retrieve.
85 * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastor
86 * e}/artifacts/{artifact}`
87 * @param array $optParams Optional parameters.
88 * @return GoogleCloudAiplatformV1Artifact
89 * @throws \Google\Service\Exception
90 */
91 public function get($name, $optParams = [])
92 {
93 $params = ['name' => $name];
94 $params = array_merge($params, $optParams);
95 return $this->call('get', [$params], GoogleCloudAiplatformV1Artifact::class);
96 }
97 /**
98 * Lists Artifacts in the MetadataStore.
99 * (artifacts.listProjectsLocationsMetadataStoresArtifacts)
100 *
101 * @param string $parent Required. The MetadataStore whose Artifacts should be
102 * listed. Format:
103 * `projects/{project}/locations/{location}/metadataStores/{metadatastore}`
104 * @param array $optParams Optional parameters.
105 *
106 * @opt_param string filter Filter specifying the boolean condition for the
107 * Artifacts to satisfy in order to be part of the result set. The syntax to
108 * define filter query is based on https://google.aip.dev/160. The supported set
109 * of filters include the following: * **Attribute filtering**: For example:
110 * `display_name = "test"`. Supported fields include: `name`, `display_name`,
111 * `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time
112 * fields, such as `create_time` and `update_time`, require values specified in
113 * RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"` *
114 * **Metadata field**: To filter on metadata fields use traversal operation as
115 * follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In
116 * case the field name contains special characters (such as colon), one can
117 * embed it inside double quote. For example: `metadata."field:1".number_value =
118 * 10.0` * **Context based filtering**: To filter Artifacts based on the
119 * contexts to which they belong, use the function operator with the full
120 * resource name `in_context()`. For example:
121 * `in_context("projects//locations//metadataStores//contexts/")` Each of the
122 * above supported filter types can be combined together using logical operators
123 * (`AND` & `OR`). Maximum nested expression depth allowed is 5. For example:
124 * `display_name = "test" AND metadata.field1.bool_value = true`.
125 * @opt_param string orderBy How the list of messages is ordered. Specify the
126 * values to order by and an ordering operation. The default sorting order is
127 * ascending. To specify descending order for a field, users append a " desc"
128 * suffix; for example: "foo desc, bar". Subfields are specified with a `.`
129 * character, such as foo.bar. see https://google.aip.dev/132#ordering for more
130 * details.
131 * @opt_param int pageSize The maximum number of Artifacts to return. The
132 * service may return fewer. Must be in range 1-1000, inclusive. Defaults to
133 * 100.
134 * @opt_param string pageToken A page token, received from a previous
135 * MetadataService.ListArtifacts call. Provide this to retrieve the subsequent
136 * page. When paginating, all other provided parameters must match the call that
137 * provided the page token. (Otherwise the request will fail with
138 * INVALID_ARGUMENT error.)
139 * @return GoogleCloudAiplatformV1ListArtifactsResponse
140 * @throws \Google\Service\Exception
141 */
142 public function listProjectsLocationsMetadataStoresArtifacts($parent, $optParams = [])
143 {
144 $params = ['parent' => $parent];
145 $params = array_merge($params, $optParams);
146 return $this->call('list', [$params], GoogleCloudAiplatformV1ListArtifactsResponse::class);
147 }
148 /**
149 * Updates a stored Artifact. (artifacts.patch)
150 *
151 * @param string $name Output only. The resource name of the Artifact.
152 * @param GoogleCloudAiplatformV1Artifact $postBody
153 * @param array $optParams Optional parameters.
154 *
155 * @opt_param bool allowMissing If set to true, and the Artifact is not found, a
156 * new Artifact is created.
157 * @opt_param string updateMask Optional. A FieldMask indicating which fields
158 * should be updated.
159 * @return GoogleCloudAiplatformV1Artifact
160 * @throws \Google\Service\Exception
161 */
162 public function patch($name, GoogleCloudAiplatformV1Artifact $postBody, $optParams = [])
163 {
164 $params = ['name' => $name, 'postBody' => $postBody];
165 $params = array_merge($params, $optParams);
166 return $this->call('patch', [$params], GoogleCloudAiplatformV1Artifact::class);
167 }
168 /**
169 * Purges Artifacts. (artifacts.purge)
170 *
171 * @param string $parent Required. The metadata store to purge Artifacts from.
172 * Format:
173 * `projects/{project}/locations/{location}/metadataStores/{metadatastore}`
174 * @param GoogleCloudAiplatformV1PurgeArtifactsRequest $postBody
175 * @param array $optParams Optional parameters.
176 * @return GoogleLongrunningOperation
177 * @throws \Google\Service\Exception
178 */
179 public function purge($parent, GoogleCloudAiplatformV1PurgeArtifactsRequest $postBody, $optParams = [])
180 {
181 $params = ['parent' => $parent, 'postBody' => $postBody];
182 $params = array_merge($params, $optParams);
183 return $this->call('purge', [$params], GoogleLongrunningOperation::class);
184 }
185 /**
186 * Retrieves lineage of an Artifact represented through Artifacts and Executions
187 * connected by Event edges and returned as a LineageSubgraph.
188 * (artifacts.queryArtifactLineageSubgraph)
189 *
190 * @param string $artifact Required. The resource name of the Artifact whose
191 * Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{projec
192 * t}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
193 * The request may error with FAILED_PRECONDITION if the number of Artifacts,
194 * the number of Executions, or the number of Events that would be returned for
195 * the Context exceeds 1000.
196 * @param array $optParams Optional parameters.
197 *
198 * @opt_param string filter Filter specifying the boolean condition for the
199 * Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax
200 * to define filter query is based on https://google.aip.dev/160. The supported
201 * set of filters include the following: * **Attribute filtering**: For example:
202 * `display_name = "test"` Supported fields include: `name`, `display_name`,
203 * `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time
204 * fields, such as `create_time` and `update_time`, require values specified in
205 * RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"` *
206 * **Metadata field**: To filter on metadata fields use traversal operation as
207 * follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In
208 * case the field name contains special characters (such as colon), one can
209 * embed it inside double quote. For example: `metadata."field:1".number_value =
210 * 10.0` Each of the above supported filter types can be combined together using
211 * logical operators (`AND` & `OR`). Maximum nested expression depth allowed is
212 * 5. For example: `display_name = "test" AND metadata.field1.bool_value =
213 * true`.
214 * @opt_param int maxHops Specifies the size of the lineage graph in terms of
215 * number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT
216 * error is returned 0: Only input artifact is returned. No value: Transitive
217 * closure is performed to return the complete graph.
218 * @return GoogleCloudAiplatformV1LineageSubgraph
219 * @throws \Google\Service\Exception
220 */
221 public function queryArtifactLineageSubgraph($artifact, $optParams = [])
222 {
223 $params = ['artifact' => $artifact];
224 $params = array_merge($params, $optParams);
225 return $this->call('queryArtifactLineageSubgraph', [$params], GoogleCloudAiplatformV1LineageSubgraph::class);
226 }
227}
228
229// Adding a class alias for backwards compatibility with the previous class name.
230class_alias(ProjectsLocationsMetadataStoresArtifacts::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsMetadataStoresArtifacts');
Note: See TracBrowser for help on using the repository browser.