1<?php 2/* 3 * Copyright 2014 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 * Stores and retrieves 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 */ 31class 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 $notifications; 54 public $objectAccessControls; 55 public $objects; 56 public $projects_hmacKeys; 57 public $projects_serviceAccount; 58 59 /** 60 * Constructs the internal representation of the Storage service. 61 * 62 * @param Google_Client $client 63 */ 64 public function __construct(Google_Client $client) 65 { 66 parent::__construct($client); 67 $this->rootUrl = 'https://www.googleapis.com/'; 68 $this->servicePath = 'storage/v1/'; 69 $this->batchPath = 'batch/storage/v1'; 70 $this->version = 'v1'; 71 $this->serviceName = 'storage'; 72 73 $this->bucketAccessControls = new Google_Service_Storage_Resource_BucketAccessControls( 74 $this, 75 $this->serviceName, 76 'bucketAccessControls', 77 array( 78 'methods' => array( 79 'delete' => array( 80 'path' => 'b/{bucket}/acl/{entity}', 81 'httpMethod' => 'DELETE', 82 'parameters' => array( 83 'bucket' => array( 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ), 88 'entity' => array( 89 'location' => 'path', 90 'type' => 'string', 91 'required' => true, 92 ), 93 'provisionalUserProject' => array( 94 'location' => 'query', 95 'type' => 'string', 96 ), 97 'userProject' => array( 98 'location' => 'query', 99 'type' => 'string', 100 ), 101 ), 102 ),'get' => array( 103 'path' => 'b/{bucket}/acl/{entity}', 104 'httpMethod' => 'GET', 105 'parameters' => array( 106 'bucket' => array( 107 'location' => 'path', 108 'type' => 'string', 109 'required' => true, 110 ), 111 'entity' => array( 112 'location' => 'path', 113 'type' => 'string', 114 'required' => true, 115 ), 116 'provisionalUserProject' => array( 117 'location' => 'query', 118 'type' => 'string', 119 ), 120 'userProject' => array( 121 'location' => 'query', 122 'type' => 'string', 123 ), 124 ), 125 ),'insert' => array( 126 'path' => 'b/{bucket}/acl', 127 'httpMethod' => 'POST', 128 'parameters' => array( 129 'bucket' => array( 130 'location' => 'path', 131 'type' => 'string', 132 'required' => true, 133 ), 134 'provisionalUserProject' => array( 135 'location' => 'query', 136 'type' => 'string', 137 ), 138 'userProject' => array( 139 'location' => 'query', 140 'type' => 'string', 141 ), 142 ), 143 ),'list' => array( 144 'path' => 'b/{bucket}/acl', 145 'httpMethod' => 'GET', 146 'parameters' => array( 147 'bucket' => array( 148 'location' => 'path', 149 'type' => 'string', 150 'required' => true, 151 ), 152 'provisionalUserProject' => array( 153 'location' => 'query', 154 'type' => 'string', 155 ), 156 'userProject' => array( 157 'location' => 'query', 158 'type' => 'string', 159 ), 160 ), 161 ),'patch' => array( 162 'path' => 'b/{bucket}/acl/{entity}', 163 'httpMethod' => 'PATCH', 164 'parameters' => array( 165 'bucket' => array( 166 'location' => 'path', 167 'type' => 'string', 168 'required' => true, 169 ), 170 'entity' => array( 171 'location' => 'path', 172 'type' => 'string', 173 'required' => true, 174 ), 175 'provisionalUserProject' => array( 176 'location' => 'query', 177 'type' => 'string', 178 ), 179 'userProject' => array( 180 'location' => 'query', 181 'type' => 'string', 182 ), 183 ), 184 ),'update' => array( 185 'path' => 'b/{bucket}/acl/{entity}', 186 'httpMethod' => 'PUT', 187 'parameters' => array( 188 'bucket' => array( 189 'location' => 'path', 190 'type' => 'string', 191 'required' => true, 192 ), 193 'entity' => array( 194 'location' => 'path', 195 'type' => 'string', 196 'required' => true, 197 ), 198 'provisionalUserProject' => array( 199 'location' => 'query', 200 'type' => 'string', 201 ), 202 'userProject' => array( 203 'location' => 'query', 204 'type' => 'string', 205 ), 206 ), 207 ), 208 ) 209 ) 210 ); 211 $this->buckets = new Google_Service_Storage_Resource_Buckets( 212 $this, 213 $this->serviceName, 214 'buckets', 215 array( 216 'methods' => array( 217 'delete' => array( 218 'path' => 'b/{bucket}', 219 'httpMethod' => 'DELETE', 220 'parameters' => array( 221 'bucket' => array( 222 'location' => 'path', 223 'type' => 'string', 224 'required' => true, 225 ), 226 'ifMetagenerationMatch' => array( 227 'location' => 'query', 228 'type' => 'string', 229 ), 230 'ifMetagenerationNotMatch' => array( 231 'location' => 'query', 232 'type' => 'string', 233 ), 234 'provisionalUserProject' => array( 235 'location' => 'query', 236 'type' => 'string', 237 ), 238 'userProject' => array( 239 'location' => 'query', 240 'type' => 'string', 241 ), 242 ), 243 ),'get' => array( 244 'path' => 'b/{bucket}', 245 'httpMethod' => 'GET', 246 'parameters' => array( 247 'bucket' => array( 248 'location' => 'path', 249 'type' => 'string', 250 'required' => true, 251 ), 252 'ifMetagenerationMatch' => array( 253 'location' => 'query', 254 'type' => 'string', 255 ), 256 'ifMetagenerationNotMatch' => array( 257 'location' => 'query', 258 'type' => 'string', 259 ), 260 'projection' => array( 261 'location' => 'query', 262 'type' => 'string', 263 ), 264 'provisionalUserProject' => array( 265 'location' => 'query', 266 'type' => 'string', 267 ), 268 'userProject' => array( 269 'location' => 'query', 270 'type' => 'string', 271 ), 272 ), 273 ),'getIamPolicy' => array( 274 'path' => 'b/{bucket}/iam', 275 'httpMethod' => 'GET', 276 'parameters' => array( 277 'bucket' => array( 278 'location' => 'path', 279 'type' => 'string', 280 'required' => true, 281 ), 282 'provisionalUserProject' => array( 283 'location' => 'query', 284 'type' => 'string', 285 ), 286 'userProject' => array( 287 'location' => 'query', 288 'type' => 'string', 289 ), 290 ), 291 ),'insert' => array( 292 'path' => 'b', 293 'httpMethod' => 'POST', 294 'parameters' => array( 295 'project' => array( 296 'location' => 'query', 297 'type' => 'string', 298 'required' => true, 299 ), 300 'predefinedAcl' => array( 301 'location' => 'query', 302 'type' => 'string', 303 ), 304 'predefinedDefaultObjectAcl' => array( 305 'location' => 'query', 306 'type' => 'string', 307 ), 308 'projection' => array( 309 'location' => 'query', 310 'type' => 'string', 311 ), 312 'provisionalUserProject' => array( 313 'location' => 'query', 314 'type' => 'string', 315 ), 316 'userProject' => array( 317 'location' => 'query', 318 'type' => 'string', 319 ), 320 ), 321 ),'list' => array( 322 'path' => 'b', 323 'httpMethod' => 'GET', 324 'parameters' => array( 325 'project' => array( 326 'location' => 'query', 327 'type' => 'string', 328 'required' => true, 329 ), 330 'maxResults' => array( 331 'location' => 'query', 332 'type' => 'integer', 333 ), 334 'pageToken' => array( 335 'location' => 'query', 336 'type' => 'string', 337 ), 338 'prefix' => array( 339 'location' => 'query', 340 'type' => 'string', 341 ), 342 'projection' => array( 343 'location' => 'query', 344 'type' => 'string', 345 ), 346 'provisionalUserProject' => array( 347 'location' => 'query', 348 'type' => 'string', 349 ), 350 'userProject' => array( 351 'location' => 'query', 352 'type' => 'string', 353 ), 354 ), 355 ),'lockRetentionPolicy' => array( 356 'path' => 'b/{bucket}/lockRetentionPolicy', 357 'httpMethod' => 'POST', 358 'parameters' => array( 359 'bucket' => array( 360 'location' => 'path', 361 'type' => 'string', 362 'required' => true, 363 ), 364 'ifMetagenerationMatch' => array( 365 'location' => 'query', 366 'type' => 'string', 367 'required' => true, 368 ), 369 'provisionalUserProject' => array( 370 'location' => 'query', 371 'type' => 'string', 372 ), 373 'userProject' => array( 374 'location' => 'query', 375 'type' => 'string', 376 ), 377 ), 378 ),'patch' => array( 379 'path' => 'b/{bucket}', 380 'httpMethod' => 'PATCH', 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 'predefinedAcl' => array( 396 'location' => 'query', 397 'type' => 'string', 398 ), 399 'predefinedDefaultObjectAcl' => array( 400 'location' => 'query', 401 'type' => 'string', 402 ), 403 'projection' => array( 404 'location' => 'query', 405 'type' => 'string', 406 ), 407 'provisionalUserProject' => array( 408 'location' => 'query', 409 'type' => 'string', 410 ), 411 'userProject' => array( 412 'location' => 'query', 413 'type' => 'string', 414 ), 415 ), 416 ),'setIamPolicy' => array( 417 'path' => 'b/{bucket}/iam', 418 'httpMethod' => 'PUT', 419 'parameters' => array( 420 'bucket' => array( 421 'location' => 'path', 422 'type' => 'string', 423 'required' => true, 424 ), 425 'provisionalUserProject' => array( 426 'location' => 'query', 427 'type' => 'string', 428 ), 429 'userProject' => array( 430 'location' => 'query', 431 'type' => 'string', 432 ), 433 ), 434 ),'testIamPermissions' => array( 435 'path' => 'b/{bucket}/iam/testPermissions', 436 'httpMethod' => 'GET', 437 'parameters' => array( 438 'bucket' => array( 439 'location' => 'path', 440 'type' => 'string', 441 'required' => true, 442 ), 443 'permissions' => array( 444 'location' => 'query', 445 'type' => 'string', 446 'repeated' => true, 447 'required' => true, 448 ), 449 'provisionalUserProject' => array( 450 'location' => 'query', 451 'type' => 'string', 452 ), 453 'userProject' => array( 454 'location' => 'query', 455 'type' => 'string', 456 ), 457 ), 458 ),'update' => array( 459 'path' => 'b/{bucket}', 460 'httpMethod' => 'PUT', 461 'parameters' => array( 462 'bucket' => array( 463 'location' => 'path', 464 'type' => 'string', 465 'required' => true, 466 ), 467 'ifMetagenerationMatch' => array( 468 'location' => 'query', 469 'type' => 'string', 470 ), 471 'ifMetagenerationNotMatch' => array( 472 'location' => 'query', 473 'type' => 'string', 474 ), 475 'predefinedAcl' => array( 476 'location' => 'query', 477 'type' => 'string', 478 ), 479 'predefinedDefaultObjectAcl' => array( 480 'location' => 'query', 481 'type' => 'string', 482 ), 483 'projection' => array( 484 'location' => 'query', 485 'type' => 'string', 486 ), 487 'provisionalUserProject' => array( 488 'location' => 'query', 489 'type' => 'string', 490 ), 491 'userProject' => array( 492 'location' => 'query', 493 'type' => 'string', 494 ), 495 ), 496 ), 497 ) 498 ) 499 ); 500 $this->channels = new Google_Service_Storage_Resource_Channels( 501 $this, 502 $this->serviceName, 503 'channels', 504 array( 505 'methods' => array( 506 'stop' => array( 507 'path' => 'channels/stop', 508 'httpMethod' => 'POST', 509 'parameters' => array(), 510 ), 511 ) 512 ) 513 ); 514 $this->defaultObjectAccessControls = new Google_Service_Storage_Resource_DefaultObjectAccessControls( 515 $this, 516 $this->serviceName, 517 'defaultObjectAccessControls', 518 array( 519 'methods' => array( 520 'delete' => array( 521 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', 522 'httpMethod' => 'DELETE', 523 'parameters' => array( 524 'bucket' => array( 525 'location' => 'path', 526 'type' => 'string', 527 'required' => true, 528 ), 529 'entity' => array( 530 'location' => 'path', 531 'type' => 'string', 532 'required' => true, 533 ), 534 'provisionalUserProject' => array( 535 'location' => 'query', 536 'type' => 'string', 537 ), 538 'userProject' => array( 539 'location' => 'query', 540 'type' => 'string', 541 ), 542 ), 543 ),'get' => array( 544 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', 545 'httpMethod' => 'GET', 546 'parameters' => array( 547 'bucket' => array( 548 'location' => 'path', 549 'type' => 'string', 550 'required' => true, 551 ), 552 'entity' => array( 553 'location' => 'path', 554 'type' => 'string', 555 'required' => true, 556 ), 557 'provisionalUserProject' => array( 558 'location' => 'query', 559 'type' => 'string', 560 ), 561 'userProject' => array( 562 'location' => 'query', 563 'type' => 'string', 564 ), 565 ), 566 ),'insert' => array( 567 'path' => 'b/{bucket}/defaultObjectAcl', 568 'httpMethod' => 'POST', 569 'parameters' => array( 570 'bucket' => array( 571 'location' => 'path', 572 'type' => 'string', 573 'required' => true, 574 ), 575 'provisionalUserProject' => array( 576 'location' => 'query', 577 'type' => 'string', 578 ), 579 'userProject' => array( 580 'location' => 'query', 581 'type' => 'string', 582 ), 583 ), 584 ),'list' => array( 585 'path' => 'b/{bucket}/defaultObjectAcl', 586 'httpMethod' => 'GET', 587 'parameters' => array( 588 'bucket' => array( 589 'location' => 'path', 590 'type' => 'string', 591 'required' => true, 592 ), 593 'ifMetagenerationMatch' => array( 594 'location' => 'query', 595 'type' => 'string', 596 ), 597 'ifMetagenerationNotMatch' => array( 598 'location' => 'query', 599 'type' => 'string', 600 ), 601 'provisionalUserProject' => array( 602 'location' => 'query', 603 'type' => 'string', 604 ), 605 'userProject' => array( 606 'location' => 'query', 607 'type' => 'string', 608 ), 609 ), 610 ),'patch' => array( 611 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', 612 'httpMethod' => 'PATCH', 613 'parameters' => array( 614 'bucket' => array( 615 'location' => 'path', 616 'type' => 'string', 617 'required' => true, 618 ), 619 'entity' => array( 620 'location' => 'path', 621 'type' => 'string', 622 'required' => true, 623 ), 624 'provisionalUserProject' => array( 625 'location' => 'query', 626 'type' => 'string', 627 ), 628 'userProject' => array( 629 'location' => 'query', 630 'type' => 'string', 631 ), 632 ), 633 ),'update' => array( 634 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', 635 'httpMethod' => 'PUT', 636 'parameters' => array( 637 'bucket' => array( 638 'location' => 'path', 639 'type' => 'string', 640 'required' => true, 641 ), 642 'entity' => array( 643 'location' => 'path', 644 'type' => 'string', 645 'required' => true, 646 ), 647 'provisionalUserProject' => array( 648 'location' => 'query', 649 'type' => 'string', 650 ), 651 'userProject' => array( 652 'location' => 'query', 653 'type' => 'string', 654 ), 655 ), 656 ), 657 ) 658 ) 659 ); 660 $this->notifications = new Google_Service_Storage_Resource_Notifications( 661 $this, 662 $this->serviceName, 663 'notifications', 664 array( 665 'methods' => array( 666 'delete' => array( 667 'path' => 'b/{bucket}/notificationConfigs/{notification}', 668 'httpMethod' => 'DELETE', 669 'parameters' => array( 670 'bucket' => array( 671 'location' => 'path', 672 'type' => 'string', 673 'required' => true, 674 ), 675 'notification' => array( 676 'location' => 'path', 677 'type' => 'string', 678 'required' => true, 679 ), 680 'provisionalUserProject' => array( 681 'location' => 'query', 682 'type' => 'string', 683 ), 684 'userProject' => array( 685 'location' => 'query', 686 'type' => 'string', 687 ), 688 ), 689 ),'get' => array( 690 'path' => 'b/{bucket}/notificationConfigs/{notification}', 691 'httpMethod' => 'GET', 692 'parameters' => array( 693 'bucket' => array( 694 'location' => 'path', 695 'type' => 'string', 696 'required' => true, 697 ), 698 'notification' => array( 699 'location' => 'path', 700 'type' => 'string', 701 'required' => true, 702 ), 703 'provisionalUserProject' => array( 704 'location' => 'query', 705 'type' => 'string', 706 ), 707 'userProject' => array( 708 'location' => 'query', 709 'type' => 'string', 710 ), 711 ), 712 ),'insert' => array( 713 'path' => 'b/{bucket}/notificationConfigs', 714 'httpMethod' => 'POST', 715 'parameters' => array( 716 'bucket' => array( 717 'location' => 'path', 718 'type' => 'string', 719 'required' => true, 720 ), 721 'provisionalUserProject' => array( 722 'location' => 'query', 723 'type' => 'string', 724 ), 725 'userProject' => array( 726 'location' => 'query', 727 'type' => 'string', 728 ), 729 ), 730 ),'list' => array( 731 'path' => 'b/{bucket}/notificationConfigs', 732 'httpMethod' => 'GET', 733 'parameters' => array( 734 'bucket' => array( 735 'location' => 'path', 736 'type' => 'string', 737 'required' => true, 738 ), 739 'provisionalUserProject' => array( 740 'location' => 'query', 741 'type' => 'string', 742 ), 743 'userProject' => array( 744 'location' => 'query', 745 'type' => 'string', 746 ), 747 ), 748 ), 749 ) 750 ) 751 ); 752 $this->objectAccessControls = new Google_Service_Storage_Resource_ObjectAccessControls( 753 $this, 754 $this->serviceName, 755 'objectAccessControls', 756 array( 757 'methods' => array( 758 'delete' => array( 759 'path' => 'b/{bucket}/o/{object}/acl/{entity}', 760 'httpMethod' => 'DELETE', 761 'parameters' => array( 762 'bucket' => array( 763 'location' => 'path', 764 'type' => 'string', 765 'required' => true, 766 ), 767 'object' => array( 768 'location' => 'path', 769 'type' => 'string', 770 'required' => true, 771 ), 772 'entity' => array( 773 'location' => 'path', 774 'type' => 'string', 775 'required' => true, 776 ), 777 'generation' => array( 778 'location' => 'query', 779 'type' => 'string', 780 ), 781 'provisionalUserProject' => array( 782 'location' => 'query', 783 'type' => 'string', 784 ), 785 'userProject' => array( 786 'location' => 'query', 787 'type' => 'string', 788 ), 789 ), 790 ),'get' => array( 791 'path' => 'b/{bucket}/o/{object}/acl/{entity}', 792 'httpMethod' => 'GET', 793 'parameters' => array( 794 'bucket' => array( 795 'location' => 'path', 796 'type' => 'string', 797 'required' => true, 798 ), 799 'object' => array( 800 'location' => 'path', 801 'type' => 'string', 802 'required' => true, 803 ), 804 'entity' => array( 805 'location' => 'path', 806 'type' => 'string', 807 'required' => true, 808 ), 809 'generation' => array( 810 'location' => 'query', 811 'type' => 'string', 812 ), 813 'provisionalUserProject' => array( 814 'location' => 'query', 815 'type' => 'string', 816 ), 817 'userProject' => array( 818 'location' => 'query', 819 'type' => 'string', 820 ), 821 ), 822 ),'insert' => array( 823 'path' => 'b/{bucket}/o/{object}/acl', 824 'httpMethod' => 'POST', 825 'parameters' => array( 826 'bucket' => array( 827 'location' => 'path', 828 'type' => 'string', 829 'required' => true, 830 ), 831 'object' => array( 832 'location' => 'path', 833 'type' => 'string', 834 'required' => true, 835 ), 836 'generation' => array( 837 'location' => 'query', 838 'type' => 'string', 839 ), 840 'provisionalUserProject' => array( 841 'location' => 'query', 842 'type' => 'string', 843 ), 844 'userProject' => array( 845 'location' => 'query', 846 'type' => 'string', 847 ), 848 ), 849 ),'list' => array( 850 'path' => 'b/{bucket}/o/{object}/acl', 851 'httpMethod' => 'GET', 852 'parameters' => array( 853 'bucket' => array( 854 'location' => 'path', 855 'type' => 'string', 856 'required' => true, 857 ), 858 'object' => array( 859 'location' => 'path', 860 'type' => 'string', 861 'required' => true, 862 ), 863 'generation' => array( 864 'location' => 'query', 865 'type' => 'string', 866 ), 867 'provisionalUserProject' => array( 868 'location' => 'query', 869 'type' => 'string', 870 ), 871 'userProject' => array( 872 'location' => 'query', 873 'type' => 'string', 874 ), 875 ), 876 ),'patch' => array( 877 'path' => 'b/{bucket}/o/{object}/acl/{entity}', 878 'httpMethod' => 'PATCH', 879 'parameters' => array( 880 'bucket' => array( 881 'location' => 'path', 882 'type' => 'string', 883 'required' => true, 884 ), 885 'object' => array( 886 'location' => 'path', 887 'type' => 'string', 888 'required' => true, 889 ), 890 'entity' => array( 891 'location' => 'path', 892 'type' => 'string', 893 'required' => true, 894 ), 895 'generation' => array( 896 'location' => 'query', 897 'type' => 'string', 898 ), 899 'provisionalUserProject' => array( 900 'location' => 'query', 901 'type' => 'string', 902 ), 903 'userProject' => array( 904 'location' => 'query', 905 'type' => 'string', 906 ), 907 ), 908 ),'update' => array( 909 'path' => 'b/{bucket}/o/{object}/acl/{entity}', 910 'httpMethod' => 'PUT', 911 'parameters' => array( 912 'bucket' => array( 913 'location' => 'path', 914 'type' => 'string', 915 'required' => true, 916 ), 917 'object' => array( 918 'location' => 'path', 919 'type' => 'string', 920 'required' => true, 921 ), 922 'entity' => array( 923 'location' => 'path', 924 'type' => 'string', 925 'required' => true, 926 ), 927 'generation' => array( 928 'location' => 'query', 929 'type' => 'string', 930 ), 931 'provisionalUserProject' => array( 932 'location' => 'query', 933 'type' => 'string', 934 ), 935 'userProject' => array( 936 'location' => 'query', 937 'type' => 'string', 938 ), 939 ), 940 ), 941 ) 942 ) 943 ); 944 $this->objects = new Google_Service_Storage_Resource_Objects( 945 $this, 946 $this->serviceName, 947 'objects', 948 array( 949 'methods' => array( 950 'compose' => array( 951 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose', 952 'httpMethod' => 'POST', 953 'parameters' => array( 954 'destinationBucket' => array( 955 'location' => 'path', 956 'type' => 'string', 957 'required' => true, 958 ), 959 'destinationObject' => array( 960 'location' => 'path', 961 'type' => 'string', 962 'required' => true, 963 ), 964 'destinationPredefinedAcl' => array( 965 'location' => 'query', 966 'type' => 'string', 967 ), 968 'ifGenerationMatch' => array( 969 'location' => 'query', 970 'type' => 'string', 971 ), 972 'ifMetagenerationMatch' => array( 973 'location' => 'query', 974 'type' => 'string', 975 ), 976 'kmsKeyName' => array( 977 'location' => 'query', 978 'type' => 'string', 979 ), 980 'provisionalUserProject' => array( 981 'location' => 'query', 982 'type' => 'string', 983 ), 984 'userProject' => array( 985 'location' => 'query', 986 'type' => 'string', 987 ), 988 ), 989 ),'copy' => array( 990 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', 991 'httpMethod' => 'POST', 992 'parameters' => array( 993 'sourceBucket' => array( 994 'location' => 'path', 995 'type' => 'string', 996 'required' => true, 997 ), 998 'sourceObject' => array( 999 'location' => 'path', 1000 'type' => 'string', 1001 'required' => true, 1002 ), 1003 'destinationBucket' => array( 1004 'location' => 'path', 1005 'type' => 'string', 1006 'required' => true, 1007 ), 1008 'destinationObject' => array( 1009 'location' => 'path', 1010 'type' => 'string', 1011 'required' => true, 1012 ), 1013 'destinationPredefinedAcl' => array( 1014 'location' => 'query', 1015 'type' => 'string', 1016 ), 1017 'ifGenerationMatch' => array( 1018 'location' => 'query', 1019 'type' => 'string', 1020 ), 1021 'ifGenerationNotMatch' => array( 1022 'location' => 'query', 1023 'type' => 'string', 1024 ), 1025 'ifMetagenerationMatch' => array( 1026 'location' => 'query', 1027 'type' => 'string', 1028 ), 1029 'ifMetagenerationNotMatch' => array( 1030 'location' => 'query', 1031 'type' => 'string', 1032 ), 1033 'ifSourceGenerationMatch' => array( 1034 'location' => 'query', 1035 'type' => 'string', 1036 ), 1037 'ifSourceGenerationNotMatch' => array( 1038 'location' => 'query', 1039 'type' => 'string', 1040 ), 1041 'ifSourceMetagenerationMatch' => array( 1042 'location' => 'query', 1043 'type' => 'string', 1044 ), 1045 'ifSourceMetagenerationNotMatch' => array( 1046 'location' => 'query', 1047 'type' => 'string', 1048 ), 1049 'projection' => array( 1050 'location' => 'query', 1051 'type' => 'string', 1052 ), 1053 'provisionalUserProject' => array( 1054 'location' => 'query', 1055 'type' => 'string', 1056 ), 1057 'sourceGeneration' => array( 1058 'location' => 'query', 1059 'type' => 'string', 1060 ), 1061 'userProject' => array( 1062 'location' => 'query', 1063 'type' => 'string', 1064 ), 1065 ), 1066 ),'delete' => array( 1067 'path' => 'b/{bucket}/o/{object}', 1068 'httpMethod' => 'DELETE', 1069 'parameters' => array( 1070 'bucket' => array( 1071 'location' => 'path', 1072 'type' => 'string', 1073 'required' => true, 1074 ), 1075 'object' => array( 1076 'location' => 'path', 1077 'type' => 'string', 1078 'required' => true, 1079 ), 1080 'generation' => array( 1081 'location' => 'query', 1082 'type' => 'string', 1083 ), 1084 'ifGenerationMatch' => array( 1085 'location' => 'query', 1086 'type' => 'string', 1087 ), 1088 'ifGenerationNotMatch' => array( 1089 'location' => 'query', 1090 'type' => 'string', 1091 ), 1092 'ifMetagenerationMatch' => array( 1093 'location' => 'query', 1094 'type' => 'string', 1095 ), 1096 'ifMetagenerationNotMatch' => array( 1097 'location' => 'query', 1098 'type' => 'string', 1099 ), 1100 'provisionalUserProject' => array( 1101 'location' => 'query', 1102 'type' => 'string', 1103 ), 1104 'userProject' => array( 1105 'location' => 'query', 1106 'type' => 'string', 1107 ), 1108 ), 1109 ),'get' => array( 1110 'path' => 'b/{bucket}/o/{object}', 1111 'httpMethod' => 'GET', 1112 'parameters' => array( 1113 'bucket' => array( 1114 'location' => 'path', 1115 'type' => 'string', 1116 'required' => true, 1117 ), 1118 'object' => array( 1119 'location' => 'path', 1120 'type' => 'string', 1121 'required' => true, 1122 ), 1123 'generation' => array( 1124 'location' => 'query', 1125 'type' => 'string', 1126 ), 1127 'ifGenerationMatch' => array( 1128 'location' => 'query', 1129 'type' => 'string', 1130 ), 1131 'ifGenerationNotMatch' => array( 1132 'location' => 'query', 1133 'type' => 'string', 1134 ), 1135 'ifMetagenerationMatch' => array( 1136 'location' => 'query', 1137 'type' => 'string', 1138 ), 1139 'ifMetagenerationNotMatch' => array( 1140 'location' => 'query', 1141 'type' => 'string', 1142 ), 1143 'projection' => array( 1144 'location' => 'query', 1145 'type' => 'string', 1146 ), 1147 'provisionalUserProject' => array( 1148 'location' => 'query', 1149 'type' => 'string', 1150 ), 1151 'userProject' => array( 1152 'location' => 'query', 1153 'type' => 'string', 1154 ), 1155 ), 1156 ),'getIamPolicy' => array( 1157 'path' => 'b/{bucket}/o/{object}/iam', 1158 'httpMethod' => 'GET', 1159 'parameters' => array( 1160 'bucket' => array( 1161 'location' => 'path', 1162 'type' => 'string', 1163 'required' => true, 1164 ), 1165 'object' => array( 1166 'location' => 'path', 1167 'type' => 'string', 1168 'required' => true, 1169 ), 1170 'generation' => array( 1171 'location' => 'query', 1172 'type' => 'string', 1173 ), 1174 'provisionalUserProject' => array( 1175 'location' => 'query', 1176 'type' => 'string', 1177 ), 1178 'userProject' => array( 1179 'location' => 'query', 1180 'type' => 'string', 1181 ), 1182 ), 1183 ),'insert' => array( 1184 'path' => 'b/{bucket}/o', 1185 'httpMethod' => 'POST', 1186 'parameters' => array( 1187 'bucket' => array( 1188 'location' => 'path', 1189 'type' => 'string', 1190 'required' => true, 1191 ), 1192 'contentEncoding' => array( 1193 'location' => 'query', 1194 'type' => 'string', 1195 ), 1196 'ifGenerationMatch' => array( 1197 'location' => 'query', 1198 'type' => 'string', 1199 ), 1200 'ifGenerationNotMatch' => array( 1201 'location' => 'query', 1202 'type' => 'string', 1203 ), 1204 'ifMetagenerationMatch' => array( 1205 'location' => 'query', 1206 'type' => 'string', 1207 ), 1208 'ifMetagenerationNotMatch' => array( 1209 'location' => 'query', 1210 'type' => 'string', 1211 ), 1212 'kmsKeyName' => array( 1213 'location' => 'query', 1214 'type' => 'string', 1215 ), 1216 'name' => array( 1217 'location' => 'query', 1218 'type' => 'string', 1219 ), 1220 'predefinedAcl' => array( 1221 'location' => 'query', 1222 'type' => 'string', 1223 ), 1224 'projection' => array( 1225 'location' => 'query', 1226 'type' => 'string', 1227 ), 1228 'provisionalUserProject' => array( 1229 'location' => 'query', 1230 'type' => 'string', 1231 ), 1232 'userProject' => array( 1233 'location' => 'query', 1234 'type' => 'string', 1235 ), 1236 ), 1237 ),'list' => array( 1238 'path' => 'b/{bucket}/o', 1239 'httpMethod' => 'GET', 1240 'parameters' => array( 1241 'bucket' => array( 1242 'location' => 'path', 1243 'type' => 'string', 1244 'required' => true, 1245 ), 1246 'delimiter' => array( 1247 'location' => 'query', 1248 'type' => 'string', 1249 ), 1250 'includeTrailingDelimiter' => array( 1251 'location' => 'query', 1252 'type' => 'boolean', 1253 ), 1254 'maxResults' => array( 1255 'location' => 'query', 1256 'type' => 'integer', 1257 ), 1258 'pageToken' => array( 1259 'location' => 'query', 1260 'type' => 'string', 1261 ), 1262 'prefix' => array( 1263 'location' => 'query', 1264 'type' => 'string', 1265 ), 1266 'projection' => array( 1267 'location' => 'query', 1268 'type' => 'string', 1269 ), 1270 'provisionalUserProject' => array( 1271 'location' => 'query', 1272 'type' => 'string', 1273 ), 1274 'userProject' => array( 1275 'location' => 'query', 1276 'type' => 'string', 1277 ), 1278 'versions' => array( 1279 'location' => 'query', 1280 'type' => 'boolean', 1281 ), 1282 ), 1283 ),'patch' => array( 1284 'path' => 'b/{bucket}/o/{object}', 1285 'httpMethod' => 'PATCH', 1286 'parameters' => array( 1287 'bucket' => array( 1288 'location' => 'path', 1289 'type' => 'string', 1290 'required' => true, 1291 ), 1292 'object' => array( 1293 'location' => 'path', 1294 'type' => 'string', 1295 'required' => true, 1296 ), 1297 'generation' => array( 1298 'location' => 'query', 1299 'type' => 'string', 1300 ), 1301 'ifGenerationMatch' => array( 1302 'location' => 'query', 1303 'type' => 'string', 1304 ), 1305 'ifGenerationNotMatch' => array( 1306 'location' => 'query', 1307 'type' => 'string', 1308 ), 1309 'ifMetagenerationMatch' => array( 1310 'location' => 'query', 1311 'type' => 'string', 1312 ), 1313 'ifMetagenerationNotMatch' => array( 1314 'location' => 'query', 1315 'type' => 'string', 1316 ), 1317 'predefinedAcl' => array( 1318 'location' => 'query', 1319 'type' => 'string', 1320 ), 1321 'projection' => array( 1322 'location' => 'query', 1323 'type' => 'string', 1324 ), 1325 'provisionalUserProject' => array( 1326 'location' => 'query', 1327 'type' => 'string', 1328 ), 1329 'userProject' => array( 1330 'location' => 'query', 1331 'type' => 'string', 1332 ), 1333 ), 1334 ),'rewrite' => array( 1335 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', 1336 'httpMethod' => 'POST', 1337 'parameters' => array( 1338 'sourceBucket' => array( 1339 'location' => 'path', 1340 'type' => 'string', 1341 'required' => true, 1342 ), 1343 'sourceObject' => array( 1344 'location' => 'path', 1345 'type' => 'string', 1346 'required' => true, 1347 ), 1348 'destinationBucket' => array( 1349 'location' => 'path', 1350 'type' => 'string', 1351 'required' => true, 1352 ), 1353 'destinationObject' => array( 1354 'location' => 'path', 1355 'type' => 'string', 1356 'required' => true, 1357 ), 1358 'destinationKmsKeyName' => array( 1359 'location' => 'query', 1360 'type' => 'string', 1361 ), 1362 'destinationPredefinedAcl' => array( 1363 'location' => 'query', 1364 'type' => 'string', 1365 ), 1366 'ifGenerationMatch' => array( 1367 'location' => 'query', 1368 'type' => 'string', 1369 ), 1370 'ifGenerationNotMatch' => array( 1371 'location' => 'query', 1372 'type' => 'string', 1373 ), 1374 'ifMetagenerationMatch' => array( 1375 'location' => 'query', 1376 'type' => 'string', 1377 ), 1378 'ifMetagenerationNotMatch' => array( 1379 'location' => 'query', 1380 'type' => 'string', 1381 ), 1382 'ifSourceGenerationMatch' => array( 1383 'location' => 'query', 1384 'type' => 'string', 1385 ), 1386 'ifSourceGenerationNotMatch' => array( 1387 'location' => 'query', 1388 'type' => 'string', 1389 ), 1390 'ifSourceMetagenerationMatch' => array( 1391 'location' => 'query', 1392 'type' => 'string', 1393 ), 1394 'ifSourceMetagenerationNotMatch' => array( 1395 'location' => 'query', 1396 'type' => 'string', 1397 ), 1398 'maxBytesRewrittenPerCall' => array( 1399 'location' => 'query', 1400 'type' => 'string', 1401 ), 1402 'projection' => array( 1403 'location' => 'query', 1404 'type' => 'string', 1405 ), 1406 'provisionalUserProject' => array( 1407 'location' => 'query', 1408 'type' => 'string', 1409 ), 1410 'rewriteToken' => array( 1411 'location' => 'query', 1412 'type' => 'string', 1413 ), 1414 'sourceGeneration' => array( 1415 'location' => 'query', 1416 'type' => 'string', 1417 ), 1418 'userProject' => array( 1419 'location' => 'query', 1420 'type' => 'string', 1421 ), 1422 ), 1423 ),'setIamPolicy' => array( 1424 'path' => 'b/{bucket}/o/{object}/iam', 1425 'httpMethod' => 'PUT', 1426 'parameters' => array( 1427 'bucket' => array( 1428 'location' => 'path', 1429 'type' => 'string', 1430 'required' => true, 1431 ), 1432 'object' => array( 1433 'location' => 'path', 1434 'type' => 'string', 1435 'required' => true, 1436 ), 1437 'generation' => array( 1438 'location' => 'query', 1439 'type' => 'string', 1440 ), 1441 'provisionalUserProject' => array( 1442 'location' => 'query', 1443 'type' => 'string', 1444 ), 1445 'userProject' => array( 1446 'location' => 'query', 1447 'type' => 'string', 1448 ), 1449 ), 1450 ),'testIamPermissions' => array( 1451 'path' => 'b/{bucket}/o/{object}/iam/testPermissions', 1452 'httpMethod' => 'GET', 1453 'parameters' => array( 1454 'bucket' => array( 1455 'location' => 'path', 1456 'type' => 'string', 1457 'required' => true, 1458 ), 1459 'object' => array( 1460 'location' => 'path', 1461 'type' => 'string', 1462 'required' => true, 1463 ), 1464 'permissions' => array( 1465 'location' => 'query', 1466 'type' => 'string', 1467 'repeated' => true, 1468 'required' => true, 1469 ), 1470 'generation' => array( 1471 'location' => 'query', 1472 'type' => 'string', 1473 ), 1474 'provisionalUserProject' => array( 1475 'location' => 'query', 1476 'type' => 'string', 1477 ), 1478 'userProject' => array( 1479 'location' => 'query', 1480 'type' => 'string', 1481 ), 1482 ), 1483 ),'update' => array( 1484 'path' => 'b/{bucket}/o/{object}', 1485 'httpMethod' => 'PUT', 1486 'parameters' => array( 1487 'bucket' => array( 1488 'location' => 'path', 1489 'type' => 'string', 1490 'required' => true, 1491 ), 1492 'object' => array( 1493 'location' => 'path', 1494 'type' => 'string', 1495 'required' => true, 1496 ), 1497 'generation' => array( 1498 'location' => 'query', 1499 'type' => 'string', 1500 ), 1501 'ifGenerationMatch' => array( 1502 'location' => 'query', 1503 'type' => 'string', 1504 ), 1505 'ifGenerationNotMatch' => array( 1506 'location' => 'query', 1507 'type' => 'string', 1508 ), 1509 'ifMetagenerationMatch' => array( 1510 'location' => 'query', 1511 'type' => 'string', 1512 ), 1513 'ifMetagenerationNotMatch' => array( 1514 'location' => 'query', 1515 'type' => 'string', 1516 ), 1517 'predefinedAcl' => array( 1518 'location' => 'query', 1519 'type' => 'string', 1520 ), 1521 'projection' => array( 1522 'location' => 'query', 1523 'type' => 'string', 1524 ), 1525 'provisionalUserProject' => array( 1526 'location' => 'query', 1527 'type' => 'string', 1528 ), 1529 'userProject' => array( 1530 'location' => 'query', 1531 'type' => 'string', 1532 ), 1533 ), 1534 ),'watchAll' => array( 1535 'path' => 'b/{bucket}/o/watch', 1536 'httpMethod' => 'POST', 1537 'parameters' => array( 1538 'bucket' => array( 1539 'location' => 'path', 1540 'type' => 'string', 1541 'required' => true, 1542 ), 1543 'delimiter' => array( 1544 'location' => 'query', 1545 'type' => 'string', 1546 ), 1547 'includeTrailingDelimiter' => array( 1548 'location' => 'query', 1549 'type' => 'boolean', 1550 ), 1551 'maxResults' => array( 1552 'location' => 'query', 1553 'type' => 'integer', 1554 ), 1555 'pageToken' => array( 1556 'location' => 'query', 1557 'type' => 'string', 1558 ), 1559 'prefix' => array( 1560 'location' => 'query', 1561 'type' => 'string', 1562 ), 1563 'projection' => array( 1564 'location' => 'query', 1565 'type' => 'string', 1566 ), 1567 'provisionalUserProject' => array( 1568 'location' => 'query', 1569 'type' => 'string', 1570 ), 1571 'userProject' => array( 1572 'location' => 'query', 1573 'type' => 'string', 1574 ), 1575 'versions' => array( 1576 'location' => 'query', 1577 'type' => 'boolean', 1578 ), 1579 ), 1580 ), 1581 ) 1582 ) 1583 ); 1584 $this->projects_hmacKeys = new Google_Service_Storage_Resource_ProjectsHmacKeys( 1585 $this, 1586 $this->serviceName, 1587 'hmacKeys', 1588 array( 1589 'methods' => array( 1590 'create' => array( 1591 'path' => 'projects/{projectId}/hmacKeys', 1592 'httpMethod' => 'POST', 1593 'parameters' => array( 1594 'projectId' => array( 1595 'location' => 'path', 1596 'type' => 'string', 1597 'required' => true, 1598 ), 1599 'serviceAccountEmail' => array( 1600 'location' => 'query', 1601 'type' => 'string', 1602 'required' => true, 1603 ), 1604 'userProject' => array( 1605 'location' => 'query', 1606 'type' => 'string', 1607 ), 1608 ), 1609 ),'delete' => array( 1610 'path' => 'projects/{projectId}/hmacKeys/{accessId}', 1611 'httpMethod' => 'DELETE', 1612 'parameters' => array( 1613 'projectId' => array( 1614 'location' => 'path', 1615 'type' => 'string', 1616 'required' => true, 1617 ), 1618 'accessId' => array( 1619 'location' => 'path', 1620 'type' => 'string', 1621 'required' => true, 1622 ), 1623 'userProject' => array( 1624 'location' => 'query', 1625 'type' => 'string', 1626 ), 1627 ), 1628 ),'get' => array( 1629 'path' => 'projects/{projectId}/hmacKeys/{accessId}', 1630 'httpMethod' => 'GET', 1631 'parameters' => array( 1632 'projectId' => array( 1633 'location' => 'path', 1634 'type' => 'string', 1635 'required' => true, 1636 ), 1637 'accessId' => array( 1638 'location' => 'path', 1639 'type' => 'string', 1640 'required' => true, 1641 ), 1642 'userProject' => array( 1643 'location' => 'query', 1644 'type' => 'string', 1645 ), 1646 ), 1647 ),'list' => array( 1648 'path' => 'projects/{projectId}/hmacKeys', 1649 'httpMethod' => 'GET', 1650 'parameters' => array( 1651 'projectId' => array( 1652 'location' => 'path', 1653 'type' => 'string', 1654 'required' => true, 1655 ), 1656 'maxResults' => array( 1657 'location' => 'query', 1658 'type' => 'integer', 1659 ), 1660 'pageToken' => array( 1661 'location' => 'query', 1662 'type' => 'string', 1663 ), 1664 'serviceAccountEmail' => array( 1665 'location' => 'query', 1666 'type' => 'string', 1667 ), 1668 'showDeletedKeys' => array( 1669 'location' => 'query', 1670 'type' => 'boolean', 1671 ), 1672 'userProject' => array( 1673 'location' => 'query', 1674 'type' => 'string', 1675 ), 1676 ), 1677 ),'update' => array( 1678 'path' => 'projects/{projectId}/hmacKeys/{accessId}', 1679 'httpMethod' => 'PUT', 1680 'parameters' => array( 1681 'projectId' => array( 1682 'location' => 'path', 1683 'type' => 'string', 1684 'required' => true, 1685 ), 1686 'accessId' => array( 1687 'location' => 'path', 1688 'type' => 'string', 1689 'required' => true, 1690 ), 1691 'userProject' => array( 1692 'location' => 'query', 1693 'type' => 'string', 1694 ), 1695 ), 1696 ), 1697 ) 1698 ) 1699 ); 1700 $this->projects_serviceAccount = new Google_Service_Storage_Resource_ProjectsServiceAccount( 1701 $this, 1702 $this->serviceName, 1703 'serviceAccount', 1704 array( 1705 'methods' => array( 1706 'get' => array( 1707 'path' => 'projects/{projectId}/serviceAccount', 1708 'httpMethod' => 'GET', 1709 'parameters' => array( 1710 'projectId' => array( 1711 'location' => 'path', 1712 'type' => 'string', 1713 'required' => true, 1714 ), 1715 'provisionalUserProject' => array( 1716 'location' => 'query', 1717 'type' => 'string', 1718 ), 1719 'userProject' => array( 1720 'location' => 'query', 1721 'type' => 'string', 1722 ), 1723 ), 1724 ), 1725 ) 1726 ) 1727 ); 1728 } 1729} 1730