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.SqlSitesControllerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.offazure.kotlin
import com.pulumi.azurenative.offazure.SqlSitesControllerArgs.builder
import com.pulumi.azurenative.offazure.kotlin.enums.SqlSitePropertiesDiscoveryScenario
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
/**
* SQL site web model.
* Azure REST API version: 2023-06-06.
* Other available API versions: 2023-10-01-preview.
* ## Example Usage
* ### SqlSitesController_Create_MaximumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var sqlSitesController = new AzureNative.OffAzure.SqlSitesController("sqlSitesController", new()
* {
* DiscoveryScenario = AzureNative.OffAzure.SqlSitePropertiesDiscoveryScenario.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 = "qo36fi7J8y-b",
* SqlSiteName = "A-4l5sbX5",
* });
* });
* ```
* ```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.NewSqlSitesController(ctx, "sqlSitesController", &offazure.SqlSitesControllerArgs{
* DiscoveryScenario: pulumi.String(offazure.SqlSitePropertiesDiscoveryScenarioMigrate),
* 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("qo36fi7J8y-b"),
* SqlSiteName: pulumi.String("A-4l5sbX5"),
* })
* 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.SqlSitesController;
* import com.pulumi.azurenative.offazure.SqlSitesControllerArgs;
* 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 sqlSitesController = new SqlSitesController("sqlSitesController", SqlSitesControllerArgs.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("qo36fi7J8y-b")
* .sqlSiteName("A-4l5sbX5")
* .build());
* }
* }
* ```
* ### SqlSitesController_Create_MinimumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var sqlSitesController = new AzureNative.OffAzure.SqlSitesController("sqlSitesController", new()
* {
* ResourceGroupName = "rgmigrate",
* SiteName = "Ag5-Ex4n7G5Qn-5-yHL5",
* SqlSiteName = "-03--VkVPfDq5",
* });
* });
* ```
* ```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.NewSqlSitesController(ctx, "sqlSitesController", &offazure.SqlSitesControllerArgs{
* ResourceGroupName: pulumi.String("rgmigrate"),
* SiteName: pulumi.String("Ag5-Ex4n7G5Qn-5-yHL5"),
* SqlSiteName: pulumi.String("-03--VkVPfDq5"),
* })
* 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.SqlSitesController;
* import com.pulumi.azurenative.offazure.SqlSitesControllerArgs;
* 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 sqlSitesController = new SqlSitesController("sqlSitesController", SqlSitesControllerArgs.builder()
* .resourceGroupName("rgmigrate")
* .siteName("Ag5-Ex4n7G5Qn-5-yHL5")
* .sqlSiteName("-03--VkVPfDq5")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:offazure:SqlSitesController kfcekxrevjpsqnaphpqrwnwonqycgl /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}/sqlSites/{sqlSiteName}
* ```
* @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 sqlSiteName SQL site name.
*/
public data class SqlSitesControllerArgs(
public val discoveryScenario: Output>? = null,
public val resourceGroupName: Output? = null,
public val siteAppliancePropertiesCollection: Output>? = null,
public val siteName: Output? = null,
public val sqlSiteName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.offazure.SqlSitesControllerArgs =
com.pulumi.azurenative.offazure.SqlSitesControllerArgs.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 }))
.sqlSiteName(sqlSiteName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SqlSitesControllerArgs].
*/
@PulumiTagMarker
public class SqlSitesControllerArgsBuilder internal constructor() {
private var discoveryScenario: Output>? = null
private var resourceGroupName: Output? = null
private var siteAppliancePropertiesCollection: Output>? = null
private var siteName: Output? = null
private var sqlSiteName: Output? = null
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("rrlcfwykhoivieom")
public suspend fun discoveryScenario(`value`: Output>) {
this.discoveryScenario = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("ggnpgdvladiqtgwk")
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("dqiewymquwjyohsd")
public suspend fun siteAppliancePropertiesCollection(`value`: Output>) {
this.siteAppliancePropertiesCollection = value
}
@JvmName("quadbkboithmswvi")
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("klckkbixwdhnxntn")
public suspend fun siteAppliancePropertiesCollection(values: List>) {
this.siteAppliancePropertiesCollection = Output.all(values)
}
/**
* @param value Site name
*/
@JvmName("xofgldeaerhpadrg")
public suspend fun siteName(`value`: Output) {
this.siteName = value
}
/**
* @param value SQL site name.
*/
@JvmName("semkrpkatimkhfid")
public suspend fun sqlSiteName(`value`: Output) {
this.sqlSiteName = value
}
/**
* @param value Gets or sets the discovery scenario.
*/
@JvmName("qbscqwgpxljmccgo")
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("klolypnqhnhjyyye")
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("bjtdtxpfsoqewcwf")
public fun discoveryScenario(`value`: SqlSitePropertiesDiscoveryScenario) {
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("bblgxwqanvidluml")
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("aefhhareqloajtbx")
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("jxbeimksxievfubd")
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("kcffaqbohkmoofjd")
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("nanttpspaokalbtc")
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("glvolamworeaknei")
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("wlmduxgnjoeojxit")
public suspend fun siteName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.siteName = mapped
}
/**
* @param value SQL site name.
*/
@JvmName("mfpsikulreratpio")
public suspend fun sqlSiteName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqlSiteName = mapped
}
internal fun build(): SqlSitesControllerArgs = SqlSitesControllerArgs(
discoveryScenario = discoveryScenario,
resourceGroupName = resourceGroupName,
siteAppliancePropertiesCollection = siteAppliancePropertiesCollection,
siteName = siteName,
sqlSiteName = sqlSiteName,
)
}