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

com.pulumi.azurenative.machinelearningservices.kotlin.WorkspaceArgs.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.machinelearningservices.kotlin

import com.pulumi.azurenative.machinelearningservices.WorkspaceArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.EncryptionPropertyArgs
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.EncryptionPropertyArgsBuilder
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ServiceManagedResourcesSettingsArgs
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ServiceManagedResourcesSettingsArgsBuilder
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.SharedPrivateLinkResourceArgs
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.SharedPrivateLinkResourceArgsBuilder
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.machinelearningservices.kotlin.inputs.SkuArgsBuilder
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * An object that represents a machine learning workspace.
 * Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-01-01.
 * Other available API versions: 2018-03-01-preview, 2020-08-01, 2020-09-01-preview, 2022-01-01-preview, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-04-01-preview, 2024-07-01-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:machinelearningservices:Workspace testworkspace /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}
 * ```
 * @property allowPublicAccessWhenBehindVnet The flag to indicate whether to allow public access when behind VNet.
 * @property applicationInsights ARM id of the application insights associated with this workspace.
 * @property containerRegistry ARM id of the container registry associated with this workspace.
 * @property description The description of this workspace.
 * @property discoveryUrl Url for the discovery service to identify regional endpoints for machine learning experimentation services
 * @property encryption The encryption settings of Azure ML workspace.
 * @property friendlyName The friendly name for this workspace. This name in mutable
 * @property hbiWorkspace The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
 * @property identity The identity of the resource.
 * @property imageBuildCompute The compute name for image build
 * @property keyVault ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
 * @property location Specifies the location of the resource.
 * @property primaryUserAssignedIdentity The user assigned identity resource id that represents the workspace identity.
 * @property publicNetworkAccess Whether requests from Public Network are allowed.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property serviceManagedResourcesSettings The service managed resource settings.
 * @property sharedPrivateLinkResources The list of shared private link resources in this workspace.
 * @property sku The sku of the workspace.
 * @property storageAccount ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
 * @property tags Contains resource tags defined as key/value pairs.
 * @property v1LegacyMode Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
 * @property workspaceName Name of Azure Machine Learning workspace.
 */
public data class WorkspaceArgs(
    public val allowPublicAccessWhenBehindVnet: Output? = null,
    public val applicationInsights: Output? = null,
    public val containerRegistry: Output? = null,
    public val description: Output? = null,
    public val discoveryUrl: Output? = null,
    public val encryption: Output? = null,
    public val friendlyName: Output? = null,
    public val hbiWorkspace: Output? = null,
    public val identity: Output? = null,
    public val imageBuildCompute: Output? = null,
    public val keyVault: Output? = null,
    public val location: Output? = null,
    public val primaryUserAssignedIdentity: Output? = null,
    public val publicNetworkAccess: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val serviceManagedResourcesSettings: Output? = null,
    public val sharedPrivateLinkResources: Output>? = null,
    public val sku: Output? = null,
    public val storageAccount: Output? = null,
    public val tags: Output>? = null,
    public val v1LegacyMode: Output? = null,
    public val workspaceName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.WorkspaceArgs =
        com.pulumi.azurenative.machinelearningservices.WorkspaceArgs.builder()
            .allowPublicAccessWhenBehindVnet(allowPublicAccessWhenBehindVnet?.applyValue({ args0 -> args0 }))
            .applicationInsights(applicationInsights?.applyValue({ args0 -> args0 }))
            .containerRegistry(containerRegistry?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .discoveryUrl(discoveryUrl?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .friendlyName(friendlyName?.applyValue({ args0 -> args0 }))
            .hbiWorkspace(hbiWorkspace?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .imageBuildCompute(imageBuildCompute?.applyValue({ args0 -> args0 }))
            .keyVault(keyVault?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .primaryUserAssignedIdentity(primaryUserAssignedIdentity?.applyValue({ args0 -> args0 }))
            .publicNetworkAccess(
                publicNetworkAccess?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serviceManagedResourcesSettings(
                serviceManagedResourcesSettings?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .sharedPrivateLinkResources(
                sharedPrivateLinkResources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageAccount(storageAccount?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .v1LegacyMode(v1LegacyMode?.applyValue({ args0 -> args0 }))
            .workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkspaceArgs].
 */
@PulumiTagMarker
public class WorkspaceArgsBuilder internal constructor() {
    private var allowPublicAccessWhenBehindVnet: Output? = null

    private var applicationInsights: Output? = null

    private var containerRegistry: Output? = null

    private var description: Output? = null

    private var discoveryUrl: Output? = null

    private var encryption: Output? = null

    private var friendlyName: Output? = null

    private var hbiWorkspace: Output? = null

    private var identity: Output? = null

    private var imageBuildCompute: Output? = null

    private var keyVault: Output? = null

    private var location: Output? = null

    private var primaryUserAssignedIdentity: Output? = null

    private var publicNetworkAccess: Output>? = null

    private var resourceGroupName: Output? = null

    private var serviceManagedResourcesSettings: Output? = null

    private var sharedPrivateLinkResources: Output>? = null

    private var sku: Output? = null

    private var storageAccount: Output? = null

    private var tags: Output>? = null

    private var v1LegacyMode: Output? = null

    private var workspaceName: Output? = null

    /**
     * @param value The flag to indicate whether to allow public access when behind VNet.
     */
    @JvmName("jnwsdwrxhmuwxlhy")
    public suspend fun allowPublicAccessWhenBehindVnet(`value`: Output) {
        this.allowPublicAccessWhenBehindVnet = value
    }

    /**
     * @param value ARM id of the application insights associated with this workspace.
     */
    @JvmName("dqtrfulikynrmygp")
    public suspend fun applicationInsights(`value`: Output) {
        this.applicationInsights = value
    }

    /**
     * @param value ARM id of the container registry associated with this workspace.
     */
    @JvmName("smxsicdcupwfrevs")
    public suspend fun containerRegistry(`value`: Output) {
        this.containerRegistry = value
    }

    /**
     * @param value The description of this workspace.
     */
    @JvmName("eynhxlgvctherxvb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Url for the discovery service to identify regional endpoints for machine learning experimentation services
     */
    @JvmName("afysodmsiqwuaqnj")
    public suspend fun discoveryUrl(`value`: Output) {
        this.discoveryUrl = value
    }

    /**
     * @param value The encryption settings of Azure ML workspace.
     */
    @JvmName("moapbinmommtugip")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

    /**
     * @param value The friendly name for this workspace. This name in mutable
     */
    @JvmName("efneuxqfbibsmeex")
    public suspend fun friendlyName(`value`: Output) {
        this.friendlyName = value
    }

    /**
     * @param value The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
     */
    @JvmName("qhmusohvmltewruk")
    public suspend fun hbiWorkspace(`value`: Output) {
        this.hbiWorkspace = value
    }

    /**
     * @param value The identity of the resource.
     */
    @JvmName("fhcahwvxrgavatet")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The compute name for image build
     */
    @JvmName("owspvnkclqfhiiuy")
    public suspend fun imageBuildCompute(`value`: Output) {
        this.imageBuildCompute = value
    }

    /**
     * @param value ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
     */
    @JvmName("ijqfsueeapkpawml")
    public suspend fun keyVault(`value`: Output) {
        this.keyVault = value
    }

    /**
     * @param value Specifies the location of the resource.
     */
    @JvmName("aovgigbhhcgtrrvk")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The user assigned identity resource id that represents the workspace identity.
     */
    @JvmName("oxultdayshroujya")
    public suspend fun primaryUserAssignedIdentity(`value`: Output) {
        this.primaryUserAssignedIdentity = value
    }

    /**
     * @param value Whether requests from Public Network are allowed.
     */
    @JvmName("teevciagfhlkanha")
    public suspend fun publicNetworkAccess(`value`: Output>) {
        this.publicNetworkAccess = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("exrltrddvaduhsmu")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The service managed resource settings.
     */
    @JvmName("algfmxmsdivnhmda")
    public suspend fun serviceManagedResourcesSettings(`value`: Output) {
        this.serviceManagedResourcesSettings = value
    }

    /**
     * @param value The list of shared private link resources in this workspace.
     */
    @JvmName("pmrigsehyvrqhkko")
    public suspend fun sharedPrivateLinkResources(`value`: Output>) {
        this.sharedPrivateLinkResources = value
    }

    @JvmName("tlrwbhlgqwjyoryl")
    public suspend fun sharedPrivateLinkResources(vararg values: Output) {
        this.sharedPrivateLinkResources = Output.all(values.asList())
    }

    /**
     * @param values The list of shared private link resources in this workspace.
     */
    @JvmName("hnqetvhmhdhreehx")
    public suspend fun sharedPrivateLinkResources(values: List>) {
        this.sharedPrivateLinkResources = Output.all(values)
    }

    /**
     * @param value The sku of the workspace.
     */
    @JvmName("wkvjksnfrbicuujj")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
     */
    @JvmName("eckxonvxjyaqiwub")
    public suspend fun storageAccount(`value`: Output) {
        this.storageAccount = value
    }

    /**
     * @param value Contains resource tags defined as key/value pairs.
     */
    @JvmName("aaglnrxevrqrfrba")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
     */
    @JvmName("mqcketukojoimscu")
    public suspend fun v1LegacyMode(`value`: Output) {
        this.v1LegacyMode = value
    }

    /**
     * @param value Name of Azure Machine Learning workspace.
     */
    @JvmName("siecyoudbdnqpsna")
    public suspend fun workspaceName(`value`: Output) {
        this.workspaceName = value
    }

    /**
     * @param value The flag to indicate whether to allow public access when behind VNet.
     */
    @JvmName("ebporvclafglgabp")
    public suspend fun allowPublicAccessWhenBehindVnet(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowPublicAccessWhenBehindVnet = mapped
    }

    /**
     * @param value ARM id of the application insights associated with this workspace.
     */
    @JvmName("bcprqqkxmlmrcyyi")
    public suspend fun applicationInsights(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationInsights = mapped
    }

    /**
     * @param value ARM id of the container registry associated with this workspace.
     */
    @JvmName("hfesbkcubybgclbk")
    public suspend fun containerRegistry(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRegistry = mapped
    }

    /**
     * @param value The description of this workspace.
     */
    @JvmName("rpdjuqpfhslktwbb")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Url for the discovery service to identify regional endpoints for machine learning experimentation services
     */
    @JvmName("ducpjhdrrqshiiak")
    public suspend fun discoveryUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.discoveryUrl = mapped
    }

    /**
     * @param value The encryption settings of Azure ML workspace.
     */
    @JvmName("kuvsbihkocbpkaro")
    public suspend fun encryption(`value`: EncryptionPropertyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument The encryption settings of Azure ML workspace.
     */
    @JvmName("vwdpgigcynryvtjc")
    public suspend fun encryption(argument: suspend EncryptionPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = EncryptionPropertyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value The friendly name for this workspace. This name in mutable
     */
    @JvmName("rkloyagkptdhemtd")
    public suspend fun friendlyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.friendlyName = mapped
    }

    /**
     * @param value The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
     */
    @JvmName("akaqeqgbudkfmjns")
    public suspend fun hbiWorkspace(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hbiWorkspace = mapped
    }

    /**
     * @param value The identity of the resource.
     */
    @JvmName("bombbrfyfraqgnis")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The identity of the resource.
     */
    @JvmName("yltlmapchlttfovf")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The compute name for image build
     */
    @JvmName("vdnxhptdilnqpfci")
    public suspend fun imageBuildCompute(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.imageBuildCompute = mapped
    }

    /**
     * @param value ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
     */
    @JvmName("oqiyijuuxsnhgced")
    public suspend fun keyVault(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVault = mapped
    }

    /**
     * @param value Specifies the location of the resource.
     */
    @JvmName("igltwulemybrcivt")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The user assigned identity resource id that represents the workspace identity.
     */
    @JvmName("dxkijvcqtbcboyfn")
    public suspend fun primaryUserAssignedIdentity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.primaryUserAssignedIdentity = mapped
    }

    /**
     * @param value Whether requests from Public Network are allowed.
     */
    @JvmName("jrrkcikryutojjem")
    public suspend fun publicNetworkAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Whether requests from Public Network are allowed.
     */
    @JvmName("gyyhulondidnkxrr")
    public fun publicNetworkAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Whether requests from Public Network are allowed.
     */
    @JvmName("qttekvdodhdhetgr")
    public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("frsudcayjoqlxsjv")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The service managed resource settings.
     */
    @JvmName("mxgcptrcvvrhahwo")
    public suspend fun serviceManagedResourcesSettings(`value`: ServiceManagedResourcesSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceManagedResourcesSettings = mapped
    }

    /**
     * @param argument The service managed resource settings.
     */
    @JvmName("jqiwixvkkokakpin")
    public suspend fun serviceManagedResourcesSettings(argument: suspend ServiceManagedResourcesSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceManagedResourcesSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.serviceManagedResourcesSettings = mapped
    }

    /**
     * @param value The list of shared private link resources in this workspace.
     */
    @JvmName("ontjcqmnkmpuvrkh")
    public suspend fun sharedPrivateLinkResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharedPrivateLinkResources = mapped
    }

    /**
     * @param argument The list of shared private link resources in this workspace.
     */
    @JvmName("gexbuwbwoulrtoas")
    public suspend fun sharedPrivateLinkResources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SharedPrivateLinkResourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sharedPrivateLinkResources = mapped
    }

    /**
     * @param argument The list of shared private link resources in this workspace.
     */
    @JvmName("fsunppxctwmybigd")
    public suspend fun sharedPrivateLinkResources(vararg argument: suspend SharedPrivateLinkResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SharedPrivateLinkResourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sharedPrivateLinkResources = mapped
    }

    /**
     * @param argument The list of shared private link resources in this workspace.
     */
    @JvmName("mvcdmmftbxqydubh")
    public suspend fun sharedPrivateLinkResources(argument: suspend SharedPrivateLinkResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SharedPrivateLinkResourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sharedPrivateLinkResources = mapped
    }

    /**
     * @param values The list of shared private link resources in this workspace.
     */
    @JvmName("esthpgfsnpgeorkp")
    public suspend fun sharedPrivateLinkResources(vararg values: SharedPrivateLinkResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sharedPrivateLinkResources = mapped
    }

    /**
     * @param value The sku of the workspace.
     */
    @JvmName("apnuryvnsaedjwuh")
    public suspend fun sku(`value`: SkuArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument The sku of the workspace.
     */
    @JvmName("otcvhejvgxlsoivv")
    public suspend fun sku(argument: suspend SkuArgsBuilder.() -> Unit) {
        val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

    /**
     * @param value ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
     */
    @JvmName("jtuadymyyuavfmwa")
    public suspend fun storageAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccount = mapped
    }

    /**
     * @param value Contains resource tags defined as key/value pairs.
     */
    @JvmName("fpoayqrvthpjtfbe")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Contains resource tags defined as key/value pairs.
     */
    @JvmName("nycqrvsnaaopmxgg")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
     */
    @JvmName("dbpdjuspxdqnoxkv")
    public suspend fun v1LegacyMode(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.v1LegacyMode = mapped
    }

    /**
     * @param value Name of Azure Machine Learning workspace.
     */
    @JvmName("gyutdgjwllefukuq")
    public suspend fun workspaceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceName = mapped
    }

    internal fun build(): WorkspaceArgs = WorkspaceArgs(
        allowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet,
        applicationInsights = applicationInsights,
        containerRegistry = containerRegistry,
        description = description,
        discoveryUrl = discoveryUrl,
        encryption = encryption,
        friendlyName = friendlyName,
        hbiWorkspace = hbiWorkspace,
        identity = identity,
        imageBuildCompute = imageBuildCompute,
        keyVault = keyVault,
        location = location,
        primaryUserAssignedIdentity = primaryUserAssignedIdentity,
        publicNetworkAccess = publicNetworkAccess,
        resourceGroupName = resourceGroupName,
        serviceManagedResourcesSettings = serviceManagedResourcesSettings,
        sharedPrivateLinkResources = sharedPrivateLinkResources,
        sku = sku,
        storageAccount = storageAccount,
        tags = tags,
        v1LegacyMode = v1LegacyMode,
        workspaceName = workspaceName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy