All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.storage.kotlin.outputs.GetObjectSignedUrlResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.storage.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * A collection of values returned by getObjectSignedUrl.
 * @property bucket
 * @property contentMd5
 * @property contentType
 * @property credentials
 * @property duration
 * @property extensionHeaders
 * @property httpMethod
 * @property id The provider-assigned unique ID for this managed resource.
 * @property path
 * @property signedUrl The signed URL that can be used to access the storage object without authentication.
 */
public data class GetObjectSignedUrlResult(
    public val bucket: String,
    public val contentMd5: String? = null,
    public val contentType: String? = null,
    public val credentials: String? = null,
    public val duration: String? = null,
    public val extensionHeaders: Map? = null,
    public val httpMethod: String? = null,
    public val id: String,
    public val path: String,
    public val signedUrl: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.GetObjectSignedUrlResult): GetObjectSignedUrlResult = GetObjectSignedUrlResult(
            bucket = javaType.bucket(),
            contentMd5 = javaType.contentMd5().map({ args0 -> args0 }).orElse(null),
            contentType = javaType.contentType().map({ args0 -> args0 }).orElse(null),
            credentials = javaType.credentials().map({ args0 -> args0 }).orElse(null),
            duration = javaType.duration().map({ args0 -> args0 }).orElse(null),
            extensionHeaders = javaType.extensionHeaders().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            httpMethod = javaType.httpMethod().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            path = javaType.path(),
            signedUrl = javaType.signedUrl(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy