PluginProbe
Authorizer / 2.7.0
Authorizer v2.7.0
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / SQLAdmin.php

SQLAdmin.php in Authorizer 2.7.0, at vendor/google-api-php-client/src/Google/Service/SQLAdmin.php

3,823 lines 103.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for SQLAdmin (v1beta4).
18 *
19 * <p>
20 * API for Cloud SQL database instance management.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://cloud.google.com/sql/docs/reference/latest" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_SQLAdmin extends Google_Service
30 {
31 /** View and manage your data across Google Cloud Platform services. */
32 const CLOUD_PLATFORM =
33 "https://www.googleapis.com/auth/cloud-platform";
34 /** Manage your Google SQL Service instances. */
35 const SQLSERVICE_ADMIN =
36 "https://www.googleapis.com/auth/sqlservice.admin";
37
38 public $backupRuns;
39 public $databases;
40 public $flags;
41 public $instances;
42 public $operations;
43 public $sslCerts;
44 public $tiers;
45 public $users;
46
47
48 /**
49 * Constructs the internal representation of the SQLAdmin service.
50 *
51 * @param Google_Client $client
52 */
53 public function __construct(Google_Client $client)
54 {
55 parent::__construct($client);
56 $this->rootUrl = 'https://www.googleapis.com/';
57 $this->servicePath = 'sql/v1beta4/';
58 $this->version = 'v1beta4';
59 $this->serviceName = 'sqladmin';
60
61 $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource(
62 $this,
63 $this->serviceName,
64 'backupRuns',
65 array(
66 'methods' => array(
67 'delete' => array(
68 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}',
69 'httpMethod' => 'DELETE',
70 'parameters' => array(
71 'project' => array(
72 'location' => 'path',
73 'type' => 'string',
74 'required' => true,
75 ),
76 'instance' => array(
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ),
81 'id' => array(
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ),
86 ),
87 ),'get' => array(
88 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}',
89 'httpMethod' => 'GET',
90 'parameters' => array(
91 'project' => array(
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ),
96 'instance' => array(
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ),
101 'id' => array(
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ),
106 ),
107 ),'list' => array(
108 'path' => 'projects/{project}/instances/{instance}/backupRuns',
109 'httpMethod' => 'GET',
110 'parameters' => array(
111 'project' => array(
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ),
116 'instance' => array(
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ),
121 'maxResults' => array(
122 'location' => 'query',
123 'type' => 'integer',
124 ),
125 'pageToken' => array(
126 'location' => 'query',
127 'type' => 'string',
128 ),
129 ),
130 ),
131 )
132 )
133 );
134 $this->databases = new Google_Service_SQLAdmin_Databases_Resource(
135 $this,
136 $this->serviceName,
137 'databases',
138 array(
139 'methods' => array(
140 'delete' => array(
141 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
142 'httpMethod' => 'DELETE',
143 'parameters' => array(
144 'project' => array(
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ),
149 'instance' => array(
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ),
154 'database' => array(
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ),
159 ),
160 ),'get' => array(
161 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
162 'httpMethod' => 'GET',
163 'parameters' => array(
164 'project' => array(
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ),
169 'instance' => array(
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ),
174 'database' => array(
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ),
179 ),
180 ),'insert' => array(
181 'path' => 'projects/{project}/instances/{instance}/databases',
182 'httpMethod' => 'POST',
183 'parameters' => array(
184 'project' => array(
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ),
189 'instance' => array(
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ),
194 ),
195 ),'list' => array(
196 'path' => 'projects/{project}/instances/{instance}/databases',
197 'httpMethod' => 'GET',
198 'parameters' => array(
199 'project' => array(
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ),
204 'instance' => array(
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ),
209 ),
210 ),'patch' => array(
211 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
212 'httpMethod' => 'PATCH',
213 'parameters' => array(
214 'project' => array(
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ),
219 'instance' => array(
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ),
224 'database' => array(
225 'location' => 'path',
226 'type' => 'string',
227 'required' => true,
228 ),
229 ),
230 ),'update' => array(
231 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
232 'httpMethod' => 'PUT',
233 'parameters' => array(
234 'project' => array(
235 'location' => 'path',
236 'type' => 'string',
237 'required' => true,
238 ),
239 'instance' => array(
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ),
244 'database' => array(
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ),
249 ),
250 ),
251 )
252 )
253 );
254 $this->flags = new Google_Service_SQLAdmin_Flags_Resource(
255 $this,
256 $this->serviceName,
257 'flags',
258 array(
259 'methods' => array(
260 'list' => array(
261 'path' => 'flags',
262 'httpMethod' => 'GET',
263 'parameters' => array(),
264 ),
265 )
266 )
267 );
268 $this->instances = new Google_Service_SQLAdmin_Instances_Resource(
269 $this,
270 $this->serviceName,
271 'instances',
272 array(
273 'methods' => array(
274 'clone' => array(
275 'path' => 'projects/{project}/instances/{instance}/clone',
276 'httpMethod' => 'POST',
277 'parameters' => array(
278 'project' => array(
279 'location' => 'path',
280 'type' => 'string',
281 'required' => true,
282 ),
283 'instance' => array(
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ),
288 ),
289 ),'delete' => array(
290 'path' => 'projects/{project}/instances/{instance}',
291 'httpMethod' => 'DELETE',
292 'parameters' => array(
293 'project' => array(
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ),
298 'instance' => array(
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ),
303 ),
304 ),'export' => array(
305 'path' => 'projects/{project}/instances/{instance}/export',
306 'httpMethod' => 'POST',
307 'parameters' => array(
308 'project' => array(
309 'location' => 'path',
310 'type' => 'string',
311 'required' => true,
312 ),
313 'instance' => array(
314 'location' => 'path',
315 'type' => 'string',
316 'required' => true,
317 ),
318 ),
319 ),'failover' => array(
320 'path' => 'projects/{project}/instances/{instance}/failover',
321 'httpMethod' => 'POST',
322 'parameters' => array(
323 'project' => array(
324 'location' => 'path',
325 'type' => 'string',
326 'required' => true,
327 ),
328 'instance' => array(
329 'location' => 'path',
330 'type' => 'string',
331 'required' => true,
332 ),
333 ),
334 ),'get' => array(
335 'path' => 'projects/{project}/instances/{instance}',
336 'httpMethod' => 'GET',
337 'parameters' => array(
338 'project' => array(
339 'location' => 'path',
340 'type' => 'string',
341 'required' => true,
342 ),
343 'instance' => array(
344 'location' => 'path',
345 'type' => 'string',
346 'required' => true,
347 ),
348 ),
349 ),'import' => array(
350 'path' => 'projects/{project}/instances/{instance}/import',
351 'httpMethod' => 'POST',
352 'parameters' => array(
353 'project' => array(
354 'location' => 'path',
355 'type' => 'string',
356 'required' => true,
357 ),
358 'instance' => array(
359 'location' => 'path',
360 'type' => 'string',
361 'required' => true,
362 ),
363 ),
364 ),'insert' => array(
365 'path' => 'projects/{project}/instances',
366 'httpMethod' => 'POST',
367 'parameters' => array(
368 'project' => array(
369 'location' => 'path',
370 'type' => 'string',
371 'required' => true,
372 ),
373 ),
374 ),'list' => array(
375 'path' => 'projects/{project}/instances',
376 'httpMethod' => 'GET',
377 'parameters' => array(
378 'project' => array(
379 'location' => 'path',
380 'type' => 'string',
381 'required' => true,
382 ),
383 'maxResults' => array(
384 'location' => 'query',
385 'type' => 'integer',
386 ),
387 'pageToken' => array(
388 'location' => 'query',
389 'type' => 'string',
390 ),
391 ),
392 ),'patch' => array(
393 'path' => 'projects/{project}/instances/{instance}',
394 'httpMethod' => 'PATCH',
395 'parameters' => array(
396 'project' => array(
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ),
401 'instance' => array(
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ),
406 ),
407 ),'promoteReplica' => array(
408 'path' => 'projects/{project}/instances/{instance}/promoteReplica',
409 'httpMethod' => 'POST',
410 'parameters' => array(
411 'project' => array(
412 'location' => 'path',
413 'type' => 'string',
414 'required' => true,
415 ),
416 'instance' => array(
417 'location' => 'path',
418 'type' => 'string',
419 'required' => true,
420 ),
421 ),
422 ),'resetSslConfig' => array(
423 'path' => 'projects/{project}/instances/{instance}/resetSslConfig',
424 'httpMethod' => 'POST',
425 'parameters' => array(
426 'project' => array(
427 'location' => 'path',
428 'type' => 'string',
429 'required' => true,
430 ),
431 'instance' => array(
432 'location' => 'path',
433 'type' => 'string',
434 'required' => true,
435 ),
436 ),
437 ),'restart' => array(
438 'path' => 'projects/{project}/instances/{instance}/restart',
439 'httpMethod' => 'POST',
440 'parameters' => array(
441 'project' => array(
442 'location' => 'path',
443 'type' => 'string',
444 'required' => true,
445 ),
446 'instance' => array(
447 'location' => 'path',
448 'type' => 'string',
449 'required' => true,
450 ),
451 ),
452 ),'restoreBackup' => array(
453 'path' => 'projects/{project}/instances/{instance}/restoreBackup',
454 'httpMethod' => 'POST',
455 'parameters' => array(
456 'project' => array(
457 'location' => 'path',
458 'type' => 'string',
459 'required' => true,
460 ),
461 'instance' => array(
462 'location' => 'path',
463 'type' => 'string',
464 'required' => true,
465 ),
466 ),
467 ),'startReplica' => array(
468 'path' => 'projects/{project}/instances/{instance}/startReplica',
469 'httpMethod' => 'POST',
470 'parameters' => array(
471 'project' => array(
472 'location' => 'path',
473 'type' => 'string',
474 'required' => true,
475 ),
476 'instance' => array(
477 'location' => 'path',
478 'type' => 'string',
479 'required' => true,
480 ),
481 ),
482 ),'stopReplica' => array(
483 'path' => 'projects/{project}/instances/{instance}/stopReplica',
484 'httpMethod' => 'POST',
485 'parameters' => array(
486 'project' => array(
487 'location' => 'path',
488 'type' => 'string',
489 'required' => true,
490 ),
491 'instance' => array(
492 'location' => 'path',
493 'type' => 'string',
494 'required' => true,
495 ),
496 ),
497 ),'update' => array(
498 'path' => 'projects/{project}/instances/{instance}',
499 'httpMethod' => 'PUT',
500 'parameters' => array(
501 'project' => array(
502 'location' => 'path',
503 'type' => 'string',
504 'required' => true,
505 ),
506 'instance' => array(
507 'location' => 'path',
508 'type' => 'string',
509 'required' => true,
510 ),
511 ),
512 ),
513 )
514 )
515 );
516 $this->operations = new Google_Service_SQLAdmin_Operations_Resource(
517 $this,
518 $this->serviceName,
519 'operations',
520 array(
521 'methods' => array(
522 'get' => array(
523 'path' => 'projects/{project}/operations/{operation}',
524 'httpMethod' => 'GET',
525 'parameters' => array(
526 'project' => array(
527 'location' => 'path',
528 'type' => 'string',
529 'required' => true,
530 ),
531 'operation' => array(
532 'location' => 'path',
533 'type' => 'string',
534 'required' => true,
535 ),
536 ),
537 ),'list' => array(
538 'path' => 'projects/{project}/operations',
539 'httpMethod' => 'GET',
540 'parameters' => array(
541 'project' => array(
542 'location' => 'path',
543 'type' => 'string',
544 'required' => true,
545 ),
546 'instance' => array(
547 'location' => 'query',
548 'type' => 'string',
549 'required' => true,
550 ),
551 'maxResults' => array(
552 'location' => 'query',
553 'type' => 'integer',
554 ),
555 'pageToken' => array(
556 'location' => 'query',
557 'type' => 'string',
558 ),
559 ),
560 ),
561 )
562 )
563 );
564 $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource(
565 $this,
566 $this->serviceName,
567 'sslCerts',
568 array(
569 'methods' => array(
570 'createEphemeral' => array(
571 'path' => 'projects/{project}/instances/{instance}/createEphemeral',
572 'httpMethod' => 'POST',
573 'parameters' => array(
574 'project' => array(
575 'location' => 'path',
576 'type' => 'string',
577 'required' => true,
578 ),
579 'instance' => array(
580 'location' => 'path',
581 'type' => 'string',
582 'required' => true,
583 ),
584 ),
585 ),'delete' => array(
586 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
587 'httpMethod' => 'DELETE',
588 'parameters' => array(
589 'project' => array(
590 'location' => 'path',
591 'type' => 'string',
592 'required' => true,
593 ),
594 'instance' => array(
595 'location' => 'path',
596 'type' => 'string',
597 'required' => true,
598 ),
599 'sha1Fingerprint' => array(
600 'location' => 'path',
601 'type' => 'string',
602 'required' => true,
603 ),
604 ),
605 ),'get' => array(
606 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
607 'httpMethod' => 'GET',
608 'parameters' => array(
609 'project' => array(
610 'location' => 'path',
611 'type' => 'string',
612 'required' => true,
613 ),
614 'instance' => array(
615 'location' => 'path',
616 'type' => 'string',
617 'required' => true,
618 ),
619 'sha1Fingerprint' => array(
620 'location' => 'path',
621 'type' => 'string',
622 'required' => true,
623 ),
624 ),
625 ),'insert' => array(
626 'path' => 'projects/{project}/instances/{instance}/sslCerts',
627 'httpMethod' => 'POST',
628 'parameters' => array(
629 'project' => array(
630 'location' => 'path',
631 'type' => 'string',
632 'required' => true,
633 ),
634 'instance' => array(
635 'location' => 'path',
636 'type' => 'string',
637 'required' => true,
638 ),
639 ),
640 ),'list' => array(
641 'path' => 'projects/{project}/instances/{instance}/sslCerts',
642 'httpMethod' => 'GET',
643 'parameters' => array(
644 'project' => array(
645 'location' => 'path',
646 'type' => 'string',
647 'required' => true,
648 ),
649 'instance' => array(
650 'location' => 'path',
651 'type' => 'string',
652 'required' => true,
653 ),
654 ),
655 ),
656 )
657 )
658 );
659 $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource(
660 $this,
661 $this->serviceName,
662 'tiers',
663 array(
664 'methods' => array(
665 'list' => array(
666 'path' => 'projects/{project}/tiers',
667 'httpMethod' => 'GET',
668 'parameters' => array(
669 'project' => array(
670 'location' => 'path',
671 'type' => 'string',
672 'required' => true,
673 ),
674 ),
675 ),
676 )
677 )
678 );
679 $this->users = new Google_Service_SQLAdmin_Users_Resource(
680 $this,
681 $this->serviceName,
682 'users',
683 array(
684 'methods' => array(
685 'delete' => array(
686 'path' => 'projects/{project}/instances/{instance}/users',
687 'httpMethod' => 'DELETE',
688 'parameters' => array(
689 'project' => array(
690 'location' => 'path',
691 'type' => 'string',
692 'required' => true,
693 ),
694 'instance' => array(
695 'location' => 'path',
696 'type' => 'string',
697 'required' => true,
698 ),
699 'host' => array(
700 'location' => 'query',
701 'type' => 'string',
702 'required' => true,
703 ),
704 'name' => array(
705 'location' => 'query',
706 'type' => 'string',
707 'required' => true,
708 ),
709 ),
710 ),'insert' => array(
711 'path' => 'projects/{project}/instances/{instance}/users',
712 'httpMethod' => 'POST',
713 'parameters' => array(
714 'project' => array(
715 'location' => 'path',
716 'type' => 'string',
717 'required' => true,
718 ),
719 'instance' => array(
720 'location' => 'path',
721 'type' => 'string',
722 'required' => true,
723 ),
724 ),
725 ),'list' => array(
726 'path' => 'projects/{project}/instances/{instance}/users',
727 'httpMethod' => 'GET',
728 'parameters' => array(
729 'project' => array(
730 'location' => 'path',
731 'type' => 'string',
732 'required' => true,
733 ),
734 'instance' => array(
735 'location' => 'path',
736 'type' => 'string',
737 'required' => true,
738 ),
739 ),
740 ),'update' => array(
741 'path' => 'projects/{project}/instances/{instance}/users',
742 'httpMethod' => 'PUT',
743 'parameters' => array(
744 'project' => array(
745 'location' => 'path',
746 'type' => 'string',
747 'required' => true,
748 ),
749 'instance' => array(
750 'location' => 'path',
751 'type' => 'string',
752 'required' => true,
753 ),
754 'host' => array(
755 'location' => 'query',
756 'type' => 'string',
757 'required' => true,
758 ),
759 'name' => array(
760 'location' => 'query',
761 'type' => 'string',
762 'required' => true,
763 ),
764 ),
765 ),
766 )
767 )
768 );
769 }
770 }
771
772
773 /**
774 * The "backupRuns" collection of methods.
775 * Typical usage is:
776 * <code>
777 * $sqladminService = new Google_Service_SQLAdmin(...);
778 * $backupRuns = $sqladminService->backupRuns;
779 * </code>
780 */
781 class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource
782 {
783
784 /**
785 * Deletes the backup taken by a backup run. (backupRuns.delete)
786 *
787 * @param string $project Project ID of the project that contains the instance.
788 * @param string $instance Cloud SQL instance ID. This does not include the
789 * project ID.
790 * @param string $id The ID of the Backup Run to delete. To find a Backup Run
791 * ID, use the list method.
792 * @param array $optParams Optional parameters.
793 * @return Google_Service_SQLAdmin_Operation
794 */
795 public function delete($project, $instance, $id, $optParams = array())
796 {
797 $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
798 $params = array_merge($params, $optParams);
799 return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
800 }
801
802 /**
803 * Retrieves a resource containing information about a backup run.
804 * (backupRuns.get)
805 *
806 * @param string $project Project ID of the project that contains the instance.
807 * @param string $instance Cloud SQL instance ID. This does not include the
808 * project ID.
809 * @param string $id The ID of this Backup Run.
810 * @param array $optParams Optional parameters.
811 * @return Google_Service_SQLAdmin_BackupRun
812 */
813 public function get($project, $instance, $id, $optParams = array())
814 {
815 $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
816 $params = array_merge($params, $optParams);
817 return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun");
818 }
819
820 /**
821 * Lists all backup runs associated with a given instance and configuration in
822 * the reverse chronological order of the enqueued time.
823 * (backupRuns.listBackupRuns)
824 *
825 * @param string $project Project ID of the project that contains the instance.
826 * @param string $instance Cloud SQL instance ID. This does not include the
827 * project ID.
828 * @param array $optParams Optional parameters.
829 *
830 * @opt_param int maxResults Maximum number of backup runs per response.
831 * @opt_param string pageToken A previously-returned page token representing
832 * part of the larger set of results to view.
833 * @return Google_Service_SQLAdmin_BackupRunsListResponse
834 */
835 public function listBackupRuns($project, $instance, $optParams = array())
836 {
837 $params = array('project' => $project, 'instance' => $instance);
838 $params = array_merge($params, $optParams);
839 return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse");
840 }
841 }
842
843 /**
844 * The "databases" collection of methods.
845 * Typical usage is:
846 * <code>
847 * $sqladminService = new Google_Service_SQLAdmin(...);
848 * $databases = $sqladminService->databases;
849 * </code>
850 */
851 class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource
852 {
853
854 /**
855 * Deletes a resource containing information about a database inside a Cloud SQL
856 * instance. (databases.delete)
857 *
858 * @param string $project Project ID of the project that contains the instance.
859 * @param string $instance Database instance ID. This does not include the
860 * project ID.
861 * @param string $database Name of the database to be deleted in the instance.
862 * @param array $optParams Optional parameters.
863 * @return Google_Service_SQLAdmin_Operation
864 */
865 public function delete($project, $instance, $database, $optParams = array())
866 {
867 $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
868 $params = array_merge($params, $optParams);
869 return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
870 }
871
872 /**
873 * Retrieves a resource containing information about a database inside a Cloud
874 * SQL instance. (databases.get)
875 *
876 * @param string $project Project ID of the project that contains the instance.
877 * @param string $instance Database instance ID. This does not include the
878 * project ID.
879 * @param string $database Name of the database in the instance.
880 * @param array $optParams Optional parameters.
881 * @return Google_Service_SQLAdmin_Database
882 */
883 public function get($project, $instance, $database, $optParams = array())
884 {
885 $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
886 $params = array_merge($params, $optParams);
887 return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
888 }
889
890 /**
891 * Inserts a resource containing information about a database inside a Cloud SQL
892 * instance. (databases.insert)
893 *
894 * @param string $project Project ID of the project that contains the instance.
895 * @param string $instance Database instance ID. This does not include the
896 * project ID.
897 * @param Google_Database $postBody
898 * @param array $optParams Optional parameters.
899 * @return Google_Service_SQLAdmin_Operation
900 */
901 public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
902 {
903 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
904 $params = array_merge($params, $optParams);
905 return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
906 }
907
908 /**
909 * Lists databases in the specified Cloud SQL instance.
910 * (databases.listDatabases)
911 *
912 * @param string $project Project ID of the project for which to list Cloud SQL
913 * instances.
914 * @param string $instance Cloud SQL instance ID. This does not include the
915 * project ID.
916 * @param array $optParams Optional parameters.
917 * @return Google_Service_SQLAdmin_DatabasesListResponse
918 */
919 public function listDatabases($project, $instance, $optParams = array())
920 {
921 $params = array('project' => $project, 'instance' => $instance);
922 $params = array_merge($params, $optParams);
923 return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
924 }
925
926 /**
927 * Updates a resource containing information about a database inside a Cloud SQL
928 * instance. This method supports patch semantics. (databases.patch)
929 *
930 * @param string $project Project ID of the project that contains the instance.
931 * @param string $instance Database instance ID. This does not include the
932 * project ID.
933 * @param string $database Name of the database to be updated in the instance.
934 * @param Google_Database $postBody
935 * @param array $optParams Optional parameters.
936 * @return Google_Service_SQLAdmin_Operation
937 */
938 public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
939 {
940 $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
941 $params = array_merge($params, $optParams);
942 return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
943 }
944
945 /**
946 * Updates a resource containing information about a database inside a Cloud SQL
947 * instance. (databases.update)
948 *
949 * @param string $project Project ID of the project that contains the instance.
950 * @param string $instance Database instance ID. This does not include the
951 * project ID.
952 * @param string $database Name of the database to be updated in the instance.
953 * @param Google_Database $postBody
954 * @param array $optParams Optional parameters.
955 * @return Google_Service_SQLAdmin_Operation
956 */
957 public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
958 {
959 $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
960 $params = array_merge($params, $optParams);
961 return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
962 }
963 }
964
965 /**
966 * The "flags" collection of methods.
967 * Typical usage is:
968 * <code>
969 * $sqladminService = new Google_Service_SQLAdmin(...);
970 * $flags = $sqladminService->flags;
971 * </code>
972 */
973 class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
974 {
975
976 /**
977 * List all available database flags for Google Cloud SQL instances.
978 * (flags.listFlags)
979 *
980 * @param array $optParams Optional parameters.
981 * @return Google_Service_SQLAdmin_FlagsListResponse
982 */
983 public function listFlags($optParams = array())
984 {
985 $params = array();
986 $params = array_merge($params, $optParams);
987 return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
988 }
989 }
990
991 /**
992 * The "instances" collection of methods.
993 * Typical usage is:
994 * <code>
995 * $sqladminService = new Google_Service_SQLAdmin(...);
996 * $instances = $sqladminService->instances;
997 * </code>
998 */
999 class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
1000 {
1001
1002 /**
1003 * Creates a Cloud SQL instance as a clone of the source instance.
1004 * (instances.cloneInstances)
1005 *
1006 * @param string $project Project ID of the source as well as the clone Cloud
1007 * SQL instance.
1008 * @param string $instance The ID of the Cloud SQL instance to be cloned
1009 * (source). This does not include the project ID.
1010 * @param Google_InstancesCloneRequest $postBody
1011 * @param array $optParams Optional parameters.
1012 * @return Google_Service_SQLAdmin_Operation
1013 */
1014 public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
1015 {
1016 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1017 $params = array_merge($params, $optParams);
1018 return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
1019 }
1020
1021 /**
1022 * Deletes a Cloud SQL instance. (instances.delete)
1023 *
1024 * @param string $project Project ID of the project that contains the instance
1025 * to be deleted.
1026 * @param string $instance Cloud SQL instance ID. This does not include the
1027 * project ID.
1028 * @param array $optParams Optional parameters.
1029 * @return Google_Service_SQLAdmin_Operation
1030 */
1031 public function delete($project, $instance, $optParams = array())
1032 {
1033 $params = array('project' => $project, 'instance' => $instance);
1034 $params = array_merge($params, $optParams);
1035 return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
1036 }
1037
1038 /**
1039 * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
1040 * MySQL dump file. (instances.export)
1041 *
1042 * @param string $project Project ID of the project that contains the instance
1043 * to be exported.
1044 * @param string $instance Cloud SQL instance ID. This does not include the
1045 * project ID.
1046 * @param Google_InstancesExportRequest $postBody
1047 * @param array $optParams Optional parameters.
1048 * @return Google_Service_SQLAdmin_Operation
1049 */
1050 public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
1051 {
1052 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1053 $params = array_merge($params, $optParams);
1054 return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
1055 }
1056
1057 /**
1058 * Failover the instance to its failover replica instance. (instances.failover)
1059 *
1060 * @param string $project ID of the project that contains the read replica.
1061 * @param string $instance Cloud SQL instance ID. This does not include the
1062 * project ID.
1063 * @param Google_InstancesFailoverRequest $postBody
1064 * @param array $optParams Optional parameters.
1065 * @return Google_Service_SQLAdmin_Operation
1066 */
1067 public function failover($project, $instance, Google_Service_SQLAdmin_InstancesFailoverRequest $postBody, $optParams = array())
1068 {
1069 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1070 $params = array_merge($params, $optParams);
1071 return $this->call('failover', array($params), "Google_Service_SQLAdmin_Operation");
1072 }
1073
1074 /**
1075 * Retrieves a resource containing information about a Cloud SQL instance.
1076 * (instances.get)
1077 *
1078 * @param string $project Project ID of the project that contains the instance.
1079 * @param string $instance Database instance ID. This does not include the
1080 * project ID.
1081 * @param array $optParams Optional parameters.
1082 * @return Google_Service_SQLAdmin_DatabaseInstance
1083 */
1084 public function get($project, $instance, $optParams = array())
1085 {
1086 $params = array('project' => $project, 'instance' => $instance);
1087 $params = array_merge($params, $optParams);
1088 return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance");
1089 }
1090
1091 /**
1092 * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
1093 * Storage. (instances.import)
1094 *
1095 * @param string $project Project ID of the project that contains the instance.
1096 * @param string $instance Cloud SQL instance ID. This does not include the
1097 * project ID.
1098 * @param Google_InstancesImportRequest $postBody
1099 * @param array $optParams Optional parameters.
1100 * @return Google_Service_SQLAdmin_Operation
1101 */
1102 public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
1103 {
1104 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1105 $params = array_merge($params, $optParams);
1106 return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
1107 }
1108
1109 /**
1110 * Creates a new Cloud SQL instance. (instances.insert)
1111 *
1112 * @param string $project Project ID of the project to which the newly created
1113 * Cloud SQL instances should belong.
1114 * @param Google_DatabaseInstance $postBody
1115 * @param array $optParams Optional parameters.
1116 * @return Google_Service_SQLAdmin_Operation
1117 */
1118 public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
1119 {
1120 $params = array('project' => $project, 'postBody' => $postBody);
1121 $params = array_merge($params, $optParams);
1122 return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
1123 }
1124
1125 /**
1126 * Lists instances under a given project in the alphabetical order of the
1127 * instance name. (instances.listInstances)
1128 *
1129 * @param string $project Project ID of the project for which to list Cloud SQL
1130 * instances.
1131 * @param array $optParams Optional parameters.
1132 *
1133 * @opt_param string maxResults The maximum number of results to return per
1134 * response.
1135 * @opt_param string pageToken A previously-returned page token representing
1136 * part of the larger set of results to view.
1137 * @return Google_Service_SQLAdmin_InstancesListResponse
1138 */
1139 public function listInstances($project, $optParams = array())
1140 {
1141 $params = array('project' => $project);
1142 $params = array_merge($params, $optParams);
1143 return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse");
1144 }
1145
1146 /**
1147 * Updates settings of a Cloud SQL instance. Caution: This is not a partial
1148 * update, so you must include values for all the settings that you want to
1149 * retain. For partial updates, use patch.. This method supports patch
1150 * semantics. (instances.patch)
1151 *
1152 * @param string $project Project ID of the project that contains the instance.
1153 * @param string $instance Cloud SQL instance ID. This does not include the
1154 * project ID.
1155 * @param Google_DatabaseInstance $postBody
1156 * @param array $optParams Optional parameters.
1157 * @return Google_Service_SQLAdmin_Operation
1158 */
1159 public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
1160 {
1161 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1162 $params = array_merge($params, $optParams);
1163 return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
1164 }
1165
1166 /**
1167 * Promotes the read replica instance to be a stand-alone Cloud SQL instance.
1168 * (instances.promoteReplica)
1169 *
1170 * @param string $project ID of the project that contains the read replica.
1171 * @param string $instance Cloud SQL read replica instance name.
1172 * @param array $optParams Optional parameters.
1173 * @return Google_Service_SQLAdmin_Operation
1174 */
1175 public function promoteReplica($project, $instance, $optParams = array())
1176 {
1177 $params = array('project' => $project, 'instance' => $instance);
1178 $params = array_merge($params, $optParams);
1179 return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
1180 }
1181
1182 /**
1183 * Deletes all client certificates and generates a new server SSL certificate
1184 * for the instance. The changes will not take effect until the instance is
1185 * restarted. Existing instances without a server certificate will need to call
1186 * this once to set a server certificate. (instances.resetSslConfig)
1187 *
1188 * @param string $project Project ID of the project that contains the instance.
1189 * @param string $instance Cloud SQL instance ID. This does not include the
1190 * project ID.
1191 * @param array $optParams Optional parameters.
1192 * @return Google_Service_SQLAdmin_Operation
1193 */
1194 public function resetSslConfig($project, $instance, $optParams = array())
1195 {
1196 $params = array('project' => $project, 'instance' => $instance);
1197 $params = array_merge($params, $optParams);
1198 return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
1199 }
1200
1201 /**
1202 * Restarts a Cloud SQL instance. (instances.restart)
1203 *
1204 * @param string $project Project ID of the project that contains the instance
1205 * to be restarted.
1206 * @param string $instance Cloud SQL instance ID. This does not include the
1207 * project ID.
1208 * @param array $optParams Optional parameters.
1209 * @return Google_Service_SQLAdmin_Operation
1210 */
1211 public function restart($project, $instance, $optParams = array())
1212 {
1213 $params = array('project' => $project, 'instance' => $instance);
1214 $params = array_merge($params, $optParams);
1215 return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
1216 }
1217
1218 /**
1219 * Restores a backup of a Cloud SQL instance. (instances.restoreBackup)
1220 *
1221 * @param string $project Project ID of the project that contains the instance.
1222 * @param string $instance Cloud SQL instance ID. This does not include the
1223 * project ID.
1224 * @param Google_InstancesRestoreBackupRequest $postBody
1225 * @param array $optParams Optional parameters.
1226 * @return Google_Service_SQLAdmin_Operation
1227 */
1228 public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
1229 {
1230 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1231 $params = array_merge($params, $optParams);
1232 return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
1233 }
1234
1235 /**
1236 * Starts the replication in the read replica instance. (instances.startReplica)
1237 *
1238 * @param string $project ID of the project that contains the read replica.
1239 * @param string $instance Cloud SQL read replica instance name.
1240 * @param array $optParams Optional parameters.
1241 * @return Google_Service_SQLAdmin_Operation
1242 */
1243 public function startReplica($project, $instance, $optParams = array())
1244 {
1245 $params = array('project' => $project, 'instance' => $instance);
1246 $params = array_merge($params, $optParams);
1247 return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
1248 }
1249
1250 /**
1251 * Stops the replication in the read replica instance. (instances.stopReplica)
1252 *
1253 * @param string $project ID of the project that contains the read replica.
1254 * @param string $instance Cloud SQL read replica instance name.
1255 * @param array $optParams Optional parameters.
1256 * @return Google_Service_SQLAdmin_Operation
1257 */
1258 public function stopReplica($project, $instance, $optParams = array())
1259 {
1260 $params = array('project' => $project, 'instance' => $instance);
1261 $params = array_merge($params, $optParams);
1262 return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
1263 }
1264
1265 /**
1266 * Updates settings of a Cloud SQL instance. Caution: This is not a partial
1267 * update, so you must include values for all the settings that you want to
1268 * retain. For partial updates, use patch. (instances.update)
1269 *
1270 * @param string $project Project ID of the project that contains the instance.
1271 * @param string $instance Cloud SQL instance ID. This does not include the
1272 * project ID.
1273 * @param Google_DatabaseInstance $postBody
1274 * @param array $optParams Optional parameters.
1275 * @return Google_Service_SQLAdmin_Operation
1276 */
1277 public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
1278 {
1279 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1280 $params = array_merge($params, $optParams);
1281 return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
1282 }
1283 }
1284
1285 /**
1286 * The "operations" collection of methods.
1287 * Typical usage is:
1288 * <code>
1289 * $sqladminService = new Google_Service_SQLAdmin(...);
1290 * $operations = $sqladminService->operations;
1291 * </code>
1292 */
1293 class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource
1294 {
1295
1296 /**
1297 * Retrieves an instance operation that has been performed on an instance.
1298 * (operations.get)
1299 *
1300 * @param string $project Project ID of the project that contains the instance.
1301 * @param string $operation Instance operation ID.
1302 * @param array $optParams Optional parameters.
1303 * @return Google_Service_SQLAdmin_Operation
1304 */
1305 public function get($project, $operation, $optParams = array())
1306 {
1307 $params = array('project' => $project, 'operation' => $operation);
1308 $params = array_merge($params, $optParams);
1309 return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
1310 }
1311
1312 /**
1313 * Lists all instance operations that have been performed on the given Cloud SQL
1314 * instance in the reverse chronological order of the start time.
1315 * (operations.listOperations)
1316 *
1317 * @param string $project Project ID of the project that contains the instance.
1318 * @param string $instance Cloud SQL instance ID. This does not include the
1319 * project ID.
1320 * @param array $optParams Optional parameters.
1321 *
1322 * @opt_param string maxResults Maximum number of operations per response.
1323 * @opt_param string pageToken A previously-returned page token representing
1324 * part of the larger set of results to view.
1325 * @return Google_Service_SQLAdmin_OperationsListResponse
1326 */
1327 public function listOperations($project, $instance, $optParams = array())
1328 {
1329 $params = array('project' => $project, 'instance' => $instance);
1330 $params = array_merge($params, $optParams);
1331 return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse");
1332 }
1333 }
1334
1335 /**
1336 * The "sslCerts" collection of methods.
1337 * Typical usage is:
1338 * <code>
1339 * $sqladminService = new Google_Service_SQLAdmin(...);
1340 * $sslCerts = $sqladminService->sslCerts;
1341 * </code>
1342 */
1343 class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
1344 {
1345
1346 /**
1347 * Generates a short-lived X509 certificate containing the provided public key
1348 * and signed by a private key specific to the target instance. Users may use
1349 * the certificate to authenticate as themselves when connecting to the
1350 * database. (sslCerts.createEphemeral)
1351 *
1352 * @param string $project Project ID of the Cloud SQL project.
1353 * @param string $instance Cloud SQL instance ID. This does not include the
1354 * project ID.
1355 * @param Google_SslCertsCreateEphemeralRequest $postBody
1356 * @param array $optParams Optional parameters.
1357 * @return Google_Service_SQLAdmin_SslCert
1358 */
1359 public function createEphemeral($project, $instance, Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest $postBody, $optParams = array())
1360 {
1361 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1362 $params = array_merge($params, $optParams);
1363 return $this->call('createEphemeral', array($params), "Google_Service_SQLAdmin_SslCert");
1364 }
1365
1366 /**
1367 * Deletes the SSL certificate. The change will not take effect until the
1368 * instance is restarted. (sslCerts.delete)
1369 *
1370 * @param string $project Project ID of the project that contains the instance
1371 * to be deleted.
1372 * @param string $instance Cloud SQL instance ID. This does not include the
1373 * project ID.
1374 * @param string $sha1Fingerprint Sha1 FingerPrint.
1375 * @param array $optParams Optional parameters.
1376 * @return Google_Service_SQLAdmin_Operation
1377 */
1378 public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
1379 {
1380 $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
1381 $params = array_merge($params, $optParams);
1382 return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
1383 }
1384
1385 /**
1386 * Retrieves a particular SSL certificate. Does not include the private key
1387 * (required for usage). The private key must be saved from the response to
1388 * initial creation. (sslCerts.get)
1389 *
1390 * @param string $project Project ID of the project that contains the instance.
1391 * @param string $instance Cloud SQL instance ID. This does not include the
1392 * project ID.
1393 * @param string $sha1Fingerprint Sha1 FingerPrint.
1394 * @param array $optParams Optional parameters.
1395 * @return Google_Service_SQLAdmin_SslCert
1396 */
1397 public function get($project, $instance, $sha1Fingerprint, $optParams = array())
1398 {
1399 $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
1400 $params = array_merge($params, $optParams);
1401 return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert");
1402 }
1403
1404 /**
1405 * Creates an SSL certificate and returns it along with the private key and
1406 * server certificate authority. The new certificate will not be usable until
1407 * the instance is restarted. (sslCerts.insert)
1408 *
1409 * @param string $project Project ID of the project to which the newly created
1410 * Cloud SQL instances should belong.
1411 * @param string $instance Cloud SQL instance ID. This does not include the
1412 * project ID.
1413 * @param Google_SslCertsInsertRequest $postBody
1414 * @param array $optParams Optional parameters.
1415 * @return Google_Service_SQLAdmin_SslCertsInsertResponse
1416 */
1417 public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array())
1418 {
1419 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1420 $params = array_merge($params, $optParams);
1421 return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse");
1422 }
1423
1424 /**
1425 * Lists all of the current SSL certificates for the instance.
1426 * (sslCerts.listSslCerts)
1427 *
1428 * @param string $project Project ID of the project for which to list Cloud SQL
1429 * instances.
1430 * @param string $instance Cloud SQL instance ID. This does not include the
1431 * project ID.
1432 * @param array $optParams Optional parameters.
1433 * @return Google_Service_SQLAdmin_SslCertsListResponse
1434 */
1435 public function listSslCerts($project, $instance, $optParams = array())
1436 {
1437 $params = array('project' => $project, 'instance' => $instance);
1438 $params = array_merge($params, $optParams);
1439 return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse");
1440 }
1441 }
1442
1443 /**
1444 * The "tiers" collection of methods.
1445 * Typical usage is:
1446 * <code>
1447 * $sqladminService = new Google_Service_SQLAdmin(...);
1448 * $tiers = $sqladminService->tiers;
1449 * </code>
1450 */
1451 class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource
1452 {
1453
1454 /**
1455 * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
1456 * For related information, see Pricing. (tiers.listTiers)
1457 *
1458 * @param string $project Project ID of the project for which to list tiers.
1459 * @param array $optParams Optional parameters.
1460 * @return Google_Service_SQLAdmin_TiersListResponse
1461 */
1462 public function listTiers($project, $optParams = array())
1463 {
1464 $params = array('project' => $project);
1465 $params = array_merge($params, $optParams);
1466 return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse");
1467 }
1468 }
1469
1470 /**
1471 * The "users" collection of methods.
1472 * Typical usage is:
1473 * <code>
1474 * $sqladminService = new Google_Service_SQLAdmin(...);
1475 * $users = $sqladminService->users;
1476 * </code>
1477 */
1478 class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource
1479 {
1480
1481 /**
1482 * Deletes a user from a Cloud SQL instance. (users.delete)
1483 *
1484 * @param string $project Project ID of the project that contains the instance.
1485 * @param string $instance Database instance ID. This does not include the
1486 * project ID.
1487 * @param string $host Host of the user in the instance.
1488 * @param string $name Name of the user in the instance.
1489 * @param array $optParams Optional parameters.
1490 * @return Google_Service_SQLAdmin_Operation
1491 */
1492 public function delete($project, $instance, $host, $name, $optParams = array())
1493 {
1494 $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
1495 $params = array_merge($params, $optParams);
1496 return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
1497 }
1498
1499 /**
1500 * Creates a new user in a Cloud SQL instance. (users.insert)
1501 *
1502 * @param string $project Project ID of the project that contains the instance.
1503 * @param string $instance Database instance ID. This does not include the
1504 * project ID.
1505 * @param Google_User $postBody
1506 * @param array $optParams Optional parameters.
1507 * @return Google_Service_SQLAdmin_Operation
1508 */
1509 public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
1510 {
1511 $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
1512 $params = array_merge($params, $optParams);
1513 return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
1514 }
1515
1516 /**
1517 * Lists users in the specified Cloud SQL instance. (users.listUsers)
1518 *
1519 * @param string $project Project ID of the project that contains the instance.
1520 * @param string $instance Database instance ID. This does not include the
1521 * project ID.
1522 * @param array $optParams Optional parameters.
1523 * @return Google_Service_SQLAdmin_UsersListResponse
1524 */
1525 public function listUsers($project, $instance, $optParams = array())
1526 {
1527 $params = array('project' => $project, 'instance' => $instance);
1528 $params = array_merge($params, $optParams);
1529 return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
1530 }
1531
1532 /**
1533 * Updates an existing user in a Cloud SQL instance. (users.update)
1534 *
1535 * @param string $project Project ID of the project that contains the instance.
1536 * @param string $instance Database instance ID. This does not include the
1537 * project ID.
1538 * @param string $host Host of the user in the instance.
1539 * @param string $name Name of the user in the instance.
1540 * @param Google_User $postBody
1541 * @param array $optParams Optional parameters.
1542 * @return Google_Service_SQLAdmin_Operation
1543 */
1544 public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
1545 {
1546 $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
1547 $params = array_merge($params, $optParams);
1548 return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
1549 }
1550 }
1551
1552
1553
1554
1555 class Google_Service_SQLAdmin_AclEntry extends Google_Model
1556 {
1557 protected $internal_gapi_mappings = array(
1558 );
1559 public $expirationTime;
1560 public $kind;
1561 public $name;
1562 public $value;
1563
1564
1565 public function setExpirationTime($expirationTime)
1566 {
1567 $this->expirationTime = $expirationTime;
1568 }
1569 public function getExpirationTime()
1570 {
1571 return $this->expirationTime;
1572 }
1573 public function setKind($kind)
1574 {
1575 $this->kind = $kind;
1576 }
1577 public function getKind()
1578 {
1579 return $this->kind;
1580 }
1581 public function setName($name)
1582 {
1583 $this->name = $name;
1584 }
1585 public function getName()
1586 {
1587 return $this->name;
1588 }
1589 public function setValue($value)
1590 {
1591 $this->value = $value;
1592 }
1593 public function getValue()
1594 {
1595 return $this->value;
1596 }
1597 }
1598
1599 class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
1600 {
1601 protected $internal_gapi_mappings = array(
1602 );
1603 public $binaryLogEnabled;
1604 public $enabled;
1605 public $kind;
1606 public $startTime;
1607
1608
1609 public function setBinaryLogEnabled($binaryLogEnabled)
1610 {
1611 $this->binaryLogEnabled = $binaryLogEnabled;
1612 }
1613 public function getBinaryLogEnabled()
1614 {
1615 return $this->binaryLogEnabled;
1616 }
1617 public function setEnabled($enabled)
1618 {
1619 $this->enabled = $enabled;
1620 }
1621 public function getEnabled()
1622 {
1623 return $this->enabled;
1624 }
1625 public function setKind($kind)
1626 {
1627 $this->kind = $kind;
1628 }
1629 public function getKind()
1630 {
1631 return $this->kind;
1632 }
1633 public function setStartTime($startTime)
1634 {
1635 $this->startTime = $startTime;
1636 }
1637 public function getStartTime()
1638 {
1639 return $this->startTime;
1640 }
1641 }
1642
1643 class Google_Service_SQLAdmin_BackupRun extends Google_Model
1644 {
1645 protected $internal_gapi_mappings = array(
1646 );
1647 public $endTime;
1648 public $enqueuedTime;
1649 protected $errorType = 'Google_Service_SQLAdmin_OperationError';
1650 protected $errorDataType = '';
1651 public $id;
1652 public $instance;
1653 public $kind;
1654 public $selfLink;
1655 public $startTime;
1656 public $status;
1657 public $windowStartTime;
1658
1659
1660 public function setEndTime($endTime)
1661 {
1662 $this->endTime = $endTime;
1663 }
1664 public function getEndTime()
1665 {
1666 return $this->endTime;
1667 }
1668 public function setEnqueuedTime($enqueuedTime)
1669 {
1670 $this->enqueuedTime = $enqueuedTime;
1671 }
1672 public function getEnqueuedTime()
1673 {
1674 return $this->enqueuedTime;
1675 }
1676 public function setError(Google_Service_SQLAdmin_OperationError $error)
1677 {
1678 $this->error = $error;
1679 }
1680 public function getError()
1681 {
1682 return $this->error;
1683 }
1684 public function setId($id)
1685 {
1686 $this->id = $id;
1687 }
1688 public function getId()
1689 {
1690 return $this->id;
1691 }
1692 public function setInstance($instance)
1693 {
1694 $this->instance = $instance;
1695 }
1696 public function getInstance()
1697 {
1698 return $this->instance;
1699 }
1700 public function setKind($kind)
1701 {
1702 $this->kind = $kind;
1703 }
1704 public function getKind()
1705 {
1706 return $this->kind;
1707 }
1708 public function setSelfLink($selfLink)
1709 {
1710 $this->selfLink = $selfLink;
1711 }
1712 public function getSelfLink()
1713 {
1714 return $this->selfLink;
1715 }
1716 public function setStartTime($startTime)
1717 {
1718 $this->startTime = $startTime;
1719 }
1720 public function getStartTime()
1721 {
1722 return $this->startTime;
1723 }
1724 public function setStatus($status)
1725 {
1726 $this->status = $status;
1727 }
1728 public function getStatus()
1729 {
1730 return $this->status;
1731 }
1732 public function setWindowStartTime($windowStartTime)
1733 {
1734 $this->windowStartTime = $windowStartTime;
1735 }
1736 public function getWindowStartTime()
1737 {
1738 return $this->windowStartTime;
1739 }
1740 }
1741
1742 class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
1743 {
1744 protected $collection_key = 'items';
1745 protected $internal_gapi_mappings = array(
1746 );
1747 protected $itemsType = 'Google_Service_SQLAdmin_BackupRun';
1748 protected $itemsDataType = 'array';
1749 public $kind;
1750 public $nextPageToken;
1751
1752
1753 public function setItems($items)
1754 {
1755 $this->items = $items;
1756 }
1757 public function getItems()
1758 {
1759 return $this->items;
1760 }
1761 public function setKind($kind)
1762 {
1763 $this->kind = $kind;
1764 }
1765 public function getKind()
1766 {
1767 return $this->kind;
1768 }
1769 public function setNextPageToken($nextPageToken)
1770 {
1771 $this->nextPageToken = $nextPageToken;
1772 }
1773 public function getNextPageToken()
1774 {
1775 return $this->nextPageToken;
1776 }
1777 }
1778
1779 class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model
1780 {
1781 protected $internal_gapi_mappings = array(
1782 );
1783 public $binLogFileName;
1784 public $binLogPosition;
1785 public $kind;
1786
1787
1788 public function setBinLogFileName($binLogFileName)
1789 {
1790 $this->binLogFileName = $binLogFileName;
1791 }
1792 public function getBinLogFileName()
1793 {
1794 return $this->binLogFileName;
1795 }
1796 public function setBinLogPosition($binLogPosition)
1797 {
1798 $this->binLogPosition = $binLogPosition;
1799 }
1800 public function getBinLogPosition()
1801 {
1802 return $this->binLogPosition;
1803 }
1804 public function setKind($kind)
1805 {
1806 $this->kind = $kind;
1807 }
1808 public function getKind()
1809 {
1810 return $this->kind;
1811 }
1812 }
1813
1814 class Google_Service_SQLAdmin_CloneContext extends Google_Model
1815 {
1816 protected $internal_gapi_mappings = array(
1817 );
1818 protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates';
1819 protected $binLogCoordinatesDataType = '';
1820 public $destinationInstanceName;
1821 public $kind;
1822
1823
1824 public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
1825 {
1826 $this->binLogCoordinates = $binLogCoordinates;
1827 }
1828 public function getBinLogCoordinates()
1829 {
1830 return $this->binLogCoordinates;
1831 }
1832 public function setDestinationInstanceName($destinationInstanceName)
1833 {
1834 $this->destinationInstanceName = $destinationInstanceName;
1835 }
1836 public function getDestinationInstanceName()
1837 {
1838 return $this->destinationInstanceName;
1839 }
1840 public function setKind($kind)
1841 {
1842 $this->kind = $kind;
1843 }
1844 public function getKind()
1845 {
1846 return $this->kind;
1847 }
1848 }
1849
1850 class Google_Service_SQLAdmin_Database extends Google_Model
1851 {
1852 protected $internal_gapi_mappings = array(
1853 );
1854 public $charset;
1855 public $collation;
1856 public $etag;
1857 public $instance;
1858 public $kind;
1859 public $name;
1860 public $project;
1861 public $selfLink;
1862
1863
1864 public function setCharset($charset)
1865 {
1866 $this->charset = $charset;
1867 }
1868 public function getCharset()
1869 {
1870 return $this->charset;
1871 }
1872 public function setCollation($collation)
1873 {
1874 $this->collation = $collation;
1875 }
1876 public function getCollation()
1877 {
1878 return $this->collation;
1879 }
1880 public function setEtag($etag)
1881 {
1882 $this->etag = $etag;
1883 }
1884 public function getEtag()
1885 {
1886 return $this->etag;
1887 }
1888 public function setInstance($instance)
1889 {
1890 $this->instance = $instance;
1891 }
1892 public function getInstance()
1893 {
1894 return $this->instance;
1895 }
1896 public function setKind($kind)
1897 {
1898 $this->kind = $kind;
1899 }
1900 public function getKind()
1901 {
1902 return $this->kind;
1903 }
1904 public function setName($name)
1905 {
1906 $this->name = $name;
1907 }
1908 public function getName()
1909 {
1910 return $this->name;
1911 }
1912 public function setProject($project)
1913 {
1914 $this->project = $project;
1915 }
1916 public function getProject()
1917 {
1918 return $this->project;
1919 }
1920 public function setSelfLink($selfLink)
1921 {
1922 $this->selfLink = $selfLink;
1923 }
1924 public function getSelfLink()
1925 {
1926 return $this->selfLink;
1927 }
1928 }
1929
1930 class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model
1931 {
1932 protected $internal_gapi_mappings = array(
1933 );
1934 public $name;
1935 public $value;
1936
1937
1938 public function setName($name)
1939 {
1940 $this->name = $name;
1941 }
1942 public function getName()
1943 {
1944 return $this->name;
1945 }
1946 public function setValue($value)
1947 {
1948 $this->value = $value;
1949 }
1950 public function getValue()
1951 {
1952 return $this->value;
1953 }
1954 }
1955
1956 class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection
1957 {
1958 protected $collection_key = 'replicaNames';
1959 protected $internal_gapi_mappings = array(
1960 );
1961 public $currentDiskSize;
1962 public $databaseVersion;
1963 public $etag;
1964 protected $failoverReplicaType = 'Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica';
1965 protected $failoverReplicaDataType = '';
1966 public $instanceType;
1967 protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
1968 protected $ipAddressesDataType = 'array';
1969 public $ipv6Address;
1970 public $kind;
1971 public $masterInstanceName;
1972 public $maxDiskSize;
1973 public $name;
1974 protected $onPremisesConfigurationType = 'Google_Service_SQLAdmin_OnPremisesConfiguration';
1975 protected $onPremisesConfigurationDataType = '';
1976 public $project;
1977 public $region;
1978 protected $replicaConfigurationType = 'Google_Service_SQLAdmin_ReplicaConfiguration';
1979 protected $replicaConfigurationDataType = '';
1980 public $replicaNames;
1981 public $selfLink;
1982 protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
1983 protected $serverCaCertDataType = '';
1984 public $serviceAccountEmailAddress;
1985 protected $settingsType = 'Google_Service_SQLAdmin_Settings';
1986 protected $settingsDataType = '';
1987 public $state;
1988
1989
1990 public function setCurrentDiskSize($currentDiskSize)
1991 {
1992 $this->currentDiskSize = $currentDiskSize;
1993 }
1994 public function getCurrentDiskSize()
1995 {
1996 return $this->currentDiskSize;
1997 }
1998 public function setDatabaseVersion($databaseVersion)
1999 {
2000 $this->databaseVersion = $databaseVersion;
2001 }
2002 public function getDatabaseVersion()
2003 {
2004 return $this->databaseVersion;
2005 }
2006 public function setEtag($etag)
2007 {
2008 $this->etag = $etag;
2009 }
2010 public function getEtag()
2011 {
2012 return $this->etag;
2013 }
2014 public function setFailoverReplica(Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica $failoverReplica)
2015 {
2016 $this->failoverReplica = $failoverReplica;
2017 }
2018 public function getFailoverReplica()
2019 {
2020 return $this->failoverReplica;
2021 }
2022 public function setInstanceType($instanceType)
2023 {
2024 $this->instanceType = $instanceType;
2025 }
2026 public function getInstanceType()
2027 {
2028 return $this->instanceType;
2029 }
2030 public function setIpAddresses($ipAddresses)
2031 {
2032 $this->ipAddresses = $ipAddresses;
2033 }
2034 public function getIpAddresses()
2035 {
2036 return $this->ipAddresses;
2037 }
2038 public function setIpv6Address($ipv6Address)
2039 {
2040 $this->ipv6Address = $ipv6Address;
2041 }
2042 public function getIpv6Address()
2043 {
2044 return $this->ipv6Address;
2045 }
2046 public function setKind($kind)
2047 {
2048 $this->kind = $kind;
2049 }
2050 public function getKind()
2051 {
2052 return $this->kind;
2053 }
2054 public function setMasterInstanceName($masterInstanceName)
2055 {
2056 $this->masterInstanceName = $masterInstanceName;
2057 }
2058 public function getMasterInstanceName()
2059 {
2060 return $this->masterInstanceName;
2061 }
2062 public function setMaxDiskSize($maxDiskSize)
2063 {
2064 $this->maxDiskSize = $maxDiskSize;
2065 }
2066 public function getMaxDiskSize()
2067 {
2068 return $this->maxDiskSize;
2069 }
2070 public function setName($name)
2071 {
2072 $this->name = $name;
2073 }
2074 public function getName()
2075 {
2076 return $this->name;
2077 }
2078 public function setOnPremisesConfiguration(Google_Service_SQLAdmin_OnPremisesConfiguration $onPremisesConfiguration)
2079 {
2080 $this->onPremisesConfiguration = $onPremisesConfiguration;
2081 }
2082 public function getOnPremisesConfiguration()
2083 {
2084 return $this->onPremisesConfiguration;
2085 }
2086 public function setProject($project)
2087 {
2088 $this->project = $project;
2089 }
2090 public function getProject()
2091 {
2092 return $this->project;
2093 }
2094 public function setRegion($region)
2095 {
2096 $this->region = $region;
2097 }
2098 public function getRegion()
2099 {
2100 return $this->region;
2101 }
2102 public function setReplicaConfiguration(Google_Service_SQLAdmin_ReplicaConfiguration $replicaConfiguration)
2103 {
2104 $this->replicaConfiguration = $replicaConfiguration;
2105 }
2106 public function getReplicaConfiguration()
2107 {
2108 return $this->replicaConfiguration;
2109 }
2110 public function setReplicaNames($replicaNames)
2111 {
2112 $this->replicaNames = $replicaNames;
2113 }
2114 public function getReplicaNames()
2115 {
2116 return $this->replicaNames;
2117 }
2118 public function setSelfLink($selfLink)
2119 {
2120 $this->selfLink = $selfLink;
2121 }
2122 public function getSelfLink()
2123 {
2124 return $this->selfLink;
2125 }
2126 public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
2127 {
2128 $this->serverCaCert = $serverCaCert;
2129 }
2130 public function getServerCaCert()
2131 {
2132 return $this->serverCaCert;
2133 }
2134 public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
2135 {
2136 $this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
2137 }
2138 public function getServiceAccountEmailAddress()
2139 {
2140 return $this->serviceAccountEmailAddress;
2141 }
2142 public function setSettings(Google_Service_SQLAdmin_Settings $settings)
2143 {
2144 $this->settings = $settings;
2145 }
2146 public function getSettings()
2147 {
2148 return $this->settings;
2149 }
2150 public function setState($state)
2151 {
2152 $this->state = $state;
2153 }
2154 public function getState()
2155 {
2156 return $this->state;
2157 }
2158 }
2159
2160 class Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica extends Google_Model
2161 {
2162 protected $internal_gapi_mappings = array(
2163 );
2164 public $available;
2165 public $name;
2166
2167
2168 public function setAvailable($available)
2169 {
2170 $this->available = $available;
2171 }
2172 public function getAvailable()
2173 {
2174 return $this->available;
2175 }
2176 public function setName($name)
2177 {
2178 $this->name = $name;
2179 }
2180 public function getName()
2181 {
2182 return $this->name;
2183 }
2184 }
2185
2186 class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
2187 {
2188 protected $collection_key = 'items';
2189 protected $internal_gapi_mappings = array(
2190 );
2191 protected $itemsType = 'Google_Service_SQLAdmin_Database';
2192 protected $itemsDataType = 'array';
2193 public $kind;
2194
2195
2196 public function setItems($items)
2197 {
2198 $this->items = $items;
2199 }
2200 public function getItems()
2201 {
2202 return $this->items;
2203 }
2204 public function setKind($kind)
2205 {
2206 $this->kind = $kind;
2207 }
2208 public function getKind()
2209 {
2210 return $this->kind;
2211 }
2212 }
2213
2214 class Google_Service_SQLAdmin_ExportContext extends Google_Collection
2215 {
2216 protected $collection_key = 'databases';
2217 protected $internal_gapi_mappings = array(
2218 );
2219 protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
2220 protected $csvExportOptionsDataType = '';
2221 public $databases;
2222 public $fileType;
2223 public $kind;
2224 protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
2225 protected $sqlExportOptionsDataType = '';
2226 public $uri;
2227
2228
2229 public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
2230 {
2231 $this->csvExportOptions = $csvExportOptions;
2232 }
2233 public function getCsvExportOptions()
2234 {
2235 return $this->csvExportOptions;
2236 }
2237 public function setDatabases($databases)
2238 {
2239 $this->databases = $databases;
2240 }
2241 public function getDatabases()
2242 {
2243 return $this->databases;
2244 }
2245 public function setFileType($fileType)
2246 {
2247 $this->fileType = $fileType;
2248 }
2249 public function getFileType()
2250 {
2251 return $this->fileType;
2252 }
2253 public function setKind($kind)
2254 {
2255 $this->kind = $kind;
2256 }
2257 public function getKind()
2258 {
2259 return $this->kind;
2260 }
2261 public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
2262 {
2263 $this->sqlExportOptions = $sqlExportOptions;
2264 }
2265 public function getSqlExportOptions()
2266 {
2267 return $this->sqlExportOptions;
2268 }
2269 public function setUri($uri)
2270 {
2271 $this->uri = $uri;
2272 }
2273 public function getUri()
2274 {
2275 return $this->uri;
2276 }
2277 }
2278
2279 class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
2280 {
2281 protected $internal_gapi_mappings = array(
2282 );
2283 public $selectQuery;
2284
2285
2286 public function setSelectQuery($selectQuery)
2287 {
2288 $this->selectQuery = $selectQuery;
2289 }
2290 public function getSelectQuery()
2291 {
2292 return $this->selectQuery;
2293 }
2294 }
2295
2296 class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
2297 {
2298 protected $collection_key = 'tables';
2299 protected $internal_gapi_mappings = array(
2300 );
2301 public $schemaOnly;
2302 public $tables;
2303
2304
2305 public function setSchemaOnly($schemaOnly)
2306 {
2307 $this->schemaOnly = $schemaOnly;
2308 }
2309 public function getSchemaOnly()
2310 {
2311 return $this->schemaOnly;
2312 }
2313 public function setTables($tables)
2314 {
2315 $this->tables = $tables;
2316 }
2317 public function getTables()
2318 {
2319 return $this->tables;
2320 }
2321 }
2322
2323 class Google_Service_SQLAdmin_FailoverContext extends Google_Model
2324 {
2325 protected $internal_gapi_mappings = array(
2326 );
2327 public $kind;
2328 public $settingsVersion;
2329
2330
2331 public function setKind($kind)
2332 {
2333 $this->kind = $kind;
2334 }
2335 public function getKind()
2336 {
2337 return $this->kind;
2338 }
2339 public function setSettingsVersion($settingsVersion)
2340 {
2341 $this->settingsVersion = $settingsVersion;
2342 }
2343 public function getSettingsVersion()
2344 {
2345 return $this->settingsVersion;
2346 }
2347 }
2348
2349 class Google_Service_SQLAdmin_Flag extends Google_Collection
2350 {
2351 protected $collection_key = 'appliesTo';
2352 protected $internal_gapi_mappings = array(
2353 );
2354 public $allowedStringValues;
2355 public $appliesTo;
2356 public $kind;
2357 public $maxValue;
2358 public $minValue;
2359 public $name;
2360 public $requiresRestart;
2361 public $type;
2362
2363
2364 public function setAllowedStringValues($allowedStringValues)
2365 {
2366 $this->allowedStringValues = $allowedStringValues;
2367 }
2368 public function getAllowedStringValues()
2369 {
2370 return $this->allowedStringValues;
2371 }
2372 public function setAppliesTo($appliesTo)
2373 {
2374 $this->appliesTo = $appliesTo;
2375 }
2376 public function getAppliesTo()
2377 {
2378 return $this->appliesTo;
2379 }
2380 public function setKind($kind)
2381 {
2382 $this->kind = $kind;
2383 }
2384 public function getKind()
2385 {
2386 return $this->kind;
2387 }
2388 public function setMaxValue($maxValue)
2389 {
2390 $this->maxValue = $maxValue;
2391 }
2392 public function getMaxValue()
2393 {
2394 return $this->maxValue;
2395 }
2396 public function setMinValue($minValue)
2397 {
2398 $this->minValue = $minValue;
2399 }
2400 public function getMinValue()
2401 {
2402 return $this->minValue;
2403 }
2404 public function setName($name)
2405 {
2406 $this->name = $name;
2407 }
2408 public function getName()
2409 {
2410 return $this->name;
2411 }
2412 public function setRequiresRestart($requiresRestart)
2413 {
2414 $this->requiresRestart = $requiresRestart;
2415 }
2416 public function getRequiresRestart()
2417 {
2418 return $this->requiresRestart;
2419 }
2420 public function setType($type)
2421 {
2422 $this->type = $type;
2423 }
2424 public function getType()
2425 {
2426 return $this->type;
2427 }
2428 }
2429
2430 class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection
2431 {
2432 protected $collection_key = 'items';
2433 protected $internal_gapi_mappings = array(
2434 );
2435 protected $itemsType = 'Google_Service_SQLAdmin_Flag';
2436 protected $itemsDataType = 'array';
2437 public $kind;
2438
2439
2440 public function setItems($items)
2441 {
2442 $this->items = $items;
2443 }
2444 public function getItems()
2445 {
2446 return $this->items;
2447 }
2448 public function setKind($kind)
2449 {
2450 $this->kind = $kind;
2451 }
2452 public function getKind()
2453 {
2454 return $this->kind;
2455 }
2456 }
2457
2458 class Google_Service_SQLAdmin_ImportContext extends Google_Model
2459 {
2460 protected $internal_gapi_mappings = array(
2461 );
2462 protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
2463 protected $csvImportOptionsDataType = '';
2464 public $database;
2465 public $fileType;
2466 public $kind;
2467 public $uri;
2468
2469
2470 public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
2471 {
2472 $this->csvImportOptions = $csvImportOptions;
2473 }
2474 public function getCsvImportOptions()
2475 {
2476 return $this->csvImportOptions;
2477 }
2478 public function setDatabase($database)
2479 {
2480 $this->database = $database;
2481 }
2482 public function getDatabase()
2483 {
2484 return $this->database;
2485 }
2486 public function setFileType($fileType)
2487 {
2488 $this->fileType = $fileType;
2489 }
2490 public function getFileType()
2491 {
2492 return $this->fileType;
2493 }
2494 public function setKind($kind)
2495 {
2496 $this->kind = $kind;
2497 }
2498 public function getKind()
2499 {
2500 return $this->kind;
2501 }
2502 public function setUri($uri)
2503 {
2504 $this->uri = $uri;
2505 }
2506 public function getUri()
2507 {
2508 return $this->uri;
2509 }
2510 }
2511
2512 class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
2513 {
2514 protected $collection_key = 'columns';
2515 protected $internal_gapi_mappings = array(
2516 );
2517 public $columns;
2518 public $table;
2519
2520
2521 public function setColumns($columns)
2522 {
2523 $this->columns = $columns;
2524 }
2525 public function getColumns()
2526 {
2527 return $this->columns;
2528 }
2529 public function setTable($table)
2530 {
2531 $this->table = $table;
2532 }
2533 public function getTable()
2534 {
2535 return $this->table;
2536 }
2537 }
2538
2539 class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model
2540 {
2541 protected $internal_gapi_mappings = array(
2542 );
2543 protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext';
2544 protected $cloneContextDataType = '';
2545
2546
2547 public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext)
2548 {
2549 $this->cloneContext = $cloneContext;
2550 }
2551 public function getCloneContext()
2552 {
2553 return $this->cloneContext;
2554 }
2555 }
2556
2557 class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
2558 {
2559 protected $internal_gapi_mappings = array(
2560 );
2561 protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
2562 protected $exportContextDataType = '';
2563
2564
2565 public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
2566 {
2567 $this->exportContext = $exportContext;
2568 }
2569 public function getExportContext()
2570 {
2571 return $this->exportContext;
2572 }
2573 }
2574
2575 class Google_Service_SQLAdmin_InstancesFailoverRequest extends Google_Model
2576 {
2577 protected $internal_gapi_mappings = array(
2578 );
2579 protected $failoverContextType = 'Google_Service_SQLAdmin_FailoverContext';
2580 protected $failoverContextDataType = '';
2581
2582
2583 public function setFailoverContext(Google_Service_SQLAdmin_FailoverContext $failoverContext)
2584 {
2585 $this->failoverContext = $failoverContext;
2586 }
2587 public function getFailoverContext()
2588 {
2589 return $this->failoverContext;
2590 }
2591 }
2592
2593 class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
2594 {
2595 protected $internal_gapi_mappings = array(
2596 );
2597 protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
2598 protected $importContextDataType = '';
2599
2600
2601 public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
2602 {
2603 $this->importContext = $importContext;
2604 }
2605 public function getImportContext()
2606 {
2607 return $this->importContext;
2608 }
2609 }
2610
2611 class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
2612 {
2613 protected $collection_key = 'items';
2614 protected $internal_gapi_mappings = array(
2615 );
2616 protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
2617 protected $itemsDataType = 'array';
2618 public $kind;
2619 public $nextPageToken;
2620
2621
2622 public function setItems($items)
2623 {
2624 $this->items = $items;
2625 }
2626 public function getItems()
2627 {
2628 return $this->items;
2629 }
2630 public function setKind($kind)
2631 {
2632 $this->kind = $kind;
2633 }
2634 public function getKind()
2635 {
2636 return $this->kind;
2637 }
2638 public function setNextPageToken($nextPageToken)
2639 {
2640 $this->nextPageToken = $nextPageToken;
2641 }
2642 public function getNextPageToken()
2643 {
2644 return $this->nextPageToken;
2645 }
2646 }
2647
2648 class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
2649 {
2650 protected $internal_gapi_mappings = array(
2651 );
2652 protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
2653 protected $restoreBackupContextDataType = '';
2654
2655
2656 public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
2657 {
2658 $this->restoreBackupContext = $restoreBackupContext;
2659 }
2660 public function getRestoreBackupContext()
2661 {
2662 return $this->restoreBackupContext;
2663 }
2664 }
2665
2666 class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
2667 {
2668 protected $collection_key = 'authorizedNetworks';
2669 protected $internal_gapi_mappings = array(
2670 );
2671 protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
2672 protected $authorizedNetworksDataType = 'array';
2673 public $ipv4Enabled;
2674 public $requireSsl;
2675
2676
2677 public function setAuthorizedNetworks($authorizedNetworks)
2678 {
2679 $this->authorizedNetworks = $authorizedNetworks;
2680 }
2681 public function getAuthorizedNetworks()
2682 {
2683 return $this->authorizedNetworks;
2684 }
2685 public function setIpv4Enabled($ipv4Enabled)
2686 {
2687 $this->ipv4Enabled = $ipv4Enabled;
2688 }
2689 public function getIpv4Enabled()
2690 {
2691 return $this->ipv4Enabled;
2692 }
2693 public function setRequireSsl($requireSsl)
2694 {
2695 $this->requireSsl = $requireSsl;
2696 }
2697 public function getRequireSsl()
2698 {
2699 return $this->requireSsl;
2700 }
2701 }
2702
2703 class Google_Service_SQLAdmin_IpMapping extends Google_Model
2704 {
2705 protected $internal_gapi_mappings = array(
2706 );
2707 public $ipAddress;
2708 public $timeToRetire;
2709
2710
2711 public function setIpAddress($ipAddress)
2712 {
2713 $this->ipAddress = $ipAddress;
2714 }
2715 public function getIpAddress()
2716 {
2717 return $this->ipAddress;
2718 }
2719 public function setTimeToRetire($timeToRetire)
2720 {
2721 $this->timeToRetire = $timeToRetire;
2722 }
2723 public function getTimeToRetire()
2724 {
2725 return $this->timeToRetire;
2726 }
2727 }
2728
2729 class Google_Service_SQLAdmin_LocationPreference extends Google_Model
2730 {
2731 protected $internal_gapi_mappings = array(
2732 );
2733 public $followGaeApplication;
2734 public $kind;
2735 public $zone;
2736
2737
2738 public function setFollowGaeApplication($followGaeApplication)
2739 {
2740 $this->followGaeApplication = $followGaeApplication;
2741 }
2742 public function getFollowGaeApplication()
2743 {
2744 return $this->followGaeApplication;
2745 }
2746 public function setKind($kind)
2747 {
2748 $this->kind = $kind;
2749 }
2750 public function getKind()
2751 {
2752 return $this->kind;
2753 }
2754 public function setZone($zone)
2755 {
2756 $this->zone = $zone;
2757 }
2758 public function getZone()
2759 {
2760 return $this->zone;
2761 }
2762 }
2763
2764 class Google_Service_SQLAdmin_MaintenanceWindow extends Google_Model
2765 {
2766 protected $internal_gapi_mappings = array(
2767 );
2768 public $day;
2769 public $hour;
2770 public $kind;
2771 public $updateTrack;
2772
2773
2774 public function setDay($day)
2775 {
2776 $this->day = $day;
2777 }
2778 public function getDay()
2779 {
2780 return $this->day;
2781 }
2782 public function setHour($hour)
2783 {
2784 $this->hour = $hour;
2785 }
2786 public function getHour()
2787 {
2788 return $this->hour;
2789 }
2790 public function setKind($kind)
2791 {
2792 $this->kind = $kind;
2793 }
2794 public function getKind()
2795 {
2796 return $this->kind;
2797 }
2798 public function setUpdateTrack($updateTrack)
2799 {
2800 $this->updateTrack = $updateTrack;
2801 }
2802 public function getUpdateTrack()
2803 {
2804 return $this->updateTrack;
2805 }
2806 }
2807
2808 class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model
2809 {
2810 protected $internal_gapi_mappings = array(
2811 );
2812 public $caCertificate;
2813 public $clientCertificate;
2814 public $clientKey;
2815 public $connectRetryInterval;
2816 public $dumpFilePath;
2817 public $kind;
2818 public $masterHeartbeatPeriod;
2819 public $password;
2820 public $sslCipher;
2821 public $username;
2822 public $verifyServerCertificate;
2823
2824
2825 public function setCaCertificate($caCertificate)
2826 {
2827 $this->caCertificate = $caCertificate;
2828 }
2829 public function getCaCertificate()
2830 {
2831 return $this->caCertificate;
2832 }
2833 public function setClientCertificate($clientCertificate)
2834 {
2835 $this->clientCertificate = $clientCertificate;
2836 }
2837 public function getClientCertificate()
2838 {
2839 return $this->clientCertificate;
2840 }
2841 public function setClientKey($clientKey)
2842 {
2843 $this->clientKey = $clientKey;
2844 }
2845 public function getClientKey()
2846 {
2847 return $this->clientKey;
2848 }
2849 public function setConnectRetryInterval($connectRetryInterval)
2850 {
2851 $this->connectRetryInterval = $connectRetryInterval;
2852 }
2853 public function getConnectRetryInterval()
2854 {
2855 return $this->connectRetryInterval;
2856 }
2857 public function setDumpFilePath($dumpFilePath)
2858 {
2859 $this->dumpFilePath = $dumpFilePath;
2860 }
2861 public function getDumpFilePath()
2862 {
2863 return $this->dumpFilePath;
2864 }
2865 public function setKind($kind)
2866 {
2867 $this->kind = $kind;
2868 }
2869 public function getKind()
2870 {
2871 return $this->kind;
2872 }
2873 public function setMasterHeartbeatPeriod($masterHeartbeatPeriod)
2874 {
2875 $this->masterHeartbeatPeriod = $masterHeartbeatPeriod;
2876 }
2877 public function getMasterHeartbeatPeriod()
2878 {
2879 return $this->masterHeartbeatPeriod;
2880 }
2881 public function setPassword($password)
2882 {
2883 $this->password = $password;
2884 }
2885 public function getPassword()
2886 {
2887 return $this->password;
2888 }
2889 public function setSslCipher($sslCipher)
2890 {
2891 $this->sslCipher = $sslCipher;
2892 }
2893 public function getSslCipher()
2894 {
2895 return $this->sslCipher;
2896 }
2897 public function setUsername($username)
2898 {
2899 $this->username = $username;
2900 }
2901 public function getUsername()
2902 {
2903 return $this->username;
2904 }
2905 public function setVerifyServerCertificate($verifyServerCertificate)
2906 {
2907 $this->verifyServerCertificate = $verifyServerCertificate;
2908 }
2909 public function getVerifyServerCertificate()
2910 {
2911 return $this->verifyServerCertificate;
2912 }
2913 }
2914
2915 class Google_Service_SQLAdmin_OnPremisesConfiguration extends Google_Model
2916 {
2917 protected $internal_gapi_mappings = array(
2918 );
2919 public $hostPort;
2920 public $kind;
2921
2922
2923 public function setHostPort($hostPort)
2924 {
2925 $this->hostPort = $hostPort;
2926 }
2927 public function getHostPort()
2928 {
2929 return $this->hostPort;
2930 }
2931 public function setKind($kind)
2932 {
2933 $this->kind = $kind;
2934 }
2935 public function getKind()
2936 {
2937 return $this->kind;
2938 }
2939 }
2940
2941 class Google_Service_SQLAdmin_Operation extends Google_Model
2942 {
2943 protected $internal_gapi_mappings = array(
2944 );
2945 public $endTime;
2946 protected $errorType = 'Google_Service_SQLAdmin_OperationErrors';
2947 protected $errorDataType = '';
2948 protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
2949 protected $exportContextDataType = '';
2950 protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
2951 protected $importContextDataType = '';
2952 public $insertTime;
2953 public $kind;
2954 public $name;
2955 public $operationType;
2956 public $selfLink;
2957 public $startTime;
2958 public $status;
2959 public $targetId;
2960 public $targetLink;
2961 public $targetProject;
2962 public $user;
2963
2964
2965 public function setEndTime($endTime)
2966 {
2967 $this->endTime = $endTime;
2968 }
2969 public function getEndTime()
2970 {
2971 return $this->endTime;
2972 }
2973 public function setError(Google_Service_SQLAdmin_OperationErrors $error)
2974 {
2975 $this->error = $error;
2976 }
2977 public function getError()
2978 {
2979 return $this->error;
2980 }
2981 public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
2982 {
2983 $this->exportContext = $exportContext;
2984 }
2985 public function getExportContext()
2986 {
2987 return $this->exportContext;
2988 }
2989 public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
2990 {
2991 $this->importContext = $importContext;
2992 }
2993 public function getImportContext()
2994 {
2995 return $this->importContext;
2996 }
2997 public function setInsertTime($insertTime)
2998 {
2999 $this->insertTime = $insertTime;
3000 }
3001 public function getInsertTime()
3002 {
3003 return $this->insertTime;
3004 }
3005 public function setKind($kind)
3006 {
3007 $this->kind = $kind;
3008 }
3009 public function getKind()
3010 {
3011 return $this->kind;
3012 }
3013 public function setName($name)
3014 {
3015 $this->name = $name;
3016 }
3017 public function getName()
3018 {
3019 return $this->name;
3020 }
3021 public function setOperationType($operationType)
3022 {
3023 $this->operationType = $operationType;
3024 }
3025 public function getOperationType()
3026 {
3027 return $this->operationType;
3028 }
3029 public function setSelfLink($selfLink)
3030 {
3031 $this->selfLink = $selfLink;
3032 }
3033 public function getSelfLink()
3034 {
3035 return $this->selfLink;
3036 }
3037 public function setStartTime($startTime)
3038 {
3039 $this->startTime = $startTime;
3040 }
3041 public function getStartTime()
3042 {
3043 return $this->startTime;
3044 }
3045 public function setStatus($status)
3046 {
3047 $this->status = $status;
3048 }
3049 public function getStatus()
3050 {
3051 return $this->status;
3052 }
3053 public function setTargetId($targetId)
3054 {
3055 $this->targetId = $targetId;
3056 }
3057 public function getTargetId()
3058 {
3059 return $this->targetId;
3060 }
3061 public function setTargetLink($targetLink)
3062 {
3063 $this->targetLink = $targetLink;
3064 }
3065 public function getTargetLink()
3066 {
3067 return $this->targetLink;
3068 }
3069 public function setTargetProject($targetProject)
3070 {
3071 $this->targetProject = $targetProject;
3072 }
3073 public function getTargetProject()
3074 {
3075 return $this->targetProject;
3076 }
3077 public function setUser($user)
3078 {
3079 $this->user = $user;
3080 }
3081 public function getUser()
3082 {
3083 return $this->user;
3084 }
3085 }
3086
3087 class Google_Service_SQLAdmin_OperationError extends Google_Model
3088 {
3089 protected $internal_gapi_mappings = array(
3090 );
3091 public $code;
3092 public $kind;
3093 public $message;
3094
3095
3096 public function setCode($code)
3097 {
3098 $this->code = $code;
3099 }
3100 public function getCode()
3101 {
3102 return $this->code;
3103 }
3104 public function setKind($kind)
3105 {
3106 $this->kind = $kind;
3107 }
3108 public function getKind()
3109 {
3110 return $this->kind;
3111 }
3112 public function setMessage($message)
3113 {
3114 $this->message = $message;
3115 }
3116 public function getMessage()
3117 {
3118 return $this->message;
3119 }
3120 }
3121
3122 class Google_Service_SQLAdmin_OperationErrors extends Google_Collection
3123 {
3124 protected $collection_key = 'errors';
3125 protected $internal_gapi_mappings = array(
3126 );
3127 protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
3128 protected $errorsDataType = 'array';
3129 public $kind;
3130
3131
3132 public function setErrors($errors)
3133 {
3134 $this->errors = $errors;
3135 }
3136 public function getErrors()
3137 {
3138 return $this->errors;
3139 }
3140 public function setKind($kind)
3141 {
3142 $this->kind = $kind;
3143 }
3144 public function getKind()
3145 {
3146 return $this->kind;
3147 }
3148 }
3149
3150 class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
3151 {
3152 protected $collection_key = 'items';
3153 protected $internal_gapi_mappings = array(
3154 );
3155 protected $itemsType = 'Google_Service_SQLAdmin_Operation';
3156 protected $itemsDataType = 'array';
3157 public $kind;
3158 public $nextPageToken;
3159
3160
3161 public function setItems($items)
3162 {
3163 $this->items = $items;
3164 }
3165 public function getItems()
3166 {
3167 return $this->items;
3168 }
3169 public function setKind($kind)
3170 {
3171 $this->kind = $kind;
3172 }
3173 public function getKind()
3174 {
3175 return $this->kind;
3176 }
3177 public function setNextPageToken($nextPageToken)
3178 {
3179 $this->nextPageToken = $nextPageToken;
3180 }
3181 public function getNextPageToken()
3182 {
3183 return $this->nextPageToken;
3184 }
3185 }
3186
3187 class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model
3188 {
3189 protected $internal_gapi_mappings = array(
3190 );
3191 public $failoverTarget;
3192 public $kind;
3193 protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration';
3194 protected $mysqlReplicaConfigurationDataType = '';
3195
3196
3197 public function setFailoverTarget($failoverTarget)
3198 {
3199 $this->failoverTarget = $failoverTarget;
3200 }
3201 public function getFailoverTarget()
3202 {
3203 return $this->failoverTarget;
3204 }
3205 public function setKind($kind)
3206 {
3207 $this->kind = $kind;
3208 }
3209 public function getKind()
3210 {
3211 return $this->kind;
3212 }
3213 public function setMysqlReplicaConfiguration(Google_Service_SQLAdmin_MySqlReplicaConfiguration $mysqlReplicaConfiguration)
3214 {
3215 $this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration;
3216 }
3217 public function getMysqlReplicaConfiguration()
3218 {
3219 return $this->mysqlReplicaConfiguration;
3220 }
3221 }
3222
3223 class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model
3224 {
3225 protected $internal_gapi_mappings = array(
3226 );
3227 public $backupRunId;
3228 public $instanceId;
3229 public $kind;
3230
3231
3232 public function setBackupRunId($backupRunId)
3233 {
3234 $this->backupRunId = $backupRunId;
3235 }
3236 public function getBackupRunId()
3237 {
3238 return $this->backupRunId;
3239 }
3240 public function setInstanceId($instanceId)
3241 {
3242 $this->instanceId = $instanceId;
3243 }
3244 public function getInstanceId()
3245 {
3246 return $this->instanceId;
3247 }
3248 public function setKind($kind)
3249 {
3250 $this->kind = $kind;
3251 }
3252 public function getKind()
3253 {
3254 return $this->kind;
3255 }
3256 }
3257
3258 class Google_Service_SQLAdmin_Settings extends Google_Collection
3259 {
3260 protected $collection_key = 'databaseFlags';
3261 protected $internal_gapi_mappings = array(
3262 );
3263 public $activationPolicy;
3264 public $authorizedGaeApplications;
3265 protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
3266 protected $backupConfigurationDataType = '';
3267 public $crashSafeReplicationEnabled;
3268 public $dataDiskSizeGb;
3269 public $dataDiskType;
3270 protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
3271 protected $databaseFlagsDataType = 'array';
3272 public $databaseReplicationEnabled;
3273 protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration';
3274 protected $ipConfigurationDataType = '';
3275 public $kind;
3276 protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference';
3277 protected $locationPreferenceDataType = '';
3278 protected $maintenanceWindowType = 'Google_Service_SQLAdmin_MaintenanceWindow';
3279 protected $maintenanceWindowDataType = '';
3280 public $pricingPlan;
3281 public $replicationType;
3282 public $settingsVersion;
3283 public $tier;
3284
3285
3286 public function setActivationPolicy($activationPolicy)
3287 {
3288 $this->activationPolicy = $activationPolicy;
3289 }
3290 public function getActivationPolicy()
3291 {
3292 return $this->activationPolicy;
3293 }
3294 public function setAuthorizedGaeApplications($authorizedGaeApplications)
3295 {
3296 $this->authorizedGaeApplications = $authorizedGaeApplications;
3297 }
3298 public function getAuthorizedGaeApplications()
3299 {
3300 return $this->authorizedGaeApplications;
3301 }
3302 public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
3303 {
3304 $this->backupConfiguration = $backupConfiguration;
3305 }
3306 public function getBackupConfiguration()
3307 {
3308 return $this->backupConfiguration;
3309 }
3310 public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled)
3311 {
3312 $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled;
3313 }
3314 public function getCrashSafeReplicationEnabled()
3315 {
3316 return $this->crashSafeReplicationEnabled;
3317 }
3318 public function setDataDiskSizeGb($dataDiskSizeGb)
3319 {
3320 $this->dataDiskSizeGb = $dataDiskSizeGb;
3321 }
3322 public function getDataDiskSizeGb()
3323 {
3324 return $this->dataDiskSizeGb;
3325 }
3326 public function setDataDiskType($dataDiskType)
3327 {
3328 $this->dataDiskType = $dataDiskType;
3329 }
3330 public function getDataDiskType()
3331 {
3332 return $this->dataDiskType;
3333 }
3334 public function setDatabaseFlags($databaseFlags)
3335 {
3336 $this->databaseFlags = $databaseFlags;
3337 }
3338 public function getDatabaseFlags()
3339 {
3340 return $this->databaseFlags;
3341 }
3342 public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
3343 {
3344 $this->databaseReplicationEnabled = $databaseReplicationEnabled;
3345 }
3346 public function getDatabaseReplicationEnabled()
3347 {
3348 return $this->databaseReplicationEnabled;
3349 }
3350 public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration)
3351 {
3352 $this->ipConfiguration = $ipConfiguration;
3353 }
3354 public function getIpConfiguration()
3355 {
3356 return $this->ipConfiguration;
3357 }
3358 public function setKind($kind)
3359 {
3360 $this->kind = $kind;
3361 }
3362 public function getKind()
3363 {
3364 return $this->kind;
3365 }
3366 public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference)
3367 {
3368 $this->locationPreference = $locationPreference;
3369 }
3370 public function getLocationPreference()
3371 {
3372 return $this->locationPreference;
3373 }
3374 public function setMaintenanceWindow(Google_Service_SQLAdmin_MaintenanceWindow $maintenanceWindow)
3375 {
3376 $this->maintenanceWindow = $maintenanceWindow;
3377 }
3378 public function getMaintenanceWindow()
3379 {
3380 return $this->maintenanceWindow;
3381 }
3382 public function setPricingPlan($pricingPlan)
3383 {
3384 $this->pricingPlan = $pricingPlan;
3385 }
3386 public function getPricingPlan()
3387 {
3388 return $this->pricingPlan;
3389 }
3390 public function setReplicationType($replicationType)
3391 {
3392 $this->replicationType = $replicationType;
3393 }
3394 public function getReplicationType()
3395 {
3396 return $this->replicationType;
3397 }
3398 public function setSettingsVersion($settingsVersion)
3399 {
3400 $this->settingsVersion = $settingsVersion;
3401 }
3402 public function getSettingsVersion()
3403 {
3404 return $this->settingsVersion;
3405 }
3406 public function setTier($tier)
3407 {
3408 $this->tier = $tier;
3409 }
3410 public function getTier()
3411 {
3412 return $this->tier;
3413 }
3414 }
3415
3416 class Google_Service_SQLAdmin_SslCert extends Google_Model
3417 {
3418 protected $internal_gapi_mappings = array(
3419 );
3420 public $cert;
3421 public $certSerialNumber;
3422 public $commonName;
3423 public $createTime;
3424 public $expirationTime;
3425 public $instance;
3426 public $kind;
3427 public $selfLink;
3428 public $sha1Fingerprint;
3429
3430
3431 public function setCert($cert)
3432 {
3433 $this->cert = $cert;
3434 }
3435 public function getCert()
3436 {
3437 return $this->cert;
3438 }
3439 public function setCertSerialNumber($certSerialNumber)
3440 {
3441 $this->certSerialNumber = $certSerialNumber;
3442 }
3443 public function getCertSerialNumber()
3444 {
3445 return $this->certSerialNumber;
3446 }
3447 public function setCommonName($commonName)
3448 {
3449 $this->commonName = $commonName;
3450 }
3451 public function getCommonName()
3452 {
3453 return $this->commonName;
3454 }
3455 public function setCreateTime($createTime)
3456 {
3457 $this->createTime = $createTime;
3458 }
3459 public function getCreateTime()
3460 {
3461 return $this->createTime;
3462 }
3463 public function setExpirationTime($expirationTime)
3464 {
3465 $this->expirationTime = $expirationTime;
3466 }
3467 public function getExpirationTime()
3468 {
3469 return $this->expirationTime;
3470 }
3471 public function setInstance($instance)
3472 {
3473 $this->instance = $instance;
3474 }
3475 public function getInstance()
3476 {
3477 return $this->instance;
3478 }
3479 public function setKind($kind)
3480 {
3481 $this->kind = $kind;
3482 }
3483 public function getKind()
3484 {
3485 return $this->kind;
3486 }
3487 public function setSelfLink($selfLink)
3488 {
3489 $this->selfLink = $selfLink;
3490 }
3491 public function getSelfLink()
3492 {
3493 return $this->selfLink;
3494 }
3495 public function setSha1Fingerprint($sha1Fingerprint)
3496 {
3497 $this->sha1Fingerprint = $sha1Fingerprint;
3498 }
3499 public function getSha1Fingerprint()
3500 {
3501 return $this->sha1Fingerprint;
3502 }
3503 }
3504
3505 class Google_Service_SQLAdmin_SslCertDetail extends Google_Model
3506 {
3507 protected $internal_gapi_mappings = array(
3508 );
3509 protected $certInfoType = 'Google_Service_SQLAdmin_SslCert';
3510 protected $certInfoDataType = '';
3511 public $certPrivateKey;
3512
3513
3514 public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo)
3515 {
3516 $this->certInfo = $certInfo;
3517 }
3518 public function getCertInfo()
3519 {
3520 return $this->certInfo;
3521 }
3522 public function setCertPrivateKey($certPrivateKey)
3523 {
3524 $this->certPrivateKey = $certPrivateKey;
3525 }
3526 public function getCertPrivateKey()
3527 {
3528 return $this->certPrivateKey;
3529 }
3530 }
3531
3532 class Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest extends Google_Model
3533 {
3534 protected $internal_gapi_mappings = array(
3535 "publicKey" => "public_key",
3536 );
3537 public $publicKey;
3538
3539
3540 public function setPublicKey($publicKey)
3541 {
3542 $this->publicKey = $publicKey;
3543 }
3544 public function getPublicKey()
3545 {
3546 return $this->publicKey;
3547 }
3548 }
3549
3550 class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
3551 {
3552 protected $internal_gapi_mappings = array(
3553 );
3554 public $commonName;
3555
3556
3557 public function setCommonName($commonName)
3558 {
3559 $this->commonName = $commonName;
3560 }
3561 public function getCommonName()
3562 {
3563 return $this->commonName;
3564 }
3565 }
3566
3567 class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model
3568 {
3569 protected $internal_gapi_mappings = array(
3570 );
3571 protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail';
3572 protected $clientCertDataType = '';
3573 public $kind;
3574 protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
3575 protected $serverCaCertDataType = '';
3576
3577
3578 public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert)
3579 {
3580 $this->clientCert = $clientCert;
3581 }
3582 public function getClientCert()
3583 {
3584 return $this->clientCert;
3585 }
3586 public function setKind($kind)
3587 {
3588 $this->kind = $kind;
3589 }
3590 public function getKind()
3591 {
3592 return $this->kind;
3593 }
3594 public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
3595 {
3596 $this->serverCaCert = $serverCaCert;
3597 }
3598 public function getServerCaCert()
3599 {
3600 return $this->serverCaCert;
3601 }
3602 }
3603
3604 class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection
3605 {
3606 protected $collection_key = 'items';
3607 protected $internal_gapi_mappings = array(
3608 );
3609 protected $itemsType = 'Google_Service_SQLAdmin_SslCert';
3610 protected $itemsDataType = 'array';
3611 public $kind;
3612
3613
3614 public function setItems($items)
3615 {
3616 $this->items = $items;
3617 }
3618 public function getItems()
3619 {
3620 return $this->items;
3621 }
3622 public function setKind($kind)
3623 {
3624 $this->kind = $kind;
3625 }
3626 public function getKind()
3627 {
3628 return $this->kind;
3629 }
3630 }
3631
3632 class Google_Service_SQLAdmin_Tier extends Google_Collection
3633 {
3634 protected $collection_key = 'region';
3635 protected $internal_gapi_mappings = array(
3636 "diskQuota" => "DiskQuota",
3637 "rAM" => "RAM",
3638 );
3639 public $diskQuota;
3640 public $rAM;
3641 public $kind;
3642 public $region;
3643 public $tier;
3644
3645
3646 public function setDiskQuota($diskQuota)
3647 {
3648 $this->diskQuota = $diskQuota;
3649 }
3650 public function getDiskQuota()
3651 {
3652 return $this->diskQuota;
3653 }
3654 public function setRAM($rAM)
3655 {
3656 $this->rAM = $rAM;
3657 }
3658 public function getRAM()
3659 {
3660 return $this->rAM;
3661 }
3662 public function setKind($kind)
3663 {
3664 $this->kind = $kind;
3665 }
3666 public function getKind()
3667 {
3668 return $this->kind;
3669 }
3670 public function setRegion($region)
3671 {
3672 $this->region = $region;
3673 }
3674 public function getRegion()
3675 {
3676 return $this->region;
3677 }
3678 public function setTier($tier)
3679 {
3680 $this->tier = $tier;
3681 }
3682 public function getTier()
3683 {
3684 return $this->tier;
3685 }
3686 }
3687
3688 class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection
3689 {
3690 protected $collection_key = 'items';
3691 protected $internal_gapi_mappings = array(
3692 );
3693 protected $itemsType = 'Google_Service_SQLAdmin_Tier';
3694 protected $itemsDataType = 'array';
3695 public $kind;
3696
3697
3698 public function setItems($items)
3699 {
3700 $this->items = $items;
3701 }
3702 public function getItems()
3703 {
3704 return $this->items;
3705 }
3706 public function setKind($kind)
3707 {
3708 $this->kind = $kind;
3709 }
3710 public function getKind()
3711 {
3712 return $this->kind;
3713 }
3714 }
3715
3716 class Google_Service_SQLAdmin_User extends Google_Model
3717 {
3718 protected $internal_gapi_mappings = array(
3719 );
3720 public $etag;
3721 public $host;
3722 public $instance;
3723 public $kind;
3724 public $name;
3725 public $password;
3726 public $project;
3727
3728
3729 public function setEtag($etag)
3730 {
3731 $this->etag = $etag;
3732 }
3733 public function getEtag()
3734 {
3735 return $this->etag;
3736 }
3737 public function setHost($host)
3738 {
3739 $this->host = $host;
3740 }
3741 public function getHost()
3742 {
3743 return $this->host;
3744 }
3745 public function setInstance($instance)
3746 {
3747 $this->instance = $instance;
3748 }
3749 public function getInstance()
3750 {
3751 return $this->instance;
3752 }
3753 public function setKind($kind)
3754 {
3755 $this->kind = $kind;
3756 }
3757 public function getKind()
3758 {
3759 return $this->kind;
3760 }
3761 public function setName($name)
3762 {
3763 $this->name = $name;
3764 }
3765 public function getName()
3766 {
3767 return $this->name;
3768 }
3769 public function setPassword($password)
3770 {
3771 $this->password = $password;
3772 }
3773 public function getPassword()
3774 {
3775 return $this->password;
3776 }
3777 public function setProject($project)
3778 {
3779 $this->project = $project;
3780 }
3781 public function getProject()
3782 {
3783 return $this->project;
3784 }
3785 }
3786
3787 class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
3788 {
3789 protected $collection_key = 'items';
3790 protected $internal_gapi_mappings = array(
3791 );
3792 protected $itemsType = 'Google_Service_SQLAdmin_User';
3793 protected $itemsDataType = 'array';
3794 public $kind;
3795 public $nextPageToken;
3796
3797
3798 public function setItems($items)
3799 {
3800 $this->items = $items;
3801 }
3802 public function getItems()
3803 {
3804 return $this->items;
3805 }
3806 public function setKind($kind)
3807 {
3808 $this->kind = $kind;
3809 }
3810 public function getKind()
3811 {
3812 return $this->kind;
3813 }
3814 public function setNextPageToken($nextPageToken)
3815 {
3816 $this->nextPageToken = $nextPageToken;
3817 }
3818 public function getNextPageToken()
3819 {
3820 return $this->nextPageToken;
3821 }
3822 }
3823