com.pulumi.gcp.artifactregistry.kotlin.outputs.GetRepositoryCleanupPolicy.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property action Policy action. Possible values: ["DELETE", "KEEP"]
* @property conditions Policy condition for matching versions.
* @property id
* @property mostRecentVersions Policy condition for retaining a minimum number of versions. May only be
* specified with a Keep action.
*/
public data class GetRepositoryCleanupPolicy(
public val action: String,
public val conditions: List,
public val id: String,
public val mostRecentVersions: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.artifactregistry.outputs.GetRepositoryCleanupPolicy): GetRepositoryCleanupPolicy = GetRepositoryCleanupPolicy(
action = javaType.action(),
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.artifactregistry.kotlin.outputs.GetRepositoryCleanupPolicyCondition.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
mostRecentVersions = javaType.mostRecentVersions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.artifactregistry.kotlin.outputs.GetRepositoryCleanupPolicyMostRecentVersion.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy