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.offazure.kotlin.WebAppSitesControllerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.offazure.kotlin
import com.pulumi.azurenative.offazure.WebAppSitesControllerArgs.builder
import com.pulumi.azurenative.offazure.kotlin.enums.WebAppSitePropertiesDiscoveryScenario
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteAppliancePropertiesArgs
import com.pulumi.azurenative.offazure.kotlin.inputs.SiteAppliancePropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* WebApp site web model.
* Azure REST API version: 2023-06-06.
* Other available API versions: 2023-10-01-preview.
* ## Example Usage
* ### WebAppSitesController_Create_MaximumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webAppSitesController = new AzureNative.OffAzure.WebAppSitesController("webAppSitesController", new()
* {
* DiscoveryScenario = AzureNative.OffAzure.WebAppSitePropertiesDiscoveryScenario.Migrate,
* ResourceGroupName = "rgmigrate",
* SiteAppliancePropertiesCollection = new[]
* {
* new AzureNative.OffAzure.Inputs.SiteAppliancePropertiesArgs
* {
* AgentDetails = new AzureNative.OffAzure.Inputs.SiteAgentPropertiesArgs
* {
* KeyVaultId = "awxurtbjmofxuciewsqfgpkccpzw",
* KeyVaultUri = "qizphgqwage",
* },
* ApplianceName = "zpbkpigahvexsxevwafzgsu",
* ServicePrincipalIdentityDetails = new AzureNative.OffAzure.Inputs.SiteSpnPropertiesArgs
* {
* AadAuthority = "yanzipdww",
* ApplicationId = "tspgrujepxyxuprkqvfuqbbjrweeqa",
* Audience = "oepwfaozztzvegmzvswafvotj",
* ObjectId = "tqrjngpgxnnto",
* RawCertData = "dotvgkslkmsgvtekgojnhcdrryk",
* TenantId = "vesmyhu",
* },
* },
* },
* SiteName = "36cmQ",
* WebAppSiteName = "GJRq",
* });
* });
* ```
* ```go
* package main
* import (
* offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := offazure.NewWebAppSitesController(ctx, "webAppSitesController", &offazure.WebAppSitesControllerArgs{
* DiscoveryScenario: pulumi.String(offazure.WebAppSitePropertiesDiscoveryScenarioMigrate),
* ResourceGroupName: pulumi.String("rgmigrate"),
* SiteAppliancePropertiesCollection: offazure.SiteAppliancePropertiesArray{
* &offazure.SiteAppliancePropertiesArgs{
* AgentDetails: &offazure.SiteAgentPropertiesArgs{
* KeyVaultId: pulumi.String("awxurtbjmofxuciewsqfgpkccpzw"),
* KeyVaultUri: pulumi.String("qizphgqwage"),
* },
* ApplianceName: pulumi.String("zpbkpigahvexsxevwafzgsu"),
* ServicePrincipalIdentityDetails: &offazure.SiteSpnPropertiesArgs{
* AadAuthority: pulumi.String("yanzipdww"),
* ApplicationId: pulumi.String("tspgrujepxyxuprkqvfuqbbjrweeqa"),
* Audience: pulumi.String("oepwfaozztzvegmzvswafvotj"),
* ObjectId: pulumi.String("tqrjngpgxnnto"),
* RawCertData: pulumi.String("dotvgkslkmsgvtekgojnhcdrryk"),
* TenantId: pulumi.String("vesmyhu"),
* },
* },
* },
* SiteName: pulumi.String("36cmQ"),
* WebAppSiteName: pulumi.String("GJRq"),
* })
* 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.offazure.WebAppSitesController;
* import com.pulumi.azurenative.offazure.WebAppSitesControllerArgs;
* import com.pulumi.azurenative.offazure.inputs.SiteAppliancePropertiesArgs;
* import com.pulumi.azurenative.offazure.inputs.SiteAgentPropertiesArgs;
* import com.pulumi.azurenative.offazure.inputs.SiteSpnPropertiesArgs;
* 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 webAppSitesController = new WebAppSitesController("webAppSitesController", WebAppSitesControllerArgs.builder()
* .discoveryScenario("Migrate")
* .resourceGroupName("rgmigrate")
* .siteAppliancePropertiesCollection(SiteAppliancePropertiesArgs.builder()
* .agentDetails(SiteAgentPropertiesArgs.builder()
* .keyVaultId("awxurtbjmofxuciewsqfgpkccpzw")
* .keyVaultUri("qizphgqwage")
* .build())
* .applianceName("zpbkpigahvexsxevwafzgsu")
* .servicePrincipalIdentityDetails(SiteSpnPropertiesArgs.builder()
* .aadAuthority("yanzipdww")
* .applicationId("tspgrujepxyxuprkqvfuqbbjrweeqa")
* .audience("oepwfaozztzvegmzvswafvotj")
* .objectId("tqrjngpgxnnto")
* .rawCertData("dotvgkslkmsgvtekgojnhcdrryk")
* .tenantId("vesmyhu")
* .build())
* .build())
* .siteName("36cmQ")
* .webAppSiteName("GJRq")
* .build());
* }
* }
* ```
* ### WebAppSitesController_Create_MinimumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webAppSitesController = new AzureNative.OffAzure.WebAppSitesController("webAppSitesController", new()
* {
* ResourceGroupName = "rgmigrate",
* SiteName = "s13669b---4sI",
* WebAppSiteName = "3BXk-O8O6W3-GB7J",
* });
* });
* ```
* ```go
* package main
* import (
* offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := offazure.NewWebAppSitesController(ctx, "webAppSitesController", &offazure.WebAppSitesControllerArgs{
* ResourceGroupName: pulumi.String("rgmigrate"),
* SiteName: pulumi.String("s13669b---4sI"),
* WebAppSiteName: pulumi.String("3BXk-O8O6W3-GB7J"),
* })
* 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.offazure.WebAppSitesController;
* import com.pulumi.azurenative.offazure.WebAppSitesControllerArgs;
* 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 webAppSitesController = new WebAppSitesController("webAppSitesController", WebAppSitesControllerArgs.builder()
* .resourceGroupName("rgmigrate")
* .siteName("s13669b---4sI")
* .webAppSiteName("3BXk-O8O6W3-GB7J")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:offazure:WebAppSitesController tyyjy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/webAppSites/{webAppSiteName}
* ```
* @property discoveryScenario Gets or sets the discovery scenario.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property siteAppliancePropertiesCollection Gets or sets the appliance details used by service to communicate
* to the appliance.
* @property siteName Site name
* @property webAppSiteName Web app site name.
*/
public data class WebAppSitesControllerArgs(
public val discoveryScenario: Output>? =
null,
public val resourceGroupName: Output? = null,
public val siteAppliancePropertiesCollection: Output>? = null,
public val siteName: Output? = null,
public val webAppSiteName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.offazure.WebAppSitesControllerArgs =
com.pulumi.azurenative.offazure.WebAppSitesControllerArgs.builder()
.discoveryScenario(
discoveryScenario?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.siteAppliancePropertiesCollection(
siteAppliancePropertiesCollection?.applyValue({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.siteName(siteName?.applyValue({ args0 -> args0 }))
.webAppSiteName(webAppSiteName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebAppSitesControllerArgs].
*/
@PulumiTagMarker
public class WebAppSitesControllerArgsBuilder internal constructor() {
private var discoveryScenario: Output>? =
null
private var resourceGroupName: Output? = null
private var siteAppliancePropertiesCollection: Output>? = null
private var siteName: Output? = null
private var webAppSiteName: Output? = null
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("crogiradwjrhyfwd")
public suspend fun discoveryScenario(`value`: Output>) {
this.discoveryScenario = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("amaoreklbnlormam")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("icdwcaenhmmsxcvd")
public suspend fun siteAppliancePropertiesCollection(`value`: Output>) {
this.siteAppliancePropertiesCollection = value
}
@JvmName("certbmajrwydlmct")
public suspend fun siteAppliancePropertiesCollection(vararg values: Output) {
this.siteAppliancePropertiesCollection = Output.all(values.asList())
}
/**
* @param values Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("uaenvgtftvloupfv")
public suspend fun siteAppliancePropertiesCollection(values: List>) {
this.siteAppliancePropertiesCollection = Output.all(values)
}
/**
* @param value Site name
*/
@JvmName("kyygpdsfibgmjdmd")
public suspend fun siteName(`value`: Output) {
this.siteName = value
}
/**
* @param value Web app site name.
*/
@JvmName("svcethydggennwro")
public suspend fun webAppSiteName(`value`: Output) {
this.webAppSiteName = value
}
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("ncgptoyfabqwkuqk")
public suspend fun discoveryScenario(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.discoveryScenario = mapped
}
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("kqlwnwmannpgdgvb")
public fun discoveryScenario(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.discoveryScenario = mapped
}
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("xuhgskgxdefbpnoc")
public fun discoveryScenario(`value`: WebAppSitePropertiesDiscoveryScenario) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.discoveryScenario = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("mcxxvmbqbnwekqcd")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("kxlxevsrjfbbkgxy")
public suspend fun siteAppliancePropertiesCollection(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.siteAppliancePropertiesCollection = mapped
}
/**
* @param argument Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("pdtpxbmemofqyyee")
public suspend fun siteAppliancePropertiesCollection(argument: List Unit>) {
val toBeMapped = argument.toList().map {
SiteAppliancePropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.siteAppliancePropertiesCollection = mapped
}
/**
* @param argument Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("ewhekiotoxskeijj")
public suspend fun siteAppliancePropertiesCollection(vararg argument: suspend SiteAppliancePropertiesArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
SiteAppliancePropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.siteAppliancePropertiesCollection = mapped
}
/**
* @param argument Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("ujvqfvatpngavtin")
public suspend fun siteAppliancePropertiesCollection(argument: suspend SiteAppliancePropertiesArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
SiteAppliancePropertiesArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.siteAppliancePropertiesCollection = mapped
}
/**
* @param values Gets or sets the appliance details used by service to communicate
* to the appliance.
*/
@JvmName("diquwuqsrnsautpw")
public suspend fun siteAppliancePropertiesCollection(vararg values: SiteAppliancePropertiesArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.siteAppliancePropertiesCollection = mapped
}
/**
* @param value Site name
*/
@JvmName("figkefnbkttbkaml")
public suspend fun siteName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.siteName = mapped
}
/**
* @param value Web app site name.
*/
@JvmName("vrjldutcauoajacg")
public suspend fun webAppSiteName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webAppSiteName = mapped
}
internal fun build(): WebAppSitesControllerArgs = WebAppSitesControllerArgs(
discoveryScenario = discoveryScenario,
resourceGroupName = resourceGroupName,
siteAppliancePropertiesCollection = siteAppliancePropertiesCollection,
siteName = siteName,
webAppSiteName = webAppSiteName,
)
}