Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

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