
com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleToOperation.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networksecurity.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property headerSet A list of headers to match against in http header.
* Structure is documented below.
* @property hosts A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set.
* Limited to 5 matches.
* Structure is documented below.
* @property methods A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive.
* @property paths A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set.
* Limited to 5 matches.
* Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.
* Structure is documented below.
*/
public data class AuthzPolicyHttpRuleToOperation(
public val headerSet: AuthzPolicyHttpRuleToOperationHeaderSet? = null,
public val hosts: List? = null,
public val methods: List? = null,
public val paths: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networksecurity.outputs.AuthzPolicyHttpRuleToOperation): AuthzPolicyHttpRuleToOperation = AuthzPolicyHttpRuleToOperation(
headerSet = javaType.headerSet().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleToOperationHeaderSet.Companion.toKotlin(args0)
})
}).orElse(null),
hosts = javaType.hosts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleToOperationHost.Companion.toKotlin(args0)
})
}),
methods = javaType.methods().map({ args0 -> args0 }),
paths = javaType.paths().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleToOperationPath.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy