All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.artifactregistry.kotlin.outputs.RepositoryCleanupPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.artifactregistry.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property action Policy action.
 * Possible values are: `DELETE`, `KEEP`.
 * @property condition Policy condition for matching versions.
 * Structure is documented below.
 * @property id The identifier for this object. Format specified above.
 * @property mostRecentVersions Policy condition for retaining a minimum number of versions. May only be
 * specified with a Keep action.
 * Structure is documented below.
 */
public data class RepositoryCleanupPolicy(
    public val action: String? = null,
    public val condition: RepositoryCleanupPolicyCondition? = null,
    public val id: String,
    public val mostRecentVersions: RepositoryCleanupPolicyMostRecentVersions? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.artifactregistry.outputs.RepositoryCleanupPolicy): RepositoryCleanupPolicy = RepositoryCleanupPolicy(
            action = javaType.action().map({ args0 -> args0 }).orElse(null),
            condition = javaType.condition().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.artifactregistry.kotlin.outputs.RepositoryCleanupPolicyCondition.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id(),
            mostRecentVersions = javaType.mostRecentVersions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.artifactregistry.kotlin.outputs.RepositoryCleanupPolicyMostRecentVersions.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy