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

com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicyRetentionPolicy.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property maxRetentionDays Maximum age of the snapshot that is allowed to be kept.
 * @property onSourceDiskDelete Specifies the behavior to apply to scheduled snapshots when
 * the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
 */
public data class GetResourcePolicySnapshotSchedulePolicyRetentionPolicy(
    public val maxRetentionDays: Int,
    public val onSourceDiskDelete: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetResourcePolicySnapshotSchedulePolicyRetentionPolicy): GetResourcePolicySnapshotSchedulePolicyRetentionPolicy =
            GetResourcePolicySnapshotSchedulePolicyRetentionPolicy(
                maxRetentionDays = javaType.maxRetentionDays(),
                onSourceDiskDelete = javaType.onSourceDiskDelete(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy