
com.pulumi.azure.compute.kotlin.outputs.GetVirtualMachineResult.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.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getVirtualMachine.
* @property id The provider-assigned unique ID for this managed resource.
* @property identities A `identity` block as defined below.
* @property location
* @property name
* @property powerState The power state of the virtual machine.
* @property privateIpAddress The Primary Private IP Address assigned to this Virtual Machine.
* @property privateIpAddresses A list of Private IP Addresses assigned to this Virtual Machine.
* @property publicIpAddress The Primary Public IP Address assigned to this Virtual Machine.
* @property publicIpAddresses A list of the Public IP Addresses assigned to this Virtual Machine.
* @property resourceGroupName
*/
public data class GetVirtualMachineResult(
public val id: String,
public val identities: List,
public val location: String,
public val name: String,
public val powerState: String,
public val privateIpAddress: String,
public val privateIpAddresses: List,
public val publicIpAddress: String,
public val publicIpAddresses: List,
public val resourceGroupName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.GetVirtualMachineResult):
GetVirtualMachineResult = GetVirtualMachineResult(
id = javaType.id(),
identities = javaType.identities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.compute.kotlin.outputs.GetVirtualMachineIdentity.Companion.toKotlin(args0)
})
}),
location = javaType.location(),
name = javaType.name(),
powerState = javaType.powerState(),
privateIpAddress = javaType.privateIpAddress(),
privateIpAddresses = javaType.privateIpAddresses().map({ args0 -> args0 }),
publicIpAddress = javaType.publicIpAddress(),
publicIpAddresses = javaType.publicIpAddresses().map({ args0 -> args0 }),
resourceGroupName = javaType.resourceGroupName(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy