Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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