![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.compute.kotlin.outputs.GetImageResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
* @property extendedLocation The extended location of the Image.
* @property hyperVGeneration Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
* @property id Resource Id
* @property location Resource location
* @property name Resource name
* @property provisioningState The provisioning state.
* @property sourceVirtualMachine The source virtual machine from which Image is created.
* @property storageProfile Specifies the storage settings for the virtual machine disks.
* @property tags Resource tags
* @property type Resource type
*/
public data class GetImageResult(
public val extendedLocation: ExtendedLocationResponse? = null,
public val hyperVGeneration: String? = null,
public val id: String,
public val location: String,
public val name: String,
public val provisioningState: String,
public val sourceVirtualMachine: SubResourceResponse? = null,
public val storageProfile: ImageStorageProfileResponse? = null,
public val tags: Map? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.compute.outputs.GetImageResult): GetImageResult = GetImageResult(
extendedLocation = javaType.extendedLocation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.compute.kotlin.outputs.ExtendedLocationResponse.Companion.toKotlin(args0)
})
}).orElse(null),
hyperVGeneration = javaType.hyperVGeneration().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
location = javaType.location(),
name = javaType.name(),
provisioningState = javaType.provisioningState(),
sourceVirtualMachine = javaType.sourceVirtualMachine().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.compute.kotlin.outputs.SubResourceResponse.Companion.toKotlin(args0)
})
}).orElse(null),
storageProfile = javaType.storageProfile().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.compute.kotlin.outputs.ImageStorageProfileResponse.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy