com.pulumi.azurenative.apicenter.kotlin.WorkspaceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apicenter.kotlin
import com.pulumi.azurenative.apicenter.WorkspaceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Workspace entity.
* Azure REST API version: 2024-03-01.
* Other available API versions: 2024-03-15-preview.
* ## Example Usage
* ### Workspaces_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspace = new AzureNative.ApiCenter.Workspace("workspace", new()
* {
* ResourceGroupName = "contoso-resources",
* ServiceName = "contoso",
* Title = "default",
* WorkspaceName = "default",
* });
* });
* ```
* ```go
* package main
* import (
* apicenter "github.com/pulumi/pulumi-azure-native-sdk/apicenter/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apicenter.NewWorkspace(ctx, "workspace", &apicenter.WorkspaceArgs{
* ResourceGroupName: pulumi.String("contoso-resources"),
* ServiceName: pulumi.String("contoso"),
* Title: pulumi.String("default"),
* WorkspaceName: pulumi.String("default"),
* })
* 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.apicenter.Workspace;
* import com.pulumi.azurenative.apicenter.WorkspaceArgs;
* 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 workspace = new Workspace("workspace", WorkspaceArgs.builder()
* .resourceGroupName("contoso-resources")
* .serviceName("contoso")
* .title("default")
* .workspaceName("default")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:apicenter:Workspace default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}
* ```
* @property description Workspace description.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceName The name of Azure API Center service.
* @property title Workspace title.
* @property workspaceName The name of the workspace.
*/
public data class WorkspaceArgs(
public val description: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
public val title: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apicenter.WorkspaceArgs =
com.pulumi.azurenative.apicenter.WorkspaceArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.title(title?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkspaceArgs].
*/
@PulumiTagMarker
public class WorkspaceArgsBuilder internal constructor() {
private var description: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
private var title: Output? = null
private var workspaceName: Output? = null
/**
* @param value Workspace description.
*/
@JvmName("qhqlshylmoitoatf")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("tqswbjiyvpsspwwr")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of Azure API Center service.
*/
@JvmName("xdcsxohtihemlkur")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value Workspace title.
*/
@JvmName("nqpibihuaposkbsn")
public suspend fun title(`value`: Output) {
this.title = value
}
/**
* @param value The name of the workspace.
*/
@JvmName("bbjutuaxetbfscda")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value Workspace description.
*/
@JvmName("dagdxppstljfluud")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("bprrgrmmurfmwlcq")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of Azure API Center service.
*/
@JvmName("ypiaqmmfcacdkgfd")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
/**
* @param value Workspace title.
*/
@JvmName("blvprpgnjrulrxym")
public suspend fun title(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.title = mapped
}
/**
* @param value The name of the workspace.
*/
@JvmName("jdfsrjipmstwrnei")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): WorkspaceArgs = WorkspaceArgs(
description = description,
resourceGroupName = resourceGroupName,
serviceName = serviceName,
title = title,
workspaceName = workspaceName,
)
}