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.insights.kotlin.WebTestArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.WebTestArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.WebTestKind
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestGeolocationArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestGeolocationArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesConfigurationArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesConfigurationArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesRequestArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesRequestArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesValidationRulesArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebTestPropertiesValidationRulesArgsBuilder
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.Int
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 Application Insights WebTest definition.
* Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2015-05-01.
* Other available API versions: 2020-10-05-preview.
* ## Example Usage
* ### webTestCreate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webTest = new AzureNative.Insights.WebTest("webTest", new()
* {
* Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
* {
* WebTest = " ",
* },
* Description = "Ping web test alert for mytestwebapp",
* Enabled = true,
* Frequency = 900,
* Kind = AzureNative.Insights.WebTestKind.Ping,
* Location = "South Central US",
* Locations = new[]
* {
* new AzureNative.Insights.Inputs.WebTestGeolocationArgs
* {
* Location = "us-fl-mia-edge",
* },
* },
* ResourceGroupName = "my-resource-group",
* RetryEnabled = true,
* SyntheticMonitorId = "my-webtest-my-component",
* Timeout = 120,
* WebTestKind = AzureNative.Insights.WebTestKind.Ping,
* WebTestName = "my-webtest-my-component",
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
* Configuration: &insights.WebTestPropertiesConfigurationArgs{
* WebTest: pulumi.String(" "),
* },
* Description: pulumi.String("Ping web test alert for mytestwebapp"),
* Enabled: pulumi.Bool(true),
* Frequency: pulumi.Int(900),
* Kind: insights.WebTestKindPing,
* Location: pulumi.String("South Central US"),
* Locations: insights.WebTestGeolocationArray{
* &insights.WebTestGeolocationArgs{
* Location: pulumi.String("us-fl-mia-edge"),
* },
* },
* ResourceGroupName: pulumi.String("my-resource-group"),
* RetryEnabled: pulumi.Bool(true),
* SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
* Timeout: pulumi.Int(120),
* WebTestKind: insights.WebTestKindPing,
* WebTestName: pulumi.String("my-webtest-my-component"),
* })
* 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.insights.WebTest;
* import com.pulumi.azurenative.insights.WebTestArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
* 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 webTest = new WebTest("webTest", WebTestArgs.builder()
* .configuration(WebTestPropertiesConfigurationArgs.builder()
* .webTest(" ")
* .build())
* .description("Ping web test alert for mytestwebapp")
* .enabled(true)
* .frequency(900)
* .kind("ping")
* .location("South Central US")
* .locations(WebTestGeolocationArgs.builder()
* .location("us-fl-mia-edge")
* .build())
* .resourceGroupName("my-resource-group")
* .retryEnabled(true)
* .syntheticMonitorId("my-webtest-my-component")
* .timeout(120)
* .webTestKind("ping")
* .webTestName("my-webtest-my-component")
* .build());
* }
* }
* ```
* ### webTestCreateStandard
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webTest = new AzureNative.Insights.WebTest("webTest", new()
* {
* Description = "Ping web test alert for mytestwebapp",
* Enabled = true,
* Frequency = 900,
* Location = "South Central US",
* Locations = new[]
* {
* new AzureNative.Insights.Inputs.WebTestGeolocationArgs
* {
* Location = "us-fl-mia-edge",
* },
* },
* Request = new AzureNative.Insights.Inputs.WebTestPropertiesRequestArgs
* {
* Headers = new[]
* {
* new AzureNative.Insights.Inputs.HeaderFieldArgs
* {
* HeaderFieldName = "Content-Language",
* HeaderFieldValue = "de-DE",
* },
* new AzureNative.Insights.Inputs.HeaderFieldArgs
* {
* HeaderFieldName = "Accept-Language",
* HeaderFieldValue = "de-DE",
* },
* },
* HttpVerb = "POST",
* RequestBody = "SGVsbG8gd29ybGQ=",
* RequestUrl = "https://bing.com",
* },
* ResourceGroupName = "my-resource-group",
* RetryEnabled = true,
* SyntheticMonitorId = "my-webtest-my-component",
* Timeout = 120,
* ValidationRules = new AzureNative.Insights.Inputs.WebTestPropertiesValidationRulesArgs
* {
* SSLCertRemainingLifetimeCheck = 100,
* SSLCheck = true,
* },
* WebTestKind = AzureNative.Insights.WebTestKind.Standard,
* WebTestName = "my-webtest-my-component",
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
* Description: pulumi.String("Ping web test alert for mytestwebapp"),
* Enabled: pulumi.Bool(true),
* Frequency: pulumi.Int(900),
* Location: pulumi.String("South Central US"),
* Locations: insights.WebTestGeolocationArray{
* &insights.WebTestGeolocationArgs{
* Location: pulumi.String("us-fl-mia-edge"),
* },
* },
* Request: &insights.WebTestPropertiesRequestArgs{
* Headers: insights.HeaderFieldArray{
* &insights.HeaderFieldArgs{
* HeaderFieldName: pulumi.String("Content-Language"),
* HeaderFieldValue: pulumi.String("de-DE"),
* },
* &insights.HeaderFieldArgs{
* HeaderFieldName: pulumi.String("Accept-Language"),
* HeaderFieldValue: pulumi.String("de-DE"),
* },
* },
* HttpVerb: pulumi.String("POST"),
* RequestBody: pulumi.String("SGVsbG8gd29ybGQ="),
* RequestUrl: pulumi.String("https://bing.com"),
* },
* ResourceGroupName: pulumi.String("my-resource-group"),
* RetryEnabled: pulumi.Bool(true),
* SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
* Timeout: pulumi.Int(120),
* ValidationRules: &insights.WebTestPropertiesValidationRulesArgs{
* SSLCertRemainingLifetimeCheck: pulumi.Int(100),
* SSLCheck: pulumi.Bool(true),
* },
* WebTestKind: insights.WebTestKindStandard,
* WebTestName: pulumi.String("my-webtest-my-component"),
* })
* 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.insights.WebTest;
* import com.pulumi.azurenative.insights.WebTestArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestPropertiesRequestArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestPropertiesValidationRulesArgs;
* 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 webTest = new WebTest("webTest", WebTestArgs.builder()
* .description("Ping web test alert for mytestwebapp")
* .enabled(true)
* .frequency(900)
* .location("South Central US")
* .locations(WebTestGeolocationArgs.builder()
* .location("us-fl-mia-edge")
* .build())
* .request(WebTestPropertiesRequestArgs.builder()
* .headers(
* HeaderFieldArgs.builder()
* .headerFieldName("Content-Language")
* .headerFieldValue("de-DE")
* .build(),
* HeaderFieldArgs.builder()
* .headerFieldName("Accept-Language")
* .headerFieldValue("de-DE")
* .build())
* .httpVerb("POST")
* .requestBody("SGVsbG8gd29ybGQ=")
* .requestUrl("https://bing.com")
* .build())
* .resourceGroupName("my-resource-group")
* .retryEnabled(true)
* .syntheticMonitorId("my-webtest-my-component")
* .timeout(120)
* .validationRules(WebTestPropertiesValidationRulesArgs.builder()
* .sSLCertRemainingLifetimeCheck(100)
* .sSLCheck(true)
* .build())
* .webTestKind("standard")
* .webTestName("my-webtest-my-component")
* .build());
* }
* }
* ```
* ### webTestUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webTest = new AzureNative.Insights.WebTest("webTest", new()
* {
* Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
* {
* WebTest = " ",
* },
* Frequency = 600,
* Kind = AzureNative.Insights.WebTestKind.Ping,
* Location = "South Central US",
* Locations = new[]
* {
* new AzureNative.Insights.Inputs.WebTestGeolocationArgs
* {
* Location = "us-fl-mia-edge",
* },
* new AzureNative.Insights.Inputs.WebTestGeolocationArgs
* {
* Location = "apac-hk-hkn-azr",
* },
* },
* ResourceGroupName = "my-resource-group",
* SyntheticMonitorId = "my-webtest-my-component",
* Timeout = 30,
* WebTestKind = AzureNative.Insights.WebTestKind.Ping,
* WebTestName = "my-webtest-my-component",
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
* Configuration: &insights.WebTestPropertiesConfigurationArgs{
* WebTest: pulumi.String(" "),
* },
* Frequency: pulumi.Int(600),
* Kind: insights.WebTestKindPing,
* Location: pulumi.String("South Central US"),
* Locations: insights.WebTestGeolocationArray{
* &insights.WebTestGeolocationArgs{
* Location: pulumi.String("us-fl-mia-edge"),
* },
* &insights.WebTestGeolocationArgs{
* Location: pulumi.String("apac-hk-hkn-azr"),
* },
* },
* ResourceGroupName: pulumi.String("my-resource-group"),
* SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
* Timeout: pulumi.Int(30),
* WebTestKind: insights.WebTestKindPing,
* WebTestName: pulumi.String("my-webtest-my-component"),
* })
* 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.insights.WebTest;
* import com.pulumi.azurenative.insights.WebTestArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
* import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
* 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 webTest = new WebTest("webTest", WebTestArgs.builder()
* .configuration(WebTestPropertiesConfigurationArgs.builder()
* .webTest(" ")
* .build())
* .frequency(600)
* .kind("ping")
* .location("South Central US")
* .locations(
* WebTestGeolocationArgs.builder()
* .location("us-fl-mia-edge")
* .build(),
* WebTestGeolocationArgs.builder()
* .location("apac-hk-hkn-azr")
* .build())
* .resourceGroupName("my-resource-group")
* .syntheticMonitorId("my-webtest-my-component")
* .timeout(30)
* .webTestKind("ping")
* .webTestName("my-webtest-my-component")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:WebTest my-webtest-my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
* ```
* @property configuration An XML configuration specification for a WebTest.
* @property description User defined description for this WebTest.
* @property enabled Is the test actively being monitored.
* @property frequency Interval in seconds between test runs for this WebTest. Default value is 300.
* @property kind The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
* @property location Resource location
* @property locations A list of where to physically run the tests from to give global coverage for accessibility of your application.
* @property request The collection of request properties
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property retryEnabled Allow for retries should this WebTest fail.
* @property syntheticMonitorId Unique ID of this WebTest. This is typically the same value as the Name field.
* @property tags Resource tags
* @property timeout Seconds until this WebTest will timeout and fail. Default value is 30.
* @property validationRules The collection of validation rule properties
* @property webTestKind The kind of web test this is, valid choices are ping, multistep and standard.
* @property webTestName User defined name if this WebTest.
*/
public data class WebTestArgs(
public val configuration: Output? = null,
public val description: Output? = null,
public val enabled: Output? = null,
public val frequency: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val locations: Output>? = null,
public val request: Output? = null,
public val resourceGroupName: Output? = null,
public val retryEnabled: Output? = null,
public val syntheticMonitorId: Output? = null,
public val tags: Output>? = null,
public val timeout: Output? = null,
public val validationRules: Output? = null,
public val webTestKind: Output? = null,
public val webTestName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.WebTestArgs =
com.pulumi.azurenative.insights.WebTestArgs.builder()
.configuration(configuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.description(description?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.frequency(frequency?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.locations(
locations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.request(request?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.retryEnabled(retryEnabled?.applyValue({ args0 -> args0 }))
.syntheticMonitorId(syntheticMonitorId?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.validationRules(validationRules?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.webTestKind(webTestKind?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.webTestName(webTestName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebTestArgs].
*/
@PulumiTagMarker
public class WebTestArgsBuilder internal constructor() {
private var configuration: Output? = null
private var description: Output? = null
private var enabled: Output? = null
private var frequency: Output? = null
private var kind: Output? = null
private var location: Output? = null
private var locations: Output>? = null
private var request: Output? = null
private var resourceGroupName: Output? = null
private var retryEnabled: Output? = null
private var syntheticMonitorId: Output? = null
private var tags: Output>? = null
private var timeout: Output? = null
private var validationRules: Output? = null
private var webTestKind: Output? = null
private var webTestName: Output? = null
/**
* @param value An XML configuration specification for a WebTest.
*/
@JvmName("veljbgsoyhleukov")
public suspend fun configuration(`value`: Output) {
this.configuration = value
}
/**
* @param value User defined description for this WebTest.
*/
@JvmName("cftnwojyuipopyal")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Is the test actively being monitored.
*/
@JvmName("yyraxpjjrlaunill")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Interval in seconds between test runs for this WebTest. Default value is 300.
*/
@JvmName("mknjlitmsjceiitf")
public suspend fun frequency(`value`: Output) {
this.frequency = value
}
/**
* @param value The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*/
@JvmName("sgimanbdsydhsbwp")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Resource location
*/
@JvmName("ndtujupidralxnis")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("fvrlvwwlcjncchqb")
public suspend fun locations(`value`: Output>) {
this.locations = value
}
@JvmName("jonbxgvxxhoctoud")
public suspend fun locations(vararg values: Output) {
this.locations = Output.all(values.asList())
}
/**
* @param values A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("dskslagctqobrxix")
public suspend fun locations(values: List>) {
this.locations = Output.all(values)
}
/**
* @param value The collection of request properties
*/
@JvmName("cpriewpnxdoalokk")
public suspend fun request(`value`: Output) {
this.request = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("llrgcasgwqnrlgmy")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Allow for retries should this WebTest fail.
*/
@JvmName("qdlcnraghwgulvms")
public suspend fun retryEnabled(`value`: Output) {
this.retryEnabled = value
}
/**
* @param value Unique ID of this WebTest. This is typically the same value as the Name field.
*/
@JvmName("ghkcbiecnmdhuyco")
public suspend fun syntheticMonitorId(`value`: Output) {
this.syntheticMonitorId = value
}
/**
* @param value Resource tags
*/
@JvmName("ncmvntjbvfrmyomv")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Seconds until this WebTest will timeout and fail. Default value is 30.
*/
@JvmName("cvnifjgugxcrnqqu")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value The collection of validation rule properties
*/
@JvmName("yhbcfvnkqtbnhbrw")
public suspend fun validationRules(`value`: Output) {
this.validationRules = value
}
/**
* @param value The kind of web test this is, valid choices are ping, multistep and standard.
*/
@JvmName("qefgqoqyehgxpmrd")
public suspend fun webTestKind(`value`: Output) {
this.webTestKind = value
}
/**
* @param value User defined name if this WebTest.
*/
@JvmName("oikabypdqgibnqfc")
public suspend fun webTestName(`value`: Output) {
this.webTestName = value
}
/**
* @param value An XML configuration specification for a WebTest.
*/
@JvmName("gutpjenjvxwuufqv")
public suspend fun configuration(`value`: WebTestPropertiesConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configuration = mapped
}
/**
* @param argument An XML configuration specification for a WebTest.
*/
@JvmName("yshqjotrupyatnvd")
public suspend fun configuration(argument: suspend WebTestPropertiesConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = WebTestPropertiesConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.configuration = mapped
}
/**
* @param value User defined description for this WebTest.
*/
@JvmName("vppatftuboucdayo")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Is the test actively being monitored.
*/
@JvmName("coqxqwpmlqyrqkjr")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Interval in seconds between test runs for this WebTest. Default value is 300.
*/
@JvmName("duahxofnkijcmqnk")
public suspend fun frequency(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.frequency = mapped
}
/**
* @param value The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*/
@JvmName("usfhpafupbjmjyjh")
public suspend fun kind(`value`: WebTestKind?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Resource location
*/
@JvmName("cpwadjwvfpvlkbws")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("xfanvviayshuveum")
public suspend fun locations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.locations = mapped
}
/**
* @param argument A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("ostfyywfsvhkfnfd")
public suspend fun locations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
WebTestGeolocationArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.locations = mapped
}
/**
* @param argument A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("mybuxdutbbkmqjxd")
public suspend fun locations(vararg argument: suspend WebTestGeolocationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
WebTestGeolocationArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.locations = mapped
}
/**
* @param argument A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("tgehdveiucnlugof")
public suspend fun locations(argument: suspend WebTestGeolocationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(WebTestGeolocationArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.locations = mapped
}
/**
* @param values A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JvmName("xsrlbjowyqnnykvr")
public suspend fun locations(vararg values: WebTestGeolocationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.locations = mapped
}
/**
* @param value The collection of request properties
*/
@JvmName("hjmfvvnnmkwbcmqd")
public suspend fun request(`value`: WebTestPropertiesRequestArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.request = mapped
}
/**
* @param argument The collection of request properties
*/
@JvmName("ffecqakiikacxbxj")
public suspend fun request(argument: suspend WebTestPropertiesRequestArgsBuilder.() -> Unit) {
val toBeMapped = WebTestPropertiesRequestArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.request = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("vvkqvsybyvkruopa")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Allow for retries should this WebTest fail.
*/
@JvmName("joilmdkvfbfwqedq")
public suspend fun retryEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.retryEnabled = mapped
}
/**
* @param value Unique ID of this WebTest. This is typically the same value as the Name field.
*/
@JvmName("cneupfrleabsupjc")
public suspend fun syntheticMonitorId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.syntheticMonitorId = mapped
}
/**
* @param value Resource tags
*/
@JvmName("jttxcdxophcjyjfl")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("bdnvhttwgdtqbcis")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Seconds until this WebTest will timeout and fail. Default value is 30.
*/
@JvmName("akdihtjqobvqjwwb")
public suspend fun timeout(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
/**
* @param value The collection of validation rule properties
*/
@JvmName("mwtrmbuxvfpjrpxu")
public suspend fun validationRules(`value`: WebTestPropertiesValidationRulesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.validationRules = mapped
}
/**
* @param argument The collection of validation rule properties
*/
@JvmName("gdileejrjiyolnhr")
public suspend fun validationRules(argument: suspend WebTestPropertiesValidationRulesArgsBuilder.() -> Unit) {
val toBeMapped = WebTestPropertiesValidationRulesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.validationRules = mapped
}
/**
* @param value The kind of web test this is, valid choices are ping, multistep and standard.
*/
@JvmName("rmfcpmyyfedsbalp")
public suspend fun webTestKind(`value`: WebTestKind?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webTestKind = mapped
}
/**
* @param value User defined name if this WebTest.
*/
@JvmName("kmmbvaafuviotvhj")
public suspend fun webTestName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webTestName = mapped
}
internal fun build(): WebTestArgs = WebTestArgs(
configuration = configuration,
description = description,
enabled = enabled,
frequency = frequency,
kind = kind,
location = location,
locations = locations,
request = request,
resourceGroupName = resourceGroupName,
retryEnabled = retryEnabled,
syntheticMonitorId = syntheticMonitorId,
tags = tags,
timeout = timeout,
validationRules = validationRules,
webTestKind = webTestKind,
webTestName = webTestName,
)
}