1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service; 19 20use Google\Client; 21 22/** 23 * Service definition for SQLAdmin (v1). 24 * 25 * <p> 26 * API for Cloud SQL database instance management</p> 27 * 28 * <p> 29 * For more information about this service, see the API 30 * <a href="https://developers.google.com/cloud-sql/" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class SQLAdmin extends \Google\Service 36{ 37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ 38 const CLOUD_PLATFORM = 39 "https://www.googleapis.com/auth/cloud-platform"; 40 /** Manage your Google SQL Service instances. */ 41 const SQLSERVICE_ADMIN = 42 "https://www.googleapis.com/auth/sqlservice.admin"; 43 44 public $backupRuns; 45 public $connect; 46 public $databases; 47 public $flags; 48 public $instances; 49 public $operations; 50 public $projects_instances; 51 public $sslCerts; 52 public $tiers; 53 public $users; 54 55 /** 56 * Constructs the internal representation of the SQLAdmin service. 57 * 58 * @param Client|array $clientOrConfig The client used to deliver requests, or a 59 * config array to pass to a new Client instance. 60 * @param string $rootUrl The root URL used for requests to the service. 61 */ 62 public function __construct($clientOrConfig = [], $rootUrl = null) 63 { 64 parent::__construct($clientOrConfig); 65 $this->rootUrl = $rootUrl ?: 'https://sqladmin.googleapis.com/'; 66 $this->servicePath = ''; 67 $this->batchPath = 'batch'; 68 $this->version = 'v1'; 69 $this->serviceName = 'sqladmin'; 70 71 $this->backupRuns = new SQLAdmin\Resource\BackupRuns( 72 $this, 73 $this->serviceName, 74 'backupRuns', 75 [ 76 'methods' => [ 77 'delete' => [ 78 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns/{id}', 79 'httpMethod' => 'DELETE', 80 'parameters' => [ 81 'project' => [ 82 'location' => 'path', 83 'type' => 'string', 84 'required' => true, 85 ], 86 'instance' => [ 87 'location' => 'path', 88 'type' => 'string', 89 'required' => true, 90 ], 91 'id' => [ 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ], 96 ], 97 ],'get' => [ 98 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns/{id}', 99 'httpMethod' => 'GET', 100 'parameters' => [ 101 'project' => [ 102 'location' => 'path', 103 'type' => 'string', 104 'required' => true, 105 ], 106 'instance' => [ 107 'location' => 'path', 108 'type' => 'string', 109 'required' => true, 110 ], 111 'id' => [ 112 'location' => 'path', 113 'type' => 'string', 114 'required' => true, 115 ], 116 ], 117 ],'insert' => [ 118 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns', 119 'httpMethod' => 'POST', 120 'parameters' => [ 121 'project' => [ 122 'location' => 'path', 123 'type' => 'string', 124 'required' => true, 125 ], 126 'instance' => [ 127 'location' => 'path', 128 'type' => 'string', 129 'required' => true, 130 ], 131 ], 132 ],'list' => [ 133 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns', 134 'httpMethod' => 'GET', 135 'parameters' => [ 136 'project' => [ 137 'location' => 'path', 138 'type' => 'string', 139 'required' => true, 140 ], 141 'instance' => [ 142 'location' => 'path', 143 'type' => 'string', 144 'required' => true, 145 ], 146 'maxResults' => [ 147 'location' => 'query', 148 'type' => 'integer', 149 ], 150 'pageToken' => [ 151 'location' => 'query', 152 'type' => 'string', 153 ], 154 ], 155 ], 156 ] 157 ] 158 ); 159 $this->connect = new SQLAdmin\Resource\Connect( 160 $this, 161 $this->serviceName, 162 'connect', 163 [ 164 'methods' => [ 165 'generateEphemeralCert' => [ 166 'path' => 'v1/projects/{project}/instances/{instance}:generateEphemeralCert', 167 'httpMethod' => 'POST', 168 'parameters' => [ 169 'project' => [ 170 'location' => 'path', 171 'type' => 'string', 172 'required' => true, 173 ], 174 'instance' => [ 175 'location' => 'path', 176 'type' => 'string', 177 'required' => true, 178 ], 179 ], 180 ],'get' => [ 181 'path' => 'v1/projects/{project}/instances/{instance}/connectSettings', 182 'httpMethod' => 'GET', 183 'parameters' => [ 184 'project' => [ 185 'location' => 'path', 186 'type' => 'string', 187 'required' => true, 188 ], 189 'instance' => [ 190 'location' => 'path', 191 'type' => 'string', 192 'required' => true, 193 ], 194 'readTime' => [ 195 'location' => 'query', 196 'type' => 'string', 197 ], 198 ], 199 ], 200 ] 201 ] 202 ); 203 $this->databases = new SQLAdmin\Resource\Databases( 204 $this, 205 $this->serviceName, 206 'databases', 207 [ 208 'methods' => [ 209 'delete' => [ 210 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}', 211 'httpMethod' => 'DELETE', 212 'parameters' => [ 213 'project' => [ 214 'location' => 'path', 215 'type' => 'string', 216 'required' => true, 217 ], 218 'instance' => [ 219 'location' => 'path', 220 'type' => 'string', 221 'required' => true, 222 ], 223 'database' => [ 224 'location' => 'path', 225 'type' => 'string', 226 'required' => true, 227 ], 228 ], 229 ],'get' => [ 230 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}', 231 'httpMethod' => 'GET', 232 'parameters' => [ 233 'project' => [ 234 'location' => 'path', 235 'type' => 'string', 236 'required' => true, 237 ], 238 'instance' => [ 239 'location' => 'path', 240 'type' => 'string', 241 'required' => true, 242 ], 243 'database' => [ 244 'location' => 'path', 245 'type' => 'string', 246 'required' => true, 247 ], 248 ], 249 ],'insert' => [ 250 'path' => 'v1/projects/{project}/instances/{instance}/databases', 251 'httpMethod' => 'POST', 252 'parameters' => [ 253 'project' => [ 254 'location' => 'path', 255 'type' => 'string', 256 'required' => true, 257 ], 258 'instance' => [ 259 'location' => 'path', 260 'type' => 'string', 261 'required' => true, 262 ], 263 ], 264 ],'list' => [ 265 'path' => 'v1/projects/{project}/instances/{instance}/databases', 266 'httpMethod' => 'GET', 267 'parameters' => [ 268 'project' => [ 269 'location' => 'path', 270 'type' => 'string', 271 'required' => true, 272 ], 273 'instance' => [ 274 'location' => 'path', 275 'type' => 'string', 276 'required' => true, 277 ], 278 ], 279 ],'patch' => [ 280 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}', 281 'httpMethod' => 'PATCH', 282 'parameters' => [ 283 'project' => [ 284 'location' => 'path', 285 'type' => 'string', 286 'required' => true, 287 ], 288 'instance' => [ 289 'location' => 'path', 290 'type' => 'string', 291 'required' => true, 292 ], 293 'database' => [ 294 'location' => 'path', 295 'type' => 'string', 296 'required' => true, 297 ], 298 ], 299 ],'update' => [ 300 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}', 301 'httpMethod' => 'PUT', 302 'parameters' => [ 303 'project' => [ 304 'location' => 'path', 305 'type' => 'string', 306 'required' => true, 307 ], 308 'instance' => [ 309 'location' => 'path', 310 'type' => 'string', 311 'required' => true, 312 ], 313 'database' => [ 314 'location' => 'path', 315 'type' => 'string', 316 'required' => true, 317 ], 318 ], 319 ], 320 ] 321 ] 322 ); 323 $this->flags = new SQLAdmin\Resource\Flags( 324 $this, 325 $this->serviceName, 326 'flags', 327 [ 328 'methods' => [ 329 'list' => [ 330 'path' => 'v1/flags', 331 'httpMethod' => 'GET', 332 'parameters' => [ 333 'databaseVersion' => [ 334 'location' => 'query', 335 'type' => 'string', 336 ], 337 ], 338 ], 339 ] 340 ] 341 ); 342 $this->instances = new SQLAdmin\Resource\Instances( 343 $this, 344 $this->serviceName, 345 'instances', 346 [ 347 'methods' => [ 348 'addServerCa' => [ 349 'path' => 'v1/projects/{project}/instances/{instance}/addServerCa', 350 'httpMethod' => 'POST', 351 'parameters' => [ 352 'project' => [ 353 'location' => 'path', 354 'type' => 'string', 355 'required' => true, 356 ], 357 'instance' => [ 358 'location' => 'path', 359 'type' => 'string', 360 'required' => true, 361 ], 362 ], 363 ],'clone' => [ 364 'path' => 'v1/projects/{project}/instances/{instance}/clone', 365 'httpMethod' => 'POST', 366 'parameters' => [ 367 'project' => [ 368 'location' => 'path', 369 'type' => 'string', 370 'required' => true, 371 ], 372 'instance' => [ 373 'location' => 'path', 374 'type' => 'string', 375 'required' => true, 376 ], 377 ], 378 ],'delete' => [ 379 'path' => 'v1/projects/{project}/instances/{instance}', 380 'httpMethod' => 'DELETE', 381 'parameters' => [ 382 'project' => [ 383 'location' => 'path', 384 'type' => 'string', 385 'required' => true, 386 ], 387 'instance' => [ 388 'location' => 'path', 389 'type' => 'string', 390 'required' => true, 391 ], 392 ], 393 ],'demoteMaster' => [ 394 'path' => 'v1/projects/{project}/instances/{instance}/demoteMaster', 395 'httpMethod' => 'POST', 396 'parameters' => [ 397 'project' => [ 398 'location' => 'path', 399 'type' => 'string', 400 'required' => true, 401 ], 402 'instance' => [ 403 'location' => 'path', 404 'type' => 'string', 405 'required' => true, 406 ], 407 ], 408 ],'export' => [ 409 'path' => 'v1/projects/{project}/instances/{instance}/export', 410 'httpMethod' => 'POST', 411 'parameters' => [ 412 'project' => [ 413 'location' => 'path', 414 'type' => 'string', 415 'required' => true, 416 ], 417 'instance' => [ 418 'location' => 'path', 419 'type' => 'string', 420 'required' => true, 421 ], 422 ], 423 ],'failover' => [ 424 'path' => 'v1/projects/{project}/instances/{instance}/failover', 425 'httpMethod' => 'POST', 426 'parameters' => [ 427 'project' => [ 428 'location' => 'path', 429 'type' => 'string', 430 'required' => true, 431 ], 432 'instance' => [ 433 'location' => 'path', 434 'type' => 'string', 435 'required' => true, 436 ], 437 ], 438 ],'get' => [ 439 'path' => 'v1/projects/{project}/instances/{instance}', 440 'httpMethod' => 'GET', 441 'parameters' => [ 442 'project' => [ 443 'location' => 'path', 444 'type' => 'string', 445 'required' => true, 446 ], 447 'instance' => [ 448 'location' => 'path', 449 'type' => 'string', 450 'required' => true, 451 ], 452 ], 453 ],'import' => [ 454 'path' => 'v1/projects/{project}/instances/{instance}/import', 455 'httpMethod' => 'POST', 456 'parameters' => [ 457 'project' => [ 458 'location' => 'path', 459 'type' => 'string', 460 'required' => true, 461 ], 462 'instance' => [ 463 'location' => 'path', 464 'type' => 'string', 465 'required' => true, 466 ], 467 ], 468 ],'insert' => [ 469 'path' => 'v1/projects/{project}/instances', 470 'httpMethod' => 'POST', 471 'parameters' => [ 472 'project' => [ 473 'location' => 'path', 474 'type' => 'string', 475 'required' => true, 476 ], 477 ], 478 ],'list' => [ 479 'path' => 'v1/projects/{project}/instances', 480 'httpMethod' => 'GET', 481 'parameters' => [ 482 'project' => [ 483 'location' => 'path', 484 'type' => 'string', 485 'required' => true, 486 ], 487 'filter' => [ 488 'location' => 'query', 489 'type' => 'string', 490 ], 491 'maxResults' => [ 492 'location' => 'query', 493 'type' => 'integer', 494 ], 495 'pageToken' => [ 496 'location' => 'query', 497 'type' => 'string', 498 ], 499 ], 500 ],'listServerCas' => [ 501 'path' => 'v1/projects/{project}/instances/{instance}/listServerCas', 502 'httpMethod' => 'GET', 503 'parameters' => [ 504 'project' => [ 505 'location' => 'path', 506 'type' => 'string', 507 'required' => true, 508 ], 509 'instance' => [ 510 'location' => 'path', 511 'type' => 'string', 512 'required' => true, 513 ], 514 ], 515 ],'patch' => [ 516 'path' => 'v1/projects/{project}/instances/{instance}', 517 'httpMethod' => 'PATCH', 518 'parameters' => [ 519 'project' => [ 520 'location' => 'path', 521 'type' => 'string', 522 'required' => true, 523 ], 524 'instance' => [ 525 'location' => 'path', 526 'type' => 'string', 527 'required' => true, 528 ], 529 ], 530 ],'promoteReplica' => [ 531 'path' => 'v1/projects/{project}/instances/{instance}/promoteReplica', 532 'httpMethod' => 'POST', 533 'parameters' => [ 534 'project' => [ 535 'location' => 'path', 536 'type' => 'string', 537 'required' => true, 538 ], 539 'instance' => [ 540 'location' => 'path', 541 'type' => 'string', 542 'required' => true, 543 ], 544 ], 545 ],'resetSslConfig' => [ 546 'path' => 'v1/projects/{project}/instances/{instance}/resetSslConfig', 547 'httpMethod' => 'POST', 548 'parameters' => [ 549 'project' => [ 550 'location' => 'path', 551 'type' => 'string', 552 'required' => true, 553 ], 554 'instance' => [ 555 'location' => 'path', 556 'type' => 'string', 557 'required' => true, 558 ], 559 ], 560 ],'restart' => [ 561 'path' => 'v1/projects/{project}/instances/{instance}/restart', 562 'httpMethod' => 'POST', 563 'parameters' => [ 564 'project' => [ 565 'location' => 'path', 566 'type' => 'string', 567 'required' => true, 568 ], 569 'instance' => [ 570 'location' => 'path', 571 'type' => 'string', 572 'required' => true, 573 ], 574 ], 575 ],'restoreBackup' => [ 576 'path' => 'v1/projects/{project}/instances/{instance}/restoreBackup', 577 'httpMethod' => 'POST', 578 'parameters' => [ 579 'project' => [ 580 'location' => 'path', 581 'type' => 'string', 582 'required' => true, 583 ], 584 'instance' => [ 585 'location' => 'path', 586 'type' => 'string', 587 'required' => true, 588 ], 589 ], 590 ],'rotateServerCa' => [ 591 'path' => 'v1/projects/{project}/instances/{instance}/rotateServerCa', 592 'httpMethod' => 'POST', 593 'parameters' => [ 594 'project' => [ 595 'location' => 'path', 596 'type' => 'string', 597 'required' => true, 598 ], 599 'instance' => [ 600 'location' => 'path', 601 'type' => 'string', 602 'required' => true, 603 ], 604 ], 605 ],'startReplica' => [ 606 'path' => 'v1/projects/{project}/instances/{instance}/startReplica', 607 'httpMethod' => 'POST', 608 'parameters' => [ 609 'project' => [ 610 'location' => 'path', 611 'type' => 'string', 612 'required' => true, 613 ], 614 'instance' => [ 615 'location' => 'path', 616 'type' => 'string', 617 'required' => true, 618 ], 619 ], 620 ],'stopReplica' => [ 621 'path' => 'v1/projects/{project}/instances/{instance}/stopReplica', 622 'httpMethod' => 'POST', 623 'parameters' => [ 624 'project' => [ 625 'location' => 'path', 626 'type' => 'string', 627 'required' => true, 628 ], 629 'instance' => [ 630 'location' => 'path', 631 'type' => 'string', 632 'required' => true, 633 ], 634 ], 635 ],'truncateLog' => [ 636 'path' => 'v1/projects/{project}/instances/{instance}/truncateLog', 637 'httpMethod' => 'POST', 638 'parameters' => [ 639 'project' => [ 640 'location' => 'path', 641 'type' => 'string', 642 'required' => true, 643 ], 644 'instance' => [ 645 'location' => 'path', 646 'type' => 'string', 647 'required' => true, 648 ], 649 ], 650 ],'update' => [ 651 'path' => 'v1/projects/{project}/instances/{instance}', 652 'httpMethod' => 'PUT', 653 'parameters' => [ 654 'project' => [ 655 'location' => 'path', 656 'type' => 'string', 657 'required' => true, 658 ], 659 'instance' => [ 660 'location' => 'path', 661 'type' => 'string', 662 'required' => true, 663 ], 664 ], 665 ], 666 ] 667 ] 668 ); 669 $this->operations = new SQLAdmin\Resource\Operations( 670 $this, 671 $this->serviceName, 672 'operations', 673 [ 674 'methods' => [ 675 'get' => [ 676 'path' => 'v1/projects/{project}/operations/{operation}', 677 'httpMethod' => 'GET', 678 'parameters' => [ 679 'project' => [ 680 'location' => 'path', 681 'type' => 'string', 682 'required' => true, 683 ], 684 'operation' => [ 685 'location' => 'path', 686 'type' => 'string', 687 'required' => true, 688 ], 689 ], 690 ],'list' => [ 691 'path' => 'v1/projects/{project}/operations', 692 'httpMethod' => 'GET', 693 'parameters' => [ 694 'project' => [ 695 'location' => 'path', 696 'type' => 'string', 697 'required' => true, 698 ], 699 'instance' => [ 700 'location' => 'query', 701 'type' => 'string', 702 ], 703 'maxResults' => [ 704 'location' => 'query', 705 'type' => 'integer', 706 ], 707 'pageToken' => [ 708 'location' => 'query', 709 'type' => 'string', 710 ], 711 ], 712 ], 713 ] 714 ] 715 ); 716 $this->projects_instances = new SQLAdmin\Resource\ProjectsInstances( 717 $this, 718 $this->serviceName, 719 'instances', 720 [ 721 'methods' => [ 722 'rescheduleMaintenance' => [ 723 'path' => 'v1/projects/{project}/instances/{instance}/rescheduleMaintenance', 724 'httpMethod' => 'POST', 725 'parameters' => [ 726 'project' => [ 727 'location' => 'path', 728 'type' => 'string', 729 'required' => true, 730 ], 731 'instance' => [ 732 'location' => 'path', 733 'type' => 'string', 734 'required' => true, 735 ], 736 ], 737 ],'startExternalSync' => [ 738 'path' => 'v1/projects/{project}/instances/{instance}/startExternalSync', 739 'httpMethod' => 'POST', 740 'parameters' => [ 741 'project' => [ 742 'location' => 'path', 743 'type' => 'string', 744 'required' => true, 745 ], 746 'instance' => [ 747 'location' => 'path', 748 'type' => 'string', 749 'required' => true, 750 ], 751 ], 752 ],'verifyExternalSyncSettings' => [ 753 'path' => 'v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings', 754 'httpMethod' => 'POST', 755 'parameters' => [ 756 'project' => [ 757 'location' => 'path', 758 'type' => 'string', 759 'required' => true, 760 ], 761 'instance' => [ 762 'location' => 'path', 763 'type' => 'string', 764 'required' => true, 765 ], 766 ], 767 ], 768 ] 769 ] 770 ); 771 $this->sslCerts = new SQLAdmin\Resource\SslCerts( 772 $this, 773 $this->serviceName, 774 'sslCerts', 775 [ 776 'methods' => [ 777 'createEphemeral' => [ 778 'path' => 'v1/projects/{project}/instances/{instance}/createEphemeral', 779 'httpMethod' => 'POST', 780 'parameters' => [ 781 'project' => [ 782 'location' => 'path', 783 'type' => 'string', 784 'required' => true, 785 ], 786 'instance' => [ 787 'location' => 'path', 788 'type' => 'string', 789 'required' => true, 790 ], 791 ], 792 ],'delete' => [ 793 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', 794 'httpMethod' => 'DELETE', 795 'parameters' => [ 796 'project' => [ 797 'location' => 'path', 798 'type' => 'string', 799 'required' => true, 800 ], 801 'instance' => [ 802 'location' => 'path', 803 'type' => 'string', 804 'required' => true, 805 ], 806 'sha1Fingerprint' => [ 807 'location' => 'path', 808 'type' => 'string', 809 'required' => true, 810 ], 811 ], 812 ],'get' => [ 813 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', 814 'httpMethod' => 'GET', 815 'parameters' => [ 816 'project' => [ 817 'location' => 'path', 818 'type' => 'string', 819 'required' => true, 820 ], 821 'instance' => [ 822 'location' => 'path', 823 'type' => 'string', 824 'required' => true, 825 ], 826 'sha1Fingerprint' => [ 827 'location' => 'path', 828 'type' => 'string', 829 'required' => true, 830 ], 831 ], 832 ],'insert' => [ 833 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts', 834 'httpMethod' => 'POST', 835 'parameters' => [ 836 'project' => [ 837 'location' => 'path', 838 'type' => 'string', 839 'required' => true, 840 ], 841 'instance' => [ 842 'location' => 'path', 843 'type' => 'string', 844 'required' => true, 845 ], 846 ], 847 ],'list' => [ 848 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts', 849 'httpMethod' => 'GET', 850 'parameters' => [ 851 'project' => [ 852 'location' => 'path', 853 'type' => 'string', 854 'required' => true, 855 ], 856 'instance' => [ 857 'location' => 'path', 858 'type' => 'string', 859 'required' => true, 860 ], 861 ], 862 ], 863 ] 864 ] 865 ); 866 $this->tiers = new SQLAdmin\Resource\Tiers( 867 $this, 868 $this->serviceName, 869 'tiers', 870 [ 871 'methods' => [ 872 'list' => [ 873 'path' => 'v1/projects/{project}/tiers', 874 'httpMethod' => 'GET', 875 'parameters' => [ 876 'project' => [ 877 'location' => 'path', 878 'type' => 'string', 879 'required' => true, 880 ], 881 ], 882 ], 883 ] 884 ] 885 ); 886 $this->users = new SQLAdmin\Resource\Users( 887 $this, 888 $this->serviceName, 889 'users', 890 [ 891 'methods' => [ 892 'delete' => [ 893 'path' => 'v1/projects/{project}/instances/{instance}/users', 894 'httpMethod' => 'DELETE', 895 'parameters' => [ 896 'project' => [ 897 'location' => 'path', 898 'type' => 'string', 899 'required' => true, 900 ], 901 'instance' => [ 902 'location' => 'path', 903 'type' => 'string', 904 'required' => true, 905 ], 906 'host' => [ 907 'location' => 'query', 908 'type' => 'string', 909 ], 910 'name' => [ 911 'location' => 'query', 912 'type' => 'string', 913 ], 914 ], 915 ],'insert' => [ 916 'path' => 'v1/projects/{project}/instances/{instance}/users', 917 'httpMethod' => 'POST', 918 'parameters' => [ 919 'project' => [ 920 'location' => 'path', 921 'type' => 'string', 922 'required' => true, 923 ], 924 'instance' => [ 925 'location' => 'path', 926 'type' => 'string', 927 'required' => true, 928 ], 929 ], 930 ],'list' => [ 931 'path' => 'v1/projects/{project}/instances/{instance}/users', 932 'httpMethod' => 'GET', 933 'parameters' => [ 934 'project' => [ 935 'location' => 'path', 936 'type' => 'string', 937 'required' => true, 938 ], 939 'instance' => [ 940 'location' => 'path', 941 'type' => 'string', 942 'required' => true, 943 ], 944 ], 945 ],'update' => [ 946 'path' => 'v1/projects/{project}/instances/{instance}/users', 947 'httpMethod' => 'PUT', 948 'parameters' => [ 949 'project' => [ 950 'location' => 'path', 951 'type' => 'string', 952 'required' => true, 953 ], 954 'instance' => [ 955 'location' => 'path', 956 'type' => 'string', 957 'required' => true, 958 ], 959 'host' => [ 960 'location' => 'query', 961 'type' => 'string', 962 ], 963 'name' => [ 964 'location' => 'query', 965 'type' => 'string', 966 ], 967 ], 968 ], 969 ] 970 ] 971 ); 972 } 973} 974 975// Adding a class alias for backwards compatibility with the previous class name. 976class_alias(SQLAdmin::class, 'Google_Service_SQLAdmin'); 977