Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.EnvironmentVersionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.EnvironmentVersionArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.AutoRebuildSetting
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.OperatingSystemType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Environment version details.
* @property autoRebuild Defines if image needs to be rebuilt based on base image changes.
* @property build Configuration settings for Docker build context.
* @property condaFile Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages.
*
* @property description The asset description text.
* @property image Name of the image that will be used for the environment.
*
* @property inferenceConfig Defines configuration specific to inference.
* @property isAnonymous If the name version are system generated (anonymous registration).
* @property isArchived Is the asset archived?
* @property osType The OS type of the environment.
* @property properties The asset property dictionary.
* @property stage Stage in the environment lifecycle assigned to this environment
* @property tags Tag dictionary. Tags can be added, removed, and updated.
*/
public data class EnvironmentVersionArgs(
public val autoRebuild: Output>? = null,
public val build: Output? = null,
public val condaFile: Output? = null,
public val description: Output? = null,
public val image: Output? = null,
public val inferenceConfig: Output? = null,
public val isAnonymous: Output? = null,
public val isArchived: Output? = null,
public val osType: Output>? = null,
public val properties: Output>? = null,
public val stage: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.EnvironmentVersionArgs =
com.pulumi.azurenative.machinelearningservices.inputs.EnvironmentVersionArgs.builder()
.autoRebuild(
autoRebuild?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.build(build?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.condaFile(condaFile?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.image(image?.applyValue({ args0 -> args0 }))
.inferenceConfig(inferenceConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.isAnonymous(isAnonymous?.applyValue({ args0 -> args0 }))
.isArchived(isArchived?.applyValue({ args0 -> args0 }))
.osType(
osType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.properties(
properties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.stage(stage?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [EnvironmentVersionArgs].
*/
@PulumiTagMarker
public class EnvironmentVersionArgsBuilder internal constructor() {
private var autoRebuild: Output>? = null
private var build: Output? = null
private var condaFile: Output? = null
private var description: Output? = null
private var image: Output? = null
private var inferenceConfig: Output? = null
private var isAnonymous: Output? = null
private var isArchived: Output? = null
private var osType: Output>? = null
private var properties: Output>? = null
private var stage: Output? = null
private var tags: Output>? = null
/**
* @param value Defines if image needs to be rebuilt based on base image changes.
*/
@JvmName("xbqfyfgkyrqqiugp")
public suspend fun autoRebuild(`value`: Output>) {
this.autoRebuild = value
}
/**
* @param value Configuration settings for Docker build context.
*/
@JvmName("wphuqvalfnhjttnm")
public suspend fun build(`value`: Output) {
this.build = value
}
/**
* @param value Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages.
*
*/
@JvmName("gvtgapghjculjocp")
public suspend fun condaFile(`value`: Output) {
this.condaFile = value
}
/**
* @param value The asset description text.
*/
@JvmName("nrturrgossbomeyc")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Name of the image that will be used for the environment.
*
*/
@JvmName("cicsnbwnjtfaadhx")
public suspend fun image(`value`: Output) {
this.image = value
}
/**
* @param value Defines configuration specific to inference.
*/
@JvmName("vntdjaegqrxsnxdg")
public suspend fun inferenceConfig(`value`: Output) {
this.inferenceConfig = value
}
/**
* @param value If the name version are system generated (anonymous registration).
*/
@JvmName("gcrpqummqsqegmnx")
public suspend fun isAnonymous(`value`: Output) {
this.isAnonymous = value
}
/**
* @param value Is the asset archived?
*/
@JvmName("nbvjeppilccvfgec")
public suspend fun isArchived(`value`: Output) {
this.isArchived = value
}
/**
* @param value The OS type of the environment.
*/
@JvmName("wiwejlfwrmgwrhmd")
public suspend fun osType(`value`: Output>) {
this.osType = value
}
/**
* @param value The asset property dictionary.
*/
@JvmName("uxlovdamimjkfnnn")
public suspend fun properties(`value`: Output>) {
this.properties = value
}
/**
* @param value Stage in the environment lifecycle assigned to this environment
*/
@JvmName("irrgftcywhdvrmqi")
public suspend fun stage(`value`: Output) {
this.stage = value
}
/**
* @param value Tag dictionary. Tags can be added, removed, and updated.
*/
@JvmName("chngnnilamwggcpb")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Defines if image needs to be rebuilt based on base image changes.
*/
@JvmName("bauwsetpmldaedbm")
public suspend fun autoRebuild(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoRebuild = mapped
}
/**
* @param value Defines if image needs to be rebuilt based on base image changes.
*/
@JvmName("jetsdgufusoiplew")
public fun autoRebuild(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.autoRebuild = mapped
}
/**
* @param value Defines if image needs to be rebuilt based on base image changes.
*/
@JvmName("hsgjpvowxgjiymyd")
public fun autoRebuild(`value`: AutoRebuildSetting) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.autoRebuild = mapped
}
/**
* @param value Configuration settings for Docker build context.
*/
@JvmName("nkfkqyhmumaoxlso")
public suspend fun build(`value`: BuildContextArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.build = mapped
}
/**
* @param argument Configuration settings for Docker build context.
*/
@JvmName("sttnjfejhvkboupr")
public suspend fun build(argument: suspend BuildContextArgsBuilder.() -> Unit) {
val toBeMapped = BuildContextArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.build = mapped
}
/**
* @param value Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages.
*
*/
@JvmName("qxheegvnokbttjkf")
public suspend fun condaFile(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.condaFile = mapped
}
/**
* @param value The asset description text.
*/
@JvmName("hdworanqkdirknqd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Name of the image that will be used for the environment.
*
*/
@JvmName("kngnkgumgyqrakcm")
public suspend fun image(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.image = mapped
}
/**
* @param value Defines configuration specific to inference.
*/
@JvmName("rxrjxqujlkeeolnf")
public suspend fun inferenceConfig(`value`: InferenceContainerPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.inferenceConfig = mapped
}
/**
* @param argument Defines configuration specific to inference.
*/
@JvmName("wqskxdqwoplrinrl")
public suspend fun inferenceConfig(argument: suspend InferenceContainerPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = InferenceContainerPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.inferenceConfig = mapped
}
/**
* @param value If the name version are system generated (anonymous registration).
*/
@JvmName("upgbekoxfncgskjt")
public suspend fun isAnonymous(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isAnonymous = mapped
}
/**
* @param value Is the asset archived?
*/
@JvmName("uejpkdqlpkwodemu")
public suspend fun isArchived(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isArchived = mapped
}
/**
* @param value The OS type of the environment.
*/
@JvmName("luiikxyqakapmyhv")
public suspend fun osType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.osType = mapped
}
/**
* @param value The OS type of the environment.
*/
@JvmName("cwbdoshoeuprafjo")
public fun osType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.osType = mapped
}
/**
* @param value The OS type of the environment.
*/
@JvmName("dkgiyulrvoubvvrh")
public fun osType(`value`: OperatingSystemType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.osType = mapped
}
/**
* @param value The asset property dictionary.
*/
@JvmName("okhkhdgtiiksndlu")
public suspend fun properties(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param values The asset property dictionary.
*/
@JvmName("fbkdayjtmyfrlaft")
public fun properties(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value Stage in the environment lifecycle assigned to this environment
*/
@JvmName("fmauqebvnsjdhonb")
public suspend fun stage(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.stage = mapped
}
/**
* @param value Tag dictionary. Tags can be added, removed, and updated.
*/
@JvmName("hevcfriheonmjafg")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Tag dictionary. Tags can be added, removed, and updated.
*/
@JvmName("ctpkbnxokpkpxere")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): EnvironmentVersionArgs = EnvironmentVersionArgs(
autoRebuild = autoRebuild,
build = build,
condaFile = condaFile,
description = description,
image = image,
inferenceConfig = inferenceConfig,
isAnonymous = isAnonymous,
isArchived = isArchived,
osType = osType,
properties = properties,
stage = stage,
tags = tags,
)
}