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 Storage (v1).
  20   *
  21   * <p>
  22   * Lets you store and retrieve potentially-large, immutable data objects.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  #[AllowDynamicProperties]
  32  class Google_Service_Storage extends Google_Service
  33  {
  34    /** View and manage your data across Google Cloud Platform services. */
  35    const CLOUD_PLATFORM =
  36        "https://www.googleapis.com/auth/cloud-platform";
  37    /** View your data across Google Cloud Platform services. */
  38    const CLOUD_PLATFORM_READ_ONLY =
  39        "https://www.googleapis.com/auth/cloud-platform.read-only";
  40    /** Manage your data and permissions in Google Cloud Storage. */
  41    const DEVSTORAGE_FULL_CONTROL =
  42        "https://www.googleapis.com/auth/devstorage.full_control";
  43    /** View your data in Google Cloud Storage. */
  44    const DEVSTORAGE_READ_ONLY =
  45        "https://www.googleapis.com/auth/devstorage.read_only";
  46    /** Manage your data in Google Cloud Storage. */
  47    const DEVSTORAGE_READ_WRITE =
  48        "https://www.googleapis.com/auth/devstorage.read_write";
  49  
  50    public $bucketAccessControls;
  51    public $buckets;
  52    public $channels;
  53    public $defaultObjectAccessControls;
  54    public $objectAccessControls;
  55    public $objects;
  56    
  57  
  58    /**
  59     * Constructs the internal representation of the Storage 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 = 'storage/v1/';
  68      $this->version = 'v1';
  69      $this->serviceName = 'storage';
  70  
  71      $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
  72          $this,
  73          $this->serviceName,
  74          'bucketAccessControls',
  75          array(
  76            'methods' => array(
  77              'delete' => array(
  78                'path' => 'b/{bucket}/acl/{entity}',
  79                'httpMethod' => 'DELETE',
  80                'parameters' => array(
  81                  'bucket' => array(
  82                    'location' => 'path',
  83                    'type' => 'string',
  84                    'required' => true,
  85                  ),
  86                  'entity' => array(
  87                    'location' => 'path',
  88                    'type' => 'string',
  89                    'required' => true,
  90                  ),
  91                ),
  92              ),'get' => array(
  93                'path' => 'b/{bucket}/acl/{entity}',
  94                'httpMethod' => 'GET',
  95                'parameters' => array(
  96                  'bucket' => array(
  97                    'location' => 'path',
  98                    'type' => 'string',
  99                    'required' => true,
 100                  ),
 101                  'entity' => array(
 102                    'location' => 'path',
 103                    'type' => 'string',
 104                    'required' => true,
 105                  ),
 106                ),
 107              ),'insert' => array(
 108                'path' => 'b/{bucket}/acl',
 109                'httpMethod' => 'POST',
 110                'parameters' => array(
 111                  'bucket' => array(
 112                    'location' => 'path',
 113                    'type' => 'string',
 114                    'required' => true,
 115                  ),
 116                ),
 117              ),'list' => array(
 118                'path' => 'b/{bucket}/acl',
 119                'httpMethod' => 'GET',
 120                'parameters' => array(
 121                  'bucket' => array(
 122                    'location' => 'path',
 123                    'type' => 'string',
 124                    'required' => true,
 125                  ),
 126                ),
 127              ),'patch' => array(
 128                'path' => 'b/{bucket}/acl/{entity}',
 129                'httpMethod' => 'PATCH',
 130                'parameters' => array(
 131                  'bucket' => array(
 132                    'location' => 'path',
 133                    'type' => 'string',
 134                    'required' => true,
 135                  ),
 136                  'entity' => array(
 137                    'location' => 'path',
 138                    'type' => 'string',
 139                    'required' => true,
 140                  ),
 141                ),
 142              ),'update' => array(
 143                'path' => 'b/{bucket}/acl/{entity}',
 144                'httpMethod' => 'PUT',
 145                'parameters' => array(
 146                  'bucket' => array(
 147                    'location' => 'path',
 148                    'type' => 'string',
 149                    'required' => true,
 150                  ),
 151                  'entity' => array(
 152                    'location' => 'path',
 153                    'type' => 'string',
 154                    'required' => true,
 155                  ),
 156                ),
 157              ),
 158            )
 159          )
 160      );
 161      $this->buckets = new Google_Service_Storage_Buckets_Resource(
 162          $this,
 163          $this->serviceName,
 164          'buckets',
 165          array(
 166            'methods' => array(
 167              'delete' => array(
 168                'path' => 'b/{bucket}',
 169                'httpMethod' => 'DELETE',
 170                'parameters' => array(
 171                  'bucket' => array(
 172                    'location' => 'path',
 173                    'type' => 'string',
 174                    'required' => true,
 175                  ),
 176                  'ifMetagenerationMatch' => array(
 177                    'location' => 'query',
 178                    'type' => 'string',
 179                  ),
 180                  'ifMetagenerationNotMatch' => array(
 181                    'location' => 'query',
 182                    'type' => 'string',
 183                  ),
 184                ),
 185              ),'get' => array(
 186                'path' => 'b/{bucket}',
 187                'httpMethod' => 'GET',
 188                'parameters' => array(
 189                  'bucket' => array(
 190                    'location' => 'path',
 191                    'type' => 'string',
 192                    'required' => true,
 193                  ),
 194                  'ifMetagenerationMatch' => array(
 195                    'location' => 'query',
 196                    'type' => 'string',
 197                  ),
 198                  'ifMetagenerationNotMatch' => array(
 199                    'location' => 'query',
 200                    'type' => 'string',
 201                  ),
 202                  'projection' => array(
 203                    'location' => 'query',
 204                    'type' => 'string',
 205                  ),
 206                ),
 207              ),'insert' => array(
 208                'path' => 'b',
 209                'httpMethod' => 'POST',
 210                'parameters' => array(
 211                  'project' => array(
 212                    'location' => 'query',
 213                    'type' => 'string',
 214                    'required' => true,
 215                  ),
 216                  'predefinedAcl' => array(
 217                    'location' => 'query',
 218                    'type' => 'string',
 219                  ),
 220                  'projection' => array(
 221                    'location' => 'query',
 222                    'type' => 'string',
 223                  ),
 224                  'predefinedDefaultObjectAcl' => array(
 225                    'location' => 'query',
 226                    'type' => 'string',
 227                  ),
 228                ),
 229              ),'list' => array(
 230                'path' => 'b',
 231                'httpMethod' => 'GET',
 232                'parameters' => array(
 233                  'project' => array(
 234                    'location' => 'query',
 235                    'type' => 'string',
 236                    'required' => true,
 237                  ),
 238                  'pageToken' => array(
 239                    'location' => 'query',
 240                    'type' => 'string',
 241                  ),
 242                  'prefix' => array(
 243                    'location' => 'query',
 244                    'type' => 'string',
 245                  ),
 246                  'projection' => array(
 247                    'location' => 'query',
 248                    'type' => 'string',
 249                  ),
 250                  'maxResults' => array(
 251                    'location' => 'query',
 252                    'type' => 'integer',
 253                  ),
 254                ),
 255              ),'patch' => array(
 256                'path' => 'b/{bucket}',
 257                'httpMethod' => 'PATCH',
 258                'parameters' => array(
 259                  'bucket' => array(
 260                    'location' => 'path',
 261                    'type' => 'string',
 262                    'required' => true,
 263                  ),
 264                  'projection' => array(
 265                    'location' => 'query',
 266                    'type' => 'string',
 267                  ),
 268                  'ifMetagenerationMatch' => array(
 269                    'location' => 'query',
 270                    'type' => 'string',
 271                  ),
 272                  'predefinedDefaultObjectAcl' => array(
 273                    'location' => 'query',
 274                    'type' => 'string',
 275                  ),
 276                  'predefinedAcl' => array(
 277                    'location' => 'query',
 278                    'type' => 'string',
 279                  ),
 280                  'ifMetagenerationNotMatch' => array(
 281                    'location' => 'query',
 282                    'type' => 'string',
 283                  ),
 284                ),
 285              ),'update' => array(
 286                'path' => 'b/{bucket}',
 287                'httpMethod' => 'PUT',
 288                'parameters' => array(
 289                  'bucket' => array(
 290                    'location' => 'path',
 291                    'type' => 'string',
 292                    'required' => true,
 293                  ),
 294                  'projection' => array(
 295                    'location' => 'query',
 296                    'type' => 'string',
 297                  ),
 298                  'ifMetagenerationMatch' => array(
 299                    'location' => 'query',
 300                    'type' => 'string',
 301                  ),
 302                  'predefinedDefaultObjectAcl' => array(
 303                    'location' => 'query',
 304                    'type' => 'string',
 305                  ),
 306                  'predefinedAcl' => array(
 307                    'location' => 'query',
 308                    'type' => 'string',
 309                  ),
 310                  'ifMetagenerationNotMatch' => array(
 311                    'location' => 'query',
 312                    'type' => 'string',
 313                  ),
 314                ),
 315              ),
 316            )
 317          )
 318      );
 319      $this->channels = new Google_Service_Storage_Channels_Resource(
 320          $this,
 321          $this->serviceName,
 322          'channels',
 323          array(
 324            'methods' => array(
 325              'stop' => array(
 326                'path' => 'channels/stop',
 327                'httpMethod' => 'POST',
 328                'parameters' => array(),
 329              ),
 330            )
 331          )
 332      );
 333      $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
 334          $this,
 335          $this->serviceName,
 336          'defaultObjectAccessControls',
 337          array(
 338            'methods' => array(
 339              'delete' => array(
 340                'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
 341                'httpMethod' => 'DELETE',
 342                'parameters' => array(
 343                  'bucket' => array(
 344                    'location' => 'path',
 345                    'type' => 'string',
 346                    'required' => true,
 347                  ),
 348                  'entity' => array(
 349                    'location' => 'path',
 350                    'type' => 'string',
 351                    'required' => true,
 352                  ),
 353                ),
 354              ),'get' => array(
 355                'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
 356                'httpMethod' => 'GET',
 357                'parameters' => array(
 358                  'bucket' => array(
 359                    'location' => 'path',
 360                    'type' => 'string',
 361                    'required' => true,
 362                  ),
 363                  'entity' => array(
 364                    'location' => 'path',
 365                    'type' => 'string',
 366                    'required' => true,
 367                  ),
 368                ),
 369              ),'insert' => array(
 370                'path' => 'b/{bucket}/defaultObjectAcl',
 371                'httpMethod' => 'POST',
 372                'parameters' => array(
 373                  'bucket' => array(
 374                    'location' => 'path',
 375                    'type' => 'string',
 376                    'required' => true,
 377                  ),
 378                ),
 379              ),'list' => array(
 380                'path' => 'b/{bucket}/defaultObjectAcl',
 381                'httpMethod' => 'GET',
 382                'parameters' => array(
 383                  'bucket' => array(
 384                    'location' => 'path',
 385                    'type' => 'string',
 386                    'required' => true,
 387                  ),
 388                  'ifMetagenerationMatch' => array(
 389                    'location' => 'query',
 390                    'type' => 'string',
 391                  ),
 392                  'ifMetagenerationNotMatch' => array(
 393                    'location' => 'query',
 394                    'type' => 'string',
 395                  ),
 396                ),
 397              ),'patch' => array(
 398                'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
 399                'httpMethod' => 'PATCH',
 400                'parameters' => array(
 401                  'bucket' => array(
 402                    'location' => 'path',
 403                    'type' => 'string',
 404                    'required' => true,
 405                  ),
 406                  'entity' => array(
 407                    'location' => 'path',
 408                    'type' => 'string',
 409                    'required' => true,
 410                  ),
 411                ),
 412              ),'update' => array(
 413                'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
 414                'httpMethod' => 'PUT',
 415                'parameters' => array(
 416                  'bucket' => array(
 417                    'location' => 'path',
 418                    'type' => 'string',
 419                    'required' => true,
 420                  ),
 421                  'entity' => array(
 422                    'location' => 'path',
 423                    'type' => 'string',
 424                    'required' => true,
 425                  ),
 426                ),
 427              ),
 428            )
 429          )
 430      );
 431      $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
 432          $this,
 433          $this->serviceName,
 434          'objectAccessControls',
 435          array(
 436            'methods' => array(
 437              'delete' => array(
 438                'path' => 'b/{bucket}/o/{object}/acl/{entity}',
 439                'httpMethod' => 'DELETE',
 440                'parameters' => array(
 441                  'bucket' => array(
 442                    'location' => 'path',
 443                    'type' => 'string',
 444                    'required' => true,
 445                  ),
 446                  'object' => array(
 447                    'location' => 'path',
 448                    'type' => 'string',
 449                    'required' => true,
 450                  ),
 451                  'entity' => array(
 452                    'location' => 'path',
 453                    'type' => 'string',
 454                    'required' => true,
 455                  ),
 456                  'generation' => array(
 457                    'location' => 'query',
 458                    'type' => 'string',
 459                  ),
 460                ),
 461              ),'get' => array(
 462                'path' => 'b/{bucket}/o/{object}/acl/{entity}',
 463                'httpMethod' => 'GET',
 464                'parameters' => array(
 465                  'bucket' => array(
 466                    'location' => 'path',
 467                    'type' => 'string',
 468                    'required' => true,
 469                  ),
 470                  'object' => array(
 471                    'location' => 'path',
 472                    'type' => 'string',
 473                    'required' => true,
 474                  ),
 475                  'entity' => array(
 476                    'location' => 'path',
 477                    'type' => 'string',
 478                    'required' => true,
 479                  ),
 480                  'generation' => array(
 481                    'location' => 'query',
 482                    'type' => 'string',
 483                  ),
 484                ),
 485              ),'insert' => array(
 486                'path' => 'b/{bucket}/o/{object}/acl',
 487                'httpMethod' => 'POST',
 488                'parameters' => array(
 489                  'bucket' => array(
 490                    'location' => 'path',
 491                    'type' => 'string',
 492                    'required' => true,
 493                  ),
 494                  'object' => array(
 495                    'location' => 'path',
 496                    'type' => 'string',
 497                    'required' => true,
 498                  ),
 499                  'generation' => array(
 500                    'location' => 'query',
 501                    'type' => 'string',
 502                  ),
 503                ),
 504              ),'list' => array(
 505                'path' => 'b/{bucket}/o/{object}/acl',
 506                'httpMethod' => 'GET',
 507                'parameters' => array(
 508                  'bucket' => array(
 509                    'location' => 'path',
 510                    'type' => 'string',
 511                    'required' => true,
 512                  ),
 513                  'object' => array(
 514                    'location' => 'path',
 515                    'type' => 'string',
 516                    'required' => true,
 517                  ),
 518                  'generation' => array(
 519                    'location' => 'query',
 520                    'type' => 'string',
 521                  ),
 522                ),
 523              ),'patch' => array(
 524                'path' => 'b/{bucket}/o/{object}/acl/{entity}',
 525                'httpMethod' => 'PATCH',
 526                'parameters' => array(
 527                  'bucket' => array(
 528                    'location' => 'path',
 529                    'type' => 'string',
 530                    'required' => true,
 531                  ),
 532                  'object' => array(
 533                    'location' => 'path',
 534                    'type' => 'string',
 535                    'required' => true,
 536                  ),
 537                  'entity' => array(
 538                    'location' => 'path',
 539                    'type' => 'string',
 540                    'required' => true,
 541                  ),
 542                  'generation' => array(
 543                    'location' => 'query',
 544                    'type' => 'string',
 545                  ),
 546                ),
 547              ),'update' => array(
 548                'path' => 'b/{bucket}/o/{object}/acl/{entity}',
 549                'httpMethod' => 'PUT',
 550                'parameters' => array(
 551                  'bucket' => array(
 552                    'location' => 'path',
 553                    'type' => 'string',
 554                    'required' => true,
 555                  ),
 556                  'object' => array(
 557                    'location' => 'path',
 558                    'type' => 'string',
 559                    'required' => true,
 560                  ),
 561                  'entity' => array(
 562                    'location' => 'path',
 563                    'type' => 'string',
 564                    'required' => true,
 565                  ),
 566                  'generation' => array(
 567                    'location' => 'query',
 568                    'type' => 'string',
 569                  ),
 570                ),
 571              ),
 572            )
 573          )
 574      );
 575      $this->objects = new Google_Service_Storage_Objects_Resource(
 576          $this,
 577          $this->serviceName,
 578          'objects',
 579          array(
 580            'methods' => array(
 581              'compose' => array(
 582                'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
 583                'httpMethod' => 'POST',
 584                'parameters' => array(
 585                  'destinationBucket' => array(
 586                    'location' => 'path',
 587                    'type' => 'string',
 588                    'required' => true,
 589                  ),
 590                  'destinationObject' => array(
 591                    'location' => 'path',
 592                    'type' => 'string',
 593                    'required' => true,
 594                  ),
 595                  'ifGenerationMatch' => array(
 596                    'location' => 'query',
 597                    'type' => 'string',
 598                  ),
 599                  'ifMetagenerationMatch' => array(
 600                    'location' => 'query',
 601                    'type' => 'string',
 602                  ),
 603                  'destinationPredefinedAcl' => array(
 604                    'location' => 'query',
 605                    'type' => 'string',
 606                  ),
 607                ),
 608              ),'copy' => array(
 609                'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
 610                'httpMethod' => 'POST',
 611                'parameters' => array(
 612                  'sourceBucket' => array(
 613                    'location' => 'path',
 614                    'type' => 'string',
 615                    'required' => true,
 616                  ),
 617                  'sourceObject' => array(
 618                    'location' => 'path',
 619                    'type' => 'string',
 620                    'required' => true,
 621                  ),
 622                  'destinationBucket' => array(
 623                    'location' => 'path',
 624                    'type' => 'string',
 625                    'required' => true,
 626                  ),
 627                  'destinationObject' => array(
 628                    'location' => 'path',
 629                    'type' => 'string',
 630                    'required' => true,
 631                  ),
 632                  'ifSourceGenerationNotMatch' => array(
 633                    'location' => 'query',
 634                    'type' => 'string',
 635                  ),
 636                  'ifGenerationNotMatch' => array(
 637                    'location' => 'query',
 638                    'type' => 'string',
 639                  ),
 640                  'ifSourceMetagenerationNotMatch' => array(
 641                    'location' => 'query',
 642                    'type' => 'string',
 643                  ),
 644                  'ifMetagenerationMatch' => array(
 645                    'location' => 'query',
 646                    'type' => 'string',
 647                  ),
 648                  'sourceGeneration' => array(
 649                    'location' => 'query',
 650                    'type' => 'string',
 651                  ),
 652                  'destinationPredefinedAcl' => array(
 653                    'location' => 'query',
 654                    'type' => 'string',
 655                  ),
 656                  'ifSourceGenerationMatch' => array(
 657                    'location' => 'query',
 658                    'type' => 'string',
 659                  ),
 660                  'ifSourceMetagenerationMatch' => array(
 661                    'location' => 'query',
 662                    'type' => 'string',
 663                  ),
 664                  'ifGenerationMatch' => array(
 665                    'location' => 'query',
 666                    'type' => 'string',
 667                  ),
 668                  'ifMetagenerationNotMatch' => array(
 669                    'location' => 'query',
 670                    'type' => 'string',
 671                  ),
 672                  'projection' => array(
 673                    'location' => 'query',
 674                    'type' => 'string',
 675                  ),
 676                ),
 677              ),'delete' => array(
 678                'path' => 'b/{bucket}/o/{object}',
 679                'httpMethod' => 'DELETE',
 680                'parameters' => array(
 681                  'bucket' => array(
 682                    'location' => 'path',
 683                    'type' => 'string',
 684                    'required' => true,
 685                  ),
 686                  'object' => array(
 687                    'location' => 'path',
 688                    'type' => 'string',
 689                    'required' => true,
 690                  ),
 691                  'ifGenerationNotMatch' => array(
 692                    'location' => 'query',
 693                    'type' => 'string',
 694                  ),
 695                  'generation' => array(
 696                    'location' => 'query',
 697                    'type' => 'string',
 698                  ),
 699                  'ifMetagenerationMatch' => array(
 700                    'location' => 'query',
 701                    'type' => 'string',
 702                  ),
 703                  'ifGenerationMatch' => array(
 704                    'location' => 'query',
 705                    'type' => 'string',
 706                  ),
 707                  'ifMetagenerationNotMatch' => array(
 708                    'location' => 'query',
 709                    'type' => 'string',
 710                  ),
 711                ),
 712              ),'get' => array(
 713                'path' => 'b/{bucket}/o/{object}',
 714                'httpMethod' => 'GET',
 715                'parameters' => array(
 716                  'bucket' => array(
 717                    'location' => 'path',
 718                    'type' => 'string',
 719                    'required' => true,
 720                  ),
 721                  'object' => array(
 722                    'location' => 'path',
 723                    'type' => 'string',
 724                    'required' => true,
 725                  ),
 726                  'ifGenerationNotMatch' => array(
 727                    'location' => 'query',
 728                    'type' => 'string',
 729                  ),
 730                  'generation' => array(
 731                    'location' => 'query',
 732                    'type' => 'string',
 733                  ),
 734                  'ifMetagenerationMatch' => array(
 735                    'location' => 'query',
 736                    'type' => 'string',
 737                  ),
 738                  'ifGenerationMatch' => array(
 739                    'location' => 'query',
 740                    'type' => 'string',
 741                  ),
 742                  'ifMetagenerationNotMatch' => array(
 743                    'location' => 'query',
 744                    'type' => 'string',
 745                  ),
 746                  'projection' => array(
 747                    'location' => 'query',
 748                    'type' => 'string',
 749                  ),
 750                ),
 751              ),'insert' => array(
 752                'path' => 'b/{bucket}/o',
 753                'httpMethod' => 'POST',
 754                'parameters' => array(
 755                  'bucket' => array(
 756                    'location' => 'path',
 757                    'type' => 'string',
 758                    'required' => true,
 759                  ),
 760                  'predefinedAcl' => array(
 761                    'location' => 'query',
 762                    'type' => 'string',
 763                  ),
 764                  'projection' => array(
 765                    'location' => 'query',
 766                    'type' => 'string',
 767                  ),
 768                  'ifGenerationNotMatch' => array(
 769                    'location' => 'query',
 770                    'type' => 'string',
 771                  ),
 772                  'ifMetagenerationMatch' => array(
 773                    'location' => 'query',
 774                    'type' => 'string',
 775                  ),
 776                  'contentEncoding' => array(
 777                    'location' => 'query',
 778                    'type' => 'string',
 779                  ),
 780                  'ifGenerationMatch' => array(
 781                    'location' => 'query',
 782                    'type' => 'string',
 783                  ),
 784                  'ifMetagenerationNotMatch' => array(
 785                    'location' => 'query',
 786                    'type' => 'string',
 787                  ),
 788                  'name' => array(
 789                    'location' => 'query',
 790                    'type' => 'string',
 791                  ),
 792                ),
 793              ),'list' => array(
 794                'path' => 'b/{bucket}/o',
 795                'httpMethod' => 'GET',
 796                'parameters' => array(
 797                  'bucket' => array(
 798                    'location' => 'path',
 799                    'type' => 'string',
 800                    'required' => true,
 801                  ),
 802                  'projection' => array(
 803                    'location' => 'query',
 804                    'type' => 'string',
 805                  ),
 806                  'versions' => array(
 807                    'location' => 'query',
 808                    'type' => 'boolean',
 809                  ),
 810                  'prefix' => array(
 811                    'location' => 'query',
 812                    'type' => 'string',
 813                  ),
 814                  'maxResults' => array(
 815                    'location' => 'query',
 816                    'type' => 'integer',
 817                  ),
 818                  'pageToken' => array(
 819                    'location' => 'query',
 820                    'type' => 'string',
 821                  ),
 822                  'delimiter' => array(
 823                    'location' => 'query',
 824                    'type' => 'string',
 825                  ),
 826                ),
 827              ),'patch' => array(
 828                'path' => 'b/{bucket}/o/{object}',
 829                'httpMethod' => 'PATCH',
 830                'parameters' => array(
 831                  'bucket' => array(
 832                    'location' => 'path',
 833                    'type' => 'string',
 834                    'required' => true,
 835                  ),
 836                  'object' => array(
 837                    'location' => 'path',
 838                    'type' => 'string',
 839                    'required' => true,
 840                  ),
 841                  'predefinedAcl' => array(
 842                    'location' => 'query',
 843                    'type' => 'string',
 844                  ),
 845                  'ifGenerationNotMatch' => array(
 846                    'location' => 'query',
 847                    'type' => 'string',
 848                  ),
 849                  'generation' => array(
 850                    'location' => 'query',
 851                    'type' => 'string',
 852                  ),
 853                  'ifMetagenerationMatch' => array(
 854                    'location' => 'query',
 855                    'type' => 'string',
 856                  ),
 857                  'ifGenerationMatch' => array(
 858                    'location' => 'query',
 859                    'type' => 'string',
 860                  ),
 861                  'ifMetagenerationNotMatch' => array(
 862                    'location' => 'query',
 863                    'type' => 'string',
 864                  ),
 865                  'projection' => array(
 866                    'location' => 'query',
 867                    'type' => 'string',
 868                  ),
 869                ),
 870              ),'rewrite' => array(
 871                'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}',
 872                'httpMethod' => 'POST',
 873                'parameters' => array(
 874                  'sourceBucket' => array(
 875                    'location' => 'path',
 876                    'type' => 'string',
 877                    'required' => true,
 878                  ),
 879                  'sourceObject' => array(
 880                    'location' => 'path',
 881                    'type' => 'string',
 882                    'required' => true,
 883                  ),
 884                  'destinationBucket' => array(
 885                    'location' => 'path',
 886                    'type' => 'string',
 887                    'required' => true,
 888                  ),
 889                  'destinationObject' => array(
 890                    'location' => 'path',
 891                    'type' => 'string',
 892                    'required' => true,
 893                  ),
 894                  'ifSourceGenerationNotMatch' => array(
 895                    'location' => 'query',
 896                    'type' => 'string',
 897                  ),
 898                  'ifGenerationNotMatch' => array(
 899                    'location' => 'query',
 900                    'type' => 'string',
 901                  ),
 902                  'rewriteToken' => array(
 903                    'location' => 'query',
 904                    'type' => 'string',
 905                  ),
 906                  'ifSourceMetagenerationNotMatch' => array(
 907                    'location' => 'query',
 908                    'type' => 'string',
 909                  ),
 910                  'ifMetagenerationMatch' => array(
 911                    'location' => 'query',
 912                    'type' => 'string',
 913                  ),
 914                  'sourceGeneration' => array(
 915                    'location' => 'query',
 916                    'type' => 'string',
 917                  ),
 918                  'destinationPredefinedAcl' => array(
 919                    'location' => 'query',
 920                    'type' => 'string',
 921                  ),
 922                  'ifSourceGenerationMatch' => array(
 923                    'location' => 'query',
 924                    'type' => 'string',
 925                  ),
 926                  'maxBytesRewrittenPerCall' => array(
 927                    'location' => 'query',
 928                    'type' => 'string',
 929                  ),
 930                  'ifSourceMetagenerationMatch' => array(
 931                    'location' => 'query',
 932                    'type' => 'string',
 933                  ),
 934                  'ifGenerationMatch' => array(
 935                    'location' => 'query',
 936                    'type' => 'string',
 937                  ),
 938                  'ifMetagenerationNotMatch' => array(
 939                    'location' => 'query',
 940                    'type' => 'string',
 941                  ),
 942                  'projection' => array(
 943                    'location' => 'query',
 944                    'type' => 'string',
 945                  ),
 946                ),
 947              ),'update' => array(
 948                'path' => 'b/{bucket}/o/{object}',
 949                'httpMethod' => 'PUT',
 950                'parameters' => array(
 951                  'bucket' => array(
 952                    'location' => 'path',
 953                    'type' => 'string',
 954                    'required' => true,
 955                  ),
 956                  'object' => array(
 957                    'location' => 'path',
 958                    'type' => 'string',
 959                    'required' => true,
 960                  ),
 961                  'predefinedAcl' => array(
 962                    'location' => 'query',
 963                    'type' => 'string',
 964                  ),
 965                  'ifGenerationNotMatch' => array(
 966                    'location' => 'query',
 967                    'type' => 'string',
 968                  ),
 969                  'generation' => array(
 970                    'location' => 'query',
 971                    'type' => 'string',
 972                  ),
 973                  'ifMetagenerationMatch' => array(
 974                    'location' => 'query',
 975                    'type' => 'string',
 976                  ),
 977                  'ifGenerationMatch' => array(
 978                    'location' => 'query',
 979                    'type' => 'string',
 980                  ),
 981                  'ifMetagenerationNotMatch' => array(
 982                    'location' => 'query',
 983                    'type' => 'string',
 984                  ),
 985                  'projection' => array(
 986                    'location' => 'query',
 987                    'type' => 'string',
 988                  ),
 989                ),
 990              ),'watchAll' => array(
 991                'path' => 'b/{bucket}/o/watch',
 992                'httpMethod' => 'POST',
 993                'parameters' => array(
 994                  'bucket' => array(
 995                    'location' => 'path',
 996                    'type' => 'string',
 997                    'required' => true,
 998                  ),
 999                  'projection' => array(
1000                    'location' => 'query',
1001                    'type' => 'string',
1002                  ),
1003                  'versions' => array(
1004                    'location' => 'query',
1005                    'type' => 'boolean',
1006                  ),
1007                  'prefix' => array(
1008                    'location' => 'query',
1009                    'type' => 'string',
1010                  ),
1011                  'maxResults' => array(
1012                    'location' => 'query',
1013                    'type' => 'integer',
1014                  ),
1015                  'pageToken' => array(
1016                    'location' => 'query',
1017                    'type' => 'string',
1018                  ),
1019                  'delimiter' => array(
1020                    'location' => 'query',
1021                    'type' => 'string',
1022                  ),
1023                ),
1024              ),
1025            )
1026          )
1027      );
1028    }
1029  }
1030  
1031  
1032  /**
1033   * The "bucketAccessControls" collection of methods.
1034   * Typical usage is:
1035   *  <code>
1036   *   $storageService = new Google_Service_Storage(...);
1037   *   $bucketAccessControls = $storageService->bucketAccessControls;
1038   *  </code>
1039   */
1040  #[AllowDynamicProperties]
1041  class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource
1042  {
1043  
1044    /**
1045     * Permanently deletes the ACL entry for the specified entity on the specified
1046     * bucket. (bucketAccessControls.delete)
1047     *
1048     * @param string $bucket Name of a bucket.
1049     * @param string $entity The entity holding the permission. Can be user-userId,
1050     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1051     * allAuthenticatedUsers.
1052     * @param array $optParams Optional parameters.
1053     */
1054    public function delete($bucket, $entity, $optParams = array())
1055    {
1056      $params = array('bucket' => $bucket, 'entity' => $entity);
1057      $params = array_merge($params, $optParams);
1058      return $this->call('delete', array($params));
1059    }
1060  
1061    /**
1062     * Returns the ACL entry for the specified entity on the specified bucket.
1063     * (bucketAccessControls.get)
1064     *
1065     * @param string $bucket Name of a bucket.
1066     * @param string $entity The entity holding the permission. Can be user-userId,
1067     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1068     * allAuthenticatedUsers.
1069     * @param array $optParams Optional parameters.
1070     * @return Google_Service_Storage_BucketAccessControl
1071     */
1072    public function get($bucket, $entity, $optParams = array())
1073    {
1074      $params = array('bucket' => $bucket, 'entity' => $entity);
1075      $params = array_merge($params, $optParams);
1076      return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl");
1077    }
1078  
1079    /**
1080     * Creates a new ACL entry on the specified bucket.
1081     * (bucketAccessControls.insert)
1082     *
1083     * @param string $bucket Name of a bucket.
1084     * @param Google_BucketAccessControl $postBody
1085     * @param array $optParams Optional parameters.
1086     * @return Google_Service_Storage_BucketAccessControl
1087     */
1088    public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
1089    {
1090      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1091      $params = array_merge($params, $optParams);
1092      return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl");
1093    }
1094  
1095    /**
1096     * Retrieves ACL entries on the specified bucket.
1097     * (bucketAccessControls.listBucketAccessControls)
1098     *
1099     * @param string $bucket Name of a bucket.
1100     * @param array $optParams Optional parameters.
1101     * @return Google_Service_Storage_BucketAccessControls
1102     */
1103    public function listBucketAccessControls($bucket, $optParams = array())
1104    {
1105      $params = array('bucket' => $bucket);
1106      $params = array_merge($params, $optParams);
1107      return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls");
1108    }
1109  
1110    /**
1111     * Updates an ACL entry on the specified bucket. This method supports patch
1112     * semantics. (bucketAccessControls.patch)
1113     *
1114     * @param string $bucket Name of a bucket.
1115     * @param string $entity The entity holding the permission. Can be user-userId,
1116     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1117     * allAuthenticatedUsers.
1118     * @param Google_BucketAccessControl $postBody
1119     * @param array $optParams Optional parameters.
1120     * @return Google_Service_Storage_BucketAccessControl
1121     */
1122    public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
1123    {
1124      $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1125      $params = array_merge($params, $optParams);
1126      return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl");
1127    }
1128  
1129    /**
1130     * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
1131     *
1132     * @param string $bucket Name of a bucket.
1133     * @param string $entity The entity holding the permission. Can be user-userId,
1134     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1135     * allAuthenticatedUsers.
1136     * @param Google_BucketAccessControl $postBody
1137     * @param array $optParams Optional parameters.
1138     * @return Google_Service_Storage_BucketAccessControl
1139     */
1140    public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
1141    {
1142      $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1143      $params = array_merge($params, $optParams);
1144      return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");
1145    }
1146  }
1147  
1148  /**
1149   * The "buckets" collection of methods.
1150   * Typical usage is:
1151   *  <code>
1152   *   $storageService = new Google_Service_Storage(...);
1153   *   $buckets = $storageService->buckets;
1154   *  </code>
1155   */
1156  #[AllowDynamicProperties]
1157  class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource
1158  {
1159  
1160    /**
1161     * Permanently deletes an empty bucket. (buckets.delete)
1162     *
1163     * @param string $bucket Name of a bucket.
1164     * @param array $optParams Optional parameters.
1165     *
1166     * @opt_param string ifMetagenerationMatch If set, only deletes the bucket if
1167     * its metageneration matches this value.
1168     * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if
1169     * its metageneration does not match this value.
1170     */
1171    public function delete($bucket, $optParams = array())
1172    {
1173      $params = array('bucket' => $bucket);
1174      $params = array_merge($params, $optParams);
1175      return $this->call('delete', array($params));
1176    }
1177  
1178    /**
1179     * Returns metadata for the specified bucket. (buckets.get)
1180     *
1181     * @param string $bucket Name of a bucket.
1182     * @param array $optParams Optional parameters.
1183     *
1184     * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1185     * metadata conditional on whether the bucket's current metageneration matches
1186     * the given value.
1187     * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1188     * metadata conditional on whether the bucket's current metageneration does not
1189     * match the given value.
1190     * @opt_param string projection Set of properties to return. Defaults to noAcl.
1191     * @return Google_Service_Storage_Bucket
1192     */
1193    public function get($bucket, $optParams = array())
1194    {
1195      $params = array('bucket' => $bucket);
1196      $params = array_merge($params, $optParams);
1197      return $this->call('get', array($params), "Google_Service_Storage_Bucket");
1198    }
1199  
1200    /**
1201     * Creates a new bucket. (buckets.insert)
1202     *
1203     * @param string $project A valid API project identifier.
1204     * @param Google_Bucket $postBody
1205     * @param array $optParams Optional parameters.
1206     *
1207     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1208     * this bucket.
1209     * @opt_param string projection Set of properties to return. Defaults to noAcl,
1210     * unless the bucket resource specifies acl or defaultObjectAcl properties, when
1211     * it defaults to full.
1212     * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1213     * default object access controls to this bucket.
1214     * @return Google_Service_Storage_Bucket
1215     */
1216    public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
1217    {
1218      $params = array('project' => $project, 'postBody' => $postBody);
1219      $params = array_merge($params, $optParams);
1220      return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
1221    }
1222  
1223    /**
1224     * Retrieves a list of buckets for a given project. (buckets.listBuckets)
1225     *
1226     * @param string $project A valid API project identifier.
1227     * @param array $optParams Optional parameters.
1228     *
1229     * @opt_param string pageToken A previously-returned page token representing
1230     * part of the larger set of results to view.
1231     * @opt_param string prefix Filter results to buckets whose names begin with
1232     * this prefix.
1233     * @opt_param string projection Set of properties to return. Defaults to noAcl.
1234     * @opt_param string maxResults Maximum number of buckets to return.
1235     * @return Google_Service_Storage_Buckets
1236     */
1237    public function listBuckets($project, $optParams = array())
1238    {
1239      $params = array('project' => $project);
1240      $params = array_merge($params, $optParams);
1241      return $this->call('list', array($params), "Google_Service_Storage_Buckets");
1242    }
1243  
1244    /**
1245     * Updates a bucket. This method supports patch semantics. (buckets.patch)
1246     *
1247     * @param string $bucket Name of a bucket.
1248     * @param Google_Bucket $postBody
1249     * @param array $optParams Optional parameters.
1250     *
1251     * @opt_param string projection Set of properties to return. Defaults to full.
1252     * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1253     * metadata conditional on whether the bucket's current metageneration matches
1254     * the given value.
1255     * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1256     * default object access controls to this bucket.
1257     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1258     * this bucket.
1259     * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1260     * metadata conditional on whether the bucket's current metageneration does not
1261     * match the given value.
1262     * @return Google_Service_Storage_Bucket
1263     */
1264    public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1265    {
1266      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1267      $params = array_merge($params, $optParams);
1268      return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
1269    }
1270  
1271    /**
1272     * Updates a bucket. (buckets.update)
1273     *
1274     * @param string $bucket Name of a bucket.
1275     * @param Google_Bucket $postBody
1276     * @param array $optParams Optional parameters.
1277     *
1278     * @opt_param string projection Set of properties to return. Defaults to full.
1279     * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1280     * metadata conditional on whether the bucket's current metageneration matches
1281     * the given value.
1282     * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1283     * default object access controls to this bucket.
1284     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1285     * this bucket.
1286     * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1287     * metadata conditional on whether the bucket's current metageneration does not
1288     * match the given value.
1289     * @return Google_Service_Storage_Bucket
1290     */
1291    public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1292    {
1293      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1294      $params = array_merge($params, $optParams);
1295      return $this->call('update', array($params), "Google_Service_Storage_Bucket");
1296    }
1297  }
1298  
1299  /**
1300   * The "channels" collection of methods.
1301   * Typical usage is:
1302   *  <code>
1303   *   $storageService = new Google_Service_Storage(...);
1304   *   $channels = $storageService->channels;
1305   *  </code>
1306   */
1307  #[AllowDynamicProperties]
1308  class Google_Service_Storage_Channels_Resource extends Google_Service_Resource
1309  {
1310  
1311    /**
1312     * Stop watching resources through this channel (channels.stop)
1313     *
1314     * @param Google_Channel $postBody
1315     * @param array $optParams Optional parameters.
1316     */
1317    public function stop(Google_Service_Storage_Channel $postBody, $optParams = array())
1318    {
1319      $params = array('postBody' => $postBody);
1320      $params = array_merge($params, $optParams);
1321      return $this->call('stop', array($params));
1322    }
1323  }
1324  
1325  /**
1326   * The "defaultObjectAccessControls" collection of methods.
1327   * Typical usage is:
1328   *  <code>
1329   *   $storageService = new Google_Service_Storage(...);
1330   *   $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
1331   *  </code>
1332   */
1333  #[AllowDynamicProperties]
1334  class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource
1335  {
1336  
1337    /**
1338     * Permanently deletes the default object ACL entry for the specified entity on
1339     * the specified bucket. (defaultObjectAccessControls.delete)
1340     *
1341     * @param string $bucket Name of a bucket.
1342     * @param string $entity The entity holding the permission. Can be user-userId,
1343     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1344     * allAuthenticatedUsers.
1345     * @param array $optParams Optional parameters.
1346     */
1347    public function delete($bucket, $entity, $optParams = array())
1348    {
1349      $params = array('bucket' => $bucket, 'entity' => $entity);
1350      $params = array_merge($params, $optParams);
1351      return $this->call('delete', array($params));
1352    }
1353  
1354    /**
1355     * Returns the default object ACL entry for the specified entity on the
1356     * specified bucket. (defaultObjectAccessControls.get)
1357     *
1358     * @param string $bucket Name of a bucket.
1359     * @param string $entity The entity holding the permission. Can be user-userId,
1360     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1361     * allAuthenticatedUsers.
1362     * @param array $optParams Optional parameters.
1363     * @return Google_Service_Storage_ObjectAccessControl
1364     */
1365    public function get($bucket, $entity, $optParams = array())
1366    {
1367      $params = array('bucket' => $bucket, 'entity' => $entity);
1368      $params = array_merge($params, $optParams);
1369      return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
1370    }
1371  
1372    /**
1373     * Creates a new default object ACL entry on the specified bucket.
1374     * (defaultObjectAccessControls.insert)
1375     *
1376     * @param string $bucket Name of a bucket.
1377     * @param Google_ObjectAccessControl $postBody
1378     * @param array $optParams Optional parameters.
1379     * @return Google_Service_Storage_ObjectAccessControl
1380     */
1381    public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1382    {
1383      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1384      $params = array_merge($params, $optParams);
1385      return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
1386    }
1387  
1388    /**
1389     * Retrieves default object ACL entries on the specified bucket.
1390     * (defaultObjectAccessControls.listDefaultObjectAccessControls)
1391     *
1392     * @param string $bucket Name of a bucket.
1393     * @param array $optParams Optional parameters.
1394     *
1395     * @opt_param string ifMetagenerationMatch If present, only return default ACL
1396     * listing if the bucket's current metageneration matches this value.
1397     * @opt_param string ifMetagenerationNotMatch If present, only return default
1398     * ACL listing if the bucket's current metageneration does not match the given
1399     * value.
1400     * @return Google_Service_Storage_ObjectAccessControls
1401     */
1402    public function listDefaultObjectAccessControls($bucket, $optParams = array())
1403    {
1404      $params = array('bucket' => $bucket);
1405      $params = array_merge($params, $optParams);
1406      return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
1407    }
1408  
1409    /**
1410     * Updates a default object ACL entry on the specified bucket. This method
1411     * supports patch semantics. (defaultObjectAccessControls.patch)
1412     *
1413     * @param string $bucket Name of a bucket.
1414     * @param string $entity The entity holding the permission. Can be user-userId,
1415     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1416     * allAuthenticatedUsers.
1417     * @param Google_ObjectAccessControl $postBody
1418     * @param array $optParams Optional parameters.
1419     * @return Google_Service_Storage_ObjectAccessControl
1420     */
1421    public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1422    {
1423      $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1424      $params = array_merge($params, $optParams);
1425      return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
1426    }
1427  
1428    /**
1429     * Updates a default object ACL entry on the specified bucket.
1430     * (defaultObjectAccessControls.update)
1431     *
1432     * @param string $bucket Name of a bucket.
1433     * @param string $entity The entity holding the permission. Can be user-userId,
1434     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1435     * allAuthenticatedUsers.
1436     * @param Google_ObjectAccessControl $postBody
1437     * @param array $optParams Optional parameters.
1438     * @return Google_Service_Storage_ObjectAccessControl
1439     */
1440    public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1441    {
1442      $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1443      $params = array_merge($params, $optParams);
1444      return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
1445    }
1446  }
1447  
1448  /**
1449   * The "objectAccessControls" collection of methods.
1450   * Typical usage is:
1451   *  <code>
1452   *   $storageService = new Google_Service_Storage(...);
1453   *   $objectAccessControls = $storageService->objectAccessControls;
1454   *  </code>
1455   */
1456  #[AllowDynamicProperties]
1457  class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource
1458  {
1459  
1460    /**
1461     * Permanently deletes the ACL entry for the specified entity on the specified
1462     * object. (objectAccessControls.delete)
1463     *
1464     * @param string $bucket Name of a bucket.
1465     * @param string $object Name of the object. For information about how to URL
1466     * encode object names to be path safe, see Encoding URI Path Parts.
1467     * @param string $entity The entity holding the permission. Can be user-userId,
1468     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1469     * allAuthenticatedUsers.
1470     * @param array $optParams Optional parameters.
1471     *
1472     * @opt_param string generation If present, selects a specific revision of this
1473     * object (as opposed to the latest version, the default).
1474     */
1475    public function delete($bucket, $object, $entity, $optParams = array())
1476    {
1477      $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
1478      $params = array_merge($params, $optParams);
1479      return $this->call('delete', array($params));
1480    }
1481  
1482    /**
1483     * Returns the ACL entry for the specified entity on the specified object.
1484     * (objectAccessControls.get)
1485     *
1486     * @param string $bucket Name of a bucket.
1487     * @param string $object Name of the object. For information about how to URL
1488     * encode object names to be path safe, see Encoding URI Path Parts.
1489     * @param string $entity The entity holding the permission. Can be user-userId,
1490     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1491     * allAuthenticatedUsers.
1492     * @param array $optParams Optional parameters.
1493     *
1494     * @opt_param string generation If present, selects a specific revision of this
1495     * object (as opposed to the latest version, the default).
1496     * @return Google_Service_Storage_ObjectAccessControl
1497     */
1498    public function get($bucket, $object, $entity, $optParams = array())
1499    {
1500      $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
1501      $params = array_merge($params, $optParams);
1502      return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
1503    }
1504  
1505    /**
1506     * Creates a new ACL entry on the specified object.
1507     * (objectAccessControls.insert)
1508     *
1509     * @param string $bucket Name of a bucket.
1510     * @param string $object Name of the object. For information about how to URL
1511     * encode object names to be path safe, see Encoding URI Path Parts.
1512     * @param Google_ObjectAccessControl $postBody
1513     * @param array $optParams Optional parameters.
1514     *
1515     * @opt_param string generation If present, selects a specific revision of this
1516     * object (as opposed to the latest version, the default).
1517     * @return Google_Service_Storage_ObjectAccessControl
1518     */
1519    public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1520    {
1521      $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1522      $params = array_merge($params, $optParams);
1523      return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
1524    }
1525  
1526    /**
1527     * Retrieves ACL entries on the specified object.
1528     * (objectAccessControls.listObjectAccessControls)
1529     *
1530     * @param string $bucket Name of a bucket.
1531     * @param string $object Name of the object. For information about how to URL
1532     * encode object names to be path safe, see Encoding URI Path Parts.
1533     * @param array $optParams Optional parameters.
1534     *
1535     * @opt_param string generation If present, selects a specific revision of this
1536     * object (as opposed to the latest version, the default).
1537     * @return Google_Service_Storage_ObjectAccessControls
1538     */
1539    public function listObjectAccessControls($bucket, $object, $optParams = array())
1540    {
1541      $params = array('bucket' => $bucket, 'object' => $object);
1542      $params = array_merge($params, $optParams);
1543      return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
1544    }
1545  
1546    /**
1547     * Updates an ACL entry on the specified object. This method supports patch
1548     * semantics. (objectAccessControls.patch)
1549     *
1550     * @param string $bucket Name of a bucket.
1551     * @param string $object Name of the object. For information about how to URL
1552     * encode object names to be path safe, see Encoding URI Path Parts.
1553     * @param string $entity The entity holding the permission. Can be user-userId,
1554     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1555     * allAuthenticatedUsers.
1556     * @param Google_ObjectAccessControl $postBody
1557     * @param array $optParams Optional parameters.
1558     *
1559     * @opt_param string generation If present, selects a specific revision of this
1560     * object (as opposed to the latest version, the default).
1561     * @return Google_Service_Storage_ObjectAccessControl
1562     */
1563    public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1564    {
1565      $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
1566      $params = array_merge($params, $optParams);
1567      return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
1568    }
1569  
1570    /**
1571     * Updates an ACL entry on the specified object. (objectAccessControls.update)
1572     *
1573     * @param string $bucket Name of a bucket.
1574     * @param string $object Name of the object. For information about how to URL
1575     * encode object names to be path safe, see Encoding URI Path Parts.
1576     * @param string $entity The entity holding the permission. Can be user-userId,
1577     * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
1578     * allAuthenticatedUsers.
1579     * @param Google_ObjectAccessControl $postBody
1580     * @param array $optParams Optional parameters.
1581     *
1582     * @opt_param string generation If present, selects a specific revision of this
1583     * object (as opposed to the latest version, the default).
1584     * @return Google_Service_Storage_ObjectAccessControl
1585     */
1586    public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1587    {
1588      $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
1589      $params = array_merge($params, $optParams);
1590      return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
1591    }
1592  }
1593  
1594  /**
1595   * The "objects" collection of methods.
1596   * Typical usage is:
1597   *  <code>
1598   *   $storageService = new Google_Service_Storage(...);
1599   *   $objects = $storageService->objects;
1600   *  </code>
1601   */
1602  #[AllowDynamicProperties]
1603  class Google_Service_Storage_Objects_Resource extends Google_Service_Resource
1604  {
1605  
1606    /**
1607     * Concatenates a list of existing objects into a new object in the same bucket.
1608     * (objects.compose)
1609     *
1610     * @param string $destinationBucket Name of the bucket in which to store the new
1611     * object.
1612     * @param string $destinationObject Name of the new object. For information
1613     * about how to URL encode object names to be path safe, see Encoding URI Path
1614     * Parts.
1615     * @param Google_ComposeRequest $postBody
1616     * @param array $optParams Optional parameters.
1617     *
1618     * @opt_param string ifGenerationMatch Makes the operation conditional on
1619     * whether the object's current generation matches the given value.
1620     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1621     * whether the object's current metageneration matches the given value.
1622     * @opt_param string destinationPredefinedAcl Apply a predefined set of access
1623     * controls to the destination object.
1624     * @return Google_Service_Storage_StorageObject
1625     */
1626    public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array())
1627    {
1628      $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
1629      $params = array_merge($params, $optParams);
1630      return $this->call('compose', array($params), "Google_Service_Storage_StorageObject");
1631    }
1632  
1633    /**
1634     * Copies a source object to a destination object. Optionally overrides
1635     * metadata. (objects.copy)
1636     *
1637     * @param string $sourceBucket Name of the bucket in which to find the source
1638     * object.
1639     * @param string $sourceObject Name of the source object. For information about
1640     * how to URL encode object names to be path safe, see Encoding URI Path Parts.
1641     * @param string $destinationBucket Name of the bucket in which to store the new
1642     * object. Overrides the provided object metadata's bucket value, if any.For
1643     * information about how to URL encode object names to be path safe, see
1644     * Encoding URI Path Parts.
1645     * @param string $destinationObject Name of the new object. Required when the
1646     * object metadata is not otherwise provided. Overrides the object metadata's
1647     * name value, if any.
1648     * @param Google_StorageObject $postBody
1649     * @param array $optParams Optional parameters.
1650     *
1651     * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
1652     * on whether the source object's generation does not match the given value.
1653     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1654     * whether the destination object's current generation does not match the given
1655     * value.
1656     * @opt_param string ifSourceMetagenerationNotMatch Makes the operation
1657     * conditional on whether the source object's current metageneration does not
1658     * match the given value.
1659     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1660     * whether the destination object's current metageneration matches the given
1661     * value.
1662     * @opt_param string sourceGeneration If present, selects a specific revision of
1663     * the source object (as opposed to the latest version, the default).
1664     * @opt_param string destinationPredefinedAcl Apply a predefined set of access
1665     * controls to the destination object.
1666     * @opt_param string ifSourceGenerationMatch Makes the operation conditional on
1667     * whether the source object's generation matches the given value.
1668     * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
1669     * on whether the source object's current metageneration matches the given
1670     * value.
1671     * @opt_param string ifGenerationMatch Makes the operation conditional on
1672     * whether the destination object's current generation matches the given value.
1673     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1674     * whether the destination object's current metageneration does not match the
1675     * given value.
1676     * @opt_param string projection Set of properties to return. Defaults to noAcl,
1677     * unless the object resource specifies the acl property, when it defaults to
1678     * full.
1679     * @return Google_Service_Storage_StorageObject
1680     */
1681    public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1682    {
1683      $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
1684      $params = array_merge($params, $optParams);
1685      return $this->call('copy', array($params), "Google_Service_Storage_StorageObject");
1686    }
1687  
1688    /**
1689     * Deletes an object and its metadata. Deletions are permanent if versioning is
1690     * not enabled for the bucket, or if the generation parameter is used.
1691     * (objects.delete)
1692     *
1693     * @param string $bucket Name of the bucket in which the object resides.
1694     * @param string $object Name of the object. For information about how to URL
1695     * encode object names to be path safe, see Encoding URI Path Parts.
1696     * @param array $optParams Optional parameters.
1697     *
1698     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1699     * whether the object's current generation does not match the given value.
1700     * @opt_param string generation If present, permanently deletes a specific
1701     * revision of this object (as opposed to the latest version, the default).
1702     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1703     * whether the object's current metageneration matches the given value.
1704     * @opt_param string ifGenerationMatch Makes the operation conditional on
1705     * whether the object's current generation matches the given value.
1706     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1707     * whether the object's current metageneration does not match the given value.
1708     */
1709    public function delete($bucket, $object, $optParams = array())
1710    {
1711      $params = array('bucket' => $bucket, 'object' => $object);
1712      $params = array_merge($params, $optParams);
1713      return $this->call('delete', array($params));
1714    }
1715  
1716    /**
1717     * Retrieves an object or its metadata. (objects.get)
1718     *
1719     * @param string $bucket Name of the bucket in which the object resides.
1720     * @param string $object Name of the object. For information about how to URL
1721     * encode object names to be path safe, see Encoding URI Path Parts.
1722     * @param array $optParams Optional parameters.
1723     *
1724     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1725     * whether the object's generation does not match the given value.
1726     * @opt_param string generation If present, selects a specific revision of this
1727     * object (as opposed to the latest version, the default).
1728     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1729     * whether the object's current metageneration matches the given value.
1730     * @opt_param string ifGenerationMatch Makes the operation conditional on
1731     * whether the object's generation matches the given value.
1732     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1733     * whether the object's current metageneration does not match the given value.
1734     * @opt_param string projection Set of properties to return. Defaults to noAcl.
1735     * @return Google_Service_Storage_StorageObject
1736     */
1737    public function get($bucket, $object, $optParams = array())
1738    {
1739      $params = array('bucket' => $bucket, 'object' => $object);
1740      $params = array_merge($params, $optParams);
1741      return $this->call('get', array($params), "Google_Service_Storage_StorageObject");
1742    }
1743  
1744    /**
1745     * Stores a new object and metadata. (objects.insert)
1746     *
1747     * @param string $bucket Name of the bucket in which to store the new object.
1748     * Overrides the provided object metadata's bucket value, if any.
1749     * @param Google_StorageObject $postBody
1750     * @param array $optParams Optional parameters.
1751     *
1752     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1753     * this object.
1754     * @opt_param string projection Set of properties to return. Defaults to noAcl,
1755     * unless the object resource specifies the acl property, when it defaults to
1756     * full.
1757     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1758     * whether the object's current generation does not match the given value.
1759     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1760     * whether the object's current metageneration matches the given value.
1761     * @opt_param string contentEncoding If set, sets the contentEncoding property
1762     * of the final object to this value. Setting this parameter is equivalent to
1763     * setting the contentEncoding metadata property. This can be useful when
1764     * uploading an object with uploadType=media to indicate the encoding of the
1765     * content being uploaded.
1766     * @opt_param string ifGenerationMatch Makes the operation conditional on
1767     * whether the object's current generation matches the given value.
1768     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1769     * whether the object's current metageneration does not match the given value.
1770     * @opt_param string name Name of the object. Required when the object metadata
1771     * is not otherwise provided. Overrides the object metadata's name value, if
1772     * any. For information about how to URL encode object names to be path safe,
1773     * see Encoding URI Path Parts.
1774     * @return Google_Service_Storage_StorageObject
1775     */
1776    public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1777    {
1778      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1779      $params = array_merge($params, $optParams);
1780      return $this->call('insert', array($params), "Google_Service_Storage_StorageObject");
1781    }
1782  
1783    /**
1784     * Retrieves a list of objects matching the criteria. (objects.listObjects)
1785     *
1786     * @param string $bucket Name of the bucket in which to look for objects.
1787     * @param array $optParams Optional parameters.
1788     *
1789     * @opt_param string projection Set of properties to return. Defaults to noAcl.
1790     * @opt_param bool versions If true, lists all versions of an object as distinct
1791     * results. The default is false. For more information, see Object Versioning.
1792     * @opt_param string prefix Filter results to objects whose names begin with
1793     * this prefix.
1794     * @opt_param string maxResults Maximum number of items plus prefixes to return.
1795     * As duplicate prefixes are omitted, fewer total results may be returned than
1796     * requested. The default value of this parameter is 1,000 items.
1797     * @opt_param string pageToken A previously-returned page token representing
1798     * part of the larger set of results to view.
1799     * @opt_param string delimiter Returns results in a directory-like mode. items
1800     * will contain only objects whose names, aside from the prefix, do not contain
1801     * delimiter. Objects whose names, aside from the prefix, contain delimiter will
1802     * have their name, truncated after the delimiter, returned in prefixes.
1803     * Duplicate prefixes are omitted.
1804     * @return Google_Service_Storage_Objects
1805     */
1806    public function listObjects($bucket, $optParams = array())
1807    {
1808      $params = array('bucket' => $bucket);
1809      $params = array_merge($params, $optParams);
1810      return $this->call('list', array($params), "Google_Service_Storage_Objects");
1811    }
1812  
1813    /**
1814     * Updates an object's metadata. This method supports patch semantics.
1815     * (objects.patch)
1816     *
1817     * @param string $bucket Name of the bucket in which the object resides.
1818     * @param string $object Name of the object. For information about how to URL
1819     * encode object names to be path safe, see Encoding URI Path Parts.
1820     * @param Google_StorageObject $postBody
1821     * @param array $optParams Optional parameters.
1822     *
1823     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1824     * this object.
1825     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1826     * whether the object's current generation does not match the given value.
1827     * @opt_param string generation If present, selects a specific revision of this
1828     * object (as opposed to the latest version, the default).
1829     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1830     * whether the object's current metageneration matches the given value.
1831     * @opt_param string ifGenerationMatch Makes the operation conditional on
1832     * whether the object's current generation matches the given value.
1833     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1834     * whether the object's current metageneration does not match the given value.
1835     * @opt_param string projection Set of properties to return. Defaults to full.
1836     * @return Google_Service_Storage_StorageObject
1837     */
1838    public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1839    {
1840      $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1841      $params = array_merge($params, $optParams);
1842      return $this->call('patch', array($params), "Google_Service_Storage_StorageObject");
1843    }
1844  
1845    /**
1846     * Rewrites a source object to a destination object. Optionally overrides
1847     * metadata. (objects.rewrite)
1848     *
1849     * @param string $sourceBucket Name of the bucket in which to find the source
1850     * object.
1851     * @param string $sourceObject Name of the source object. For information about
1852     * how to URL encode object names to be path safe, see Encoding URI Path Parts.
1853     * @param string $destinationBucket Name of the bucket in which to store the new
1854     * object. Overrides the provided object metadata's bucket value, if any.
1855     * @param string $destinationObject Name of the new object. Required when the
1856     * object metadata is not otherwise provided. Overrides the object metadata's
1857     * name value, if any. For information about how to URL encode object names to
1858     * be path safe, see Encoding URI Path Parts.
1859     * @param Google_StorageObject $postBody
1860     * @param array $optParams Optional parameters.
1861     *
1862     * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
1863     * on whether the source object's generation does not match the given value.
1864     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1865     * whether the destination object's current generation does not match the given
1866     * value.
1867     * @opt_param string rewriteToken Include this field (from the previous rewrite
1868     * response) on each rewrite request after the first one, until the rewrite
1869     * response 'done' flag is true. Calls that provide a rewriteToken can omit all
1870     * other request fields, but if included those fields must match the values
1871     * provided in the first rewrite request.
1872     * @opt_param string ifSourceMetagenerationNotMatch Makes the operation
1873     * conditional on whether the source object's current metageneration does not
1874     * match the given value.
1875     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1876     * whether the destination object's current metageneration matches the given
1877     * value.
1878     * @opt_param string sourceGeneration If present, selects a specific revision of
1879     * the source object (as opposed to the latest version, the default).
1880     * @opt_param string destinationPredefinedAcl Apply a predefined set of access
1881     * controls to the destination object.
1882     * @opt_param string ifSourceGenerationMatch Makes the operation conditional on
1883     * whether the source object's generation matches the given value.
1884     * @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that
1885     * will be rewritten per rewrite request. Most callers shouldn't need to specify
1886     * this parameter - it is primarily in place to support testing. If specified
1887     * the value must be an integral multiple of 1 MiB (1048576). Also, this only
1888     * applies to requests where the source and destination span locations and/or
1889     * storage classes. Finally, this value must not change across rewrite calls
1890     * else you'll get an error that the rewriteToken is invalid.
1891     * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
1892     * on whether the source object's current metageneration matches the given
1893     * value.
1894     * @opt_param string ifGenerationMatch Makes the operation conditional on
1895     * whether the destination object's current generation matches the given value.
1896     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1897     * whether the destination object's current metageneration does not match the
1898     * given value.
1899     * @opt_param string projection Set of properties to return. Defaults to noAcl,
1900     * unless the object resource specifies the acl property, when it defaults to
1901     * full.
1902     * @return Google_Service_Storage_RewriteResponse
1903     */
1904    public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1905    {
1906      $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
1907      $params = array_merge($params, $optParams);
1908      return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse");
1909    }
1910  
1911    /**
1912     * Updates an object's metadata. (objects.update)
1913     *
1914     * @param string $bucket Name of the bucket in which the object resides.
1915     * @param string $object Name of the object. For information about how to URL
1916     * encode object names to be path safe, see Encoding URI Path Parts.
1917     * @param Google_StorageObject $postBody
1918     * @param array $optParams Optional parameters.
1919     *
1920     * @opt_param string predefinedAcl Apply a predefined set of access controls to
1921     * this object.
1922     * @opt_param string ifGenerationNotMatch Makes the operation conditional on
1923     * whether the object's current generation does not match the given value.
1924     * @opt_param string generation If present, selects a specific revision of this
1925     * object (as opposed to the latest version, the default).
1926     * @opt_param string ifMetagenerationMatch Makes the operation conditional on
1927     * whether the object's current metageneration matches the given value.
1928     * @opt_param string ifGenerationMatch Makes the operation conditional on
1929     * whether the object's current generation matches the given value.
1930     * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
1931     * whether the object's current metageneration does not match the given value.
1932     * @opt_param string projection Set of properties to return. Defaults to full.
1933     * @return Google_Service_Storage_StorageObject
1934     */
1935    public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1936    {
1937      $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1938      $params = array_merge($params, $optParams);
1939      return $this->call('update', array($params), "Google_Service_Storage_StorageObject");
1940    }
1941  
1942    /**
1943     * Watch for changes on all objects in a bucket. (objects.watchAll)
1944     *
1945     * @param string $bucket Name of the bucket in which to look for objects.
1946     * @param Google_Channel $postBody
1947     * @param array $optParams Optional parameters.
1948     *
1949     * @opt_param string projection Set of properties to return. Defaults to noAcl.
1950     * @opt_param bool versions If true, lists all versions of an object as distinct
1951     * results. The default is false. For more information, see Object Versioning.
1952     * @opt_param string prefix Filter results to objects whose names begin with
1953     * this prefix.
1954     * @opt_param string maxResults Maximum number of items plus prefixes to return.
1955     * As duplicate prefixes are omitted, fewer total results may be returned than
1956     * requested. The default value of this parameter is 1,000 items.
1957     * @opt_param string pageToken A previously-returned page token representing
1958     * part of the larger set of results to view.
1959     * @opt_param string delimiter Returns results in a directory-like mode. items
1960     * will contain only objects whose names, aside from the prefix, do not contain
1961     * delimiter. Objects whose names, aside from the prefix, contain delimiter will
1962     * have their name, truncated after the delimiter, returned in prefixes.
1963     * Duplicate prefixes are omitted.
1964     * @return Google_Service_Storage_Channel
1965     */
1966    public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array())
1967    {
1968      $params = array('bucket' => $bucket, 'postBody' => $postBody);
1969      $params = array_merge($params, $optParams);
1970      return $this->call('watchAll', array($params), "Google_Service_Storage_Channel");
1971    }
1972  }
1973  
1974  
1975  
1976  
1977  #[AllowDynamicProperties]
1978  class Google_Service_Storage_Bucket extends Google_Collection
1979  {
1980    protected $collection_key = 'defaultObjectAcl';
1981    protected $internal_gapi_mappings = array(
1982    );
1983    protected $aclType = 'Google_Service_Storage_BucketAccessControl';
1984    protected $aclDataType = 'array';
1985    protected $corsType = 'Google_Service_Storage_BucketCors';
1986    protected $corsDataType = 'array';
1987    protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl';
1988    protected $defaultObjectAclDataType = 'array';
1989    public $etag;
1990    public $id;
1991    public $kind;
1992    protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle';
1993    protected $lifecycleDataType = '';
1994    public $location;
1995    protected $loggingType = 'Google_Service_Storage_BucketLogging';
1996    protected $loggingDataType = '';
1997    public $metageneration;
1998    public $name;
1999    protected $ownerType = 'Google_Service_Storage_BucketOwner';
2000    protected $ownerDataType = '';
2001    public $projectNumber;
2002    public $selfLink;
2003    public $storageClass;
2004    public $timeCreated;
2005    public $updated;
2006    protected $versioningType = 'Google_Service_Storage_BucketVersioning';
2007    protected $versioningDataType = '';
2008    protected $websiteType = 'Google_Service_Storage_BucketWebsite';
2009    protected $websiteDataType = '';
2010  
2011  
2012    public function setAcl($acl)
2013    {
2014      $this->acl = $acl;
2015    }
2016    public function getAcl()
2017    {
2018      return $this->acl;
2019    }
2020    public function setCors($cors)
2021    {
2022      $this->cors = $cors;
2023    }
2024    public function getCors()
2025    {
2026      return $this->cors;
2027    }
2028    public function setDefaultObjectAcl($defaultObjectAcl)
2029    {
2030      $this->defaultObjectAcl = $defaultObjectAcl;
2031    }
2032    public function getDefaultObjectAcl()
2033    {
2034      return $this->defaultObjectAcl;
2035    }
2036    public function setEtag($etag)
2037    {
2038      $this->etag = $etag;
2039    }
2040    public function getEtag()
2041    {
2042      return $this->etag;
2043    }
2044    public function setId($id)
2045    {
2046      $this->id = $id;
2047    }
2048    public function getId()
2049    {
2050      return $this->id;
2051    }
2052    public function setKind($kind)
2053    {
2054      $this->kind = $kind;
2055    }
2056    public function getKind()
2057    {
2058      return $this->kind;
2059    }
2060    public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle)
2061    {
2062      $this->lifecycle = $lifecycle;
2063    }
2064    public function getLifecycle()
2065    {
2066      return $this->lifecycle;
2067    }
2068    public function setLocation($location)
2069    {
2070      $this->location = $location;
2071    }
2072    public function getLocation()
2073    {
2074      return $this->location;
2075    }
2076    public function setLogging(Google_Service_Storage_BucketLogging $logging)
2077    {
2078      $this->logging = $logging;
2079    }
2080    public function getLogging()
2081    {
2082      return $this->logging;
2083    }
2084    public function setMetageneration($metageneration)
2085    {
2086      $this->metageneration = $metageneration;
2087    }
2088    public function getMetageneration()
2089    {
2090      return $this->metageneration;
2091    }
2092    public function setName($name)
2093    {
2094      $this->name = $name;
2095    }
2096    public function getName()
2097    {
2098      return $this->name;
2099    }
2100    public function setOwner(Google_Service_Storage_BucketOwner $owner)
2101    {
2102      $this->owner = $owner;
2103    }
2104    public function getOwner()
2105    {
2106      return $this->owner;
2107    }
2108    public function setProjectNumber($projectNumber)
2109    {
2110      $this->projectNumber = $projectNumber;
2111    }
2112    public function getProjectNumber()
2113    {
2114      return $this->projectNumber;
2115    }
2116    public function setSelfLink($selfLink)
2117    {
2118      $this->selfLink = $selfLink;
2119    }
2120    public function getSelfLink()
2121    {
2122      return $this->selfLink;
2123    }
2124    public function setStorageClass($storageClass)
2125    {
2126      $this->storageClass = $storageClass;
2127    }
2128    public function getStorageClass()
2129    {
2130      return $this->storageClass;
2131    }
2132    public function setTimeCreated($timeCreated)
2133    {
2134      $this->timeCreated = $timeCreated;
2135    }
2136    public function getTimeCreated()
2137    {
2138      return $this->timeCreated;
2139    }
2140    public function setUpdated($updated)
2141    {
2142      $this->updated = $updated;
2143    }
2144    public function getUpdated()
2145    {
2146      return $this->updated;
2147    }
2148    public function setVersioning(Google_Service_Storage_BucketVersioning $versioning)
2149    {
2150      $this->versioning = $versioning;
2151    }
2152    public function getVersioning()
2153    {
2154      return $this->versioning;
2155    }
2156    public function setWebsite(Google_Service_Storage_BucketWebsite $website)
2157    {
2158      $this->website = $website;
2159    }
2160    public function getWebsite()
2161    {
2162      return $this->website;
2163    }
2164  }
2165  
2166  #[AllowDynamicProperties]
2167  class Google_Service_Storage_BucketAccessControl extends Google_Model
2168  {
2169    protected $internal_gapi_mappings = array(
2170    );
2171    public $bucket;
2172    public $domain;
2173    public $email;
2174    public $entity;
2175    public $entityId;
2176    public $etag;
2177    public $id;
2178    public $kind;
2179    protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam';
2180    protected $projectTeamDataType = '';
2181    public $role;
2182    public $selfLink;
2183  
2184  
2185    public function setBucket($bucket)
2186    {
2187      $this->bucket = $bucket;
2188    }
2189    public function getBucket()
2190    {
2191      return $this->bucket;
2192    }
2193    public function setDomain($domain)
2194    {
2195      $this->domain = $domain;
2196    }
2197    public function getDomain()
2198    {
2199      return $this->domain;
2200    }
2201    public function setEmail($email)
2202    {
2203      $this->email = $email;
2204    }
2205    public function getEmail()
2206    {
2207      return $this->email;
2208    }
2209    public function setEntity($entity)
2210    {
2211      $this->entity = $entity;
2212    }
2213    public function getEntity()
2214    {
2215      return $this->entity;
2216    }
2217    public function setEntityId($entityId)
2218    {
2219      $this->entityId = $entityId;
2220    }
2221    public function getEntityId()
2222    {
2223      return $this->entityId;
2224    }
2225    public function setEtag($etag)
2226    {
2227      $this->etag = $etag;
2228    }
2229    public function getEtag()
2230    {
2231      return $this->etag;
2232    }
2233    public function setId($id)
2234    {
2235      $this->id = $id;
2236    }
2237    public function getId()
2238    {
2239      return $this->id;
2240    }
2241    public function setKind($kind)
2242    {
2243      $this->kind = $kind;
2244    }
2245    public function getKind()
2246    {
2247      return $this->kind;
2248    }
2249    public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam)
2250    {
2251      $this->projectTeam = $projectTeam;
2252    }
2253    public function getProjectTeam()
2254    {
2255      return $this->projectTeam;
2256    }
2257    public function setRole($role)
2258    {
2259      $this->role = $role;
2260    }
2261    public function getRole()
2262    {
2263      return $this->role;
2264    }
2265    public function setSelfLink($selfLink)
2266    {
2267      $this->selfLink = $selfLink;
2268    }
2269    public function getSelfLink()
2270    {
2271      return $this->selfLink;
2272    }
2273  }
2274  
2275  #[AllowDynamicProperties]
2276  class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model
2277  {
2278    protected $internal_gapi_mappings = array(
2279    );
2280    public $projectNumber;
2281    public $team;
2282  
2283  
2284    public function setProjectNumber($projectNumber)
2285    {
2286      $this->projectNumber = $projectNumber;
2287    }
2288    public function getProjectNumber()
2289    {
2290      return $this->projectNumber;
2291    }
2292    public function setTeam($team)
2293    {
2294      $this->team = $team;
2295    }
2296    public function getTeam()
2297    {
2298      return $this->team;
2299    }
2300  }
2301  
2302  #[AllowDynamicProperties]
2303  class Google_Service_Storage_BucketAccessControls extends Google_Collection
2304  {
2305    protected $collection_key = 'items';
2306    protected $internal_gapi_mappings = array(
2307    );
2308    protected $itemsType = 'Google_Service_Storage_BucketAccessControl';
2309    protected $itemsDataType = 'array';
2310    public $kind;
2311  
2312  
2313    public function setItems($items)
2314    {
2315      $this->items = $items;
2316    }
2317    public function getItems()
2318    {
2319      return $this->items;
2320    }
2321    public function setKind($kind)
2322    {
2323      $this->kind = $kind;
2324    }
2325    public function getKind()
2326    {
2327      return $this->kind;
2328    }
2329  }
2330  
2331  #[AllowDynamicProperties]
2332  class Google_Service_Storage_BucketCors extends Google_Collection
2333  {
2334    protected $collection_key = 'responseHeader';
2335    protected $internal_gapi_mappings = array(
2336    );
2337    public $maxAgeSeconds;
2338    public $method;
2339    public $origin;
2340    public $responseHeader;
2341  
2342  
2343    public function setMaxAgeSeconds($maxAgeSeconds)
2344    {
2345      $this->maxAgeSeconds = $maxAgeSeconds;
2346    }
2347    public function getMaxAgeSeconds()
2348    {
2349      return $this->maxAgeSeconds;
2350    }
2351    public function setMethod($method)
2352    {
2353      $this->method = $method;
2354    }
2355    public function getMethod()
2356    {
2357      return $this->method;
2358    }
2359    public function setOrigin($origin)
2360    {
2361      $this->origin = $origin;
2362    }
2363    public function getOrigin()
2364    {
2365      return $this->origin;
2366    }
2367    public function setResponseHeader($responseHeader)
2368    {
2369      $this->responseHeader = $responseHeader;
2370    }
2371    public function getResponseHeader()
2372    {
2373      return $this->responseHeader;
2374    }
2375  }
2376  
2377  #[AllowDynamicProperties]
2378  class Google_Service_Storage_BucketLifecycle extends Google_Collection
2379  {
2380    protected $collection_key = 'rule';
2381    protected $internal_gapi_mappings = array(
2382    );
2383    protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule';
2384    protected $ruleDataType = 'array';
2385  
2386  
2387    public function setRule($rule)
2388    {
2389      $this->rule = $rule;
2390    }
2391    public function getRule()
2392    {
2393      return $this->rule;
2394    }
2395  }
2396  
2397  #[AllowDynamicProperties]
2398  class Google_Service_Storage_BucketLifecycleRule extends Google_Model
2399  {
2400    protected $internal_gapi_mappings = array(
2401    );
2402    protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction';
2403    protected $actionDataType = '';
2404    protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition';
2405    protected $conditionDataType = '';
2406  
2407  
2408    public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action)
2409    {
2410      $this->action = $action;
2411    }
2412    public function getAction()
2413    {
2414      return $this->action;
2415    }
2416    public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition)
2417    {
2418      $this->condition = $condition;
2419    }
2420    public function getCondition()
2421    {
2422      return $this->condition;
2423    }
2424  }
2425  
2426  #[AllowDynamicProperties]
2427  class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model
2428  {
2429    protected $internal_gapi_mappings = array(
2430    );
2431    public $type;
2432  
2433  
2434    public function setType($type)
2435    {
2436      $this->type = $type;
2437    }
2438    public function getType()
2439    {
2440      return $this->type;
2441    }
2442  }
2443  
2444  #[AllowDynamicProperties]
2445  class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model
2446  {
2447    protected $internal_gapi_mappings = array(
2448    );
2449    public $age;
2450    public $createdBefore;
2451    public $isLive;
2452    public $numNewerVersions;
2453  
2454  
2455    public function setAge($age)
2456    {
2457      $this->age = $age;
2458    }
2459    public function getAge()
2460    {
2461      return $this->age;
2462    }
2463    public function setCreatedBefore($createdBefore)
2464    {
2465      $this->createdBefore = $createdBefore;
2466    }
2467    public function getCreatedBefore()
2468    {
2469      return $this->createdBefore;
2470    }
2471    public function setIsLive($isLive)
2472    {
2473      $this->isLive = $isLive;
2474    }
2475    public function getIsLive()
2476    {
2477      return $this->isLive;
2478    }
2479    public function setNumNewerVersions($numNewerVersions)
2480    {
2481      $this->numNewerVersions = $numNewerVersions;
2482    }
2483    public function getNumNewerVersions()
2484    {
2485      return $this->numNewerVersions;
2486    }
2487  }
2488  
2489  #[AllowDynamicProperties]
2490  class Google_Service_Storage_BucketLogging extends Google_Model
2491  {
2492    protected $internal_gapi_mappings = array(
2493    );
2494    public $logBucket;
2495    public $logObjectPrefix;
2496  
2497  
2498    public function setLogBucket($logBucket)
2499    {
2500      $this->logBucket = $logBucket;
2501    }
2502    public function getLogBucket()
2503    {
2504      return $this->logBucket;
2505    }
2506    public function setLogObjectPrefix($logObjectPrefix)
2507    {
2508      $this->logObjectPrefix = $logObjectPrefix;
2509    }
2510    public function getLogObjectPrefix()
2511    {
2512      return $this->logObjectPrefix;
2513    }
2514  }
2515  
2516  #[AllowDynamicProperties]
2517  class Google_Service_Storage_BucketOwner extends Google_Model
2518  {
2519    protected $internal_gapi_mappings = array(
2520    );
2521    public $entity;
2522    public $entityId;
2523  
2524  
2525    public function setEntity($entity)
2526    {
2527      $this->entity = $entity;
2528    }
2529    public function getEntity()
2530    {
2531      return $this->entity;
2532    }
2533    public function setEntityId($entityId)
2534    {
2535      $this->entityId = $entityId;
2536    }
2537    public function getEntityId()
2538    {
2539      return $this->entityId;
2540    }
2541  }
2542  
2543  #[AllowDynamicProperties]
2544  class Google_Service_Storage_BucketVersioning extends Google_Model
2545  {
2546    protected $internal_gapi_mappings = array(
2547    );
2548    public $enabled;
2549  
2550  
2551    public function setEnabled($enabled)
2552    {
2553      $this->enabled = $enabled;
2554    }
2555    public function getEnabled()
2556    {
2557      return $this->enabled;
2558    }
2559  }
2560  
2561  #[AllowDynamicProperties]
2562  class Google_Service_Storage_BucketWebsite extends Google_Model
2563  {
2564    protected $internal_gapi_mappings = array(
2565    );
2566    public $mainPageSuffix;
2567    public $notFoundPage;
2568  
2569  
2570    public function setMainPageSuffix($mainPageSuffix)
2571    {
2572      $this->mainPageSuffix = $mainPageSuffix;
2573    }
2574    public function getMainPageSuffix()
2575    {
2576      return $this->mainPageSuffix;
2577    }
2578    public function setNotFoundPage($notFoundPage)
2579    {
2580      $this->notFoundPage = $notFoundPage;
2581    }
2582    public function getNotFoundPage()
2583    {
2584      return $this->notFoundPage;
2585    }
2586  }
2587  
2588  #[AllowDynamicProperties]
2589  class Google_Service_Storage_Buckets extends Google_Collection
2590  {
2591    protected $collection_key = 'items';
2592    protected $internal_gapi_mappings = array(
2593    );
2594    protected $itemsType = 'Google_Service_Storage_Bucket';
2595    protected $itemsDataType = 'array';
2596    public $kind;
2597    public $nextPageToken;
2598  
2599  
2600    public function setItems($items)
2601    {
2602      $this->items = $items;
2603    }
2604    public function getItems()
2605    {
2606      return $this->items;
2607    }
2608    public function setKind($kind)
2609    {
2610      $this->kind = $kind;
2611    }
2612    public function getKind()
2613    {
2614      return $this->kind;
2615    }
2616    public function setNextPageToken($nextPageToken)
2617    {
2618      $this->nextPageToken = $nextPageToken;
2619    }
2620    public function getNextPageToken()
2621    {
2622      return $this->nextPageToken;
2623    }
2624  }
2625  
2626  #[AllowDynamicProperties]
2627  class Google_Service_Storage_Channel extends Google_Model
2628  {
2629    protected $internal_gapi_mappings = array(
2630    );
2631    public $address;
2632    public $expiration;
2633    public $id;
2634    public $kind;
2635    public $params;
2636    public $payload;
2637    public $resourceId;
2638    public $resourceUri;
2639    public $token;
2640    public $type;
2641  
2642  
2643    public function setAddress($address)
2644    {
2645      $this->address = $address;
2646    }
2647    public function getAddress()
2648    {
2649      return $this->address;
2650    }
2651    public function setExpiration($expiration)
2652    {
2653      $this->expiration = $expiration;
2654    }
2655    public function getExpiration()
2656    {
2657      return $this->expiration;
2658    }
2659    public function setId($id)
2660    {
2661      $this->id = $id;
2662    }
2663    public function getId()
2664    {
2665      return $this->id;
2666    }
2667    public function setKind($kind)
2668    {
2669      $this->kind = $kind;
2670    }
2671    public function getKind()
2672    {
2673      return $this->kind;
2674    }
2675    public function setParams($params)
2676    {
2677      $this->params = $params;
2678    }
2679    public function getParams()
2680    {
2681      return $this->params;
2682    }
2683    public function setPayload($payload)
2684    {
2685      $this->payload = $payload;
2686    }
2687    public function getPayload()
2688    {
2689      return $this->payload;
2690    }
2691    public function setResourceId($resourceId)
2692    {
2693      $this->resourceId = $resourceId;
2694    }
2695    public function getResourceId()
2696    {
2697      return $this->resourceId;
2698    }
2699    public function setResourceUri($resourceUri)
2700    {
2701      $this->resourceUri = $resourceUri;
2702    }
2703    public function getResourceUri()
2704    {
2705      return $this->resourceUri;
2706    }
2707    public function setToken($token)
2708    {
2709      $this->token = $token;
2710    }
2711    public function getToken()
2712    {
2713      return $this->token;
2714    }
2715    public function setType($type)
2716    {
2717      $this->type = $type;
2718    }
2719    public function getType()
2720    {
2721      return $this->type;
2722    }
2723  }
2724  
2725  #[AllowDynamicProperties]
2726  class Google_Service_Storage_ChannelParams extends Google_Model
2727  {
2728  }
2729  
2730  #[AllowDynamicProperties]
2731  class Google_Service_Storage_ComposeRequest extends Google_Collection
2732  {
2733    protected $collection_key = 'sourceObjects';
2734    protected $internal_gapi_mappings = array(
2735    );
2736    protected $destinationType = 'Google_Service_Storage_StorageObject';
2737    protected $destinationDataType = '';
2738    public $kind;
2739    protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects';
2740    protected $sourceObjectsDataType = 'array';
2741  
2742  
2743    public function setDestination(Google_Service_Storage_StorageObject $destination)
2744    {
2745      $this->destination = $destination;
2746    }
2747    public function getDestination()
2748    {
2749      return $this->destination;
2750    }
2751    public function setKind($kind)
2752    {
2753      $this->kind = $kind;
2754    }
2755    public function getKind()
2756    {
2757      return $this->kind;
2758    }
2759    public function setSourceObjects($sourceObjects)
2760    {
2761      $this->sourceObjects = $sourceObjects;
2762    }
2763    public function getSourceObjects()
2764    {
2765      return $this->sourceObjects;
2766    }
2767  }
2768  
2769  #[AllowDynamicProperties]
2770  class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model
2771  {
2772    protected $internal_gapi_mappings = array(
2773    );
2774    public $generation;
2775    public $name;
2776    protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions';
2777    protected $objectPreconditionsDataType = '';
2778  
2779  
2780    public function setGeneration($generation)
2781    {
2782      $this->generation = $generation;
2783    }
2784    public function getGeneration()
2785    {
2786      return $this->generation;
2787    }
2788    public function setName($name)
2789    {
2790      $this->name = $name;
2791    }
2792    public function getName()
2793    {
2794      return $this->name;
2795    }
2796    public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions)
2797    {
2798      $this->objectPreconditions = $objectPreconditions;
2799    }
2800    public function getObjectPreconditions()
2801    {
2802      return $this->objectPreconditions;
2803    }
2804  }
2805  
2806  #[AllowDynamicProperties]
2807  class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model
2808  {
2809    protected $internal_gapi_mappings = array(
2810    );
2811    public $ifGenerationMatch;
2812  
2813  
2814    public function setIfGenerationMatch($ifGenerationMatch)
2815    {
2816      $this->ifGenerationMatch = $ifGenerationMatch;
2817    }
2818    public function getIfGenerationMatch()
2819    {
2820      return $this->ifGenerationMatch;
2821    }
2822  }
2823  
2824  #[AllowDynamicProperties]
2825  class Google_Service_Storage_ObjectAccessControl extends Google_Model
2826  {
2827    protected $internal_gapi_mappings = array(
2828    );
2829    public $bucket;
2830    public $domain;
2831    public $email;
2832    public $entity;
2833    public $entityId;
2834    public $etag;
2835    public $generation;
2836    public $id;
2837    public $kind;
2838    public $object;
2839    protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam';
2840    protected $projectTeamDataType = '';
2841    public $role;
2842    public $selfLink;
2843  
2844  
2845    public function setBucket($bucket)
2846    {
2847      $this->bucket = $bucket;
2848    }
2849    public function getBucket()
2850    {
2851      return $this->bucket;
2852    }
2853    public function setDomain($domain)
2854    {
2855      $this->domain = $domain;
2856    }
2857    public function getDomain()
2858    {
2859      return $this->domain;
2860    }
2861    public function setEmail($email)
2862    {
2863      $this->email = $email;
2864    }
2865    public function getEmail()
2866    {
2867      return $this->email;
2868    }
2869    public function setEntity($entity)
2870    {
2871      $this->entity = $entity;
2872    }
2873    public function getEntity()
2874    {
2875      return $this->entity;
2876    }
2877    public function setEntityId($entityId)
2878    {
2879      $this->entityId = $entityId;
2880    }
2881    public function getEntityId()
2882    {
2883      return $this->entityId;
2884    }
2885    public function setEtag($etag)
2886    {
2887      $this->etag = $etag;
2888    }
2889    public function getEtag()
2890    {
2891      return $this->etag;
2892    }
2893    public function setGeneration($generation)
2894    {
2895      $this->generation = $generation;
2896    }
2897    public function getGeneration()
2898    {
2899      return $this->generation;
2900    }
2901    public function setId($id)
2902    {
2903      $this->id = $id;
2904    }
2905    public function getId()
2906    {
2907      return $this->id;
2908    }
2909    public function setKind($kind)
2910    {
2911      $this->kind = $kind;
2912    }
2913    public function getKind()
2914    {
2915      return $this->kind;
2916    }
2917    public function setObject($object)
2918    {
2919      $this->object = $object;
2920    }
2921    public function getObject()
2922    {
2923      return $this->object;
2924    }
2925    public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam)
2926    {
2927      $this->projectTeam = $projectTeam;
2928    }
2929    public function getProjectTeam()
2930    {
2931      return $this->projectTeam;
2932    }
2933    public function setRole($role)
2934    {
2935      $this->role = $role;
2936    }
2937    public function getRole()
2938    {
2939      return $this->role;
2940    }
2941    public function setSelfLink($selfLink)
2942    {
2943      $this->selfLink = $selfLink;
2944    }
2945    public function getSelfLink()
2946    {
2947      return $this->selfLink;
2948    }
2949  }
2950  
2951  #[AllowDynamicProperties]
2952  class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model
2953  {
2954    protected $internal_gapi_mappings = array(
2955    );
2956    public $projectNumber;
2957    public $team;
2958  
2959  
2960    public function setProjectNumber($projectNumber)
2961    {
2962      $this->projectNumber = $projectNumber;
2963    }
2964    public function getProjectNumber()
2965    {
2966      return $this->projectNumber;
2967    }
2968    public function setTeam($team)
2969    {
2970      $this->team = $team;
2971    }
2972    public function getTeam()
2973    {
2974      return $this->team;
2975    }
2976  }
2977  
2978  #[AllowDynamicProperties]
2979  class Google_Service_Storage_ObjectAccessControls extends Google_Collection
2980  {
2981    protected $collection_key = 'items';
2982    protected $internal_gapi_mappings = array(
2983    );
2984    public $items;
2985    public $kind;
2986  
2987  
2988    public function setItems($items)
2989    {
2990      $this->items = $items;
2991    }
2992    public function getItems()
2993    {
2994      return $this->items;
2995    }
2996    public function setKind($kind)
2997    {
2998      $this->kind = $kind;
2999    }
3000    public function getKind()
3001    {
3002      return $this->kind;
3003    }
3004  }
3005  
3006  #[AllowDynamicProperties]
3007  class Google_Service_Storage_Objects extends Google_Collection
3008  {
3009    protected $collection_key = 'prefixes';
3010    protected $internal_gapi_mappings = array(
3011    );
3012    protected $itemsType = 'Google_Service_Storage_StorageObject';
3013    protected $itemsDataType = 'array';
3014    public $kind;
3015    public $nextPageToken;
3016    public $prefixes;
3017  
3018  
3019    public function setItems($items)
3020    {
3021      $this->items = $items;
3022    }
3023    public function getItems()
3024    {
3025      return $this->items;
3026    }
3027    public function setKind($kind)
3028    {
3029      $this->kind = $kind;
3030    }
3031    public function getKind()
3032    {
3033      return $this->kind;
3034    }
3035    public function setNextPageToken($nextPageToken)
3036    {
3037      $this->nextPageToken = $nextPageToken;
3038    }
3039    public function getNextPageToken()
3040    {
3041      return $this->nextPageToken;
3042    }
3043    public function setPrefixes($prefixes)
3044    {
3045      $this->prefixes = $prefixes;
3046    }
3047    public function getPrefixes()
3048    {
3049      return $this->prefixes;
3050    }
3051  }
3052  
3053  #[AllowDynamicProperties]
3054  class Google_Service_Storage_RewriteResponse extends Google_Model
3055  {
3056    protected $internal_gapi_mappings = array(
3057    );
3058    public $done;
3059    public $kind;
3060    public $objectSize;
3061    protected $resourceType = 'Google_Service_Storage_StorageObject';
3062    protected $resourceDataType = '';
3063    public $rewriteToken;
3064    public $totalBytesRewritten;
3065  
3066  
3067    public function setDone($done)
3068    {
3069      $this->done = $done;
3070    }
3071    public function getDone()
3072    {
3073      return $this->done;
3074    }
3075    public function setKind($kind)
3076    {
3077      $this->kind = $kind;
3078    }
3079    public function getKind()
3080    {
3081      return $this->kind;
3082    }
3083    public function setObjectSize($objectSize)
3084    {
3085      $this->objectSize = $objectSize;
3086    }
3087    public function getObjectSize()
3088    {
3089      return $this->objectSize;
3090    }
3091    public function setResource(Google_Service_Storage_StorageObject $resource)
3092    {
3093      $this->resource = $resource;
3094    }
3095    public function getResource()
3096    {
3097      return $this->resource;
3098    }
3099    public function setRewriteToken($rewriteToken)
3100    {
3101      $this->rewriteToken = $rewriteToken;
3102    }
3103    public function getRewriteToken()
3104    {
3105      return $this->rewriteToken;
3106    }
3107    public function setTotalBytesRewritten($totalBytesRewritten)
3108    {
3109      $this->totalBytesRewritten = $totalBytesRewritten;
3110    }
3111    public function getTotalBytesRewritten()
3112    {
3113      return $this->totalBytesRewritten;
3114    }
3115  }
3116  
3117  #[AllowDynamicProperties]
3118  class Google_Service_Storage_StorageObject extends Google_Collection
3119  {
3120    protected $collection_key = 'acl';
3121    protected $internal_gapi_mappings = array(
3122    );
3123    protected $aclType = 'Google_Service_Storage_ObjectAccessControl';
3124    protected $aclDataType = 'array';
3125    public $bucket;
3126    public $cacheControl;
3127    public $componentCount;
3128    public $contentDisposition;
3129    public $contentEncoding;
3130    public $contentLanguage;
3131    public $contentType;
3132    public $crc32c;
3133    public $etag;
3134    public $generation;
3135    public $id;
3136    public $kind;
3137    public $md5Hash;
3138    public $mediaLink;
3139    public $metadata;
3140    public $metageneration;
3141    public $name;
3142    protected $ownerType = 'Google_Service_Storage_StorageObjectOwner';
3143    protected $ownerDataType = '';
3144    public $selfLink;
3145    public $size;
3146    public $storageClass;
3147    public $timeCreated;
3148    public $timeDeleted;
3149    public $updated;
3150  
3151  
3152    public function setAcl($acl)
3153    {
3154      $this->acl = $acl;
3155    }
3156    public function getAcl()
3157    {
3158      return $this->acl;
3159    }
3160    public function setBucket($bucket)
3161    {
3162      $this->bucket = $bucket;
3163    }
3164    public function getBucket()
3165    {
3166      return $this->bucket;
3167    }
3168    public function setCacheControl($cacheControl)
3169    {
3170      $this->cacheControl = $cacheControl;
3171    }
3172    public function getCacheControl()
3173    {
3174      return $this->cacheControl;
3175    }
3176    public function setComponentCount($componentCount)
3177    {
3178      $this->componentCount = $componentCount;
3179    }
3180    public function getComponentCount()
3181    {
3182      return $this->componentCount;
3183    }
3184    public function setContentDisposition($contentDisposition)
3185    {
3186      $this->contentDisposition = $contentDisposition;
3187    }
3188    public function getContentDisposition()
3189    {
3190      return $this->contentDisposition;
3191    }
3192    public function setContentEncoding($contentEncoding)
3193    {
3194      $this->contentEncoding = $contentEncoding;
3195    }
3196    public function getContentEncoding()
3197    {
3198      return $this->contentEncoding;
3199    }
3200    public function setContentLanguage($contentLanguage)
3201    {
3202      $this->contentLanguage = $contentLanguage;
3203    }
3204    public function getContentLanguage()
3205    {
3206      return $this->contentLanguage;
3207    }
3208    public function setContentType($contentType)
3209    {
3210      $this->contentType = $contentType;
3211    }
3212    public function getContentType()
3213    {
3214      return $this->contentType;
3215    }
3216    public function setCrc32c($crc32c)
3217    {
3218      $this->crc32c = $crc32c;
3219    }
3220    public function getCrc32c()
3221    {
3222      return $this->crc32c;
3223    }
3224    public function setEtag($etag)
3225    {
3226      $this->etag = $etag;
3227    }
3228    public function getEtag()
3229    {
3230      return $this->etag;
3231    }
3232    public function setGeneration($generation)
3233    {
3234      $this->generation = $generation;
3235    }
3236    public function getGeneration()
3237    {
3238      return $this->generation;
3239    }
3240    public function setId($id)
3241    {
3242      $this->id = $id;
3243    }
3244    public function getId()
3245    {
3246      return $this->id;
3247    }
3248    public function setKind($kind)
3249    {
3250      $this->kind = $kind;
3251    }
3252    public function getKind()
3253    {
3254      return $this->kind;
3255    }
3256    public function setMd5Hash($md5Hash)
3257    {
3258      $this->md5Hash = $md5Hash;
3259    }
3260    public function getMd5Hash()
3261    {
3262      return $this->md5Hash;
3263    }
3264    public function setMediaLink($mediaLink)
3265    {
3266      $this->mediaLink = $mediaLink;
3267    }
3268    public function getMediaLink()
3269    {
3270      return $this->mediaLink;
3271    }
3272    public function setMetadata($metadata)
3273    {
3274      $this->metadata = $metadata;
3275    }
3276    public function getMetadata()
3277    {
3278      return $this->metadata;
3279    }
3280    public function setMetageneration($metageneration)
3281    {
3282      $this->metageneration = $metageneration;
3283    }
3284    public function getMetageneration()
3285    {
3286      return $this->metageneration;
3287    }
3288    public function setName($name)
3289    {
3290      $this->name = $name;
3291    }
3292    public function getName()
3293    {
3294      return $this->name;
3295    }
3296    public function setOwner(Google_Service_Storage_StorageObjectOwner $owner)
3297    {
3298      $this->owner = $owner;
3299    }
3300    public function getOwner()
3301    {
3302      return $this->owner;
3303    }
3304    public function setSelfLink($selfLink)
3305    {
3306      $this->selfLink = $selfLink;
3307    }
3308    public function getSelfLink()
3309    {
3310      return $this->selfLink;
3311    }
3312    public function setSize($size)
3313    {
3314      $this->size = $size;
3315    }
3316    public function getSize()
3317    {
3318      return $this->size;
3319    }
3320    public function setStorageClass($storageClass)
3321    {
3322      $this->storageClass = $storageClass;
3323    }
3324    public function getStorageClass()
3325    {
3326      return $this->storageClass;
3327    }
3328    public function setTimeCreated($timeCreated)
3329    {
3330      $this->timeCreated = $timeCreated;
3331    }
3332    public function getTimeCreated()
3333    {
3334      return $this->timeCreated;
3335    }
3336    public function setTimeDeleted($timeDeleted)
3337    {
3338      $this->timeDeleted = $timeDeleted;
3339    }
3340    public function getTimeDeleted()
3341    {
3342      return $this->timeDeleted;
3343    }
3344    public function setUpdated($updated)
3345    {
3346      $this->updated = $updated;
3347    }
3348    public function getUpdated()
3349    {
3350      return $this->updated;
3351    }
3352  }
3353  
3354  #[AllowDynamicProperties]
3355  class Google_Service_Storage_StorageObjectMetadata extends Google_Model
3356  {
3357  }
3358  
3359  #[AllowDynamicProperties]
3360  class Google_Service_Storage_StorageObjectOwner extends Google_Model
3361  {
3362    protected $internal_gapi_mappings = array(
3363    );
3364    public $entity;
3365    public $entityId;
3366  
3367  
3368    public function setEntity($entity)
3369    {
3370      $this->entity = $entity;
3371    }
3372    public function getEntity()
3373    {
3374      return $this->entity;
3375    }
3376    public function setEntityId($entityId)
3377    {
3378      $this->entityId = $entityId;
3379    }
3380    public function getEntityId()
3381    {
3382      return $this->entityId;
3383    }
3384  }