GetBucketObjectResult

data class GetBucketObjectResult(val acl: List<ObjectAccessControlResponse>, val bucket: String, val cacheControl: String, val componentCount: Int, val contentDisposition: String, val contentEncoding: String, val contentLanguage: String, val contentType: String, val crc32c: String, val customTime: String, val customerEncryption: BucketObjectCustomerEncryptionResponse, val etag: String, val eventBasedHold: Boolean, val generation: String, val kind: String, val kmsKeyName: String, val md5Hash: String, val mediaLink: String, val metadata: Map<String, String>, val metageneration: String, val name: String, val owner: BucketObjectOwnerResponse, val retentionExpirationTime: String, val selfLink: String, val size: String, val storageClass: String, val temporaryHold: Boolean, val timeCreated: String, val timeDeleted: String, val timeStorageClassUpdated: String, val updated: String)

Constructors

Link copied to clipboard
fun GetBucketObjectResult(acl: List<ObjectAccessControlResponse>, bucket: String, cacheControl: String, componentCount: Int, contentDisposition: String, contentEncoding: String, contentLanguage: String, contentType: String, crc32c: String, customTime: String, customerEncryption: BucketObjectCustomerEncryptionResponse, etag: String, eventBasedHold: Boolean, generation: String, kind: String, kmsKeyName: String, md5Hash: String, mediaLink: String, metadata: Map<String, String>, metageneration: String, name: String, owner: BucketObjectOwnerResponse, retentionExpirationTime: String, selfLink: String, size: String, storageClass: String, temporaryHold: Boolean, timeCreated: String, timeDeleted: String, timeStorageClassUpdated: String, updated: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Access controls on the object.

Link copied to clipboard

The name of the bucket containing this object.

Link copied to clipboard

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.

Link copied to clipboard

Number of underlying components that make up this object. Components are accumulated by compose operations.

Link copied to clipboard

Content-Disposition of the object data.

Link copied to clipboard

Content-Encoding of the object data.

Link copied to clipboard

Content-Language of the object data.

Link copied to clipboard

Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.

Link copied to clipboard

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.

Link copied to clipboard

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

Link copied to clipboard

A timestamp in RFC 3339 format specified by the user for an object.

Link copied to clipboard

HTTP 1.1 Entity tag for the object.

Link copied to clipboard

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'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.

Link copied to clipboard

The content generation of this object. Used for object versioning.

Link copied to clipboard

The kind of item this is. For objects, this is always storage#object.

Link copied to clipboard

Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.

Link copied to clipboard

MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.

Link copied to clipboard

Media download link.

Link copied to clipboard

User-provided metadata, in key/value pairs.

Link copied to clipboard

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.

Link copied to clipboard

The name of the object. Required if not specified by URL parameter.

Link copied to clipboard

The owner of the object. This will always be the uploader of the object.

Link copied to clipboard

A server-determined value that specifies the earliest time that the object'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).

Link copied to clipboard

The link to this object.

Link copied to clipboard

Content-Length of the data in bytes.

Link copied to clipboard

Storage class of the object.

Link copied to clipboard

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.

Link copied to clipboard

The creation time of the object in RFC 3339 format.

Link copied to clipboard

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.

Link copied to clipboard

The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.

Link copied to clipboard

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.