com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networkservices.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property headers Specifies a list of HTTP request headers to match against.
* Structure is documented below.
* @property method A gRPC method to match against. If this field is empty or omitted, will match all methods.
* Structure is documented below.
*/
public data class GrpcRouteRuleMatch(
public val headers: List? = null,
public val method: GrpcRouteRuleMatchMethod? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.GrpcRouteRuleMatch): GrpcRouteRuleMatch = GrpcRouteRuleMatch(
headers = javaType.headers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatchHeader.Companion.toKotlin(args0)
})
}),
method = javaType.method().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleMatchMethod.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy