![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.portal.kotlin.UserSettingsWithLocationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.portal.kotlin
import com.pulumi.azurenative.portal.UserSettingsWithLocationArgs.builder
import com.pulumi.azurenative.portal.kotlin.inputs.UserPropertiesArgs
import com.pulumi.azurenative.portal.kotlin.inputs.UserPropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Response to get user settings
* Azure REST API version: 2018-10-01. Prior API version in Azure Native 1.x: 2018-10-01.
* ## Example Usage
* ### PutUserSettings
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var userSettingsWithLocation = new AzureNative.Portal.UserSettingsWithLocation("userSettingsWithLocation", new()
* {
* Location = "eastus",
* Properties = new AzureNative.Portal.Inputs.UserPropertiesArgs
* {
* PreferredLocation = "eastus",
* PreferredOsType = AzureNative.Portal.OsType.Linux,
* PreferredShellType = AzureNative.Portal.ShellType.Bash,
* StorageProfile = new AzureNative.Portal.Inputs.StorageProfileArgs
* {
* DiskSizeInGB = 5,
* FileShareName = "string",
* StorageAccountResourceId = "string",
* },
* TerminalSettings = new AzureNative.Portal.Inputs.TerminalSettingsArgs
* {
* FontSize = AzureNative.Portal.FontSize.Medium,
* FontStyle = AzureNative.Portal.FontStyle.Monospace,
* },
* },
* UserSettingsName = "cloudconsole",
* });
* });
* ```
* ```go
* package main
* import (
* portal "github.com/pulumi/pulumi-azure-native-sdk/portal/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := portal.NewUserSettingsWithLocation(ctx, "userSettingsWithLocation", &portal.UserSettingsWithLocationArgs{
* Location: pulumi.String("eastus"),
* Properties: &portal.UserPropertiesArgs{
* PreferredLocation: pulumi.String("eastus"),
* PreferredOsType: pulumi.String(portal.OsTypeLinux),
* PreferredShellType: pulumi.String(portal.ShellTypeBash),
* StorageProfile: &portal.StorageProfileArgs{
* DiskSizeInGB: pulumi.Int(5),
* FileShareName: pulumi.String("string"),
* StorageAccountResourceId: pulumi.String("string"),
* },
* TerminalSettings: &portal.TerminalSettingsArgs{
* FontSize: pulumi.String(portal.FontSizeMedium),
* FontStyle: pulumi.String(portal.FontStyleMonospace),
* },
* },
* UserSettingsName: pulumi.String("cloudconsole"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.portal.UserSettingsWithLocation;
* import com.pulumi.azurenative.portal.UserSettingsWithLocationArgs;
* import com.pulumi.azurenative.portal.inputs.UserPropertiesArgs;
* import com.pulumi.azurenative.portal.inputs.StorageProfileArgs;
* import com.pulumi.azurenative.portal.inputs.TerminalSettingsArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var userSettingsWithLocation = new UserSettingsWithLocation("userSettingsWithLocation", UserSettingsWithLocationArgs.builder()
* .location("eastus")
* .properties(UserPropertiesArgs.builder()
* .preferredLocation("eastus")
* .preferredOsType("Linux")
* .preferredShellType("bash")
* .storageProfile(StorageProfileArgs.builder()
* .diskSizeInGB(5)
* .fileShareName("string")
* .storageAccountResourceId("string")
* .build())
* .terminalSettings(TerminalSettingsArgs.builder()
* .fontSize("Medium")
* .fontStyle("Monospace")
* .build())
* .build())
* .userSettingsName("cloudconsole")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:portal:UserSettingsWithLocation myresource1 /providers/Microsoft.Portal/locations/{location}/userSettings/{userSettingsName}
* ```
* @property location The provider location
* @property properties The cloud shell user settings properties.
* @property userSettingsName The name of the user settings
*/
public data class UserSettingsWithLocationArgs(
public val location: Output? = null,
public val properties: Output? = null,
public val userSettingsName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.portal.UserSettingsWithLocationArgs =
com.pulumi.azurenative.portal.UserSettingsWithLocationArgs.builder()
.location(location?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.userSettingsName(userSettingsName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserSettingsWithLocationArgs].
*/
@PulumiTagMarker
public class UserSettingsWithLocationArgsBuilder internal constructor() {
private var location: Output? = null
private var properties: Output? = null
private var userSettingsName: Output? = null
/**
* @param value The provider location
*/
@JvmName("wxnrnguurvqpxsnk")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The cloud shell user settings properties.
*/
@JvmName("nlmhognrycvtjtmf")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The name of the user settings
*/
@JvmName("nmhpighcscarurnu")
public suspend fun userSettingsName(`value`: Output) {
this.userSettingsName = value
}
/**
* @param value The provider location
*/
@JvmName("mcepkyjujxjpvlwd")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The cloud shell user settings properties.
*/
@JvmName("axrumhlqxdqmjsaj")
public suspend fun properties(`value`: UserPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument The cloud shell user settings properties.
*/
@JvmName("gmatjjshgcrhxyfk")
public suspend fun properties(argument: suspend UserPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = UserPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value The name of the user settings
*/
@JvmName("kvnbgkrlseoxdugh")
public suspend fun userSettingsName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userSettingsName = mapped
}
internal fun build(): UserSettingsWithLocationArgs = UserSettingsWithLocationArgs(
location = location,
properties = properties,
userSettingsName = userSettingsName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy