Skip to content

Commit

Permalink
feat(storage): update the api
Browse files Browse the repository at this point in the history
#### storage:v1

The following keys were deleted:
- resources.objects.methods.restore.request.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Mar 12, 2024
1 parent 3dbdf23 commit 243cc1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 89 deletions.
86 changes: 2 additions & 84 deletions docs/dyn/storage_v1.objects.html
Expand Up @@ -111,7 +111,7 @@ <h2>Instance Methods</h2>
<code><a href="#patch">patch(bucket, object, body=None, generation=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, overrideUnlockedRetention=None, predefinedAcl=None, projection=None, userProject=None)</a></code></p>
<p class="firstline">Patches an object's metadata.</p>
<p class="toc_element">
<code><a href="#restore">restore(bucket, object, generation, body=None, copySourceAcl=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, userProject=None)</a></code></p>
<code><a href="#restore">restore(bucket, object, generation, copySourceAcl=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, userProject=None)</a></code></p>
<p class="firstline">Restores a soft-deleted object.</p>
<p class="toc_element">
<code><a href="#rewrite">rewrite(sourceBucket, sourceObject, destinationBucket, destinationObject, body=None, destinationKmsKeyName=None, destinationPredefinedAcl=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, ifSourceGenerationMatch=None, ifSourceGenerationNotMatch=None, ifSourceMetagenerationMatch=None, ifSourceMetagenerationNotMatch=None, maxBytesRewrittenPerCall=None, projection=None, rewriteToken=None, sourceGeneration=None, userProject=None)</a></code></p>
Expand Down Expand Up @@ -1286,94 +1286,12 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="restore">restore(bucket, object, generation, body=None, copySourceAcl=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, userProject=None)</code>
<code class="details" id="restore">restore(bucket, object, generation, copySourceAcl=None, ifGenerationMatch=None, ifGenerationNotMatch=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, userProject=None)</code>
<pre>Restores a soft-deleted object.

Args:
bucket: string, Name of the bucket in which the object resides. (required)
object: string, Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. (required)
body: object, The request body.
The object takes the form of:

{ # An object.
&quot;acl&quot;: [ # Access controls on the object.
{ # An access-control entry.
&quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
&quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
&quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
&quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
# - user-userId
# - user-email
# - group-groupId
# - group-email
# - domain-domain
# - project-team-projectId
# - allUsers
# - allAuthenticatedUsers Examples:
# - The user liz@example.com would be user-liz@example.com.
# - The group example@googlegroups.com would be group-example@googlegroups.com.
# - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
&quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
&quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
&quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
&quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
&quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
&quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
&quot;projectTeam&quot;: { # The project team associated with the entity, if any.
&quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
&quot;team&quot;: &quot;A String&quot;, # The team.
},
&quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
&quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
},
],
&quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this object.
&quot;cacheControl&quot;: &quot;A String&quot;, # Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.
&quot;componentCount&quot;: 42, # Number of underlying components that make up this object. Components are accumulated by compose operations.
&quot;contentDisposition&quot;: &quot;A String&quot;, # Content-Disposition of the object data.
&quot;contentEncoding&quot;: &quot;A String&quot;, # Content-Encoding of the object data.
&quot;contentLanguage&quot;: &quot;A String&quot;, # Content-Language of the object data.
&quot;contentType&quot;: &quot;A String&quot;, # Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.
&quot;crc32c&quot;: &quot;A String&quot;, # 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.
&quot;customTime&quot;: &quot;A String&quot;, # A timestamp in RFC 3339 format specified by the user for an object.
&quot;customerEncryption&quot;: { # Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
&quot;encryptionAlgorithm&quot;: &quot;A String&quot;, # The encryption algorithm.
&quot;keySha256&quot;: &quot;A String&quot;, # SHA256 hash value of the encryption key.
},
&quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the object.
&quot;eventBasedHold&quot;: True or False, # Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold&#x27;s release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.
&quot;generation&quot;: &quot;A String&quot;, # The content generation of this object. Used for object versioning.
&quot;hardDeleteTime&quot;: &quot;A String&quot;, # This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.
&quot;id&quot;: &quot;A String&quot;, # The ID of the object, including the bucket name, object name, and generation number.
&quot;kind&quot;: &quot;storage#object&quot;, # The kind of item this is. For objects, this is always storage#object.
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.
&quot;md5Hash&quot;: &quot;A String&quot;, # MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.
&quot;mediaLink&quot;: &quot;A String&quot;, # Media download link.
&quot;metadata&quot;: { # User-provided metadata, in key/value pairs.
&quot;a_key&quot;: &quot;A String&quot;, # An individual metadata entry.
},
&quot;metageneration&quot;: &quot;A String&quot;, # 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.
&quot;name&quot;: &quot;A String&quot;, # The name of the object. Required if not specified by URL parameter.
&quot;owner&quot;: { # The owner of the object. This will always be the uploader of the object.
&quot;entity&quot;: &quot;A String&quot;, # The entity, in the form user-userId.
&quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
},
&quot;retention&quot;: { # A collection of object level retention parameters.
&quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode, can only be Unlocked or Locked.
&quot;retainUntilTime&quot;: &quot;A String&quot;, # A time in RFC 3339 format until which object retention protects this object.
},
&quot;retentionExpirationTime&quot;: &quot;A String&quot;, # A server-determined value that specifies the earliest time that the object&#x27;s retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
&quot;selfLink&quot;: &quot;A String&quot;, # The link to this object.
&quot;size&quot;: &quot;A String&quot;, # Content-Length of the data in bytes.
&quot;softDeleteTime&quot;: &quot;A String&quot;, # The time at which the object became soft-deleted in RFC 3339 format.
&quot;storageClass&quot;: &quot;A String&quot;, # Storage class of the object.
&quot;temporaryHold&quot;: True or False, # Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
&quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the object in RFC 3339 format.
&quot;timeDeleted&quot;: &quot;A String&quot;, # The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
&quot;timeStorageClassUpdated&quot;: &quot;A String&quot;, # The time at which the object&#x27;s storage class was last changed. When the object is initially created, it will be set to timeCreated.
&quot;updated&quot;: &quot;A String&quot;, # The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
}

copySourceAcl: boolean, If true, copies the source object&#x27;s ACL; otherwise, uses the bucket&#x27;s default object ACL. The default is false.
generation: string, Selects a specific revision of this object. (required)
ifGenerationMatch: string, Makes the operation conditional on whether the object&#x27;s one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
Expand Down
7 changes: 2 additions & 5 deletions googleapiclient/discovery_cache/documents/storage.v1.json
Expand Up @@ -33,7 +33,7 @@
"location": "me-central2"
}
],
"etag": "\"38353632383736323634343838333436313237\"",
"etag": "\"37303437343235343136323638383931333233\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
Expand Down Expand Up @@ -3212,9 +3212,6 @@
}
},
"path": "b/{bucket}/o/{object}/restore",
"request": {
"$ref": "Object"
},
"response": {
"$ref": "Object"
},
Expand Down Expand Up @@ -4040,7 +4037,7 @@
}
}
},
"revision": "20240229",
"revision": "20240307",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"AnywhereCache": {
Expand Down

0 comments on commit 243cc1b

Please sign in to comment.