source: vendor/google/apiclient-services/src/CloudDataplex/Resource/ProjectsLocationsDataTaxonomies.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 10.1 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\CloudDataplex\Resource;
19
20use Google\Service\CloudDataplex\GoogleCloudDataplexV1DataTaxonomy;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListDataTaxonomiesResponse;
22use Google\Service\CloudDataplex\GoogleIamV1Policy;
23use Google\Service\CloudDataplex\GoogleIamV1SetIamPolicyRequest;
24use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsRequest;
25use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsResponse;
26use Google\Service\CloudDataplex\GoogleLongrunningOperation;
27
28/**
29 * The "dataTaxonomies" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $dataplexService = new Google\Service\CloudDataplex(...);
33 * $dataTaxonomies = $dataplexService->projects_locations_dataTaxonomies;
34 * </code>
35 */
36class ProjectsLocationsDataTaxonomies extends \Google\Service\Resource
37{
38 /**
39 * Create a DataTaxonomy resource. (dataTaxonomies.create)
40 *
41 * @param string $parent Required. The resource name of the data taxonomy
42 * location, of the form: projects/{project_number}/locations/{location_id}
43 * where location_id refers to a GCP region.
44 * @param GoogleCloudDataplexV1DataTaxonomy $postBody
45 * @param array $optParams Optional parameters.
46 *
47 * @opt_param string dataTaxonomyId Required. DataTaxonomy identifier. * Must
48 * contain only lowercase letters, numbers and hyphens. * Must start with a
49 * letter. * Must be between 1-63 characters. * Must end with a number or a
50 * letter. * Must be unique within the Project.
51 * @opt_param bool validateOnly Optional. Only validate the request, but do not
52 * perform mutations. The default is false.
53 * @return GoogleLongrunningOperation
54 * @throws \Google\Service\Exception
55 */
56 public function create($parent, GoogleCloudDataplexV1DataTaxonomy $postBody, $optParams = [])
57 {
58 $params = ['parent' => $parent, 'postBody' => $postBody];
59 $params = array_merge($params, $optParams);
60 return $this->call('create', [$params], GoogleLongrunningOperation::class);
61 }
62 /**
63 * Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must
64 * be deleted before the DataTaxonomy can be deleted. (dataTaxonomies.delete)
65 *
66 * @param string $name Required. The resource name of the DataTaxonomy: projects
67 * /{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
68 * @param array $optParams Optional parameters.
69 *
70 * @opt_param string etag Optional. If the client provided etag value does not
71 * match the current etag value,the DeleteDataTaxonomy method returns an ABORTED
72 * error.
73 * @return GoogleLongrunningOperation
74 * @throws \Google\Service\Exception
75 */
76 public function delete($name, $optParams = [])
77 {
78 $params = ['name' => $name];
79 $params = array_merge($params, $optParams);
80 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
81 }
82 /**
83 * Retrieves a DataTaxonomy resource. (dataTaxonomies.get)
84 *
85 * @param string $name Required. The resource name of the DataTaxonomy: projects
86 * /{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}
87 * @param array $optParams Optional parameters.
88 * @return GoogleCloudDataplexV1DataTaxonomy
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], GoogleCloudDataplexV1DataTaxonomy::class);
96 }
97 /**
98 * Gets the access control policy for a resource. Returns an empty policy if the
99 * resource exists and does not have a policy set. (dataTaxonomies.getIamPolicy)
100 *
101 * @param string $resource REQUIRED: The resource for which the policy is being
102 * requested. See Resource names
103 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
104 * value for this field.
105 * @param array $optParams Optional parameters.
106 *
107 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
108 * version that will be used to format the policy.Valid values are 0, 1, and 3.
109 * Requests specifying an invalid value will be rejected.Requests for policies
110 * with any conditional role bindings must specify version 3. Policies with no
111 * conditional role bindings may specify any valid value or leave the field
112 * unset.The policy in the response might use the policy version that you
113 * specified, or it might use a lower policy version. For example, if you
114 * specify version 3, but the policy has no conditional role bindings, the
115 * response uses version 1.To learn which resources support conditions in their
116 * IAM policies, see the IAM documentation
117 * (https://cloud.google.com/iam/help/conditions/resource-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 DataTaxonomy resources in a project and location.
129 * (dataTaxonomies.listProjectsLocationsDataTaxonomies)
130 *
131 * @param string $parent Required. The resource name of the DataTaxonomy
132 * location, of the form: projects/{project_number}/locations/{location_id}
133 * where location_id refers to a GCP region.
134 * @param array $optParams Optional parameters.
135 *
136 * @opt_param string filter Optional. Filter request.
137 * @opt_param string orderBy Optional. Order by fields for the result.
138 * @opt_param int pageSize Optional. Maximum number of DataTaxonomies to return.
139 * The service may return fewer than this value. If unspecified, at most 10
140 * DataTaxonomies will be returned. The maximum value is 1000; values above 1000
141 * will be coerced to 1000.
142 * @opt_param string pageToken Optional. Page token received from a previous
143 * ListDataTaxonomies call. Provide this to retrieve the subsequent page. When
144 * paginating, all other parameters provided to ListDataTaxonomies must match
145 * the call that provided the page token.
146 * @return GoogleCloudDataplexV1ListDataTaxonomiesResponse
147 * @throws \Google\Service\Exception
148 */
149 public function listProjectsLocationsDataTaxonomies($parent, $optParams = [])
150 {
151 $params = ['parent' => $parent];
152 $params = array_merge($params, $optParams);
153 return $this->call('list', [$params], GoogleCloudDataplexV1ListDataTaxonomiesResponse::class);
154 }
155 /**
156 * Updates a DataTaxonomy resource. (dataTaxonomies.patch)
157 *
158 * @param string $name Output only. The relative resource name of the
159 * DataTaxonomy, of the form: projects/{project_number}/locations/{location_id}/
160 * dataTaxonomies/{data_taxonomy_id}.
161 * @param GoogleCloudDataplexV1DataTaxonomy $postBody
162 * @param array $optParams Optional parameters.
163 *
164 * @opt_param string updateMask Required. Mask of fields to update.
165 * @opt_param bool validateOnly Optional. Only validate the request, but do not
166 * perform mutations. The default is false.
167 * @return GoogleLongrunningOperation
168 * @throws \Google\Service\Exception
169 */
170 public function patch($name, GoogleCloudDataplexV1DataTaxonomy $postBody, $optParams = [])
171 {
172 $params = ['name' => $name, 'postBody' => $postBody];
173 $params = array_merge($params, $optParams);
174 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
175 }
176 /**
177 * Sets the access control policy on the specified resource. Replaces any
178 * existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
179 * errors. (dataTaxonomies.setIamPolicy)
180 *
181 * @param string $resource REQUIRED: The resource for which the policy is being
182 * specified. See Resource names
183 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
184 * value for this field.
185 * @param GoogleIamV1SetIamPolicyRequest $postBody
186 * @param array $optParams Optional parameters.
187 * @return GoogleIamV1Policy
188 * @throws \Google\Service\Exception
189 */
190 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
191 {
192 $params = ['resource' => $resource, 'postBody' => $postBody];
193 $params = array_merge($params, $optParams);
194 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
195 }
196 /**
197 * Returns permissions that a caller has on the specified resource. If the
198 * resource does not exist, this will return an empty set of permissions, not a
199 * NOT_FOUND error.Note: This operation is designed to be used for building
200 * permission-aware UIs and command-line tools, not for authorization checking.
201 * This operation may "fail open" without warning.
202 * (dataTaxonomies.testIamPermissions)
203 *
204 * @param string $resource REQUIRED: The resource for which the policy detail is
205 * being requested. See Resource names
206 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
207 * value for this field.
208 * @param GoogleIamV1TestIamPermissionsRequest $postBody
209 * @param array $optParams Optional parameters.
210 * @return GoogleIamV1TestIamPermissionsResponse
211 * @throws \Google\Service\Exception
212 */
213 public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
214 {
215 $params = ['resource' => $resource, 'postBody' => $postBody];
216 $params = array_merge($params, $optParams);
217 return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
218 }
219}
220
221// Adding a class alias for backwards compatibility with the previous class name.
222class_alias(ProjectsLocationsDataTaxonomies::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsDataTaxonomies');
Note: See TracBrowser for help on using the repository browser.