com.pulumi.gcp.artifactregistry.kotlin.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs.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.artifactregistry.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property keepCount Minimum number of versions to keep.
* @property packageNamePrefixes Match versions by package prefix. Applied on any prefix match.
*/
public data class RepositoryCleanupPolicyMostRecentVersionsArgs(
public val keepCount: Output? = null,
public val packageNamePrefixes: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs =
com.pulumi.gcp.artifactregistry.inputs.RepositoryCleanupPolicyMostRecentVersionsArgs.builder()
.keepCount(keepCount?.applyValue({ args0 -> args0 }))
.packageNamePrefixes(
packageNamePrefixes?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [RepositoryCleanupPolicyMostRecentVersionsArgs].
*/
@PulumiTagMarker
public class RepositoryCleanupPolicyMostRecentVersionsArgsBuilder internal constructor() {
private var keepCount: Output? = null
private var packageNamePrefixes: Output>? = null
/**
* @param value Minimum number of versions to keep.
*/
@JvmName("nhbmerdpknqkdftw")
public suspend fun keepCount(`value`: Output) {
this.keepCount = value
}
/**
* @param value Match versions by package prefix. Applied on any prefix match.
*/
@JvmName("wybixsepiiwnobtw")
public suspend fun packageNamePrefixes(`value`: Output>) {
this.packageNamePrefixes = value
}
@JvmName("bhtfjnwqjwberhik")
public suspend fun packageNamePrefixes(vararg values: Output) {
this.packageNamePrefixes = Output.all(values.asList())
}
/**
* @param values Match versions by package prefix. Applied on any prefix match.
*/
@JvmName("yxwdkhayogijkydj")
public suspend fun packageNamePrefixes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy