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

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

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

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

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property redirects An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path,
 * triggers Hosting to respond with a redirect to the specified destination path.
 * Structure is documented below.
 * @property rewrites An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the
 * request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
 * Structure is documented below.
 */
public data class HostingVersionConfig(
    public val redirects: List? = null,
    public val rewrites: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.firebase.outputs.HostingVersionConfig): HostingVersionConfig = HostingVersionConfig(
            redirects = javaType.redirects().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.firebase.kotlin.outputs.HostingVersionConfigRedirect.Companion.toKotlin(args0)
                })
            }),
            rewrites = javaType.rewrites().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.firebase.kotlin.outputs.HostingVersionConfigRewrite.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy