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 Autoscaler (v1beta2).
  20   *
  21   * <p>
  22   * The Google Compute Engine Autoscaler API provides autoscaling for groups of
  23   * Cloud VMs.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="http://developers.google.com/compute/docs/autoscaler" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  #[AllowDynamicProperties]
  33  class Google_Service_Autoscaler extends Google_Service
  34  {
  35    /** View and manage your Google Compute Engine resources. */
  36    const COMPUTE =
  37        "https://www.googleapis.com/auth/compute";
  38    /** View your Google Compute Engine resources. */
  39    const COMPUTE_READONLY =
  40        "https://www.googleapis.com/auth/compute.readonly";
  41  
  42    public $autoscalers;
  43    public $zoneOperations;
  44    public $zones;
  45    
  46  
  47    /**
  48     * Constructs the internal representation of the Autoscaler service.
  49     *
  50     * @param Google_Client $client
  51     */
  52    public function __construct(Google_Client $client)
  53    {
  54      parent::__construct($client);
  55      $this->rootUrl = 'https://www.googleapis.com/';
  56      $this->servicePath = 'autoscaler/v1beta2/';
  57      $this->version = 'v1beta2';
  58      $this->serviceName = 'autoscaler';
  59  
  60      $this->autoscalers = new Google_Service_Autoscaler_Autoscalers_Resource(
  61          $this,
  62          $this->serviceName,
  63          'autoscalers',
  64          array(
  65            'methods' => array(
  66              'delete' => array(
  67                'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
  68                'httpMethod' => 'DELETE',
  69                'parameters' => array(
  70                  'project' => array(
  71                    'location' => 'path',
  72                    'type' => 'string',
  73                    'required' => true,
  74                  ),
  75                  'zone' => array(
  76                    'location' => 'path',
  77                    'type' => 'string',
  78                    'required' => true,
  79                  ),
  80                  'autoscaler' => array(
  81                    'location' => 'path',
  82                    'type' => 'string',
  83                    'required' => true,
  84                  ),
  85                ),
  86              ),'get' => array(
  87                'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
  88                'httpMethod' => 'GET',
  89                'parameters' => array(
  90                  'project' => array(
  91                    'location' => 'path',
  92                    'type' => 'string',
  93                    'required' => true,
  94                  ),
  95                  'zone' => array(
  96                    'location' => 'path',
  97                    'type' => 'string',
  98                    'required' => true,
  99                  ),
 100                  'autoscaler' => array(
 101                    'location' => 'path',
 102                    'type' => 'string',
 103                    'required' => true,
 104                  ),
 105                ),
 106              ),'insert' => array(
 107                'path' => 'projects/{project}/zones/{zone}/autoscalers',
 108                'httpMethod' => 'POST',
 109                'parameters' => array(
 110                  'project' => array(
 111                    'location' => 'path',
 112                    'type' => 'string',
 113                    'required' => true,
 114                  ),
 115                  'zone' => array(
 116                    'location' => 'path',
 117                    'type' => 'string',
 118                    'required' => true,
 119                  ),
 120                ),
 121              ),'list' => array(
 122                'path' => 'projects/{project}/zones/{zone}/autoscalers',
 123                'httpMethod' => 'GET',
 124                'parameters' => array(
 125                  'project' => array(
 126                    'location' => 'path',
 127                    'type' => 'string',
 128                    'required' => true,
 129                  ),
 130                  'zone' => array(
 131                    'location' => 'path',
 132                    'type' => 'string',
 133                    'required' => true,
 134                  ),
 135                  'filter' => array(
 136                    'location' => 'query',
 137                    'type' => 'string',
 138                  ),
 139                  'pageToken' => array(
 140                    'location' => 'query',
 141                    'type' => 'string',
 142                  ),
 143                  'maxResults' => array(
 144                    'location' => 'query',
 145                    'type' => 'integer',
 146                  ),
 147                ),
 148              ),'patch' => array(
 149                'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
 150                'httpMethod' => 'PATCH',
 151                'parameters' => array(
 152                  'project' => array(
 153                    'location' => 'path',
 154                    'type' => 'string',
 155                    'required' => true,
 156                  ),
 157                  'zone' => array(
 158                    'location' => 'path',
 159                    'type' => 'string',
 160                    'required' => true,
 161                  ),
 162                  'autoscaler' => array(
 163                    'location' => 'path',
 164                    'type' => 'string',
 165                    'required' => true,
 166                  ),
 167                ),
 168              ),'update' => array(
 169                'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
 170                'httpMethod' => 'PUT',
 171                'parameters' => array(
 172                  'project' => array(
 173                    'location' => 'path',
 174                    'type' => 'string',
 175                    'required' => true,
 176                  ),
 177                  'zone' => array(
 178                    'location' => 'path',
 179                    'type' => 'string',
 180                    'required' => true,
 181                  ),
 182                  'autoscaler' => array(
 183                    'location' => 'path',
 184                    'type' => 'string',
 185                    'required' => true,
 186                  ),
 187                ),
 188              ),
 189            )
 190          )
 191      );
 192      $this->zoneOperations = new Google_Service_Autoscaler_ZoneOperations_Resource(
 193          $this,
 194          $this->serviceName,
 195          'zoneOperations',
 196          array(
 197            'methods' => array(
 198              'delete' => array(
 199                'path' => '{project}/zones/{zone}/operations/{operation}',
 200                'httpMethod' => 'DELETE',
 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                  'operation' => array(
 213                    'location' => 'path',
 214                    'type' => 'string',
 215                    'required' => true,
 216                  ),
 217                ),
 218              ),'get' => array(
 219                'path' => '{project}/zones/{zone}/operations/{operation}',
 220                'httpMethod' => 'GET',
 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                  'operation' => array(
 233                    'location' => 'path',
 234                    'type' => 'string',
 235                    'required' => true,
 236                  ),
 237                ),
 238              ),'list' => array(
 239                'path' => '{project}/zones/{zone}/operations',
 240                'httpMethod' => 'GET',
 241                'parameters' => array(
 242                  'project' => array(
 243                    'location' => 'path',
 244                    'type' => 'string',
 245                    'required' => true,
 246                  ),
 247                  'zone' => array(
 248                    'location' => 'path',
 249                    'type' => 'string',
 250                    'required' => true,
 251                  ),
 252                  'filter' => array(
 253                    'location' => 'query',
 254                    'type' => 'string',
 255                  ),
 256                  'pageToken' => array(
 257                    'location' => 'query',
 258                    'type' => 'string',
 259                  ),
 260                  'maxResults' => array(
 261                    'location' => 'query',
 262                    'type' => 'integer',
 263                  ),
 264                ),
 265              ),
 266            )
 267          )
 268      );
 269      $this->zones = new Google_Service_Autoscaler_Zones_Resource(
 270          $this,
 271          $this->serviceName,
 272          'zones',
 273          array(
 274            'methods' => array(
 275              'list' => array(
 276                'path' => '{project}/zones',
 277                'httpMethod' => 'GET',
 278                'parameters' => array(
 279                  'project' => array(
 280                    'location' => 'path',
 281                    'type' => 'string',
 282                    'required' => true,
 283                  ),
 284                  'filter' => array(
 285                    'location' => 'query',
 286                    'type' => 'string',
 287                  ),
 288                  'pageToken' => array(
 289                    'location' => 'query',
 290                    'type' => 'string',
 291                  ),
 292                  'maxResults' => array(
 293                    'location' => 'query',
 294                    'type' => 'integer',
 295                  ),
 296                ),
 297              ),
 298            )
 299          )
 300      );
 301    }
 302  }
 303  
 304  
 305  /**
 306   * The "autoscalers" collection of methods.
 307   * Typical usage is:
 308   *  <code>
 309   *   $autoscalerService = new Google_Service_Autoscaler(...);
 310   *   $autoscalers = $autoscalerService->autoscalers;
 311   *  </code>
 312   */
 313  #[AllowDynamicProperties]
 314  class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Resource
 315  {
 316  
 317    /**
 318     * Deletes the specified Autoscaler resource. (autoscalers.delete)
 319     *
 320     * @param string $project Project ID of Autoscaler resource.
 321     * @param string $zone Zone name of Autoscaler resource.
 322     * @param string $autoscaler Name of the Autoscaler resource.
 323     * @param array $optParams Optional parameters.
 324     * @return Google_Service_Autoscaler_Operation
 325     */
 326    public function delete($project, $zone, $autoscaler, $optParams = array())
 327    {
 328      $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
 329      $params = array_merge($params, $optParams);
 330      return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation");
 331    }
 332  
 333    /**
 334     * Gets the specified Autoscaler resource. (autoscalers.get)
 335     *
 336     * @param string $project Project ID of Autoscaler resource.
 337     * @param string $zone Zone name of Autoscaler resource.
 338     * @param string $autoscaler Name of the Autoscaler resource.
 339     * @param array $optParams Optional parameters.
 340     * @return Google_Service_Autoscaler_Autoscaler
 341     */
 342    public function get($project, $zone, $autoscaler, $optParams = array())
 343    {
 344      $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
 345      $params = array_merge($params, $optParams);
 346      return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler");
 347    }
 348  
 349    /**
 350     * Adds new Autoscaler resource. (autoscalers.insert)
 351     *
 352     * @param string $project Project ID of Autoscaler resource.
 353     * @param string $zone Zone name of Autoscaler resource.
 354     * @param Google_Autoscaler $postBody
 355     * @param array $optParams Optional parameters.
 356     * @return Google_Service_Autoscaler_Operation
 357     */
 358    public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
 359    {
 360      $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
 361      $params = array_merge($params, $optParams);
 362      return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation");
 363    }
 364  
 365    /**
 366     * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers)
 367     *
 368     * @param string $project Project ID of Autoscaler resource.
 369     * @param string $zone Zone name of Autoscaler resource.
 370     * @param array $optParams Optional parameters.
 371     *
 372     * @opt_param string filter
 373     * @opt_param string pageToken
 374     * @opt_param string maxResults
 375     * @return Google_Service_Autoscaler_AutoscalerListResponse
 376     */
 377    public function listAutoscalers($project, $zone, $optParams = array())
 378    {
 379      $params = array('project' => $project, 'zone' => $zone);
 380      $params = array_merge($params, $optParams);
 381      return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse");
 382    }
 383  
 384    /**
 385     * Update the entire content of the Autoscaler resource. This method supports
 386     * patch semantics. (autoscalers.patch)
 387     *
 388     * @param string $project Project ID of Autoscaler resource.
 389     * @param string $zone Zone name of Autoscaler resource.
 390     * @param string $autoscaler Name of the Autoscaler resource.
 391     * @param Google_Autoscaler $postBody
 392     * @param array $optParams Optional parameters.
 393     * @return Google_Service_Autoscaler_Operation
 394     */
 395    public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
 396    {
 397      $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
 398      $params = array_merge($params, $optParams);
 399      return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation");
 400    }
 401  
 402    /**
 403     * Update the entire content of the Autoscaler resource. (autoscalers.update)
 404     *
 405     * @param string $project Project ID of Autoscaler resource.
 406     * @param string $zone Zone name of Autoscaler resource.
 407     * @param string $autoscaler Name of the Autoscaler resource.
 408     * @param Google_Autoscaler $postBody
 409     * @param array $optParams Optional parameters.
 410     * @return Google_Service_Autoscaler_Operation
 411     */
 412    public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
 413    {
 414      $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
 415      $params = array_merge($params, $optParams);
 416      return $this->call('update', array($params), "Google_Service_Autoscaler_Operation");
 417    }
 418  }
 419  
 420  /**
 421   * The "zoneOperations" collection of methods.
 422   * Typical usage is:
 423   *  <code>
 424   *   $autoscalerService = new Google_Service_Autoscaler(...);
 425   *   $zoneOperations = $autoscalerService->zoneOperations;
 426   *  </code>
 427   */
 428  #[AllowDynamicProperties]
 429  class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_Resource
 430  {
 431  
 432    /**
 433     * Deletes the specified zone-specific operation resource.
 434     * (zoneOperations.delete)
 435     *
 436     * @param string $project
 437     * @param string $zone
 438     * @param string $operation
 439     * @param array $optParams Optional parameters.
 440     */
 441    public function delete($project, $zone, $operation, $optParams = array())
 442    {
 443      $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
 444      $params = array_merge($params, $optParams);
 445      return $this->call('delete', array($params));
 446    }
 447  
 448    /**
 449     * Retrieves the specified zone-specific operation resource.
 450     * (zoneOperations.get)
 451     *
 452     * @param string $project
 453     * @param string $zone
 454     * @param string $operation
 455     * @param array $optParams Optional parameters.
 456     * @return Google_Service_Autoscaler_Operation
 457     */
 458    public function get($project, $zone, $operation, $optParams = array())
 459    {
 460      $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
 461      $params = array_merge($params, $optParams);
 462      return $this->call('get', array($params), "Google_Service_Autoscaler_Operation");
 463    }
 464  
 465    /**
 466     * Retrieves the list of operation resources contained within the specified
 467     * zone. (zoneOperations.listZoneOperations)
 468     *
 469     * @param string $project
 470     * @param string $zone
 471     * @param array $optParams Optional parameters.
 472     *
 473     * @opt_param string filter
 474     * @opt_param string pageToken
 475     * @opt_param string maxResults
 476     * @return Google_Service_Autoscaler_OperationList
 477     */
 478    public function listZoneOperations($project, $zone, $optParams = array())
 479    {
 480      $params = array('project' => $project, 'zone' => $zone);
 481      $params = array_merge($params, $optParams);
 482      return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList");
 483    }
 484  }
 485  
 486  /**
 487   * The "zones" collection of methods.
 488   * Typical usage is:
 489   *  <code>
 490   *   $autoscalerService = new Google_Service_Autoscaler(...);
 491   *   $zones = $autoscalerService->zones;
 492   *  </code>
 493   */
 494  #[AllowDynamicProperties]
 495  class Google_Service_Autoscaler_Zones_Resource extends Google_Service_Resource
 496  {
 497  
 498    /**
 499     * (zones.listZones)
 500     *
 501     * @param string $project
 502     * @param array $optParams Optional parameters.
 503     *
 504     * @opt_param string filter
 505     * @opt_param string pageToken
 506     * @opt_param string maxResults
 507     * @return Google_Service_Autoscaler_ZoneList
 508     */
 509    public function listZones($project, $optParams = array())
 510    {
 511      $params = array('project' => $project);
 512      $params = array_merge($params, $optParams);
 513      return $this->call('list', array($params), "Google_Service_Autoscaler_ZoneList");
 514    }
 515  }
 516  
 517  
 518  
 519  
 520  #[AllowDynamicProperties]
 521  class Google_Service_Autoscaler_Autoscaler extends Google_Model
 522  {
 523    protected $internal_gapi_mappings = array(
 524    );
 525    protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy';
 526    protected $autoscalingPolicyDataType = '';
 527    public $creationTimestamp;
 528    public $description;
 529    public $id;
 530    public $kind;
 531    public $name;
 532    public $selfLink;
 533    public $target;
 534  
 535  
 536    public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy)
 537    {
 538      $this->autoscalingPolicy = $autoscalingPolicy;
 539    }
 540    public function getAutoscalingPolicy()
 541    {
 542      return $this->autoscalingPolicy;
 543    }
 544    public function setCreationTimestamp($creationTimestamp)
 545    {
 546      $this->creationTimestamp = $creationTimestamp;
 547    }
 548    public function getCreationTimestamp()
 549    {
 550      return $this->creationTimestamp;
 551    }
 552    public function setDescription($description)
 553    {
 554      $this->description = $description;
 555    }
 556    public function getDescription()
 557    {
 558      return $this->description;
 559    }
 560    public function setId($id)
 561    {
 562      $this->id = $id;
 563    }
 564    public function getId()
 565    {
 566      return $this->id;
 567    }
 568    public function setKind($kind)
 569    {
 570      $this->kind = $kind;
 571    }
 572    public function getKind()
 573    {
 574      return $this->kind;
 575    }
 576    public function setName($name)
 577    {
 578      $this->name = $name;
 579    }
 580    public function getName()
 581    {
 582      return $this->name;
 583    }
 584    public function setSelfLink($selfLink)
 585    {
 586      $this->selfLink = $selfLink;
 587    }
 588    public function getSelfLink()
 589    {
 590      return $this->selfLink;
 591    }
 592    public function setTarget($target)
 593    {
 594      $this->target = $target;
 595    }
 596    public function getTarget()
 597    {
 598      return $this->target;
 599    }
 600  }
 601  
 602  #[AllowDynamicProperties]
 603  class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection
 604  {
 605    protected $collection_key = 'items';
 606    protected $internal_gapi_mappings = array(
 607    );
 608    protected $itemsType = 'Google_Service_Autoscaler_Autoscaler';
 609    protected $itemsDataType = 'array';
 610    public $kind;
 611    public $nextPageToken;
 612  
 613  
 614    public function setItems($items)
 615    {
 616      $this->items = $items;
 617    }
 618    public function getItems()
 619    {
 620      return $this->items;
 621    }
 622    public function setKind($kind)
 623    {
 624      $this->kind = $kind;
 625    }
 626    public function getKind()
 627    {
 628      return $this->kind;
 629    }
 630    public function setNextPageToken($nextPageToken)
 631    {
 632      $this->nextPageToken = $nextPageToken;
 633    }
 634    public function getNextPageToken()
 635    {
 636      return $this->nextPageToken;
 637    }
 638  }
 639  
 640  #[AllowDynamicProperties]
 641  class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection
 642  {
 643    protected $collection_key = 'customMetricUtilizations';
 644    protected $internal_gapi_mappings = array(
 645    );
 646    public $coolDownPeriodSec;
 647    protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization';
 648    protected $cpuUtilizationDataType = '';
 649    protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization';
 650    protected $customMetricUtilizationsDataType = 'array';
 651    protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization';
 652    protected $loadBalancingUtilizationDataType = '';
 653    public $maxNumReplicas;
 654    public $minNumReplicas;
 655  
 656  
 657    public function setCoolDownPeriodSec($coolDownPeriodSec)
 658    {
 659      $this->coolDownPeriodSec = $coolDownPeriodSec;
 660    }
 661    public function getCoolDownPeriodSec()
 662    {
 663      return $this->coolDownPeriodSec;
 664    }
 665    public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization)
 666    {
 667      $this->cpuUtilization = $cpuUtilization;
 668    }
 669    public function getCpuUtilization()
 670    {
 671      return $this->cpuUtilization;
 672    }
 673    public function setCustomMetricUtilizations($customMetricUtilizations)
 674    {
 675      $this->customMetricUtilizations = $customMetricUtilizations;
 676    }
 677    public function getCustomMetricUtilizations()
 678    {
 679      return $this->customMetricUtilizations;
 680    }
 681    public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization)
 682    {
 683      $this->loadBalancingUtilization = $loadBalancingUtilization;
 684    }
 685    public function getLoadBalancingUtilization()
 686    {
 687      return $this->loadBalancingUtilization;
 688    }
 689    public function setMaxNumReplicas($maxNumReplicas)
 690    {
 691      $this->maxNumReplicas = $maxNumReplicas;
 692    }
 693    public function getMaxNumReplicas()
 694    {
 695      return $this->maxNumReplicas;
 696    }
 697    public function setMinNumReplicas($minNumReplicas)
 698    {
 699      $this->minNumReplicas = $minNumReplicas;
 700    }
 701    public function getMinNumReplicas()
 702    {
 703      return $this->minNumReplicas;
 704    }
 705  }
 706  
 707  #[AllowDynamicProperties]
 708  class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model
 709  {
 710    protected $internal_gapi_mappings = array(
 711    );
 712    public $utilizationTarget;
 713  
 714  
 715    public function setUtilizationTarget($utilizationTarget)
 716    {
 717      $this->utilizationTarget = $utilizationTarget;
 718    }
 719    public function getUtilizationTarget()
 720    {
 721      return $this->utilizationTarget;
 722    }
 723  }
 724  
 725  #[AllowDynamicProperties]
 726  class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model
 727  {
 728    protected $internal_gapi_mappings = array(
 729    );
 730    public $metric;
 731    public $utilizationTarget;
 732    public $utilizationTargetType;
 733  
 734  
 735    public function setMetric($metric)
 736    {
 737      $this->metric = $metric;
 738    }
 739    public function getMetric()
 740    {
 741      return $this->metric;
 742    }
 743    public function setUtilizationTarget($utilizationTarget)
 744    {
 745      $this->utilizationTarget = $utilizationTarget;
 746    }
 747    public function getUtilizationTarget()
 748    {
 749      return $this->utilizationTarget;
 750    }
 751    public function setUtilizationTargetType($utilizationTargetType)
 752    {
 753      $this->utilizationTargetType = $utilizationTargetType;
 754    }
 755    public function getUtilizationTargetType()
 756    {
 757      return $this->utilizationTargetType;
 758    }
 759  }
 760  
 761  #[AllowDynamicProperties]
 762  class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model
 763  {
 764    protected $internal_gapi_mappings = array(
 765    );
 766    public $utilizationTarget;
 767  
 768  
 769    public function setUtilizationTarget($utilizationTarget)
 770    {
 771      $this->utilizationTarget = $utilizationTarget;
 772    }
 773    public function getUtilizationTarget()
 774    {
 775      return $this->utilizationTarget;
 776    }
 777  }
 778  
 779  #[AllowDynamicProperties]
 780  class Google_Service_Autoscaler_DeprecationStatus extends Google_Model
 781  {
 782    protected $internal_gapi_mappings = array(
 783    );
 784    public $deleted;
 785    public $deprecated;
 786    public $obsolete;
 787    public $replacement;
 788    public $state;
 789  
 790  
 791    public function setDeleted($deleted)
 792    {
 793      $this->deleted = $deleted;
 794    }
 795    public function getDeleted()
 796    {
 797      return $this->deleted;
 798    }
 799    public function setDeprecated($deprecated)
 800    {
 801      $this->deprecated = $deprecated;
 802    }
 803    public function getDeprecated()
 804    {
 805      return $this->deprecated;
 806    }
 807    public function setObsolete($obsolete)
 808    {
 809      $this->obsolete = $obsolete;
 810    }
 811    public function getObsolete()
 812    {
 813      return $this->obsolete;
 814    }
 815    public function setReplacement($replacement)
 816    {
 817      $this->replacement = $replacement;
 818    }
 819    public function getReplacement()
 820    {
 821      return $this->replacement;
 822    }
 823    public function setState($state)
 824    {
 825      $this->state = $state;
 826    }
 827    public function getState()
 828    {
 829      return $this->state;
 830    }
 831  }
 832  
 833  #[AllowDynamicProperties]
 834  class Google_Service_Autoscaler_Operation extends Google_Collection
 835  {
 836    protected $collection_key = 'warnings';
 837    protected $internal_gapi_mappings = array(
 838    );
 839    public $clientOperationId;
 840    public $creationTimestamp;
 841    public $endTime;
 842    protected $errorType = 'Google_Service_Autoscaler_OperationError';
 843    protected $errorDataType = '';
 844    public $httpErrorMessage;
 845    public $httpErrorStatusCode;
 846    public $id;
 847    public $insertTime;
 848    public $kind;
 849    public $name;
 850    public $operationType;
 851    public $progress;
 852    public $region;
 853    public $selfLink;
 854    public $startTime;
 855    public $status;
 856    public $statusMessage;
 857    public $targetId;
 858    public $targetLink;
 859    public $user;
 860    protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings';
 861    protected $warningsDataType = 'array';
 862    public $zone;
 863  
 864  
 865    public function setClientOperationId($clientOperationId)
 866    {
 867      $this->clientOperationId = $clientOperationId;
 868    }
 869    public function getClientOperationId()
 870    {
 871      return $this->clientOperationId;
 872    }
 873    public function setCreationTimestamp($creationTimestamp)
 874    {
 875      $this->creationTimestamp = $creationTimestamp;
 876    }
 877    public function getCreationTimestamp()
 878    {
 879      return $this->creationTimestamp;
 880    }
 881    public function setEndTime($endTime)
 882    {
 883      $this->endTime = $endTime;
 884    }
 885    public function getEndTime()
 886    {
 887      return $this->endTime;
 888    }
 889    public function setError(Google_Service_Autoscaler_OperationError $error)
 890    {
 891      $this->error = $error;
 892    }
 893    public function getError()
 894    {
 895      return $this->error;
 896    }
 897    public function setHttpErrorMessage($httpErrorMessage)
 898    {
 899      $this->httpErrorMessage = $httpErrorMessage;
 900    }
 901    public function getHttpErrorMessage()
 902    {
 903      return $this->httpErrorMessage;
 904    }
 905    public function setHttpErrorStatusCode($httpErrorStatusCode)
 906    {
 907      $this->httpErrorStatusCode = $httpErrorStatusCode;
 908    }
 909    public function getHttpErrorStatusCode()
 910    {
 911      return $this->httpErrorStatusCode;
 912    }
 913    public function setId($id)
 914    {
 915      $this->id = $id;
 916    }
 917    public function getId()
 918    {
 919      return $this->id;
 920    }
 921    public function setInsertTime($insertTime)
 922    {
 923      $this->insertTime = $insertTime;
 924    }
 925    public function getInsertTime()
 926    {
 927      return $this->insertTime;
 928    }
 929    public function setKind($kind)
 930    {
 931      $this->kind = $kind;
 932    }
 933    public function getKind()
 934    {
 935      return $this->kind;
 936    }
 937    public function setName($name)
 938    {
 939      $this->name = $name;
 940    }
 941    public function getName()
 942    {
 943      return $this->name;
 944    }
 945    public function setOperationType($operationType)
 946    {
 947      $this->operationType = $operationType;
 948    }
 949    public function getOperationType()
 950    {
 951      return $this->operationType;
 952    }
 953    public function setProgress($progress)
 954    {
 955      $this->progress = $progress;
 956    }
 957    public function getProgress()
 958    {
 959      return $this->progress;
 960    }
 961    public function setRegion($region)
 962    {
 963      $this->region = $region;
 964    }
 965    public function getRegion()
 966    {
 967      return $this->region;
 968    }
 969    public function setSelfLink($selfLink)
 970    {
 971      $this->selfLink = $selfLink;
 972    }
 973    public function getSelfLink()
 974    {
 975      return $this->selfLink;
 976    }
 977    public function setStartTime($startTime)
 978    {
 979      $this->startTime = $startTime;
 980    }
 981    public function getStartTime()
 982    {
 983      return $this->startTime;
 984    }
 985    public function setStatus($status)
 986    {
 987      $this->status = $status;
 988    }
 989    public function getStatus()
 990    {
 991      return $this->status;
 992    }
 993    public function setStatusMessage($statusMessage)
 994    {
 995      $this->statusMessage = $statusMessage;
 996    }
 997    public function getStatusMessage()
 998    {
 999      return $this->statusMessage;
1000    }
1001    public function setTargetId($targetId)
1002    {
1003      $this->targetId = $targetId;
1004    }
1005    public function getTargetId()
1006    {
1007      return $this->targetId;
1008    }
1009    public function setTargetLink($targetLink)
1010    {
1011      $this->targetLink = $targetLink;
1012    }
1013    public function getTargetLink()
1014    {
1015      return $this->targetLink;
1016    }
1017    public function setUser($user)
1018    {
1019      $this->user = $user;
1020    }
1021    public function getUser()
1022    {
1023      return $this->user;
1024    }
1025    public function setWarnings($warnings)
1026    {
1027      $this->warnings = $warnings;
1028    }
1029    public function getWarnings()
1030    {
1031      return $this->warnings;
1032    }
1033    public function setZone($zone)
1034    {
1035      $this->zone = $zone;
1036    }
1037    public function getZone()
1038    {
1039      return $this->zone;
1040    }
1041  }
1042  
1043  #[AllowDynamicProperties]
1044  class Google_Service_Autoscaler_OperationError extends Google_Collection
1045  {
1046    protected $collection_key = 'errors';
1047    protected $internal_gapi_mappings = array(
1048    );
1049    protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors';
1050    protected $errorsDataType = 'array';
1051  
1052  
1053    public function setErrors($errors)
1054    {
1055      $this->errors = $errors;
1056    }
1057    public function getErrors()
1058    {
1059      return $this->errors;
1060    }
1061  }
1062  
1063  #[AllowDynamicProperties]
1064  class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model
1065  {
1066    protected $internal_gapi_mappings = array(
1067    );
1068    public $code;
1069    public $location;
1070    public $message;
1071  
1072  
1073    public function setCode($code)
1074    {
1075      $this->code = $code;
1076    }
1077    public function getCode()
1078    {
1079      return $this->code;
1080    }
1081    public function setLocation($location)
1082    {
1083      $this->location = $location;
1084    }
1085    public function getLocation()
1086    {
1087      return $this->location;
1088    }
1089    public function setMessage($message)
1090    {
1091      $this->message = $message;
1092    }
1093    public function getMessage()
1094    {
1095      return $this->message;
1096    }
1097  }
1098  
1099  #[AllowDynamicProperties]
1100  class Google_Service_Autoscaler_OperationList extends Google_Collection
1101  {
1102    protected $collection_key = 'items';
1103    protected $internal_gapi_mappings = array(
1104    );
1105    public $id;
1106    protected $itemsType = 'Google_Service_Autoscaler_Operation';
1107    protected $itemsDataType = 'array';
1108    public $kind;
1109    public $nextPageToken;
1110    public $selfLink;
1111  
1112  
1113    public function setId($id)
1114    {
1115      $this->id = $id;
1116    }
1117    public function getId()
1118    {
1119      return $this->id;
1120    }
1121    public function setItems($items)
1122    {
1123      $this->items = $items;
1124    }
1125    public function getItems()
1126    {
1127      return $this->items;
1128    }
1129    public function setKind($kind)
1130    {
1131      $this->kind = $kind;
1132    }
1133    public function getKind()
1134    {
1135      return $this->kind;
1136    }
1137    public function setNextPageToken($nextPageToken)
1138    {
1139      $this->nextPageToken = $nextPageToken;
1140    }
1141    public function getNextPageToken()
1142    {
1143      return $this->nextPageToken;
1144    }
1145    public function setSelfLink($selfLink)
1146    {
1147      $this->selfLink = $selfLink;
1148    }
1149    public function getSelfLink()
1150    {
1151      return $this->selfLink;
1152    }
1153  }
1154  
1155  #[AllowDynamicProperties]
1156  class Google_Service_Autoscaler_OperationWarnings extends Google_Collection
1157  {
1158    protected $collection_key = 'data';
1159    protected $internal_gapi_mappings = array(
1160    );
1161    public $code;
1162    protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData';
1163    protected $dataDataType = 'array';
1164    public $message;
1165  
1166  
1167    public function setCode($code)
1168    {
1169      $this->code = $code;
1170    }
1171    public function getCode()
1172    {
1173      return $this->code;
1174    }
1175    public function setData($data)
1176    {
1177      $this->data = $data;
1178    }
1179    public function getData()
1180    {
1181      return $this->data;
1182    }
1183    public function setMessage($message)
1184    {
1185      $this->message = $message;
1186    }
1187    public function getMessage()
1188    {
1189      return $this->message;
1190    }
1191  }
1192  
1193  #[AllowDynamicProperties]
1194  class Google_Service_Autoscaler_OperationWarningsData extends Google_Model
1195  {
1196    protected $internal_gapi_mappings = array(
1197    );
1198    public $key;
1199    public $value;
1200  
1201  
1202    public function setKey($key)
1203    {
1204      $this->key = $key;
1205    }
1206    public function getKey()
1207    {
1208      return $this->key;
1209    }
1210    public function setValue($value)
1211    {
1212      $this->value = $value;
1213    }
1214    public function getValue()
1215    {
1216      return $this->value;
1217    }
1218  }
1219  
1220  #[AllowDynamicProperties]
1221  class Google_Service_Autoscaler_Zone extends Google_Collection
1222  {
1223    protected $collection_key = 'maintenanceWindows';
1224    protected $internal_gapi_mappings = array(
1225    );
1226    public $creationTimestamp;
1227    protected $deprecatedType = 'Google_Service_Autoscaler_DeprecationStatus';
1228    protected $deprecatedDataType = '';
1229    public $description;
1230    public $id;
1231    public $kind;
1232    protected $maintenanceWindowsType = 'Google_Service_Autoscaler_ZoneMaintenanceWindows';
1233    protected $maintenanceWindowsDataType = 'array';
1234    public $name;
1235    public $region;
1236    public $selfLink;
1237    public $status;
1238  
1239  
1240    public function setCreationTimestamp($creationTimestamp)
1241    {
1242      $this->creationTimestamp = $creationTimestamp;
1243    }
1244    public function getCreationTimestamp()
1245    {
1246      return $this->creationTimestamp;
1247    }
1248    public function setDeprecated(Google_Service_Autoscaler_DeprecationStatus $deprecated)
1249    {
1250      $this->deprecated = $deprecated;
1251    }
1252    public function getDeprecated()
1253    {
1254      return $this->deprecated;
1255    }
1256    public function setDescription($description)
1257    {
1258      $this->description = $description;
1259    }
1260    public function getDescription()
1261    {
1262      return $this->description;
1263    }
1264    public function setId($id)
1265    {
1266      $this->id = $id;
1267    }
1268    public function getId()
1269    {
1270      return $this->id;
1271    }
1272    public function setKind($kind)
1273    {
1274      $this->kind = $kind;
1275    }
1276    public function getKind()
1277    {
1278      return $this->kind;
1279    }
1280    public function setMaintenanceWindows($maintenanceWindows)
1281    {
1282      $this->maintenanceWindows = $maintenanceWindows;
1283    }
1284    public function getMaintenanceWindows()
1285    {
1286      return $this->maintenanceWindows;
1287    }
1288    public function setName($name)
1289    {
1290      $this->name = $name;
1291    }
1292    public function getName()
1293    {
1294      return $this->name;
1295    }
1296    public function setRegion($region)
1297    {
1298      $this->region = $region;
1299    }
1300    public function getRegion()
1301    {
1302      return $this->region;
1303    }
1304    public function setSelfLink($selfLink)
1305    {
1306      $this->selfLink = $selfLink;
1307    }
1308    public function getSelfLink()
1309    {
1310      return $this->selfLink;
1311    }
1312    public function setStatus($status)
1313    {
1314      $this->status = $status;
1315    }
1316    public function getStatus()
1317    {
1318      return $this->status;
1319    }
1320  }
1321  
1322  #[AllowDynamicProperties]
1323  class Google_Service_Autoscaler_ZoneList extends Google_Collection
1324  {
1325    protected $collection_key = 'items';
1326    protected $internal_gapi_mappings = array(
1327    );
1328    public $id;
1329    protected $itemsType = 'Google_Service_Autoscaler_Zone';
1330    protected $itemsDataType = 'array';
1331    public $kind;
1332    public $nextPageToken;
1333    public $selfLink;
1334  
1335  
1336    public function setId($id)
1337    {
1338      $this->id = $id;
1339    }
1340    public function getId()
1341    {
1342      return $this->id;
1343    }
1344    public function setItems($items)
1345    {
1346      $this->items = $items;
1347    }
1348    public function getItems()
1349    {
1350      return $this->items;
1351    }
1352    public function setKind($kind)
1353    {
1354      $this->kind = $kind;
1355    }
1356    public function getKind()
1357    {
1358      return $this->kind;
1359    }
1360    public function setNextPageToken($nextPageToken)
1361    {
1362      $this->nextPageToken = $nextPageToken;
1363    }
1364    public function getNextPageToken()
1365    {
1366      return $this->nextPageToken;
1367    }
1368    public function setSelfLink($selfLink)
1369    {
1370      $this->selfLink = $selfLink;
1371    }
1372    public function getSelfLink()
1373    {
1374      return $this->selfLink;
1375    }
1376  }
1377  
1378  #[AllowDynamicProperties]
1379  class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model
1380  {
1381    protected $internal_gapi_mappings = array(
1382    );
1383    public $beginTime;
1384    public $description;
1385    public $endTime;
1386    public $name;
1387  
1388  
1389    public function setBeginTime($beginTime)
1390    {
1391      $this->beginTime = $beginTime;
1392    }
1393    public function getBeginTime()
1394    {
1395      return $this->beginTime;
1396    }
1397    public function setDescription($description)
1398    {
1399      $this->description = $description;
1400    }
1401    public function getDescription()
1402    {
1403      return $this->description;
1404    }
1405    public function setEndTime($endTime)
1406    {
1407      $this->endTime = $endTime;
1408    }
1409    public function getEndTime()
1410    {
1411      return $this->endTime;
1412    }
1413    public function setName($name)
1414    {
1415      $this->name = $name;
1416    }
1417    public function getName()
1418    {
1419      return $this->name;
1420    }
1421  }