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 |
|
---|
18 | namespace Google\Service\DatabaseMigrationService\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\DatabaseMigrationService\ApplyConversionWorkspaceRequest;
|
---|
21 | use Google\Service\DatabaseMigrationService\CommitConversionWorkspaceRequest;
|
---|
22 | use Google\Service\DatabaseMigrationService\ConversionWorkspace;
|
---|
23 | use Google\Service\DatabaseMigrationService\ConvertConversionWorkspaceRequest;
|
---|
24 | use Google\Service\DatabaseMigrationService\DescribeConversionWorkspaceRevisionsResponse;
|
---|
25 | use Google\Service\DatabaseMigrationService\DescribeDatabaseEntitiesResponse;
|
---|
26 | use Google\Service\DatabaseMigrationService\ListConversionWorkspacesResponse;
|
---|
27 | use Google\Service\DatabaseMigrationService\Operation;
|
---|
28 | use Google\Service\DatabaseMigrationService\Policy;
|
---|
29 | use Google\Service\DatabaseMigrationService\RollbackConversionWorkspaceRequest;
|
---|
30 | use Google\Service\DatabaseMigrationService\SearchBackgroundJobsResponse;
|
---|
31 | use Google\Service\DatabaseMigrationService\SeedConversionWorkspaceRequest;
|
---|
32 | use Google\Service\DatabaseMigrationService\SetIamPolicyRequest;
|
---|
33 | use Google\Service\DatabaseMigrationService\TestIamPermissionsRequest;
|
---|
34 | use Google\Service\DatabaseMigrationService\TestIamPermissionsResponse;
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * The "conversionWorkspaces" collection of methods.
|
---|
38 | * Typical usage is:
|
---|
39 | * <code>
|
---|
40 | * $datamigrationService = new Google\Service\DatabaseMigrationService(...);
|
---|
41 | * $conversionWorkspaces = $datamigrationService->projects_locations_conversionWorkspaces;
|
---|
42 | * </code>
|
---|
43 | */
|
---|
44 | class ProjectsLocationsConversionWorkspaces extends \Google\Service\Resource
|
---|
45 | {
|
---|
46 | /**
|
---|
47 | * Applies draft tree onto a specific destination database.
|
---|
48 | * (conversionWorkspaces.apply)
|
---|
49 | *
|
---|
50 | * @param string $name Required. The name of the conversion workspace resource
|
---|
51 | * for which to apply the draft tree. Must be in the form of: projects/{project}
|
---|
52 | * /locations/{location}/conversionWorkspaces/{conversion_workspace}.
|
---|
53 | * @param ApplyConversionWorkspaceRequest $postBody
|
---|
54 | * @param array $optParams Optional parameters.
|
---|
55 | * @return Operation
|
---|
56 | * @throws \Google\Service\Exception
|
---|
57 | */
|
---|
58 | public function apply($name, ApplyConversionWorkspaceRequest $postBody, $optParams = [])
|
---|
59 | {
|
---|
60 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
61 | $params = array_merge($params, $optParams);
|
---|
62 | return $this->call('apply', [$params], Operation::class);
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * Marks all the data in the conversion workspace as committed.
|
---|
66 | * (conversionWorkspaces.commit)
|
---|
67 | *
|
---|
68 | * @param string $name Required. Name of the conversion workspace resource to
|
---|
69 | * commit.
|
---|
70 | * @param CommitConversionWorkspaceRequest $postBody
|
---|
71 | * @param array $optParams Optional parameters.
|
---|
72 | * @return Operation
|
---|
73 | * @throws \Google\Service\Exception
|
---|
74 | */
|
---|
75 | public function commit($name, CommitConversionWorkspaceRequest $postBody, $optParams = [])
|
---|
76 | {
|
---|
77 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
78 | $params = array_merge($params, $optParams);
|
---|
79 | return $this->call('commit', [$params], Operation::class);
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * Creates a draft tree schema for the destination database.
|
---|
83 | * (conversionWorkspaces.convert)
|
---|
84 | *
|
---|
85 | * @param string $name Name of the conversion workspace resource to convert in
|
---|
86 | * the form of: projects/{project}/locations/{location}/conversionWorkspaces/{co
|
---|
87 | * nversion_workspace}.
|
---|
88 | * @param ConvertConversionWorkspaceRequest $postBody
|
---|
89 | * @param array $optParams Optional parameters.
|
---|
90 | * @return Operation
|
---|
91 | * @throws \Google\Service\Exception
|
---|
92 | */
|
---|
93 | public function convert($name, ConvertConversionWorkspaceRequest $postBody, $optParams = [])
|
---|
94 | {
|
---|
95 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
96 | $params = array_merge($params, $optParams);
|
---|
97 | return $this->call('convert', [$params], Operation::class);
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * Creates a new conversion workspace in a given project and location.
|
---|
101 | * (conversionWorkspaces.create)
|
---|
102 | *
|
---|
103 | * @param string $parent Required. The parent which owns this collection of
|
---|
104 | * conversion workspaces.
|
---|
105 | * @param ConversionWorkspace $postBody
|
---|
106 | * @param array $optParams Optional parameters.
|
---|
107 | *
|
---|
108 | * @opt_param string conversionWorkspaceId Required. The ID of the conversion
|
---|
109 | * workspace to create.
|
---|
110 | * @opt_param string requestId A unique ID used to identify the request. If the
|
---|
111 | * server receives two requests with the same ID, then the second request is
|
---|
112 | * ignored. It is recommended to always set this value to a UUID. The ID must
|
---|
113 | * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens
|
---|
114 | * (-). The maximum length is 40 characters.
|
---|
115 | * @return Operation
|
---|
116 | * @throws \Google\Service\Exception
|
---|
117 | */
|
---|
118 | public function create($parent, ConversionWorkspace $postBody, $optParams = [])
|
---|
119 | {
|
---|
120 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
121 | $params = array_merge($params, $optParams);
|
---|
122 | return $this->call('create', [$params], Operation::class);
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * Deletes a single conversion workspace. (conversionWorkspaces.delete)
|
---|
126 | *
|
---|
127 | * @param string $name Required. Name of the conversion workspace resource to
|
---|
128 | * delete.
|
---|
129 | * @param array $optParams Optional parameters.
|
---|
130 | *
|
---|
131 | * @opt_param bool force Force delete the conversion workspace, even if there's
|
---|
132 | * a running migration that is using the workspace.
|
---|
133 | * @opt_param string requestId A unique ID used to identify the request. If the
|
---|
134 | * server receives two requests with the same ID, then the second request is
|
---|
135 | * ignored. It is recommended to always set this value to a UUID. The ID must
|
---|
136 | * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens
|
---|
137 | * (-). The maximum length is 40 characters.
|
---|
138 | * @return Operation
|
---|
139 | * @throws \Google\Service\Exception
|
---|
140 | */
|
---|
141 | public function delete($name, $optParams = [])
|
---|
142 | {
|
---|
143 | $params = ['name' => $name];
|
---|
144 | $params = array_merge($params, $optParams);
|
---|
145 | return $this->call('delete', [$params], Operation::class);
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * Retrieves a list of committed revisions of a specific conversion workspace.
|
---|
149 | * (conversionWorkspaces.describeConversionWorkspaceRevisions)
|
---|
150 | *
|
---|
151 | * @param string $conversionWorkspace Required. Name of the conversion workspace
|
---|
152 | * resource whose revisions are listed. Must be in the form of: projects/{projec
|
---|
153 | * t}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
|
---|
154 | * @param array $optParams Optional parameters.
|
---|
155 | *
|
---|
156 | * @opt_param string commitId Optional. Optional filter to request a specific
|
---|
157 | * commit ID.
|
---|
158 | * @return DescribeConversionWorkspaceRevisionsResponse
|
---|
159 | * @throws \Google\Service\Exception
|
---|
160 | */
|
---|
161 | public function describeConversionWorkspaceRevisions($conversionWorkspace, $optParams = [])
|
---|
162 | {
|
---|
163 | $params = ['conversionWorkspace' => $conversionWorkspace];
|
---|
164 | $params = array_merge($params, $optParams);
|
---|
165 | return $this->call('describeConversionWorkspaceRevisions', [$params], DescribeConversionWorkspaceRevisionsResponse::class);
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * Describes the database entities tree for a specific conversion workspace and
|
---|
169 | * a specific tree type. Database entities are not resources like conversion
|
---|
170 | * workspaces or mapping rules, and they can't be created, updated or deleted.
|
---|
171 | * Instead, they are simple data objects describing the structure of the client
|
---|
172 | * database. (conversionWorkspaces.describeDatabaseEntities)
|
---|
173 | *
|
---|
174 | * @param string $conversionWorkspace Required. Name of the conversion workspace
|
---|
175 | * resource whose database entities are described. Must be in the form of: proje
|
---|
176 | * cts/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace
|
---|
177 | * }.
|
---|
178 | * @param array $optParams Optional parameters.
|
---|
179 | *
|
---|
180 | * @opt_param string commitId Optional. Request a specific commit ID. If not
|
---|
181 | * specified, the entities from the latest commit are returned.
|
---|
182 | * @opt_param string filter Optional. Filter the returned entities based on
|
---|
183 | * AIP-160 standard.
|
---|
184 | * @opt_param int pageSize Optional. The maximum number of entities to return.
|
---|
185 | * The service may return fewer entities than the value specifies.
|
---|
186 | * @opt_param string pageToken Optional. The nextPageToken value received in the
|
---|
187 | * previous call to conversionWorkspace.describeDatabaseEntities, used in the
|
---|
188 | * subsequent request to retrieve the next page of results. On first call this
|
---|
189 | * should be left blank. When paginating, all other parameters provided to
|
---|
190 | * conversionWorkspace.describeDatabaseEntities must match the call that
|
---|
191 | * provided the page token.
|
---|
192 | * @opt_param string tree Required. The tree to fetch.
|
---|
193 | * @opt_param bool uncommitted Optional. Whether to retrieve the latest
|
---|
194 | * committed version of the entities or the latest version. This field is
|
---|
195 | * ignored if a specific commit_id is specified.
|
---|
196 | * @opt_param string view Optional. Results view based on AIP-157
|
---|
197 | * @return DescribeDatabaseEntitiesResponse
|
---|
198 | * @throws \Google\Service\Exception
|
---|
199 | */
|
---|
200 | public function describeDatabaseEntities($conversionWorkspace, $optParams = [])
|
---|
201 | {
|
---|
202 | $params = ['conversionWorkspace' => $conversionWorkspace];
|
---|
203 | $params = array_merge($params, $optParams);
|
---|
204 | return $this->call('describeDatabaseEntities', [$params], DescribeDatabaseEntitiesResponse::class);
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * Gets details of a single conversion workspace. (conversionWorkspaces.get)
|
---|
208 | *
|
---|
209 | * @param string $name Required. Name of the conversion workspace resource to
|
---|
210 | * get.
|
---|
211 | * @param array $optParams Optional parameters.
|
---|
212 | * @return ConversionWorkspace
|
---|
213 | * @throws \Google\Service\Exception
|
---|
214 | */
|
---|
215 | public function get($name, $optParams = [])
|
---|
216 | {
|
---|
217 | $params = ['name' => $name];
|
---|
218 | $params = array_merge($params, $optParams);
|
---|
219 | return $this->call('get', [$params], ConversionWorkspace::class);
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * Gets the access control policy for a resource. Returns an empty policy if the
|
---|
223 | * resource exists and does not have a policy set.
|
---|
224 | * (conversionWorkspaces.getIamPolicy)
|
---|
225 | *
|
---|
226 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
227 | * requested. See [Resource
|
---|
228 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
229 | * appropriate value for this field.
|
---|
230 | * @param array $optParams Optional parameters.
|
---|
231 | *
|
---|
232 | * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
|
---|
233 | * version that will be used to format the policy. Valid values are 0, 1, and 3.
|
---|
234 | * Requests specifying an invalid value will be rejected. Requests for policies
|
---|
235 | * with any conditional role bindings must specify version 3. Policies with no
|
---|
236 | * conditional role bindings may specify any valid value or leave the field
|
---|
237 | * unset. The policy in the response might use the policy version that you
|
---|
238 | * specified, or it might use a lower policy version. For example, if you
|
---|
239 | * specify version 3, but the policy has no conditional role bindings, the
|
---|
240 | * response uses version 1. To learn which resources support conditions in their
|
---|
241 | * IAM policies, see the [IAM
|
---|
242 | * documentation](https://cloud.google.com/iam/help/conditions/resource-
|
---|
243 | * policies).
|
---|
244 | * @return Policy
|
---|
245 | * @throws \Google\Service\Exception
|
---|
246 | */
|
---|
247 | public function getIamPolicy($resource, $optParams = [])
|
---|
248 | {
|
---|
249 | $params = ['resource' => $resource];
|
---|
250 | $params = array_merge($params, $optParams);
|
---|
251 | return $this->call('getIamPolicy', [$params], Policy::class);
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * Lists conversion workspaces in a given project and location.
|
---|
255 | * (conversionWorkspaces.listProjectsLocationsConversionWorkspaces)
|
---|
256 | *
|
---|
257 | * @param string $parent Required. The parent which owns this collection of
|
---|
258 | * conversion workspaces.
|
---|
259 | * @param array $optParams Optional parameters.
|
---|
260 | *
|
---|
261 | * @opt_param string filter A filter expression that filters conversion
|
---|
262 | * workspaces listed in the response. The expression must specify the field
|
---|
263 | * name, a comparison operator, and the value that you want to use for
|
---|
264 | * filtering. The value must be a string, a number, or a boolean. The comparison
|
---|
265 | * operator must be either =, !=, >, or <. For example, list conversion
|
---|
266 | * workspaces created this year by specifying **createTime %gt;
|
---|
267 | * 2020-01-01T00:00:00.000000000Z.** You can also filter nested fields. For
|
---|
268 | * example, you could specify **source.version = "12.c.1"** to select all
|
---|
269 | * conversion workspaces with source database version equal to 12.c.1.
|
---|
270 | * @opt_param int pageSize The maximum number of conversion workspaces to
|
---|
271 | * return. The service may return fewer than this value. If unspecified, at most
|
---|
272 | * 50 sets are returned.
|
---|
273 | * @opt_param string pageToken The nextPageToken value received in the previous
|
---|
274 | * call to conversionWorkspaces.list, used in the subsequent request to retrieve
|
---|
275 | * the next page of results. On first call this should be left blank. When
|
---|
276 | * paginating, all other parameters provided to conversionWorkspaces.list must
|
---|
277 | * match the call that provided the page token.
|
---|
278 | * @return ListConversionWorkspacesResponse
|
---|
279 | * @throws \Google\Service\Exception
|
---|
280 | */
|
---|
281 | public function listProjectsLocationsConversionWorkspaces($parent, $optParams = [])
|
---|
282 | {
|
---|
283 | $params = ['parent' => $parent];
|
---|
284 | $params = array_merge($params, $optParams);
|
---|
285 | return $this->call('list', [$params], ListConversionWorkspacesResponse::class);
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * Updates the parameters of a single conversion workspace.
|
---|
289 | * (conversionWorkspaces.patch)
|
---|
290 | *
|
---|
291 | * @param string $name Full name of the workspace resource, in the form of: proj
|
---|
292 | * ects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspac
|
---|
293 | * e}.
|
---|
294 | * @param ConversionWorkspace $postBody
|
---|
295 | * @param array $optParams Optional parameters.
|
---|
296 | *
|
---|
297 | * @opt_param string requestId A unique ID used to identify the request. If the
|
---|
298 | * server receives two requests with the same ID, then the second request is
|
---|
299 | * ignored. It is recommended to always set this value to a UUID. The ID must
|
---|
300 | * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens
|
---|
301 | * (-). The maximum length is 40 characters.
|
---|
302 | * @opt_param string updateMask Required. Field mask is used to specify the
|
---|
303 | * fields to be overwritten by the update in the conversion workspace resource.
|
---|
304 | * @return Operation
|
---|
305 | * @throws \Google\Service\Exception
|
---|
306 | */
|
---|
307 | public function patch($name, ConversionWorkspace $postBody, $optParams = [])
|
---|
308 | {
|
---|
309 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
310 | $params = array_merge($params, $optParams);
|
---|
311 | return $this->call('patch', [$params], Operation::class);
|
---|
312 | }
|
---|
313 | /**
|
---|
314 | * Rolls back a conversion workspace to the last committed snapshot.
|
---|
315 | * (conversionWorkspaces.rollback)
|
---|
316 | *
|
---|
317 | * @param string $name Required. Name of the conversion workspace resource to
|
---|
318 | * roll back to.
|
---|
319 | * @param RollbackConversionWorkspaceRequest $postBody
|
---|
320 | * @param array $optParams Optional parameters.
|
---|
321 | * @return Operation
|
---|
322 | * @throws \Google\Service\Exception
|
---|
323 | */
|
---|
324 | public function rollback($name, RollbackConversionWorkspaceRequest $postBody, $optParams = [])
|
---|
325 | {
|
---|
326 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
327 | $params = array_merge($params, $optParams);
|
---|
328 | return $this->call('rollback', [$params], Operation::class);
|
---|
329 | }
|
---|
330 | /**
|
---|
331 | * Searches/lists the background jobs for a specific conversion workspace. The
|
---|
332 | * background jobs are not resources like conversion workspaces or mapping
|
---|
333 | * rules, and they can't be created, updated or deleted. Instead, they are a way
|
---|
334 | * to expose the data plane jobs log.
|
---|
335 | * (conversionWorkspaces.searchBackgroundJobs)
|
---|
336 | *
|
---|
337 | * @param string $conversionWorkspace Required. Name of the conversion workspace
|
---|
338 | * resource whose jobs are listed, in the form of: projects/{project}/locations/
|
---|
339 | * {location}/conversionWorkspaces/{conversion_workspace}.
|
---|
340 | * @param array $optParams Optional parameters.
|
---|
341 | *
|
---|
342 | * @opt_param string completedUntilTime Optional. If provided, only returns jobs
|
---|
343 | * that completed until (not including) the given timestamp.
|
---|
344 | * @opt_param int maxSize Optional. The maximum number of jobs to return. The
|
---|
345 | * service may return fewer than this value. If unspecified, at most 100 jobs
|
---|
346 | * are returned. The maximum value is 100; values above 100 are coerced to 100.
|
---|
347 | * @opt_param bool returnMostRecentPerJobType Optional. Whether or not to return
|
---|
348 | * just the most recent job per job type,
|
---|
349 | * @return SearchBackgroundJobsResponse
|
---|
350 | * @throws \Google\Service\Exception
|
---|
351 | */
|
---|
352 | public function searchBackgroundJobs($conversionWorkspace, $optParams = [])
|
---|
353 | {
|
---|
354 | $params = ['conversionWorkspace' => $conversionWorkspace];
|
---|
355 | $params = array_merge($params, $optParams);
|
---|
356 | return $this->call('searchBackgroundJobs', [$params], SearchBackgroundJobsResponse::class);
|
---|
357 | }
|
---|
358 | /**
|
---|
359 | * Imports a snapshot of the source database into the conversion workspace.
|
---|
360 | * (conversionWorkspaces.seed)
|
---|
361 | *
|
---|
362 | * @param string $name Name of the conversion workspace resource to seed with
|
---|
363 | * new database structure, in the form of: projects/{project}/locations/{locatio
|
---|
364 | * n}/conversionWorkspaces/{conversion_workspace}.
|
---|
365 | * @param SeedConversionWorkspaceRequest $postBody
|
---|
366 | * @param array $optParams Optional parameters.
|
---|
367 | * @return Operation
|
---|
368 | * @throws \Google\Service\Exception
|
---|
369 | */
|
---|
370 | public function seed($name, SeedConversionWorkspaceRequest $postBody, $optParams = [])
|
---|
371 | {
|
---|
372 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
373 | $params = array_merge($params, $optParams);
|
---|
374 | return $this->call('seed', [$params], Operation::class);
|
---|
375 | }
|
---|
376 | /**
|
---|
377 | * Sets the access control policy on the specified resource. Replaces any
|
---|
378 | * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
|
---|
379 | * `PERMISSION_DENIED` errors. (conversionWorkspaces.setIamPolicy)
|
---|
380 | *
|
---|
381 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
382 | * specified. See [Resource
|
---|
383 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
384 | * appropriate value for this field.
|
---|
385 | * @param SetIamPolicyRequest $postBody
|
---|
386 | * @param array $optParams Optional parameters.
|
---|
387 | * @return Policy
|
---|
388 | * @throws \Google\Service\Exception
|
---|
389 | */
|
---|
390 | public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
|
---|
391 | {
|
---|
392 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
393 | $params = array_merge($params, $optParams);
|
---|
394 | return $this->call('setIamPolicy', [$params], Policy::class);
|
---|
395 | }
|
---|
396 | /**
|
---|
397 | * Returns permissions that a caller has on the specified resource. If the
|
---|
398 | * resource does not exist, this will return an empty set of permissions, not a
|
---|
399 | * `NOT_FOUND` error. Note: This operation is designed to be used for building
|
---|
400 | * permission-aware UIs and command-line tools, not for authorization checking.
|
---|
401 | * This operation may "fail open" without warning.
|
---|
402 | * (conversionWorkspaces.testIamPermissions)
|
---|
403 | *
|
---|
404 | * @param string $resource REQUIRED: The resource for which the policy detail is
|
---|
405 | * being requested. See [Resource
|
---|
406 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
407 | * appropriate value for this field.
|
---|
408 | * @param TestIamPermissionsRequest $postBody
|
---|
409 | * @param array $optParams Optional parameters.
|
---|
410 | * @return TestIamPermissionsResponse
|
---|
411 | * @throws \Google\Service\Exception
|
---|
412 | */
|
---|
413 | public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
|
---|
414 | {
|
---|
415 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
416 | $params = array_merge($params, $optParams);
|
---|
417 | return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
|
---|
418 | }
|
---|
419 | }
|
---|
420 |
|
---|
421 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
422 | class_alias(ProjectsLocationsConversionWorkspaces::class, 'Google_Service_DatabaseMigrationService_Resource_ProjectsLocationsConversionWorkspaces');
|
---|