com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicy.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.compute.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property retentionPolicies Retention policy applied to snapshots created by this resource policy.
* @property schedules Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
* @property snapshotProperties Properties with which the snapshots are created, such as labels.
*/
public data class GetResourcePolicySnapshotSchedulePolicy(
public val retentionPolicies: List,
public val schedules: List,
public val snapshotProperties: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetResourcePolicySnapshotSchedulePolicy): GetResourcePolicySnapshotSchedulePolicy = GetResourcePolicySnapshotSchedulePolicy(
retentionPolicies = javaType.retentionPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicyRetentionPolicy.Companion.toKotlin(args0)
})
}),
schedules = javaType.schedules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicySchedule.Companion.toKotlin(args0)
})
}),
snapshotProperties = javaType.snapshotProperties().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicySnapshotProperty.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy