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

com.pulumi.azurenative.hybridcompute.kotlin.outputs.AgentUpgradeResponse.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hybridcompute.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * The info w.r.t Agent Upgrade.
 * @property correlationId The correlation ID passed in from RSM per upgrade.
 * @property desiredVersion Specifies the version info w.r.t AgentUpgrade for the machine.
 * @property enableAutomaticUpgrade Specifies if RSM should try to upgrade this machine
 * @property lastAttemptMessage Failure message of last upgrade attempt if any.
 * @property lastAttemptStatus Specifies the status of Agent Upgrade.
 * @property lastAttemptTimestamp Timestamp of last upgrade attempt
 */
public data class AgentUpgradeResponse(
    public val correlationId: String? = null,
    public val desiredVersion: String? = null,
    public val enableAutomaticUpgrade: Boolean? = null,
    public val lastAttemptMessage: String,
    public val lastAttemptStatus: String,
    public val lastAttemptTimestamp: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.hybridcompute.outputs.AgentUpgradeResponse): AgentUpgradeResponse = AgentUpgradeResponse(
            correlationId = javaType.correlationId().map({ args0 -> args0 }).orElse(null),
            desiredVersion = javaType.desiredVersion().map({ args0 -> args0 }).orElse(null),
            enableAutomaticUpgrade = javaType.enableAutomaticUpgrade().map({ args0 -> args0 }).orElse(null),
            lastAttemptMessage = javaType.lastAttemptMessage(),
            lastAttemptStatus = javaType.lastAttemptStatus(),
            lastAttemptTimestamp = javaType.lastAttemptTimestamp(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy