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;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for DatabaseMigrationService (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Manage Cloud Database Migration Service resources on Google Cloud Platform.</p>
|
---|
27 | *
|
---|
28 | * <p>
|
---|
29 | * For more information about this service, see the API
|
---|
30 | * <a href="https://cloud.google.com/database-migration/" target="_blank">Documentation</a>
|
---|
31 | * </p>
|
---|
32 | *
|
---|
33 | * @author Google, Inc.
|
---|
34 | */
|
---|
35 | class DatabaseMigrationService extends \Google\Service
|
---|
36 | {
|
---|
37 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
38 | const CLOUD_PLATFORM =
|
---|
39 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
40 |
|
---|
41 | public $projects_locations;
|
---|
42 | public $projects_locations_connectionProfiles;
|
---|
43 | public $projects_locations_conversionWorkspaces;
|
---|
44 | public $projects_locations_conversionWorkspaces_mappingRules;
|
---|
45 | public $projects_locations_migrationJobs;
|
---|
46 | public $projects_locations_migrationJobs_objects;
|
---|
47 | public $projects_locations_operations;
|
---|
48 | public $projects_locations_privateConnections;
|
---|
49 | public $rootUrlTemplate;
|
---|
50 |
|
---|
51 | /**
|
---|
52 | * Constructs the internal representation of the DatabaseMigrationService
|
---|
53 | * service.
|
---|
54 | *
|
---|
55 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
56 | * config array to pass to a new Client instance.
|
---|
57 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
58 | */
|
---|
59 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
60 | {
|
---|
61 | parent::__construct($clientOrConfig);
|
---|
62 | $this->rootUrl = $rootUrl ?: 'https://datamigration.googleapis.com/';
|
---|
63 | $this->rootUrlTemplate = $rootUrl ?: 'https://datamigration.UNIVERSE_DOMAIN/';
|
---|
64 | $this->servicePath = '';
|
---|
65 | $this->batchPath = 'batch';
|
---|
66 | $this->version = 'v1';
|
---|
67 | $this->serviceName = 'datamigration';
|
---|
68 |
|
---|
69 | $this->projects_locations = new DatabaseMigrationService\Resource\ProjectsLocations(
|
---|
70 | $this,
|
---|
71 | $this->serviceName,
|
---|
72 | 'locations',
|
---|
73 | [
|
---|
74 | 'methods' => [
|
---|
75 | 'fetchStaticIps' => [
|
---|
76 | 'path' => 'v1/{+name}:fetchStaticIps',
|
---|
77 | 'httpMethod' => 'GET',
|
---|
78 | 'parameters' => [
|
---|
79 | 'name' => [
|
---|
80 | 'location' => 'path',
|
---|
81 | 'type' => 'string',
|
---|
82 | 'required' => true,
|
---|
83 | ],
|
---|
84 | 'pageSize' => [
|
---|
85 | 'location' => 'query',
|
---|
86 | 'type' => 'integer',
|
---|
87 | ],
|
---|
88 | 'pageToken' => [
|
---|
89 | 'location' => 'query',
|
---|
90 | 'type' => 'string',
|
---|
91 | ],
|
---|
92 | ],
|
---|
93 | ],'get' => [
|
---|
94 | 'path' => 'v1/{+name}',
|
---|
95 | 'httpMethod' => 'GET',
|
---|
96 | 'parameters' => [
|
---|
97 | 'name' => [
|
---|
98 | 'location' => 'path',
|
---|
99 | 'type' => 'string',
|
---|
100 | 'required' => true,
|
---|
101 | ],
|
---|
102 | ],
|
---|
103 | ],'list' => [
|
---|
104 | 'path' => 'v1/{+name}/locations',
|
---|
105 | 'httpMethod' => 'GET',
|
---|
106 | 'parameters' => [
|
---|
107 | 'name' => [
|
---|
108 | 'location' => 'path',
|
---|
109 | 'type' => 'string',
|
---|
110 | 'required' => true,
|
---|
111 | ],
|
---|
112 | 'filter' => [
|
---|
113 | 'location' => 'query',
|
---|
114 | 'type' => 'string',
|
---|
115 | ],
|
---|
116 | 'pageSize' => [
|
---|
117 | 'location' => 'query',
|
---|
118 | 'type' => 'integer',
|
---|
119 | ],
|
---|
120 | 'pageToken' => [
|
---|
121 | 'location' => 'query',
|
---|
122 | 'type' => 'string',
|
---|
123 | ],
|
---|
124 | ],
|
---|
125 | ],
|
---|
126 | ]
|
---|
127 | ]
|
---|
128 | );
|
---|
129 | $this->projects_locations_connectionProfiles = new DatabaseMigrationService\Resource\ProjectsLocationsConnectionProfiles(
|
---|
130 | $this,
|
---|
131 | $this->serviceName,
|
---|
132 | 'connectionProfiles',
|
---|
133 | [
|
---|
134 | 'methods' => [
|
---|
135 | 'create' => [
|
---|
136 | 'path' => 'v1/{+parent}/connectionProfiles',
|
---|
137 | 'httpMethod' => 'POST',
|
---|
138 | 'parameters' => [
|
---|
139 | 'parent' => [
|
---|
140 | 'location' => 'path',
|
---|
141 | 'type' => 'string',
|
---|
142 | 'required' => true,
|
---|
143 | ],
|
---|
144 | 'connectionProfileId' => [
|
---|
145 | 'location' => 'query',
|
---|
146 | 'type' => 'string',
|
---|
147 | ],
|
---|
148 | 'requestId' => [
|
---|
149 | 'location' => 'query',
|
---|
150 | 'type' => 'string',
|
---|
151 | ],
|
---|
152 | 'skipValidation' => [
|
---|
153 | 'location' => 'query',
|
---|
154 | 'type' => 'boolean',
|
---|
155 | ],
|
---|
156 | 'validateOnly' => [
|
---|
157 | 'location' => 'query',
|
---|
158 | 'type' => 'boolean',
|
---|
159 | ],
|
---|
160 | ],
|
---|
161 | ],'delete' => [
|
---|
162 | 'path' => 'v1/{+name}',
|
---|
163 | 'httpMethod' => 'DELETE',
|
---|
164 | 'parameters' => [
|
---|
165 | 'name' => [
|
---|
166 | 'location' => 'path',
|
---|
167 | 'type' => 'string',
|
---|
168 | 'required' => true,
|
---|
169 | ],
|
---|
170 | 'force' => [
|
---|
171 | 'location' => 'query',
|
---|
172 | 'type' => 'boolean',
|
---|
173 | ],
|
---|
174 | 'requestId' => [
|
---|
175 | 'location' => 'query',
|
---|
176 | 'type' => 'string',
|
---|
177 | ],
|
---|
178 | ],
|
---|
179 | ],'get' => [
|
---|
180 | 'path' => 'v1/{+name}',
|
---|
181 | 'httpMethod' => 'GET',
|
---|
182 | 'parameters' => [
|
---|
183 | 'name' => [
|
---|
184 | 'location' => 'path',
|
---|
185 | 'type' => 'string',
|
---|
186 | 'required' => true,
|
---|
187 | ],
|
---|
188 | ],
|
---|
189 | ],'getIamPolicy' => [
|
---|
190 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
191 | 'httpMethod' => 'GET',
|
---|
192 | 'parameters' => [
|
---|
193 | 'resource' => [
|
---|
194 | 'location' => 'path',
|
---|
195 | 'type' => 'string',
|
---|
196 | 'required' => true,
|
---|
197 | ],
|
---|
198 | 'options.requestedPolicyVersion' => [
|
---|
199 | 'location' => 'query',
|
---|
200 | 'type' => 'integer',
|
---|
201 | ],
|
---|
202 | ],
|
---|
203 | ],'list' => [
|
---|
204 | 'path' => 'v1/{+parent}/connectionProfiles',
|
---|
205 | 'httpMethod' => 'GET',
|
---|
206 | 'parameters' => [
|
---|
207 | 'parent' => [
|
---|
208 | 'location' => 'path',
|
---|
209 | 'type' => 'string',
|
---|
210 | 'required' => true,
|
---|
211 | ],
|
---|
212 | 'filter' => [
|
---|
213 | 'location' => 'query',
|
---|
214 | 'type' => 'string',
|
---|
215 | ],
|
---|
216 | 'orderBy' => [
|
---|
217 | 'location' => 'query',
|
---|
218 | 'type' => 'string',
|
---|
219 | ],
|
---|
220 | 'pageSize' => [
|
---|
221 | 'location' => 'query',
|
---|
222 | 'type' => 'integer',
|
---|
223 | ],
|
---|
224 | 'pageToken' => [
|
---|
225 | 'location' => 'query',
|
---|
226 | 'type' => 'string',
|
---|
227 | ],
|
---|
228 | ],
|
---|
229 | ],'patch' => [
|
---|
230 | 'path' => 'v1/{+name}',
|
---|
231 | 'httpMethod' => 'PATCH',
|
---|
232 | 'parameters' => [
|
---|
233 | 'name' => [
|
---|
234 | 'location' => 'path',
|
---|
235 | 'type' => 'string',
|
---|
236 | 'required' => true,
|
---|
237 | ],
|
---|
238 | 'requestId' => [
|
---|
239 | 'location' => 'query',
|
---|
240 | 'type' => 'string',
|
---|
241 | ],
|
---|
242 | 'skipValidation' => [
|
---|
243 | 'location' => 'query',
|
---|
244 | 'type' => 'boolean',
|
---|
245 | ],
|
---|
246 | 'updateMask' => [
|
---|
247 | 'location' => 'query',
|
---|
248 | 'type' => 'string',
|
---|
249 | ],
|
---|
250 | 'validateOnly' => [
|
---|
251 | 'location' => 'query',
|
---|
252 | 'type' => 'boolean',
|
---|
253 | ],
|
---|
254 | ],
|
---|
255 | ],'setIamPolicy' => [
|
---|
256 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
257 | 'httpMethod' => 'POST',
|
---|
258 | 'parameters' => [
|
---|
259 | 'resource' => [
|
---|
260 | 'location' => 'path',
|
---|
261 | 'type' => 'string',
|
---|
262 | 'required' => true,
|
---|
263 | ],
|
---|
264 | ],
|
---|
265 | ],'testIamPermissions' => [
|
---|
266 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
267 | 'httpMethod' => 'POST',
|
---|
268 | 'parameters' => [
|
---|
269 | 'resource' => [
|
---|
270 | 'location' => 'path',
|
---|
271 | 'type' => 'string',
|
---|
272 | 'required' => true,
|
---|
273 | ],
|
---|
274 | ],
|
---|
275 | ],
|
---|
276 | ]
|
---|
277 | ]
|
---|
278 | );
|
---|
279 | $this->projects_locations_conversionWorkspaces = new DatabaseMigrationService\Resource\ProjectsLocationsConversionWorkspaces(
|
---|
280 | $this,
|
---|
281 | $this->serviceName,
|
---|
282 | 'conversionWorkspaces',
|
---|
283 | [
|
---|
284 | 'methods' => [
|
---|
285 | 'apply' => [
|
---|
286 | 'path' => 'v1/{+name}:apply',
|
---|
287 | 'httpMethod' => 'POST',
|
---|
288 | 'parameters' => [
|
---|
289 | 'name' => [
|
---|
290 | 'location' => 'path',
|
---|
291 | 'type' => 'string',
|
---|
292 | 'required' => true,
|
---|
293 | ],
|
---|
294 | ],
|
---|
295 | ],'commit' => [
|
---|
296 | 'path' => 'v1/{+name}:commit',
|
---|
297 | 'httpMethod' => 'POST',
|
---|
298 | 'parameters' => [
|
---|
299 | 'name' => [
|
---|
300 | 'location' => 'path',
|
---|
301 | 'type' => 'string',
|
---|
302 | 'required' => true,
|
---|
303 | ],
|
---|
304 | ],
|
---|
305 | ],'convert' => [
|
---|
306 | 'path' => 'v1/{+name}:convert',
|
---|
307 | 'httpMethod' => 'POST',
|
---|
308 | 'parameters' => [
|
---|
309 | 'name' => [
|
---|
310 | 'location' => 'path',
|
---|
311 | 'type' => 'string',
|
---|
312 | 'required' => true,
|
---|
313 | ],
|
---|
314 | ],
|
---|
315 | ],'create' => [
|
---|
316 | 'path' => 'v1/{+parent}/conversionWorkspaces',
|
---|
317 | 'httpMethod' => 'POST',
|
---|
318 | 'parameters' => [
|
---|
319 | 'parent' => [
|
---|
320 | 'location' => 'path',
|
---|
321 | 'type' => 'string',
|
---|
322 | 'required' => true,
|
---|
323 | ],
|
---|
324 | 'conversionWorkspaceId' => [
|
---|
325 | 'location' => 'query',
|
---|
326 | 'type' => 'string',
|
---|
327 | ],
|
---|
328 | 'requestId' => [
|
---|
329 | 'location' => 'query',
|
---|
330 | 'type' => 'string',
|
---|
331 | ],
|
---|
332 | ],
|
---|
333 | ],'delete' => [
|
---|
334 | 'path' => 'v1/{+name}',
|
---|
335 | 'httpMethod' => 'DELETE',
|
---|
336 | 'parameters' => [
|
---|
337 | 'name' => [
|
---|
338 | 'location' => 'path',
|
---|
339 | 'type' => 'string',
|
---|
340 | 'required' => true,
|
---|
341 | ],
|
---|
342 | 'force' => [
|
---|
343 | 'location' => 'query',
|
---|
344 | 'type' => 'boolean',
|
---|
345 | ],
|
---|
346 | 'requestId' => [
|
---|
347 | 'location' => 'query',
|
---|
348 | 'type' => 'string',
|
---|
349 | ],
|
---|
350 | ],
|
---|
351 | ],'describeConversionWorkspaceRevisions' => [
|
---|
352 | 'path' => 'v1/{+conversionWorkspace}:describeConversionWorkspaceRevisions',
|
---|
353 | 'httpMethod' => 'GET',
|
---|
354 | 'parameters' => [
|
---|
355 | 'conversionWorkspace' => [
|
---|
356 | 'location' => 'path',
|
---|
357 | 'type' => 'string',
|
---|
358 | 'required' => true,
|
---|
359 | ],
|
---|
360 | 'commitId' => [
|
---|
361 | 'location' => 'query',
|
---|
362 | 'type' => 'string',
|
---|
363 | ],
|
---|
364 | ],
|
---|
365 | ],'describeDatabaseEntities' => [
|
---|
366 | 'path' => 'v1/{+conversionWorkspace}:describeDatabaseEntities',
|
---|
367 | 'httpMethod' => 'GET',
|
---|
368 | 'parameters' => [
|
---|
369 | 'conversionWorkspace' => [
|
---|
370 | 'location' => 'path',
|
---|
371 | 'type' => 'string',
|
---|
372 | 'required' => true,
|
---|
373 | ],
|
---|
374 | 'commitId' => [
|
---|
375 | 'location' => 'query',
|
---|
376 | 'type' => 'string',
|
---|
377 | ],
|
---|
378 | 'filter' => [
|
---|
379 | 'location' => 'query',
|
---|
380 | 'type' => 'string',
|
---|
381 | ],
|
---|
382 | 'pageSize' => [
|
---|
383 | 'location' => 'query',
|
---|
384 | 'type' => 'integer',
|
---|
385 | ],
|
---|
386 | 'pageToken' => [
|
---|
387 | 'location' => 'query',
|
---|
388 | 'type' => 'string',
|
---|
389 | ],
|
---|
390 | 'tree' => [
|
---|
391 | 'location' => 'query',
|
---|
392 | 'type' => 'string',
|
---|
393 | ],
|
---|
394 | 'uncommitted' => [
|
---|
395 | 'location' => 'query',
|
---|
396 | 'type' => 'boolean',
|
---|
397 | ],
|
---|
398 | 'view' => [
|
---|
399 | 'location' => 'query',
|
---|
400 | 'type' => 'string',
|
---|
401 | ],
|
---|
402 | ],
|
---|
403 | ],'get' => [
|
---|
404 | 'path' => 'v1/{+name}',
|
---|
405 | 'httpMethod' => 'GET',
|
---|
406 | 'parameters' => [
|
---|
407 | 'name' => [
|
---|
408 | 'location' => 'path',
|
---|
409 | 'type' => 'string',
|
---|
410 | 'required' => true,
|
---|
411 | ],
|
---|
412 | ],
|
---|
413 | ],'getIamPolicy' => [
|
---|
414 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
415 | 'httpMethod' => 'GET',
|
---|
416 | 'parameters' => [
|
---|
417 | 'resource' => [
|
---|
418 | 'location' => 'path',
|
---|
419 | 'type' => 'string',
|
---|
420 | 'required' => true,
|
---|
421 | ],
|
---|
422 | 'options.requestedPolicyVersion' => [
|
---|
423 | 'location' => 'query',
|
---|
424 | 'type' => 'integer',
|
---|
425 | ],
|
---|
426 | ],
|
---|
427 | ],'list' => [
|
---|
428 | 'path' => 'v1/{+parent}/conversionWorkspaces',
|
---|
429 | 'httpMethod' => 'GET',
|
---|
430 | 'parameters' => [
|
---|
431 | 'parent' => [
|
---|
432 | 'location' => 'path',
|
---|
433 | 'type' => 'string',
|
---|
434 | 'required' => true,
|
---|
435 | ],
|
---|
436 | 'filter' => [
|
---|
437 | 'location' => 'query',
|
---|
438 | 'type' => 'string',
|
---|
439 | ],
|
---|
440 | 'pageSize' => [
|
---|
441 | 'location' => 'query',
|
---|
442 | 'type' => 'integer',
|
---|
443 | ],
|
---|
444 | 'pageToken' => [
|
---|
445 | 'location' => 'query',
|
---|
446 | 'type' => 'string',
|
---|
447 | ],
|
---|
448 | ],
|
---|
449 | ],'patch' => [
|
---|
450 | 'path' => 'v1/{+name}',
|
---|
451 | 'httpMethod' => 'PATCH',
|
---|
452 | 'parameters' => [
|
---|
453 | 'name' => [
|
---|
454 | 'location' => 'path',
|
---|
455 | 'type' => 'string',
|
---|
456 | 'required' => true,
|
---|
457 | ],
|
---|
458 | 'requestId' => [
|
---|
459 | 'location' => 'query',
|
---|
460 | 'type' => 'string',
|
---|
461 | ],
|
---|
462 | 'updateMask' => [
|
---|
463 | 'location' => 'query',
|
---|
464 | 'type' => 'string',
|
---|
465 | ],
|
---|
466 | ],
|
---|
467 | ],'rollback' => [
|
---|
468 | 'path' => 'v1/{+name}:rollback',
|
---|
469 | 'httpMethod' => 'POST',
|
---|
470 | 'parameters' => [
|
---|
471 | 'name' => [
|
---|
472 | 'location' => 'path',
|
---|
473 | 'type' => 'string',
|
---|
474 | 'required' => true,
|
---|
475 | ],
|
---|
476 | ],
|
---|
477 | ],'searchBackgroundJobs' => [
|
---|
478 | 'path' => 'v1/{+conversionWorkspace}:searchBackgroundJobs',
|
---|
479 | 'httpMethod' => 'GET',
|
---|
480 | 'parameters' => [
|
---|
481 | 'conversionWorkspace' => [
|
---|
482 | 'location' => 'path',
|
---|
483 | 'type' => 'string',
|
---|
484 | 'required' => true,
|
---|
485 | ],
|
---|
486 | 'completedUntilTime' => [
|
---|
487 | 'location' => 'query',
|
---|
488 | 'type' => 'string',
|
---|
489 | ],
|
---|
490 | 'maxSize' => [
|
---|
491 | 'location' => 'query',
|
---|
492 | 'type' => 'integer',
|
---|
493 | ],
|
---|
494 | 'returnMostRecentPerJobType' => [
|
---|
495 | 'location' => 'query',
|
---|
496 | 'type' => 'boolean',
|
---|
497 | ],
|
---|
498 | ],
|
---|
499 | ],'seed' => [
|
---|
500 | 'path' => 'v1/{+name}:seed',
|
---|
501 | 'httpMethod' => 'POST',
|
---|
502 | 'parameters' => [
|
---|
503 | 'name' => [
|
---|
504 | 'location' => 'path',
|
---|
505 | 'type' => 'string',
|
---|
506 | 'required' => true,
|
---|
507 | ],
|
---|
508 | ],
|
---|
509 | ],'setIamPolicy' => [
|
---|
510 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
511 | 'httpMethod' => 'POST',
|
---|
512 | 'parameters' => [
|
---|
513 | 'resource' => [
|
---|
514 | 'location' => 'path',
|
---|
515 | 'type' => 'string',
|
---|
516 | 'required' => true,
|
---|
517 | ],
|
---|
518 | ],
|
---|
519 | ],'testIamPermissions' => [
|
---|
520 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
521 | 'httpMethod' => 'POST',
|
---|
522 | 'parameters' => [
|
---|
523 | 'resource' => [
|
---|
524 | 'location' => 'path',
|
---|
525 | 'type' => 'string',
|
---|
526 | 'required' => true,
|
---|
527 | ],
|
---|
528 | ],
|
---|
529 | ],
|
---|
530 | ]
|
---|
531 | ]
|
---|
532 | );
|
---|
533 | $this->projects_locations_conversionWorkspaces_mappingRules = new DatabaseMigrationService\Resource\ProjectsLocationsConversionWorkspacesMappingRules(
|
---|
534 | $this,
|
---|
535 | $this->serviceName,
|
---|
536 | 'mappingRules',
|
---|
537 | [
|
---|
538 | 'methods' => [
|
---|
539 | 'create' => [
|
---|
540 | 'path' => 'v1/{+parent}/mappingRules',
|
---|
541 | 'httpMethod' => 'POST',
|
---|
542 | 'parameters' => [
|
---|
543 | 'parent' => [
|
---|
544 | 'location' => 'path',
|
---|
545 | 'type' => 'string',
|
---|
546 | 'required' => true,
|
---|
547 | ],
|
---|
548 | 'mappingRuleId' => [
|
---|
549 | 'location' => 'query',
|
---|
550 | 'type' => 'string',
|
---|
551 | ],
|
---|
552 | 'requestId' => [
|
---|
553 | 'location' => 'query',
|
---|
554 | 'type' => 'string',
|
---|
555 | ],
|
---|
556 | ],
|
---|
557 | ],'delete' => [
|
---|
558 | 'path' => 'v1/{+name}',
|
---|
559 | 'httpMethod' => 'DELETE',
|
---|
560 | 'parameters' => [
|
---|
561 | 'name' => [
|
---|
562 | 'location' => 'path',
|
---|
563 | 'type' => 'string',
|
---|
564 | 'required' => true,
|
---|
565 | ],
|
---|
566 | 'requestId' => [
|
---|
567 | 'location' => 'query',
|
---|
568 | 'type' => 'string',
|
---|
569 | ],
|
---|
570 | ],
|
---|
571 | ],'get' => [
|
---|
572 | 'path' => 'v1/{+name}',
|
---|
573 | 'httpMethod' => 'GET',
|
---|
574 | 'parameters' => [
|
---|
575 | 'name' => [
|
---|
576 | 'location' => 'path',
|
---|
577 | 'type' => 'string',
|
---|
578 | 'required' => true,
|
---|
579 | ],
|
---|
580 | ],
|
---|
581 | ],'import' => [
|
---|
582 | 'path' => 'v1/{+parent}/mappingRules:import',
|
---|
583 | 'httpMethod' => 'POST',
|
---|
584 | 'parameters' => [
|
---|
585 | 'parent' => [
|
---|
586 | 'location' => 'path',
|
---|
587 | 'type' => 'string',
|
---|
588 | 'required' => true,
|
---|
589 | ],
|
---|
590 | ],
|
---|
591 | ],'list' => [
|
---|
592 | 'path' => 'v1/{+parent}/mappingRules',
|
---|
593 | 'httpMethod' => 'GET',
|
---|
594 | 'parameters' => [
|
---|
595 | 'parent' => [
|
---|
596 | 'location' => 'path',
|
---|
597 | 'type' => 'string',
|
---|
598 | 'required' => true,
|
---|
599 | ],
|
---|
600 | 'pageSize' => [
|
---|
601 | 'location' => 'query',
|
---|
602 | 'type' => 'integer',
|
---|
603 | ],
|
---|
604 | 'pageToken' => [
|
---|
605 | 'location' => 'query',
|
---|
606 | 'type' => 'string',
|
---|
607 | ],
|
---|
608 | ],
|
---|
609 | ],
|
---|
610 | ]
|
---|
611 | ]
|
---|
612 | );
|
---|
613 | $this->projects_locations_migrationJobs = new DatabaseMigrationService\Resource\ProjectsLocationsMigrationJobs(
|
---|
614 | $this,
|
---|
615 | $this->serviceName,
|
---|
616 | 'migrationJobs',
|
---|
617 | [
|
---|
618 | 'methods' => [
|
---|
619 | 'create' => [
|
---|
620 | 'path' => 'v1/{+parent}/migrationJobs',
|
---|
621 | 'httpMethod' => 'POST',
|
---|
622 | 'parameters' => [
|
---|
623 | 'parent' => [
|
---|
624 | 'location' => 'path',
|
---|
625 | 'type' => 'string',
|
---|
626 | 'required' => true,
|
---|
627 | ],
|
---|
628 | 'migrationJobId' => [
|
---|
629 | 'location' => 'query',
|
---|
630 | 'type' => 'string',
|
---|
631 | ],
|
---|
632 | 'requestId' => [
|
---|
633 | 'location' => 'query',
|
---|
634 | 'type' => 'string',
|
---|
635 | ],
|
---|
636 | ],
|
---|
637 | ],'delete' => [
|
---|
638 | 'path' => 'v1/{+name}',
|
---|
639 | 'httpMethod' => 'DELETE',
|
---|
640 | 'parameters' => [
|
---|
641 | 'name' => [
|
---|
642 | 'location' => 'path',
|
---|
643 | 'type' => 'string',
|
---|
644 | 'required' => true,
|
---|
645 | ],
|
---|
646 | 'force' => [
|
---|
647 | 'location' => 'query',
|
---|
648 | 'type' => 'boolean',
|
---|
649 | ],
|
---|
650 | 'requestId' => [
|
---|
651 | 'location' => 'query',
|
---|
652 | 'type' => 'string',
|
---|
653 | ],
|
---|
654 | ],
|
---|
655 | ],'demoteDestination' => [
|
---|
656 | 'path' => 'v1/{+name}:demoteDestination',
|
---|
657 | 'httpMethod' => 'POST',
|
---|
658 | 'parameters' => [
|
---|
659 | 'name' => [
|
---|
660 | 'location' => 'path',
|
---|
661 | 'type' => 'string',
|
---|
662 | 'required' => true,
|
---|
663 | ],
|
---|
664 | ],
|
---|
665 | ],'generateSshScript' => [
|
---|
666 | 'path' => 'v1/{+migrationJob}:generateSshScript',
|
---|
667 | 'httpMethod' => 'POST',
|
---|
668 | 'parameters' => [
|
---|
669 | 'migrationJob' => [
|
---|
670 | 'location' => 'path',
|
---|
671 | 'type' => 'string',
|
---|
672 | 'required' => true,
|
---|
673 | ],
|
---|
674 | ],
|
---|
675 | ],'generateTcpProxyScript' => [
|
---|
676 | 'path' => 'v1/{+migrationJob}:generateTcpProxyScript',
|
---|
677 | 'httpMethod' => 'POST',
|
---|
678 | 'parameters' => [
|
---|
679 | 'migrationJob' => [
|
---|
680 | 'location' => 'path',
|
---|
681 | 'type' => 'string',
|
---|
682 | 'required' => true,
|
---|
683 | ],
|
---|
684 | ],
|
---|
685 | ],'get' => [
|
---|
686 | 'path' => 'v1/{+name}',
|
---|
687 | 'httpMethod' => 'GET',
|
---|
688 | 'parameters' => [
|
---|
689 | 'name' => [
|
---|
690 | 'location' => 'path',
|
---|
691 | 'type' => 'string',
|
---|
692 | 'required' => true,
|
---|
693 | ],
|
---|
694 | ],
|
---|
695 | ],'getIamPolicy' => [
|
---|
696 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
697 | 'httpMethod' => 'GET',
|
---|
698 | 'parameters' => [
|
---|
699 | 'resource' => [
|
---|
700 | 'location' => 'path',
|
---|
701 | 'type' => 'string',
|
---|
702 | 'required' => true,
|
---|
703 | ],
|
---|
704 | 'options.requestedPolicyVersion' => [
|
---|
705 | 'location' => 'query',
|
---|
706 | 'type' => 'integer',
|
---|
707 | ],
|
---|
708 | ],
|
---|
709 | ],'list' => [
|
---|
710 | 'path' => 'v1/{+parent}/migrationJobs',
|
---|
711 | 'httpMethod' => 'GET',
|
---|
712 | 'parameters' => [
|
---|
713 | 'parent' => [
|
---|
714 | 'location' => 'path',
|
---|
715 | 'type' => 'string',
|
---|
716 | 'required' => true,
|
---|
717 | ],
|
---|
718 | 'filter' => [
|
---|
719 | 'location' => 'query',
|
---|
720 | 'type' => 'string',
|
---|
721 | ],
|
---|
722 | 'orderBy' => [
|
---|
723 | 'location' => 'query',
|
---|
724 | 'type' => 'string',
|
---|
725 | ],
|
---|
726 | 'pageSize' => [
|
---|
727 | 'location' => 'query',
|
---|
728 | 'type' => 'integer',
|
---|
729 | ],
|
---|
730 | 'pageToken' => [
|
---|
731 | 'location' => 'query',
|
---|
732 | 'type' => 'string',
|
---|
733 | ],
|
---|
734 | ],
|
---|
735 | ],'patch' => [
|
---|
736 | 'path' => 'v1/{+name}',
|
---|
737 | 'httpMethod' => 'PATCH',
|
---|
738 | 'parameters' => [
|
---|
739 | 'name' => [
|
---|
740 | 'location' => 'path',
|
---|
741 | 'type' => 'string',
|
---|
742 | 'required' => true,
|
---|
743 | ],
|
---|
744 | 'requestId' => [
|
---|
745 | 'location' => 'query',
|
---|
746 | 'type' => 'string',
|
---|
747 | ],
|
---|
748 | 'updateMask' => [
|
---|
749 | 'location' => 'query',
|
---|
750 | 'type' => 'string',
|
---|
751 | ],
|
---|
752 | ],
|
---|
753 | ],'promote' => [
|
---|
754 | 'path' => 'v1/{+name}:promote',
|
---|
755 | 'httpMethod' => 'POST',
|
---|
756 | 'parameters' => [
|
---|
757 | 'name' => [
|
---|
758 | 'location' => 'path',
|
---|
759 | 'type' => 'string',
|
---|
760 | 'required' => true,
|
---|
761 | ],
|
---|
762 | ],
|
---|
763 | ],'restart' => [
|
---|
764 | 'path' => 'v1/{+name}:restart',
|
---|
765 | 'httpMethod' => 'POST',
|
---|
766 | 'parameters' => [
|
---|
767 | 'name' => [
|
---|
768 | 'location' => 'path',
|
---|
769 | 'type' => 'string',
|
---|
770 | 'required' => true,
|
---|
771 | ],
|
---|
772 | ],
|
---|
773 | ],'resume' => [
|
---|
774 | 'path' => 'v1/{+name}:resume',
|
---|
775 | 'httpMethod' => 'POST',
|
---|
776 | 'parameters' => [
|
---|
777 | 'name' => [
|
---|
778 | 'location' => 'path',
|
---|
779 | 'type' => 'string',
|
---|
780 | 'required' => true,
|
---|
781 | ],
|
---|
782 | ],
|
---|
783 | ],'setIamPolicy' => [
|
---|
784 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
785 | 'httpMethod' => 'POST',
|
---|
786 | 'parameters' => [
|
---|
787 | 'resource' => [
|
---|
788 | 'location' => 'path',
|
---|
789 | 'type' => 'string',
|
---|
790 | 'required' => true,
|
---|
791 | ],
|
---|
792 | ],
|
---|
793 | ],'start' => [
|
---|
794 | 'path' => 'v1/{+name}:start',
|
---|
795 | 'httpMethod' => 'POST',
|
---|
796 | 'parameters' => [
|
---|
797 | 'name' => [
|
---|
798 | 'location' => 'path',
|
---|
799 | 'type' => 'string',
|
---|
800 | 'required' => true,
|
---|
801 | ],
|
---|
802 | ],
|
---|
803 | ],'stop' => [
|
---|
804 | 'path' => 'v1/{+name}:stop',
|
---|
805 | 'httpMethod' => 'POST',
|
---|
806 | 'parameters' => [
|
---|
807 | 'name' => [
|
---|
808 | 'location' => 'path',
|
---|
809 | 'type' => 'string',
|
---|
810 | 'required' => true,
|
---|
811 | ],
|
---|
812 | ],
|
---|
813 | ],'testIamPermissions' => [
|
---|
814 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
815 | 'httpMethod' => 'POST',
|
---|
816 | 'parameters' => [
|
---|
817 | 'resource' => [
|
---|
818 | 'location' => 'path',
|
---|
819 | 'type' => 'string',
|
---|
820 | 'required' => true,
|
---|
821 | ],
|
---|
822 | ],
|
---|
823 | ],'verify' => [
|
---|
824 | 'path' => 'v1/{+name}:verify',
|
---|
825 | 'httpMethod' => 'POST',
|
---|
826 | 'parameters' => [
|
---|
827 | 'name' => [
|
---|
828 | 'location' => 'path',
|
---|
829 | 'type' => 'string',
|
---|
830 | 'required' => true,
|
---|
831 | ],
|
---|
832 | ],
|
---|
833 | ],
|
---|
834 | ]
|
---|
835 | ]
|
---|
836 | );
|
---|
837 | $this->projects_locations_migrationJobs_objects = new DatabaseMigrationService\Resource\ProjectsLocationsMigrationJobsObjects(
|
---|
838 | $this,
|
---|
839 | $this->serviceName,
|
---|
840 | 'objects',
|
---|
841 | [
|
---|
842 | 'methods' => [
|
---|
843 | 'getIamPolicy' => [
|
---|
844 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
845 | 'httpMethod' => 'GET',
|
---|
846 | 'parameters' => [
|
---|
847 | 'resource' => [
|
---|
848 | 'location' => 'path',
|
---|
849 | 'type' => 'string',
|
---|
850 | 'required' => true,
|
---|
851 | ],
|
---|
852 | 'options.requestedPolicyVersion' => [
|
---|
853 | 'location' => 'query',
|
---|
854 | 'type' => 'integer',
|
---|
855 | ],
|
---|
856 | ],
|
---|
857 | ],'setIamPolicy' => [
|
---|
858 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
859 | 'httpMethod' => 'POST',
|
---|
860 | 'parameters' => [
|
---|
861 | 'resource' => [
|
---|
862 | 'location' => 'path',
|
---|
863 | 'type' => 'string',
|
---|
864 | 'required' => true,
|
---|
865 | ],
|
---|
866 | ],
|
---|
867 | ],'testIamPermissions' => [
|
---|
868 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
869 | 'httpMethod' => 'POST',
|
---|
870 | 'parameters' => [
|
---|
871 | 'resource' => [
|
---|
872 | 'location' => 'path',
|
---|
873 | 'type' => 'string',
|
---|
874 | 'required' => true,
|
---|
875 | ],
|
---|
876 | ],
|
---|
877 | ],
|
---|
878 | ]
|
---|
879 | ]
|
---|
880 | );
|
---|
881 | $this->projects_locations_operations = new DatabaseMigrationService\Resource\ProjectsLocationsOperations(
|
---|
882 | $this,
|
---|
883 | $this->serviceName,
|
---|
884 | 'operations',
|
---|
885 | [
|
---|
886 | 'methods' => [
|
---|
887 | 'cancel' => [
|
---|
888 | 'path' => 'v1/{+name}:cancel',
|
---|
889 | 'httpMethod' => 'POST',
|
---|
890 | 'parameters' => [
|
---|
891 | 'name' => [
|
---|
892 | 'location' => 'path',
|
---|
893 | 'type' => 'string',
|
---|
894 | 'required' => true,
|
---|
895 | ],
|
---|
896 | ],
|
---|
897 | ],'delete' => [
|
---|
898 | 'path' => 'v1/{+name}',
|
---|
899 | 'httpMethod' => 'DELETE',
|
---|
900 | 'parameters' => [
|
---|
901 | 'name' => [
|
---|
902 | 'location' => 'path',
|
---|
903 | 'type' => 'string',
|
---|
904 | 'required' => true,
|
---|
905 | ],
|
---|
906 | ],
|
---|
907 | ],'get' => [
|
---|
908 | 'path' => 'v1/{+name}',
|
---|
909 | 'httpMethod' => 'GET',
|
---|
910 | 'parameters' => [
|
---|
911 | 'name' => [
|
---|
912 | 'location' => 'path',
|
---|
913 | 'type' => 'string',
|
---|
914 | 'required' => true,
|
---|
915 | ],
|
---|
916 | ],
|
---|
917 | ],'list' => [
|
---|
918 | 'path' => 'v1/{+name}/operations',
|
---|
919 | 'httpMethod' => 'GET',
|
---|
920 | 'parameters' => [
|
---|
921 | 'name' => [
|
---|
922 | 'location' => 'path',
|
---|
923 | 'type' => 'string',
|
---|
924 | 'required' => true,
|
---|
925 | ],
|
---|
926 | 'filter' => [
|
---|
927 | 'location' => 'query',
|
---|
928 | 'type' => 'string',
|
---|
929 | ],
|
---|
930 | 'pageSize' => [
|
---|
931 | 'location' => 'query',
|
---|
932 | 'type' => 'integer',
|
---|
933 | ],
|
---|
934 | 'pageToken' => [
|
---|
935 | 'location' => 'query',
|
---|
936 | 'type' => 'string',
|
---|
937 | ],
|
---|
938 | ],
|
---|
939 | ],
|
---|
940 | ]
|
---|
941 | ]
|
---|
942 | );
|
---|
943 | $this->projects_locations_privateConnections = new DatabaseMigrationService\Resource\ProjectsLocationsPrivateConnections(
|
---|
944 | $this,
|
---|
945 | $this->serviceName,
|
---|
946 | 'privateConnections',
|
---|
947 | [
|
---|
948 | 'methods' => [
|
---|
949 | 'create' => [
|
---|
950 | 'path' => 'v1/{+parent}/privateConnections',
|
---|
951 | 'httpMethod' => 'POST',
|
---|
952 | 'parameters' => [
|
---|
953 | 'parent' => [
|
---|
954 | 'location' => 'path',
|
---|
955 | 'type' => 'string',
|
---|
956 | 'required' => true,
|
---|
957 | ],
|
---|
958 | 'privateConnectionId' => [
|
---|
959 | 'location' => 'query',
|
---|
960 | 'type' => 'string',
|
---|
961 | ],
|
---|
962 | 'requestId' => [
|
---|
963 | 'location' => 'query',
|
---|
964 | 'type' => 'string',
|
---|
965 | ],
|
---|
966 | 'skipValidation' => [
|
---|
967 | 'location' => 'query',
|
---|
968 | 'type' => 'boolean',
|
---|
969 | ],
|
---|
970 | ],
|
---|
971 | ],'delete' => [
|
---|
972 | 'path' => 'v1/{+name}',
|
---|
973 | 'httpMethod' => 'DELETE',
|
---|
974 | 'parameters' => [
|
---|
975 | 'name' => [
|
---|
976 | 'location' => 'path',
|
---|
977 | 'type' => 'string',
|
---|
978 | 'required' => true,
|
---|
979 | ],
|
---|
980 | 'requestId' => [
|
---|
981 | 'location' => 'query',
|
---|
982 | 'type' => 'string',
|
---|
983 | ],
|
---|
984 | ],
|
---|
985 | ],'get' => [
|
---|
986 | 'path' => 'v1/{+name}',
|
---|
987 | 'httpMethod' => 'GET',
|
---|
988 | 'parameters' => [
|
---|
989 | 'name' => [
|
---|
990 | 'location' => 'path',
|
---|
991 | 'type' => 'string',
|
---|
992 | 'required' => true,
|
---|
993 | ],
|
---|
994 | ],
|
---|
995 | ],'getIamPolicy' => [
|
---|
996 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
997 | 'httpMethod' => 'GET',
|
---|
998 | 'parameters' => [
|
---|
999 | 'resource' => [
|
---|
1000 | 'location' => 'path',
|
---|
1001 | 'type' => 'string',
|
---|
1002 | 'required' => true,
|
---|
1003 | ],
|
---|
1004 | 'options.requestedPolicyVersion' => [
|
---|
1005 | 'location' => 'query',
|
---|
1006 | 'type' => 'integer',
|
---|
1007 | ],
|
---|
1008 | ],
|
---|
1009 | ],'list' => [
|
---|
1010 | 'path' => 'v1/{+parent}/privateConnections',
|
---|
1011 | 'httpMethod' => 'GET',
|
---|
1012 | 'parameters' => [
|
---|
1013 | 'parent' => [
|
---|
1014 | 'location' => 'path',
|
---|
1015 | 'type' => 'string',
|
---|
1016 | 'required' => true,
|
---|
1017 | ],
|
---|
1018 | 'filter' => [
|
---|
1019 | 'location' => 'query',
|
---|
1020 | 'type' => 'string',
|
---|
1021 | ],
|
---|
1022 | 'orderBy' => [
|
---|
1023 | 'location' => 'query',
|
---|
1024 | 'type' => 'string',
|
---|
1025 | ],
|
---|
1026 | 'pageSize' => [
|
---|
1027 | 'location' => 'query',
|
---|
1028 | 'type' => 'integer',
|
---|
1029 | ],
|
---|
1030 | 'pageToken' => [
|
---|
1031 | 'location' => 'query',
|
---|
1032 | 'type' => 'string',
|
---|
1033 | ],
|
---|
1034 | ],
|
---|
1035 | ],'setIamPolicy' => [
|
---|
1036 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
1037 | 'httpMethod' => 'POST',
|
---|
1038 | 'parameters' => [
|
---|
1039 | 'resource' => [
|
---|
1040 | 'location' => 'path',
|
---|
1041 | 'type' => 'string',
|
---|
1042 | 'required' => true,
|
---|
1043 | ],
|
---|
1044 | ],
|
---|
1045 | ],'testIamPermissions' => [
|
---|
1046 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
1047 | 'httpMethod' => 'POST',
|
---|
1048 | 'parameters' => [
|
---|
1049 | 'resource' => [
|
---|
1050 | 'location' => 'path',
|
---|
1051 | 'type' => 'string',
|
---|
1052 | 'required' => true,
|
---|
1053 | ],
|
---|
1054 | ],
|
---|
1055 | ],
|
---|
1056 | ]
|
---|
1057 | ]
|
---|
1058 | );
|
---|
1059 | }
|
---|
1060 | }
|
---|
1061 |
|
---|
1062 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
1063 | class_alias(DatabaseMigrationService::class, 'Google_Service_DatabaseMigrationService');
|
---|