com.pulumi.gcp.netapp.kotlin.outputs.VolumeSnapshotPolicy.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.netapp.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
*
* @property dailySchedule Daily schedule policy.
* Structure is documented below.
* @property enabled Enables automated snapshot creation according to defined schedule. Default is false.
* To disable automatic snapshot creation you have to remove the whole snapshot_policy block.
* @property hourlySchedule Hourly schedule policy.
* Structure is documented below.
* @property monthlySchedule Monthly schedule policy.
* Structure is documented below.
* @property weeklySchedule Weekly schedule policy.
* Structure is documented below.
*/
public data class VolumeSnapshotPolicy(
public val dailySchedule: VolumeSnapshotPolicyDailySchedule? = null,
public val enabled: Boolean? = null,
public val hourlySchedule: VolumeSnapshotPolicyHourlySchedule? = null,
public val monthlySchedule: VolumeSnapshotPolicyMonthlySchedule? = null,
public val weeklySchedule: VolumeSnapshotPolicyWeeklySchedule? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.netapp.outputs.VolumeSnapshotPolicy): VolumeSnapshotPolicy = VolumeSnapshotPolicy(
dailySchedule = javaType.dailySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.netapp.kotlin.outputs.VolumeSnapshotPolicyDailySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
hourlySchedule = javaType.hourlySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.netapp.kotlin.outputs.VolumeSnapshotPolicyHourlySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
monthlySchedule = javaType.monthlySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.netapp.kotlin.outputs.VolumeSnapshotPolicyMonthlySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
weeklySchedule = javaType.weeklySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.netapp.kotlin.outputs.VolumeSnapshotPolicyWeeklySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy