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

com.pulumi.gcp.artifactregistry.kotlin.outputs.GetRepositoryCleanupPolicy.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.12.0.0
Show newest version
@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