com.pulumi.azure.netapp.kotlin.outputs.GetSnapshotPolicyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.netapp.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getSnapshotPolicy.
* @property accountName The name of the NetApp Account in which the NetApp Snapshot Policy was created.
* @property dailySchedules Daily snapshot schedule.
* @property enabled Defines that the NetApp Snapshot Policy is enabled or not.
* @property hourlySchedules Hourly snapshot schedule.
* @property id The provider-assigned unique ID for this managed resource.
* @property location Specifies the supported Azure location where the resource exists.
* @property monthlySchedules List of the days of the month when the snapshots will be created.
* @property name The name of the NetApp Snapshot Policy.
* @property resourceGroupName The name of the resource group where the NetApp Snapshot Policy should be created.
* @property tags
* @property weeklySchedules Weekly snapshot schedule.
*/
public data class GetSnapshotPolicyResult(
public val accountName: String,
public val dailySchedules: List,
public val enabled: Boolean,
public val hourlySchedules: List,
public val id: String,
public val location: String,
public val monthlySchedules: List,
public val name: String,
public val resourceGroupName: String,
public val tags: Map,
public val weeklySchedules: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.netapp.outputs.GetSnapshotPolicyResult):
GetSnapshotPolicyResult = GetSnapshotPolicyResult(
accountName = javaType.accountName(),
dailySchedules = javaType.dailySchedules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.netapp.kotlin.outputs.GetSnapshotPolicyDailySchedule.Companion.toKotlin(args0)
})
}),
enabled = javaType.enabled(),
hourlySchedules = javaType.hourlySchedules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.netapp.kotlin.outputs.GetSnapshotPolicyHourlySchedule.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
location = javaType.location(),
monthlySchedules = javaType.monthlySchedules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.netapp.kotlin.outputs.GetSnapshotPolicyMonthlySchedule.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
resourceGroupName = javaType.resourceGroupName(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
weeklySchedules = javaType.weeklySchedules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.netapp.kotlin.outputs.GetSnapshotPolicyWeeklySchedule.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy