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

com.pulumi.azure.compute.kotlin.outputs.GetSnapshotResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getSnapshot.
 * @property creationOption
 * @property diskSizeGb The size of the Snapshotted Disk in GB.
 * @property encryptionSettings
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property osType
 * @property resourceGroupName
 * @property sourceResourceId The reference to an existing snapshot.
 * @property sourceUri The URI to a Managed or Unmanaged Disk.
 * @property storageAccountId The ID of an storage account.
 * @property timeCreated
 * @property trustedLaunchEnabled Whether Trusted Launch is enabled for the Snapshot.
 */
public data class GetSnapshotResult(
    public val creationOption: String,
    public val diskSizeGb: Int,
    public val encryptionSettings: List,
    public val id: String,
    public val name: String,
    public val osType: String,
    public val resourceGroupName: String,
    public val sourceResourceId: String,
    public val sourceUri: String,
    public val storageAccountId: String,
    public val timeCreated: String,
    public val trustedLaunchEnabled: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.GetSnapshotResult): GetSnapshotResult = GetSnapshotResult(
            creationOption = javaType.creationOption(),
            diskSizeGb = javaType.diskSizeGb(),
            encryptionSettings = javaType.encryptionSettings().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.compute.kotlin.outputs.GetSnapshotEncryptionSetting.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            name = javaType.name(),
            osType = javaType.osType(),
            resourceGroupName = javaType.resourceGroupName(),
            sourceResourceId = javaType.sourceResourceId(),
            sourceUri = javaType.sourceUri(),
            storageAccountId = javaType.storageAccountId(),
            timeCreated = javaType.timeCreated(),
            trustedLaunchEnabled = javaType.trustedLaunchEnabled(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy