com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicySnapshotSchedulePolicySchedule.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
/**
*
* @property dailySchedule The policy will execute every nth day at the specified time.
* Structure is documented below.
* @property hourlySchedule The policy will execute every nth hour starting at the specified time.
* Structure is documented below.
* @property weeklySchedule Allows specifying a snapshot time for each day of the week.
* Structure is documented below.
*/
public data class ResourcePolicySnapshotSchedulePolicySchedule(
public val dailySchedule: ResourcePolicySnapshotSchedulePolicyScheduleDailySchedule? = null,
public val hourlySchedule: ResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule? = null,
public val weeklySchedule: ResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.ResourcePolicySnapshotSchedulePolicySchedule): ResourcePolicySnapshotSchedulePolicySchedule = ResourcePolicySnapshotSchedulePolicySchedule(
dailySchedule = javaType.dailySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicySnapshotSchedulePolicyScheduleDailySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
hourlySchedule = javaType.hourlySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
weeklySchedule = javaType.weeklySchedule().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy