com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.IPBlockPatchArgs.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.extensions.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.extensions.v1beta1.inputs.IPBlockPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
* @property cidr CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
* @property except Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
*/
public data class IPBlockPatchArgs(
public val cidr: Output? = null,
public val except: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.IPBlockPatchArgs =
com.pulumi.kubernetes.extensions.v1beta1.inputs.IPBlockPatchArgs.builder()
.cidr(cidr?.applyValue({ args0 -> args0 }))
.except(except?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [IPBlockPatchArgs].
*/
@PulumiTagMarker
public class IPBlockPatchArgsBuilder internal constructor() {
private var cidr: Output? = null
private var except: Output>? = null
/**
* @param value CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
*/
@JvmName("xywcnthyswokhcov")
public suspend fun cidr(`value`: Output) {
this.cidr = value
}
/**
* @param value Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
*/
@JvmName("arnrvqdiuagkrfhb")
public suspend fun except(`value`: Output>) {
this.except = value
}
@JvmName("iiqjrtykrrseknik")
public suspend fun except(vararg values: Output) {
this.except = Output.all(values.asList())
}
/**
* @param values Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
*/
@JvmName("cuakiikjpmruseqw")
public suspend fun except(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy