source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsMetadataStoresMetadataSchemas.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: 4.7 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\GoogleCloudAiplatformV1ListMetadataSchemasResponse;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1MetadataSchema;
22
23/**
24 * The "metadataSchemas" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $aiplatformService = new Google\Service\Aiplatform(...);
28 * $metadataSchemas = $aiplatformService->projects_locations_metadataStores_metadataSchemas;
29 * </code>
30 */
31class ProjectsLocationsMetadataStoresMetadataSchemas extends \Google\Service\Resource
32{
33 /**
34 * Creates a MetadataSchema. (metadataSchemas.create)
35 *
36 * @param string $parent Required. The resource name of the MetadataStore where
37 * the MetadataSchema should be created. Format:
38 * `projects/{project}/locations/{location}/metadataStores/{metadatastore}`
39 * @param GoogleCloudAiplatformV1MetadataSchema $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string metadataSchemaId The {metadata_schema} portion of the
43 * resource name with the format: `projects/{project}/locations/{location}/metad
44 * ataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided,
45 * the MetadataStore's ID will be a UUID generated by the service. Must be 4-128
46 * characters in length. Valid characters are `/a-z-/`. Must be unique across
47 * all MetadataSchemas in the parent Location. (Otherwise the request will fail
48 * with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the
49 * preexisting MetadataSchema.)
50 * @return GoogleCloudAiplatformV1MetadataSchema
51 * @throws \Google\Service\Exception
52 */
53 public function create($parent, GoogleCloudAiplatformV1MetadataSchema $postBody, $optParams = [])
54 {
55 $params = ['parent' => $parent, 'postBody' => $postBody];
56 $params = array_merge($params, $optParams);
57 return $this->call('create', [$params], GoogleCloudAiplatformV1MetadataSchema::class);
58 }
59 /**
60 * Retrieves a specific MetadataSchema. (metadataSchemas.get)
61 *
62 * @param string $name Required. The resource name of the MetadataSchema to
63 * retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{me
64 * tadatastore}/metadataSchemas/{metadataschema}`
65 * @param array $optParams Optional parameters.
66 * @return GoogleCloudAiplatformV1MetadataSchema
67 * @throws \Google\Service\Exception
68 */
69 public function get($name, $optParams = [])
70 {
71 $params = ['name' => $name];
72 $params = array_merge($params, $optParams);
73 return $this->call('get', [$params], GoogleCloudAiplatformV1MetadataSchema::class);
74 }
75 /**
76 * Lists MetadataSchemas.
77 * (metadataSchemas.listProjectsLocationsMetadataStoresMetadataSchemas)
78 *
79 * @param string $parent Required. The MetadataStore whose MetadataSchemas
80 * should be listed. Format:
81 * `projects/{project}/locations/{location}/metadataStores/{metadatastore}`
82 * @param array $optParams Optional parameters.
83 *
84 * @opt_param string filter A query to filter available MetadataSchemas for
85 * matching results.
86 * @opt_param int pageSize The maximum number of MetadataSchemas to return. The
87 * service may return fewer. Must be in range 1-1000, inclusive. Defaults to
88 * 100.
89 * @opt_param string pageToken A page token, received from a previous
90 * MetadataService.ListMetadataSchemas call. Provide this to retrieve the next
91 * page. When paginating, all other provided parameters must match the call that
92 * provided the page token. (Otherwise the request will fail with
93 * INVALID_ARGUMENT error.)
94 * @return GoogleCloudAiplatformV1ListMetadataSchemasResponse
95 * @throws \Google\Service\Exception
96 */
97 public function listProjectsLocationsMetadataStoresMetadataSchemas($parent, $optParams = [])
98 {
99 $params = ['parent' => $parent];
100 $params = array_merge($params, $optParams);
101 return $this->call('list', [$params], GoogleCloudAiplatformV1ListMetadataSchemasResponse::class);
102 }
103}
104
105// Adding a class alias for backwards compatibility with the previous class name.
106class_alias(ProjectsLocationsMetadataStoresMetadataSchemas::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsMetadataStoresMetadataSchemas');
Note: See TracBrowser for help on using the repository browser.