com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.outputs.NonResourcePolicyRulePatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.flowcontrol.v1beta3.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
* @property nonResourceURLs `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
* - "/healthz" is legal
* - "/hea*" is illegal
* - "/hea" is legal but matches nothing
* - "/hea/*" also matches nothing
* - "/healthz/*" matches all per-component health checks.
* "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
* @property verbs `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
* */*/
*/
public data class NonResourcePolicyRulePatch(
public val nonResourceURLs: List? = null,
public val verbs: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.NonResourcePolicyRulePatch): NonResourcePolicyRulePatch = NonResourcePolicyRulePatch(
nonResourceURLs = javaType.nonResourceURLs().map({ args0 -> args0 }),
verbs = javaType.verbs().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy