Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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