com.pulumi.azurenative.app.kotlin.outputs.TemplateResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Container App versioned application definition.
* Defines the desired state of an immutable revision.
* Any changes to this section Will result in a new revision being created
* @property containers List of container definitions for the Container App.
* @property initContainers List of specialized containers that run before app containers.
* @property revisionSuffix User friendly suffix that is appended to the revision name
* @property scale Scaling properties for the Container App.
* @property volumes List of volume definitions for the Container App.
*/
public data class TemplateResponse(
public val containers: List? = null,
public val initContainers: List? = null,
public val revisionSuffix: String? = null,
public val scale: ScaleResponse? = null,
public val volumes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.app.outputs.TemplateResponse): TemplateResponse = TemplateResponse(
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.app.kotlin.outputs.ContainerResponse.Companion.toKotlin(args0)
})
}),
initContainers = javaType.initContainers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.app.kotlin.outputs.InitContainerResponse.Companion.toKotlin(args0)
})
}),
revisionSuffix = javaType.revisionSuffix().map({ args0 -> args0 }).orElse(null),
scale = javaType.scale().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.app.kotlin.outputs.ScaleResponse.Companion.toKotlin(args0)
})
}).orElse(null),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.app.kotlin.outputs.VolumeResponse.Companion.toKotlin(args0)
})
}),
)
}
}