Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 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 Replicapool (v1beta2).
  20   *
  21   * <p>
  22   * The Google Compute Engine Instance Group Manager API provides groups of
  23   * homogenous Compute Engine Instances.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://developers.google.com/compute/docs/instance-groups/manager/v1beta2" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  class Google_Service_Replicapool extends Google_Service
  33  {
  34    /** View and manage your data across Google Cloud Platform services. */
  35    const CLOUD_PLATFORM =
  36        "https://www.googleapis.com/auth/cloud-platform";
  37    /** View your data across Google Cloud Platform services. */
  38    const CLOUD_PLATFORM_READ_ONLY =
  39        "https://www.googleapis.com/auth/cloud-platform.read-only";
  40    /** View and manage your Google Compute Engine resources. */
  41    const COMPUTE =
  42        "https://www.googleapis.com/auth/compute";
  43    /** View your Google Compute Engine resources. */
  44    const COMPUTE_READONLY =
  45        "https://www.googleapis.com/auth/compute.readonly";
  46  
  47    public $instanceGroupManagers;
  48    public $zoneOperations;
  49    
  50  
  51    /**
  52     * Constructs the internal representation of the Replicapool service.
  53     *
  54     * @param Google_Client $client
  55     */
  56    public function __construct(Google_Client $client)
  57    {
  58      parent::__construct($client);
  59      $this->rootUrl = 'https://www.googleapis.com/';
  60      $this->servicePath = 'replicapool/v1beta2/projects/';
  61      $this->version = 'v1beta2';
  62      $this->serviceName = 'replicapool';
  63  
  64      $this->instanceGroupManagers = new Google_Service_Replicapool_InstanceGroupManagers_Resource(
  65          $this,
  66          $this->serviceName,
  67          'instanceGroupManagers',
  68          array(
  69            'methods' => array(
  70              'abandonInstances' => array(
  71                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances',
  72                'httpMethod' => 'POST',
  73                'parameters' => array(
  74                  'project' => array(
  75                    'location' => 'path',
  76                    'type' => 'string',
  77                    'required' => true,
  78                  ),
  79                  'zone' => array(
  80                    'location' => 'path',
  81                    'type' => 'string',
  82                    'required' => true,
  83                  ),
  84                  'instanceGroupManager' => array(
  85                    'location' => 'path',
  86                    'type' => 'string',
  87                    'required' => true,
  88                  ),
  89                ),
  90              ),'delete' => array(
  91                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
  92                'httpMethod' => 'DELETE',
  93                'parameters' => array(
  94                  'project' => array(
  95                    'location' => 'path',
  96                    'type' => 'string',
  97                    'required' => true,
  98                  ),
  99                  'zone' => array(
 100                    'location' => 'path',
 101                    'type' => 'string',
 102                    'required' => true,
 103                  ),
 104                  'instanceGroupManager' => array(
 105                    'location' => 'path',
 106                    'type' => 'string',
 107                    'required' => true,
 108                  ),
 109                ),
 110              ),'deleteInstances' => array(
 111                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances',
 112                'httpMethod' => 'POST',
 113                'parameters' => array(
 114                  'project' => array(
 115                    'location' => 'path',
 116                    'type' => 'string',
 117                    'required' => true,
 118                  ),
 119                  'zone' => array(
 120                    'location' => 'path',
 121                    'type' => 'string',
 122                    'required' => true,
 123                  ),
 124                  'instanceGroupManager' => array(
 125                    'location' => 'path',
 126                    'type' => 'string',
 127                    'required' => true,
 128                  ),
 129                ),
 130              ),'get' => array(
 131                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
 132                'httpMethod' => 'GET',
 133                'parameters' => array(
 134                  'project' => array(
 135                    'location' => 'path',
 136                    'type' => 'string',
 137                    'required' => true,
 138                  ),
 139                  'zone' => array(
 140                    'location' => 'path',
 141                    'type' => 'string',
 142                    'required' => true,
 143                  ),
 144                  'instanceGroupManager' => array(
 145                    'location' => 'path',
 146                    'type' => 'string',
 147                    'required' => true,
 148                  ),
 149                ),
 150              ),'insert' => array(
 151                'path' => '{project}/zones/{zone}/instanceGroupManagers',
 152                'httpMethod' => 'POST',
 153                'parameters' => array(
 154                  'project' => array(
 155                    'location' => 'path',
 156                    'type' => 'string',
 157                    'required' => true,
 158                  ),
 159                  'zone' => array(
 160                    'location' => 'path',
 161                    'type' => 'string',
 162                    'required' => true,
 163                  ),
 164                  'size' => array(
 165                    'location' => 'query',
 166                    'type' => 'integer',
 167                    'required' => true,
 168                  ),
 169                ),
 170              ),'list' => array(
 171                'path' => '{project}/zones/{zone}/instanceGroupManagers',
 172                'httpMethod' => 'GET',
 173                'parameters' => array(
 174                  'project' => array(
 175                    'location' => 'path',
 176                    'type' => 'string',
 177                    'required' => true,
 178                  ),
 179                  'zone' => array(
 180                    'location' => 'path',
 181                    'type' => 'string',
 182                    'required' => true,
 183                  ),
 184                  'filter' => array(
 185                    'location' => 'query',
 186                    'type' => 'string',
 187                  ),
 188                  'pageToken' => array(
 189                    'location' => 'query',
 190                    'type' => 'string',
 191                  ),
 192                  'maxResults' => array(
 193                    'location' => 'query',
 194                    'type' => 'integer',
 195                  ),
 196                ),
 197              ),'recreateInstances' => array(
 198                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances',
 199                'httpMethod' => 'POST',
 200                'parameters' => array(
 201                  'project' => array(
 202                    'location' => 'path',
 203                    'type' => 'string',
 204                    'required' => true,
 205                  ),
 206                  'zone' => array(
 207                    'location' => 'path',
 208                    'type' => 'string',
 209                    'required' => true,
 210                  ),
 211                  'instanceGroupManager' => array(
 212                    'location' => 'path',
 213                    'type' => 'string',
 214                    'required' => true,
 215                  ),
 216                ),
 217              ),'resize' => array(
 218                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize',
 219                'httpMethod' => 'POST',
 220                'parameters' => array(
 221                  'project' => array(
 222                    'location' => 'path',
 223                    'type' => 'string',
 224                    'required' => true,
 225                  ),
 226                  'zone' => array(
 227                    'location' => 'path',
 228                    'type' => 'string',
 229                    'required' => true,
 230                  ),
 231                  'instanceGroupManager' => array(
 232                    'location' => 'path',
 233                    'type' => 'string',
 234                    'required' => true,
 235                  ),
 236                  'size' => array(
 237                    'location' => 'query',
 238                    'type' => 'integer',
 239                    'required' => true,
 240                  ),
 241                ),
 242              ),'setInstanceTemplate' => array(
 243                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate',
 244                'httpMethod' => 'POST',
 245                'parameters' => array(
 246                  'project' => array(
 247                    'location' => 'path',
 248                    'type' => 'string',
 249                    'required' => true,
 250                  ),
 251                  'zone' => array(
 252                    'location' => 'path',
 253                    'type' => 'string',
 254                    'required' => true,
 255                  ),
 256                  'instanceGroupManager' => array(
 257                    'location' => 'path',
 258                    'type' => 'string',
 259                    'required' => true,
 260                  ),
 261                ),
 262              ),'setTargetPools' => array(
 263                'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools',
 264                'httpMethod' => 'POST',
 265                'parameters' => array(
 266                  'project' => array(
 267                    'location' => 'path',
 268                    'type' => 'string',
 269                    'required' => true,
 270                  ),
 271                  'zone' => array(
 272                    'location' => 'path',
 273                    'type' => 'string',
 274                    'required' => true,
 275                  ),
 276                  'instanceGroupManager' => array(
 277                    'location' => 'path',
 278                    'type' => 'string',
 279                    'required' => true,
 280                  ),
 281                ),
 282              ),
 283            )
 284          )
 285      );
 286      $this->zoneOperations = new Google_Service_Replicapool_ZoneOperations_Resource(
 287          $this,
 288          $this->serviceName,
 289          'zoneOperations',
 290          array(
 291            'methods' => array(
 292              'get' => array(
 293                'path' => '{project}/zones/{zone}/operations/{operation}',
 294                'httpMethod' => 'GET',
 295                'parameters' => array(
 296                  'project' => array(
 297                    'location' => 'path',
 298                    'type' => 'string',
 299                    'required' => true,
 300                  ),
 301                  'zone' => array(
 302                    'location' => 'path',
 303                    'type' => 'string',
 304                    'required' => true,
 305                  ),
 306                  'operation' => array(
 307                    'location' => 'path',
 308                    'type' => 'string',
 309                    'required' => true,
 310                  ),
 311                ),
 312              ),'list' => array(
 313                'path' => '{project}/zones/{zone}/operations',
 314                'httpMethod' => 'GET',
 315                'parameters' => array(
 316                  'project' => array(
 317                    'location' => 'path',
 318                    'type' => 'string',
 319                    'required' => true,
 320                  ),
 321                  'zone' => array(
 322                    'location' => 'path',
 323                    'type' => 'string',
 324                    'required' => true,
 325                  ),
 326                  'filter' => array(
 327                    'location' => 'query',
 328                    'type' => 'string',
 329                  ),
 330                  'pageToken' => array(
 331                    'location' => 'query',
 332                    'type' => 'string',
 333                  ),
 334                  'maxResults' => array(
 335                    'location' => 'query',
 336                    'type' => 'integer',
 337                  ),
 338                ),
 339              ),
 340            )
 341          )
 342      );
 343    }
 344  }
 345  
 346  
 347  /**
 348   * The "instanceGroupManagers" collection of methods.
 349   * Typical usage is:
 350   *  <code>
 351   *   $replicapoolService = new Google_Service_Replicapool(...);
 352   *   $instanceGroupManagers = $replicapoolService->instanceGroupManagers;
 353   *  </code>
 354   */
 355  class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_Service_Resource
 356  {
 357  
 358    /**
 359     * Removes the specified instances from the managed instance group, and from any
 360     * target pools of which they were members, without deleting the instances.
 361     * (instanceGroupManagers.abandonInstances)
 362     *
 363     * @param string $project The Google Developers Console project name.
 364     * @param string $zone The name of the zone in which the instance group manager
 365     * resides.
 366     * @param string $instanceGroupManager The name of the instance group manager.
 367     * @param Google_InstanceGroupManagersAbandonInstancesRequest $postBody
 368     * @param array $optParams Optional parameters.
 369     * @return Google_Service_Replicapool_Operation
 370     */
 371    public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array())
 372    {
 373      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
 374      $params = array_merge($params, $optParams);
 375      return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation");
 376    }
 377  
 378    /**
 379     * Deletes the instance group manager and all instances contained within. If
 380     * you'd like to delete the manager without deleting the instances, you must
 381     * first abandon the instances to remove them from the group.
 382     * (instanceGroupManagers.delete)
 383     *
 384     * @param string $project The Google Developers Console project name.
 385     * @param string $zone The name of the zone in which the instance group manager
 386     * resides.
 387     * @param string $instanceGroupManager Name of the Instance Group Manager
 388     * resource to delete.
 389     * @param array $optParams Optional parameters.
 390     * @return Google_Service_Replicapool_Operation
 391     */
 392    public function delete($project, $zone, $instanceGroupManager, $optParams = array())
 393    {
 394      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
 395      $params = array_merge($params, $optParams);
 396      return $this->call('delete', array($params), "Google_Service_Replicapool_Operation");
 397    }
 398  
 399    /**
 400     * Deletes the specified instances. The instances are deleted, then removed from
 401     * the instance group and any target pools of which they were a member. The
 402     * targetSize of the instance group manager is reduced by the number of
 403     * instances deleted. (instanceGroupManagers.deleteInstances)
 404     *
 405     * @param string $project The Google Developers Console project name.
 406     * @param string $zone The name of the zone in which the instance group manager
 407     * resides.
 408     * @param string $instanceGroupManager The name of the instance group manager.
 409     * @param Google_InstanceGroupManagersDeleteInstancesRequest $postBody
 410     * @param array $optParams Optional parameters.
 411     * @return Google_Service_Replicapool_Operation
 412     */
 413    public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array())
 414    {
 415      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
 416      $params = array_merge($params, $optParams);
 417      return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation");
 418    }
 419  
 420    /**
 421     * Returns the specified Instance Group Manager resource.
 422     * (instanceGroupManagers.get)
 423     *
 424     * @param string $project The Google Developers Console project name.
 425     * @param string $zone The name of the zone in which the instance group manager
 426     * resides.
 427     * @param string $instanceGroupManager Name of the instance resource to return.
 428     * @param array $optParams Optional parameters.
 429     * @return Google_Service_Replicapool_InstanceGroupManager
 430     */
 431    public function get($project, $zone, $instanceGroupManager, $optParams = array())
 432    {
 433      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
 434      $params = array_merge($params, $optParams);
 435      return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager");
 436    }
 437  
 438    /**
 439     * Creates an instance group manager, as well as the instance group and the
 440     * specified number of instances. (instanceGroupManagers.insert)
 441     *
 442     * @param string $project The Google Developers Console project name.
 443     * @param string $zone The name of the zone in which the instance group manager
 444     * resides.
 445     * @param int $size Number of instances that should exist.
 446     * @param Google_InstanceGroupManager $postBody
 447     * @param array $optParams Optional parameters.
 448     * @return Google_Service_Replicapool_Operation
 449     */
 450    public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array())
 451    {
 452      $params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody);
 453      $params = array_merge($params, $optParams);
 454      return $this->call('insert', array($params), "Google_Service_Replicapool_Operation");
 455    }
 456  
 457    /**
 458     * Retrieves the list of Instance Group Manager resources contained within the
 459     * specified zone. (instanceGroupManagers.listInstanceGroupManagers)
 460     *
 461     * @param string $project The Google Developers Console project name.
 462     * @param string $zone The name of the zone in which the instance group manager
 463     * resides.
 464     * @param array $optParams Optional parameters.
 465     *
 466     * @opt_param string filter Optional. Filter expression for filtering listed
 467     * resources.
 468     * @opt_param string pageToken Optional. Tag returned by a previous list request
 469     * truncated by maxResults. Used to continue a previous list request.
 470     * @opt_param string maxResults Optional. Maximum count of results to be
 471     * returned. Maximum value is 500 and default value is 500.
 472     * @return Google_Service_Replicapool_InstanceGroupManagerList
 473     */
 474    public function listInstanceGroupManagers($project, $zone, $optParams = array())
 475    {
 476      $params = array('project' => $project, 'zone' => $zone);
 477      $params = array_merge($params, $optParams);
 478      return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList");
 479    }
 480  
 481    /**
 482     * Recreates the specified instances. The instances are deleted, then recreated
 483     * using the instance group manager's current instance template.
 484     * (instanceGroupManagers.recreateInstances)
 485     *
 486     * @param string $project The Google Developers Console project name.
 487     * @param string $zone The name of the zone in which the instance group manager
 488     * resides.
 489     * @param string $instanceGroupManager The name of the instance group manager.
 490     * @param Google_InstanceGroupManagersRecreateInstancesRequest $postBody
 491     * @param array $optParams Optional parameters.
 492     * @return Google_Service_Replicapool_Operation
 493     */
 494    public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array())
 495    {
 496      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
 497      $params = array_merge($params, $optParams);
 498      return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation");
 499    }
 500  
 501    /**
 502     * Resizes the managed instance group up or down. If resized up, new instances
 503     * are created using the current instance template. If resized down, instances
 504     * are removed in the order outlined in Resizing a managed instance group.
 505     * (instanceGroupManagers.resize)
 506     *
 507     * @param string $project The Google Developers Console project name.
 508     * @param string $zone The name of the zone in which the instance group manager
 509     * resides.
 510     * @param string $instanceGroupManager The name of the instance group manager.
 511     * @param int $size Number of instances that should exist in this Instance Group
 512     * Manager.
 513     * @param array $optParams Optional parameters.
 514     * @return Google_Service_Replicapool_Operation
 515     */
 516    public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array())
 517    {
 518      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size);
 519      $params = array_merge($params, $optParams);
 520      return $this->call('resize', array($params), "Google_Service_Replicapool_Operation");
 521    }
 522  
 523    /**
 524     * Sets the instance template to use when creating new instances in this group.
 525     * Existing instances are not affected.
 526     * (instanceGroupManagers.setInstanceTemplate)
 527     *
 528     * @param string $project The Google Developers Console project name.
 529     * @param string $zone The name of the zone in which the instance group manager
 530     * resides.
 531     * @param string $instanceGroupManager The name of the instance group manager.
 532     * @param Google_InstanceGroupManagersSetInstanceTemplateRequest $postBody
 533     * @param array $optParams Optional parameters.
 534     * @return Google_Service_Replicapool_Operation
 535     */
 536    public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array())
 537    {
 538      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
 539      $params = array_merge($params, $optParams);
 540      return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation");
 541    }
 542  
 543    /**
 544     * Modifies the target pools to which all new instances in this group are
 545     * assigned. Existing instances in the group are not affected.
 546     * (instanceGroupManagers.setTargetPools)
 547     *
 548     * @param string $project The Google Developers Console project name.
 549     * @param string $zone The name of the zone in which the instance group manager
 550     * resides.
 551     * @param string $instanceGroupManager The name of the instance group manager.
 552     * @param Google_InstanceGroupManagersSetTargetPoolsRequest $postBody
 553     * @param array $optParams Optional parameters.
 554     * @return Google_Service_Replicapool_Operation
 555     */
 556    public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array())
 557    {
 558      $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
 559      $params = array_merge($params, $optParams);
 560      return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation");
 561    }
 562  }
 563  
 564  /**
 565   * The "zoneOperations" collection of methods.
 566   * Typical usage is:
 567   *  <code>
 568   *   $replicapoolService = new Google_Service_Replicapool(...);
 569   *   $zoneOperations = $replicapoolService->zoneOperations;
 570   *  </code>
 571   */
 572  class Google_Service_Replicapool_ZoneOperations_Resource extends Google_Service_Resource
 573  {
 574  
 575    /**
 576     * Retrieves the specified zone-specific operation resource.
 577     * (zoneOperations.get)
 578     *
 579     * @param string $project Name of the project scoping this request.
 580     * @param string $zone Name of the zone scoping this request.
 581     * @param string $operation Name of the operation resource to return.
 582     * @param array $optParams Optional parameters.
 583     * @return Google_Service_Replicapool_Operation
 584     */
 585    public function get($project, $zone, $operation, $optParams = array())
 586    {
 587      $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
 588      $params = array_merge($params, $optParams);
 589      return $this->call('get', array($params), "Google_Service_Replicapool_Operation");
 590    }
 591  
 592    /**
 593     * Retrieves the list of operation resources contained within the specified
 594     * zone. (zoneOperations.listZoneOperations)
 595     *
 596     * @param string $project Name of the project scoping this request.
 597     * @param string $zone Name of the zone scoping this request.
 598     * @param array $optParams Optional parameters.
 599     *
 600     * @opt_param string filter Optional. Filter expression for filtering listed
 601     * resources.
 602     * @opt_param string pageToken Optional. Tag returned by a previous list request
 603     * truncated by maxResults. Used to continue a previous list request.
 604     * @opt_param string maxResults Optional. Maximum count of results to be
 605     * returned. Maximum value is 500 and default value is 500.
 606     * @return Google_Service_Replicapool_OperationList
 607     */
 608    public function listZoneOperations($project, $zone, $optParams = array())
 609    {
 610      $params = array('project' => $project, 'zone' => $zone);
 611      $params = array_merge($params, $optParams);
 612      return $this->call('list', array($params), "Google_Service_Replicapool_OperationList");
 613    }
 614  }
 615  
 616  
 617  
 618  
 619  class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection
 620  {
 621    protected $collection_key = 'targetPools';
 622    protected $internal_gapi_mappings = array(
 623    );
 624    protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy';
 625    protected $autoHealingPoliciesDataType = 'array';
 626    public $baseInstanceName;
 627    public $creationTimestamp;
 628    public $currentSize;
 629    public $description;
 630    public $fingerprint;
 631    public $group;
 632    public $id;
 633    public $instanceTemplate;
 634    public $kind;
 635    public $name;
 636    public $selfLink;
 637    public $targetPools;
 638    public $targetSize;
 639  
 640  
 641    public function setAutoHealingPolicies($autoHealingPolicies)
 642    {
 643      $this->autoHealingPolicies = $autoHealingPolicies;
 644    }
 645    public function getAutoHealingPolicies()
 646    {
 647      return $this->autoHealingPolicies;
 648    }
 649    public function setBaseInstanceName($baseInstanceName)
 650    {
 651      $this->baseInstanceName = $baseInstanceName;
 652    }
 653    public function getBaseInstanceName()
 654    {
 655      return $this->baseInstanceName;
 656    }
 657    public function setCreationTimestamp($creationTimestamp)
 658    {
 659      $this->creationTimestamp = $creationTimestamp;
 660    }
 661    public function getCreationTimestamp()
 662    {
 663      return $this->creationTimestamp;
 664    }
 665    public function setCurrentSize($currentSize)
 666    {
 667      $this->currentSize = $currentSize;
 668    }
 669    public function getCurrentSize()
 670    {
 671      return $this->currentSize;
 672    }
 673    public function setDescription($description)
 674    {
 675      $this->description = $description;
 676    }
 677    public function getDescription()
 678    {
 679      return $this->description;
 680    }
 681    public function setFingerprint($fingerprint)
 682    {
 683      $this->fingerprint = $fingerprint;
 684    }
 685    public function getFingerprint()
 686    {
 687      return $this->fingerprint;
 688    }
 689    public function setGroup($group)
 690    {
 691      $this->group = $group;
 692    }
 693    public function getGroup()
 694    {
 695      return $this->group;
 696    }
 697    public function setId($id)
 698    {
 699      $this->id = $id;
 700    }
 701    public function getId()
 702    {
 703      return $this->id;
 704    }
 705    public function setInstanceTemplate($instanceTemplate)
 706    {
 707      $this->instanceTemplate = $instanceTemplate;
 708    }
 709    public function getInstanceTemplate()
 710    {
 711      return $this->instanceTemplate;
 712    }
 713    public function setKind($kind)
 714    {
 715      $this->kind = $kind;
 716    }
 717    public function getKind()
 718    {
 719      return $this->kind;
 720    }
 721    public function setName($name)
 722    {
 723      $this->name = $name;
 724    }
 725    public function getName()
 726    {
 727      return $this->name;
 728    }
 729    public function setSelfLink($selfLink)
 730    {
 731      $this->selfLink = $selfLink;
 732    }
 733    public function getSelfLink()
 734    {
 735      return $this->selfLink;
 736    }
 737    public function setTargetPools($targetPools)
 738    {
 739      $this->targetPools = $targetPools;
 740    }
 741    public function getTargetPools()
 742    {
 743      return $this->targetPools;
 744    }
 745    public function setTargetSize($targetSize)
 746    {
 747      $this->targetSize = $targetSize;
 748    }
 749    public function getTargetSize()
 750    {
 751      return $this->targetSize;
 752    }
 753  }
 754  
 755  class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection
 756  {
 757    protected $collection_key = 'items';
 758    protected $internal_gapi_mappings = array(
 759    );
 760    public $id;
 761    protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager';
 762    protected $itemsDataType = 'array';
 763    public $kind;
 764    public $nextPageToken;
 765    public $selfLink;
 766  
 767  
 768    public function setId($id)
 769    {
 770      $this->id = $id;
 771    }
 772    public function getId()
 773    {
 774      return $this->id;
 775    }
 776    public function setItems($items)
 777    {
 778      $this->items = $items;
 779    }
 780    public function getItems()
 781    {
 782      return $this->items;
 783    }
 784    public function setKind($kind)
 785    {
 786      $this->kind = $kind;
 787    }
 788    public function getKind()
 789    {
 790      return $this->kind;
 791    }
 792    public function setNextPageToken($nextPageToken)
 793    {
 794      $this->nextPageToken = $nextPageToken;
 795    }
 796    public function getNextPageToken()
 797    {
 798      return $this->nextPageToken;
 799    }
 800    public function setSelfLink($selfLink)
 801    {
 802      $this->selfLink = $selfLink;
 803    }
 804    public function getSelfLink()
 805    {
 806      return $this->selfLink;
 807    }
 808  }
 809  
 810  class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection
 811  {
 812    protected $collection_key = 'instances';
 813    protected $internal_gapi_mappings = array(
 814    );
 815    public $instances;
 816  
 817  
 818    public function setInstances($instances)
 819    {
 820      $this->instances = $instances;
 821    }
 822    public function getInstances()
 823    {
 824      return $this->instances;
 825    }
 826  }
 827  
 828  class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection
 829  {
 830    protected $collection_key = 'instances';
 831    protected $internal_gapi_mappings = array(
 832    );
 833    public $instances;
 834  
 835  
 836    public function setInstances($instances)
 837    {
 838      $this->instances = $instances;
 839    }
 840    public function getInstances()
 841    {
 842      return $this->instances;
 843    }
 844  }
 845  
 846  class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection
 847  {
 848    protected $collection_key = 'instances';
 849    protected $internal_gapi_mappings = array(
 850    );
 851    public $instances;
 852  
 853  
 854    public function setInstances($instances)
 855    {
 856      $this->instances = $instances;
 857    }
 858    public function getInstances()
 859    {
 860      return $this->instances;
 861    }
 862  }
 863  
 864  class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model
 865  {
 866    protected $internal_gapi_mappings = array(
 867    );
 868    public $instanceTemplate;
 869  
 870  
 871    public function setInstanceTemplate($instanceTemplate)
 872    {
 873      $this->instanceTemplate = $instanceTemplate;
 874    }
 875    public function getInstanceTemplate()
 876    {
 877      return $this->instanceTemplate;
 878    }
 879  }
 880  
 881  class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection
 882  {
 883    protected $collection_key = 'targetPools';
 884    protected $internal_gapi_mappings = array(
 885    );
 886    public $fingerprint;
 887    public $targetPools;
 888  
 889  
 890    public function setFingerprint($fingerprint)
 891    {
 892      $this->fingerprint = $fingerprint;
 893    }
 894    public function getFingerprint()
 895    {
 896      return $this->fingerprint;
 897    }
 898    public function setTargetPools($targetPools)
 899    {
 900      $this->targetPools = $targetPools;
 901    }
 902    public function getTargetPools()
 903    {
 904      return $this->targetPools;
 905    }
 906  }
 907  
 908  class Google_Service_Replicapool_Operation extends Google_Collection
 909  {
 910    protected $collection_key = 'warnings';
 911    protected $internal_gapi_mappings = array(
 912    );
 913    public $clientOperationId;
 914    public $creationTimestamp;
 915    public $endTime;
 916    protected $errorType = 'Google_Service_Replicapool_OperationError';
 917    protected $errorDataType = '';
 918    public $httpErrorMessage;
 919    public $httpErrorStatusCode;
 920    public $id;
 921    public $insertTime;
 922    public $kind;
 923    public $name;
 924    public $operationType;
 925    public $progress;
 926    public $region;
 927    public $selfLink;
 928    public $startTime;
 929    public $status;
 930    public $statusMessage;
 931    public $targetId;
 932    public $targetLink;
 933    public $user;
 934    protected $warningsType = 'Google_Service_Replicapool_OperationWarnings';
 935    protected $warningsDataType = 'array';
 936    public $zone;
 937  
 938  
 939    public function setClientOperationId($clientOperationId)
 940    {
 941      $this->clientOperationId = $clientOperationId;
 942    }
 943    public function getClientOperationId()
 944    {
 945      return $this->clientOperationId;
 946    }
 947    public function setCreationTimestamp($creationTimestamp)
 948    {
 949      $this->creationTimestamp = $creationTimestamp;
 950    }
 951    public function getCreationTimestamp()
 952    {
 953      return $this->creationTimestamp;
 954    }
 955    public function setEndTime($endTime)
 956    {
 957      $this->endTime = $endTime;
 958    }
 959    public function getEndTime()
 960    {
 961      return $this->endTime;
 962    }
 963    public function setError(Google_Service_Replicapool_OperationError $error)
 964    {
 965      $this->error = $error;
 966    }
 967    public function getError()
 968    {
 969      return $this->error;
 970    }
 971    public function setHttpErrorMessage($httpErrorMessage)
 972    {
 973      $this->httpErrorMessage = $httpErrorMessage;
 974    }
 975    public function getHttpErrorMessage()
 976    {
 977      return $this->httpErrorMessage;
 978    }
 979    public function setHttpErrorStatusCode($httpErrorStatusCode)
 980    {
 981      $this->httpErrorStatusCode = $httpErrorStatusCode;
 982    }
 983    public function getHttpErrorStatusCode()
 984    {
 985      return $this->httpErrorStatusCode;
 986    }
 987    public function setId($id)
 988    {
 989      $this->id = $id;
 990    }
 991    public function getId()
 992    {
 993      return $this->id;
 994    }
 995    public function setInsertTime($insertTime)
 996    {
 997      $this->insertTime = $insertTime;
 998    }
 999    public function getInsertTime()
1000    {
1001      return $this->insertTime;
1002    }
1003    public function setKind($kind)
1004    {
1005      $this->kind = $kind;
1006    }
1007    public function getKind()
1008    {
1009      return $this->kind;
1010    }
1011    public function setName($name)
1012    {
1013      $this->name = $name;
1014    }
1015    public function getName()
1016    {
1017      return $this->name;
1018    }
1019    public function setOperationType($operationType)
1020    {
1021      $this->operationType = $operationType;
1022    }
1023    public function getOperationType()
1024    {
1025      return $this->operationType;
1026    }
1027    public function setProgress($progress)
1028    {
1029      $this->progress = $progress;
1030    }
1031    public function getProgress()
1032    {
1033      return $this->progress;
1034    }
1035    public function setRegion($region)
1036    {
1037      $this->region = $region;
1038    }
1039    public function getRegion()
1040    {
1041      return $this->region;
1042    }
1043    public function setSelfLink($selfLink)
1044    {
1045      $this->selfLink = $selfLink;
1046    }
1047    public function getSelfLink()
1048    {
1049      return $this->selfLink;
1050    }
1051    public function setStartTime($startTime)
1052    {
1053      $this->startTime = $startTime;
1054    }
1055    public function getStartTime()
1056    {
1057      return $this->startTime;
1058    }
1059    public function setStatus($status)
1060    {
1061      $this->status = $status;
1062    }
1063    public function getStatus()
1064    {
1065      return $this->status;
1066    }
1067    public function setStatusMessage($statusMessage)
1068    {
1069      $this->statusMessage = $statusMessage;
1070    }
1071    public function getStatusMessage()
1072    {
1073      return $this->statusMessage;
1074    }
1075    public function setTargetId($targetId)
1076    {
1077      $this->targetId = $targetId;
1078    }
1079    public function getTargetId()
1080    {
1081      return $this->targetId;
1082    }
1083    public function setTargetLink($targetLink)
1084    {
1085      $this->targetLink = $targetLink;
1086    }
1087    public function getTargetLink()
1088    {
1089      return $this->targetLink;
1090    }
1091    public function setUser($user)
1092    {
1093      $this->user = $user;
1094    }
1095    public function getUser()
1096    {
1097      return $this->user;
1098    }
1099    public function setWarnings($warnings)
1100    {
1101      $this->warnings = $warnings;
1102    }
1103    public function getWarnings()
1104    {
1105      return $this->warnings;
1106    }
1107    public function setZone($zone)
1108    {
1109      $this->zone = $zone;
1110    }
1111    public function getZone()
1112    {
1113      return $this->zone;
1114    }
1115  }
1116  
1117  class Google_Service_Replicapool_OperationError extends Google_Collection
1118  {
1119    protected $collection_key = 'errors';
1120    protected $internal_gapi_mappings = array(
1121    );
1122    protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors';
1123    protected $errorsDataType = 'array';
1124  
1125  
1126    public function setErrors($errors)
1127    {
1128      $this->errors = $errors;
1129    }
1130    public function getErrors()
1131    {
1132      return $this->errors;
1133    }
1134  }
1135  
1136  class Google_Service_Replicapool_OperationErrorErrors extends Google_Model
1137  {
1138    protected $internal_gapi_mappings = array(
1139    );
1140    public $code;
1141    public $location;
1142    public $message;
1143  
1144  
1145    public function setCode($code)
1146    {
1147      $this->code = $code;
1148    }
1149    public function getCode()
1150    {
1151      return $this->code;
1152    }
1153    public function setLocation($location)
1154    {
1155      $this->location = $location;
1156    }
1157    public function getLocation()
1158    {
1159      return $this->location;
1160    }
1161    public function setMessage($message)
1162    {
1163      $this->message = $message;
1164    }
1165    public function getMessage()
1166    {
1167      return $this->message;
1168    }
1169  }
1170  
1171  class Google_Service_Replicapool_OperationList extends Google_Collection
1172  {
1173    protected $collection_key = 'items';
1174    protected $internal_gapi_mappings = array(
1175    );
1176    public $id;
1177    protected $itemsType = 'Google_Service_Replicapool_Operation';
1178    protected $itemsDataType = 'array';
1179    public $kind;
1180    public $nextPageToken;
1181    public $selfLink;
1182  
1183  
1184    public function setId($id)
1185    {
1186      $this->id = $id;
1187    }
1188    public function getId()
1189    {
1190      return $this->id;
1191    }
1192    public function setItems($items)
1193    {
1194      $this->items = $items;
1195    }
1196    public function getItems()
1197    {
1198      return $this->items;
1199    }
1200    public function setKind($kind)
1201    {
1202      $this->kind = $kind;
1203    }
1204    public function getKind()
1205    {
1206      return $this->kind;
1207    }
1208    public function setNextPageToken($nextPageToken)
1209    {
1210      $this->nextPageToken = $nextPageToken;
1211    }
1212    public function getNextPageToken()
1213    {
1214      return $this->nextPageToken;
1215    }
1216    public function setSelfLink($selfLink)
1217    {
1218      $this->selfLink = $selfLink;
1219    }
1220    public function getSelfLink()
1221    {
1222      return $this->selfLink;
1223    }
1224  }
1225  
1226  class Google_Service_Replicapool_OperationWarnings extends Google_Collection
1227  {
1228    protected $collection_key = 'data';
1229    protected $internal_gapi_mappings = array(
1230    );
1231    public $code;
1232    protected $dataType = 'Google_Service_Replicapool_OperationWarningsData';
1233    protected $dataDataType = 'array';
1234    public $message;
1235  
1236  
1237    public function setCode($code)
1238    {
1239      $this->code = $code;
1240    }
1241    public function getCode()
1242    {
1243      return $this->code;
1244    }
1245    public function setData($data)
1246    {
1247      $this->data = $data;
1248    }
1249    public function getData()
1250    {
1251      return $this->data;
1252    }
1253    public function setMessage($message)
1254    {
1255      $this->message = $message;
1256    }
1257    public function getMessage()
1258    {
1259      return $this->message;
1260    }
1261  }
1262  
1263  class Google_Service_Replicapool_OperationWarningsData extends Google_Model
1264  {
1265    protected $internal_gapi_mappings = array(
1266    );
1267    public $key;
1268    public $value;
1269  
1270  
1271    public function setKey($key)
1272    {
1273      $this->key = $key;
1274    }
1275    public function getKey()
1276    {
1277      return $this->key;
1278    }
1279    public function setValue($value)
1280    {
1281      $this->value = $value;
1282    }
1283    public function getValue()
1284    {
1285      return $this->value;
1286    }
1287  }
1288  
1289  class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model
1290  {
1291    protected $internal_gapi_mappings = array(
1292    );
1293    public $actionType;
1294    public $healthCheck;
1295  
1296  
1297    public function setActionType($actionType)
1298    {
1299      $this->actionType = $actionType;
1300    }
1301    public function getActionType()
1302    {
1303      return $this->actionType;
1304    }
1305    public function setHealthCheck($healthCheck)
1306    {
1307      $this->healthCheck = $healthCheck;
1308    }
1309    public function getHealthCheck()
1310    {
1311      return $this->healthCheck;
1312    }
1313  }