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

com.pulumi.gcp.firebase.kotlin.outputs.HostingVersionConfigHeader.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.firebase.kotlin.outputs

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

/**
 *
 * @property glob The user-supplied glob to match against the request URL path.
 * @property headers The additional headers to add to the response. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
 * @property regex The user-supplied RE2 regular expression to match against the request URL path.
 */
public data class HostingVersionConfigHeader(
    public val glob: String? = null,
    public val headers: Map,
    public val regex: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.firebase.outputs.HostingVersionConfigHeader): HostingVersionConfigHeader = HostingVersionConfigHeader(
            glob = javaType.glob().map({ args0 -> args0 }).orElse(null),
            headers = javaType.headers().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            regex = javaType.regex().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy