
com.pulumi.azurenative.azurestackhci.kotlin.outputs.GetMachineExtensionResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurestackhci.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* Describes a Machine Extension.
* @property autoUpgradeMinorVersion Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
* @property forceUpdateTag How the extension handler should be forced to update even if the extension configuration has not changed.
* @property id The Id.
* @property instanceView The machine extension instance view.
* @property location The location.
* @property name The name.
* @property protectedSettings The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
* @property provisioningState The provisioning state, which only appears in the response.
* @property publisher The name of the extension handler publisher.
* @property settings Json formatted public settings for the extension.
* @property systemData The system data.
* @property tags The Resource tags.
* @property type The type of the resource.
* @property typeHandlerVersion Specifies the version of the script handler.
*/
public data class GetMachineExtensionResult(
public val autoUpgradeMinorVersion: Boolean? = null,
public val forceUpdateTag: String? = null,
public val id: String,
public val instanceView: MachineExtensionPropertiesResponseInstanceView? = null,
public val location: String? = null,
public val name: String,
public val protectedSettings: Any? = null,
public val provisioningState: String,
public val publisher: String? = null,
public val settings: Any? = null,
public val systemData: SystemDataResponse,
public val tags: Map? = null,
public val type: String,
public val typeHandlerVersion: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.azurestackhci.outputs.GetMachineExtensionResult): GetMachineExtensionResult = GetMachineExtensionResult(
autoUpgradeMinorVersion = javaType.autoUpgradeMinorVersion().map({ args0 -> args0 }).orElse(null),
forceUpdateTag = javaType.forceUpdateTag().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
instanceView = javaType.instanceView().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.MachineExtensionPropertiesResponseInstanceView.Companion.toKotlin(args0)
})
}).orElse(null),
location = javaType.location().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
protectedSettings = javaType.protectedSettings().map({ args0 -> args0 }).orElse(null),
provisioningState = javaType.provisioningState(),
publisher = javaType.publisher().map({ args0 -> args0 }).orElse(null),
settings = javaType.settings().map({ args0 -> args0 }).orElse(null),
systemData = javaType.systemData().let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.SystemDataResponse.Companion.toKotlin(args0)
}),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
type = javaType.type(),
typeHandlerVersion = javaType.typeHandlerVersion().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy