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