Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* A collection of values returned by getSpacesBucketObject.
* @property body Object data (see **limitations above** to understand cases in which this field is actually available)
* @property bucket
* @property cacheControl Specifies caching behavior along the request/reply chain.
* @property contentDisposition Specifies presentational information for the object.
* @property contentEncoding Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
* @property contentLanguage The language the content is in.
* @property contentLength Size of the body in bytes.
* @property contentType A standard MIME type describing the format of the object data.
* @property etag [ETag](https://en.wikipedia.org/wiki/HTTP_ETag) generated for the object (an MD5 sum of the object content in case it's not encrypted)
* @property expiration If the object expiration is configured (see [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
* @property expires The date and time at which the object is no longer cacheable.
* @property id The provider-assigned unique ID for this managed resource.
* @property key
* @property lastModified Last modified date of the object in RFC1123 format (e.g. `Mon, 02 Jan 2006 15:04:05 MST`)
* @property metadata A map of metadata stored with the object in Spaces
* @property range
* @property region
* @property versionId The latest version ID of the object returned.
* @property websiteRedirectLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Spaces stores the value of this header in the object metadata.
*/
public data class GetSpacesBucketObjectResult(
public val body: String,
public val bucket: String,
public val cacheControl: String,
public val contentDisposition: String,
public val contentEncoding: String,
public val contentLanguage: String,
public val contentLength: Int,
public val contentType: String,
public val etag: String,
public val expiration: String,
public val expires: String,
public val id: String,
public val key: String,
public val lastModified: String,
public val metadata: Map,
public val range: String? = null,
public val region: String,
public val versionId: String,
public val websiteRedirectLocation: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetSpacesBucketObjectResult): GetSpacesBucketObjectResult = GetSpacesBucketObjectResult(
body = javaType.body(),
bucket = javaType.bucket(),
cacheControl = javaType.cacheControl(),
contentDisposition = javaType.contentDisposition(),
contentEncoding = javaType.contentEncoding(),
contentLanguage = javaType.contentLanguage(),
contentLength = javaType.contentLength(),
contentType = javaType.contentType(),
etag = javaType.etag(),
expiration = javaType.expiration(),
expires = javaType.expires(),
id = javaType.id(),
key = javaType.key(),
lastModified = javaType.lastModified(),
metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
range = javaType.range().map({ args0 -> args0 }).orElse(null),
region = javaType.region(),
versionId = javaType.versionId(),
websiteRedirectLocation = javaType.websiteRedirectLocation(),
)
}
}