com.pulumi.azure.batch.kotlin.outputs.GetPoolStartTask.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property commandLine The command line executed by the start task.
* @property commonEnvironmentProperties A map of strings (key,value) that represents the environment variables to set in the start task.
* @property containers The settings for the container under which the start task runs.
* @property resourceFiles One or more `resource_file` blocks that describe the files to be downloaded to a compute node.
* @property taskRetryMaximum The number of retry count
* @property userIdentities A `user_identity` block that describes the user identity under which the start task runs.
* @property waitForSuccess A flag that indicates if the Batch pool should wait for the start task to be completed.
*/
public data class GetPoolStartTask(
public val commandLine: String,
public val commonEnvironmentProperties: Map? = null,
public val containers: List,
public val resourceFiles: List,
public val taskRetryMaximum: Int,
public val userIdentities: List,
public val waitForSuccess: Boolean,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.GetPoolStartTask): GetPoolStartTask = GetPoolStartTask(
commandLine = javaType.commandLine(),
commonEnvironmentProperties = javaType.commonEnvironmentProperties().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.GetPoolStartTaskContainer.Companion.toKotlin(args0)
})
}),
resourceFiles = javaType.resourceFiles().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.GetPoolStartTaskResourceFile.Companion.toKotlin(args0)
})
}),
taskRetryMaximum = javaType.taskRetryMaximum(),
userIdentities = javaType.userIdentities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.GetPoolStartTaskUserIdentity.Companion.toKotlin(args0)
})
}),
waitForSuccess = javaType.waitForSuccess(),
)
}
}