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