com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.storage.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getBucketObject.
* @property bucket
* @property cacheControl (Computed) [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
* directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
* @property content
* @property contentDisposition (Computed) [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
* @property contentEncoding (Computed) [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
* @property contentLanguage (Computed) [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
* @property contentType (Computed) [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
* @property crc32c (Computed) Base 64 CRC32 hash of the uploaded data.
* @property customerEncryptions
* @property detectMd5hash
* @property eventBasedHold (Computed) Whether an object is under [event-based hold](https://cloud.google.com/storage/docs/object-holds#hold-types). 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).
* @property id The provider-assigned unique ID for this managed resource.
* @property kmsKeyName
* @property md5hash (Computed) Base 64 MD5 hash of the uploaded data.
* @property mediaLink (Computed) A url reference to download this object.
* @property metadata
* @property name
* @property outputName
* @property retentions
* @property selfLink (Computed) A url reference to this object.
* @property source
* @property storageClass (Computed) The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
* Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
* storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
* @property temporaryHold (Computed) Whether an object is under [temporary hold](https://cloud.google.com/storage/docs/object-holds#hold-types). While this flag is set to true, the object is protected against deletion and overwrites.
*/
public data class GetBucketObjectResult(
public val bucket: String? = null,
public val cacheControl: String,
public val content: String,
public val contentDisposition: String,
public val contentEncoding: String,
public val contentLanguage: String,
public val contentType: String,
public val crc32c: String,
public val customerEncryptions: List,
public val detectMd5hash: String,
public val eventBasedHold: Boolean,
public val id: String,
public val kmsKeyName: String,
public val md5hash: String,
public val mediaLink: String,
public val metadata: Map,
public val name: String? = null,
public val outputName: String,
public val retentions: List,
public val selfLink: String,
public val source: String,
public val storageClass: String,
public val temporaryHold: Boolean,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.GetBucketObjectResult): GetBucketObjectResult = GetBucketObjectResult(
bucket = javaType.bucket().map({ args0 -> args0 }).orElse(null),
cacheControl = javaType.cacheControl(),
content = javaType.content(),
contentDisposition = javaType.contentDisposition(),
contentEncoding = javaType.contentEncoding(),
contentLanguage = javaType.contentLanguage(),
contentType = javaType.contentType(),
crc32c = javaType.crc32c(),
customerEncryptions = javaType.customerEncryptions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectCustomerEncryption.Companion.toKotlin(args0)
})
}),
detectMd5hash = javaType.detectMd5hash(),
eventBasedHold = javaType.eventBasedHold(),
id = javaType.id(),
kmsKeyName = javaType.kmsKeyName(),
md5hash = javaType.md5hash(),
mediaLink = javaType.mediaLink(),
metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
outputName = javaType.outputName(),
retentions = javaType.retentions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.storage.kotlin.outputs.GetBucketObjectRetention.Companion.toKotlin(args0)
})
}),
selfLink = javaType.selfLink(),
source = javaType.source(),
storageClass = javaType.storageClass(),
temporaryHold = javaType.temporaryHold(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy