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