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

com.pulumi.googlenative.compute.alpha.kotlin.RegionUrlMapArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.alpha.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.RegionUrlMapArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.CustomErrorResponsePolicyArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.CustomErrorResponsePolicyArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HostRuleArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HostRuleArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpHeaderActionArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpHeaderActionArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpRedirectActionArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpRedirectActionArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpRouteActionArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.HttpRouteActionArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.PathMatcherArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.PathMatcherArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.UrlMapTestArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.UrlMapTestArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a UrlMap resource in the specified project using the data included in the request.
 * @property defaultCustomErrorResponsePolicy defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the Load Balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for Global External HTTP(S) load balancing.
 * @property defaultRouteAction defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
 * @property defaultService The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
 * @property defaultUrlRedirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
 * @property description An optional description of this resource. Provide this property when you create the resource.
 * @property headerAction Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
 * @property hostRules The list of host rules to use against the URL.
 * @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
 * @property pathMatchers The list of named PathMatchers to use against the URL.
 * @property project
 * @property region
 * @property requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
 * @property tests The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
 */
public data class RegionUrlMapArgs(
    public val defaultCustomErrorResponsePolicy: Output? = null,
    public val defaultRouteAction: Output? = null,
    public val defaultService: Output? = null,
    public val defaultUrlRedirect: Output? = null,
    public val description: Output? = null,
    public val headerAction: Output? = null,
    public val hostRules: Output>? = null,
    public val name: Output? = null,
    public val pathMatchers: Output>? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val requestId: Output? = null,
    public val tests: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.alpha.RegionUrlMapArgs =
        com.pulumi.googlenative.compute.alpha.RegionUrlMapArgs.builder()
            .defaultCustomErrorResponsePolicy(
                defaultCustomErrorResponsePolicy?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .defaultRouteAction(
                defaultRouteAction?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .defaultService(defaultService?.applyValue({ args0 -> args0 }))
            .defaultUrlRedirect(
                defaultUrlRedirect?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .headerAction(headerAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hostRules(
                hostRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .pathMatchers(
                pathMatchers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 }))
            .tests(
                tests?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RegionUrlMapArgs].
 */
@PulumiTagMarker
public class RegionUrlMapArgsBuilder internal constructor() {
    private var defaultCustomErrorResponsePolicy: Output? = null

    private var defaultRouteAction: Output? = null

    private var defaultService: Output? = null

    private var defaultUrlRedirect: Output? = null

    private var description: Output? = null

    private var headerAction: Output? = null

    private var hostRules: Output>? = null

    private var name: Output? = null

    private var pathMatchers: Output>? = null

    private var project: Output? = null

    private var region: Output? = null

    private var requestId: Output? = null

    private var tests: Output>? = null

    /**
     * @param value defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the Load Balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for Global External HTTP(S) load balancing.
     */
    @JvmName("bqksoeopsrsaaffn")
    public suspend fun defaultCustomErrorResponsePolicy(`value`: Output) {
        this.defaultCustomErrorResponsePolicy = value
    }

    /**
     * @param value defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
     */
    @JvmName("itrqlolevbinmcex")
    public suspend fun defaultRouteAction(`value`: Output) {
        this.defaultRouteAction = value
    }

    /**
     * @param value The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
     */
    @JvmName("babugkwlkeeeklaa")
    public suspend fun defaultService(`value`: Output) {
        this.defaultService = value
    }

    /**
     * @param value When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
     */
    @JvmName("slmmfjdcvnxufrsp")
    public suspend fun defaultUrlRedirect(`value`: Output) {
        this.defaultUrlRedirect = value
    }

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("niyrklmnfwrtpxjh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("mhqqpxqyawhfkoba")
    public suspend fun headerAction(`value`: Output) {
        this.headerAction = value
    }

    /**
     * @param value The list of host rules to use against the URL.
     */
    @JvmName("guijymeidtmrodri")
    public suspend fun hostRules(`value`: Output>) {
        this.hostRules = value
    }

    @JvmName("ppsmohxankkvecbr")
    public suspend fun hostRules(vararg values: Output) {
        this.hostRules = Output.all(values.asList())
    }

    /**
     * @param values The list of host rules to use against the URL.
     */
    @JvmName("kccohqfleawhjrpi")
    public suspend fun hostRules(values: List>) {
        this.hostRules = Output.all(values)
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("xkwfexahgcvhfkoq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The list of named PathMatchers to use against the URL.
     */
    @JvmName("xxqjkygjicuihjrm")
    public suspend fun pathMatchers(`value`: Output>) {
        this.pathMatchers = value
    }

    @JvmName("aemhhqucayxcemin")
    public suspend fun pathMatchers(vararg values: Output) {
        this.pathMatchers = Output.all(values.asList())
    }

    /**
     * @param values The list of named PathMatchers to use against the URL.
     */
    @JvmName("qscoadgwaitlkvrd")
    public suspend fun pathMatchers(values: List>) {
        this.pathMatchers = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("uqyeipqnsvwrmprg")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value
     */
    @JvmName("xpbvomyiappygxgi")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
     */
    @JvmName("xeocjgfdocxdvuws")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("eabbegxkcvuqybsd")
    public suspend fun tests(`value`: Output>) {
        this.tests = value
    }

    @JvmName("yimefayubtaixyqr")
    public suspend fun tests(vararg values: Output) {
        this.tests = Output.all(values.asList())
    }

    /**
     * @param values The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("qohsvpclvjkqwwnb")
    public suspend fun tests(values: List>) {
        this.tests = Output.all(values)
    }

    /**
     * @param value defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the Load Balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for Global External HTTP(S) load balancing.
     */
    @JvmName("vgbxxgyktpnhugkf")
    public suspend fun defaultCustomErrorResponsePolicy(`value`: CustomErrorResponsePolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultCustomErrorResponsePolicy = mapped
    }

    /**
     * @param argument defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the Load Balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client. defaultCustomErrorResponsePolicy is supported only for Global External HTTP(S) load balancing.
     */
    @JvmName("neaewwebptjouvro")
    public suspend fun defaultCustomErrorResponsePolicy(argument: suspend CustomErrorResponsePolicyArgsBuilder.() -> Unit) {
        val toBeMapped = CustomErrorResponsePolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultCustomErrorResponsePolicy = mapped
    }

    /**
     * @param value defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
     */
    @JvmName("bkrjdervaoejplrj")
    public suspend fun defaultRouteAction(`value`: HttpRouteActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRouteAction = mapped
    }

    /**
     * @param argument defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
     */
    @JvmName("xmlcbjipipubmsgd")
    public suspend fun defaultRouteAction(argument: suspend HttpRouteActionArgsBuilder.() -> Unit) {
        val toBeMapped = HttpRouteActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultRouteAction = mapped
    }

    /**
     * @param value The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
     */
    @JvmName("uvcppnygdbgcrfhi")
    public suspend fun defaultService(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultService = mapped
    }

    /**
     * @param value When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
     */
    @JvmName("krdujbhnehiwxelu")
    public suspend fun defaultUrlRedirect(`value`: HttpRedirectActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultUrlRedirect = mapped
    }

    /**
     * @param argument When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
     */
    @JvmName("bcwgcqswjqpammsr")
    public suspend fun defaultUrlRedirect(argument: suspend HttpRedirectActionArgsBuilder.() -> Unit) {
        val toBeMapped = HttpRedirectActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultUrlRedirect = mapped
    }

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("jjimjxrtjypnhwnp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("vrjshoptshdclmyl")
    public suspend fun headerAction(`value`: HttpHeaderActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerAction = mapped
    }

    /**
     * @param argument Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("wqbgasvxienivysn")
    public suspend fun headerAction(argument: suspend HttpHeaderActionArgsBuilder.() -> Unit) {
        val toBeMapped = HttpHeaderActionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.headerAction = mapped
    }

    /**
     * @param value The list of host rules to use against the URL.
     */
    @JvmName("lusymxcwrmbbsmjj")
    public suspend fun hostRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostRules = mapped
    }

    /**
     * @param argument The list of host rules to use against the URL.
     */
    @JvmName("aypifpwgivgcwiwt")
    public suspend fun hostRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map { HostRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.hostRules = mapped
    }

    /**
     * @param argument The list of host rules to use against the URL.
     */
    @JvmName("eqwwvnshwkbrxsix")
    public suspend fun hostRules(vararg argument: suspend HostRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { HostRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.hostRules = mapped
    }

    /**
     * @param argument The list of host rules to use against the URL.
     */
    @JvmName("nicphipencwvdspr")
    public suspend fun hostRules(argument: suspend HostRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(HostRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.hostRules = mapped
    }

    /**
     * @param values The list of host rules to use against the URL.
     */
    @JvmName("lyxkjircwtotrjxm")
    public suspend fun hostRules(vararg values: HostRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostRules = mapped
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("kwjrfmaftcladhsq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The list of named PathMatchers to use against the URL.
     */
    @JvmName("wtogilbdulbtefbw")
    public suspend fun pathMatchers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathMatchers = mapped
    }

    /**
     * @param argument The list of named PathMatchers to use against the URL.
     */
    @JvmName("lboxkpwgmnotcfqt")
    public suspend fun pathMatchers(argument: List Unit>) {
        val toBeMapped = argument.toList().map { PathMatcherArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.pathMatchers = mapped
    }

    /**
     * @param argument The list of named PathMatchers to use against the URL.
     */
    @JvmName("dkcogsguohdseiti")
    public suspend fun pathMatchers(vararg argument: suspend PathMatcherArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { PathMatcherArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.pathMatchers = mapped
    }

    /**
     * @param argument The list of named PathMatchers to use against the URL.
     */
    @JvmName("rvdbvlatpjikkups")
    public suspend fun pathMatchers(argument: suspend PathMatcherArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PathMatcherArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.pathMatchers = mapped
    }

    /**
     * @param values The list of named PathMatchers to use against the URL.
     */
    @JvmName("kyujhqbpjxbilfgk")
    public suspend fun pathMatchers(vararg values: PathMatcherArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pathMatchers = mapped
    }

    /**
     * @param value
     */
    @JvmName("bqaqpwsaujlwpohh")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value
     */
    @JvmName("brvkfvrfyyicnaxf")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
     */
    @JvmName("pjpiyqfffjbygqjj")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    /**
     * @param value The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("bjgclrfijdvnlgkm")
    public suspend fun tests(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tests = mapped
    }

    /**
     * @param argument The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("obpebhmadftuvcjw")
    public suspend fun tests(argument: List Unit>) {
        val toBeMapped = argument.toList().map { UrlMapTestArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tests = mapped
    }

    /**
     * @param argument The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("sabqhvsymargehmt")
    public suspend fun tests(vararg argument: suspend UrlMapTestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { UrlMapTestArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tests = mapped
    }

    /**
     * @param argument The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("jwsxreftqvyvrrmc")
    public suspend fun tests(argument: suspend UrlMapTestArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(UrlMapTestArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tests = mapped
    }

    /**
     * @param values The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
     */
    @JvmName("dlledxjubctlhaph")
    public suspend fun tests(vararg values: UrlMapTestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tests = mapped
    }

    internal fun build(): RegionUrlMapArgs = RegionUrlMapArgs(
        defaultCustomErrorResponsePolicy = defaultCustomErrorResponsePolicy,
        defaultRouteAction = defaultRouteAction,
        defaultService = defaultService,
        defaultUrlRedirect = defaultUrlRedirect,
        description = description,
        headerAction = headerAction,
        hostRules = hostRules,
        name = name,
        pathMatchers = pathMatchers,
        project = project,
        region = region,
        requestId = requestId,
        tests = tests,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy