All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appinsights.kotlin.WorkbookTemplateArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appinsights.kotlin

import com.pulumi.azure.appinsights.WorkbookTemplateArgs.builder
import com.pulumi.azure.appinsights.kotlin.inputs.WorkbookTemplateGalleryArgs
import com.pulumi.azure.appinsights.kotlin.inputs.WorkbookTemplateGalleryArgsBuilder
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.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

/**
 * Manages an Application Insights Workbook Template.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleWorkbookTemplate = new azure.appinsights.WorkbookTemplate("example", {
 *     name: "example-aiwt",
 *     resourceGroupName: example.name,
 *     location: "West Europe",
 *     author: "test author",
 *     priority: 1,
 *     galleries: [{
 *         category: "workbook",
 *         name: "test",
 *         order: 100,
 *         resourceType: "microsoft.insights/components",
 *         type: "tsg",
 *     }],
 *     templateData: JSON.stringify({
 *         version: "Notebook/1.0",
 *         items: [{
 *             type: 1,
 *             content: {
 *                 json: `## New workbook
 * ---
 * Welcome to your new workbook.`,
 *             },
 *             name: "text - 2",
 *         }],
 *         styleSettings: {},
 *         $schema: "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *     }),
 *     localized: JSON.stringify({
 *         ar: [{
 *             galleries: [{
 *                 name: "test",
 *                 category: "Failures",
 *                 type: "tsg",
 *                 resourceType: "microsoft.insights/components",
 *                 order: 100,
 *             }],
 *             templateData: {
 *                 version: "Notebook/1.0",
 *                 items: [{
 *                     type: 1,
 *                     content: {
 *                         json: `## New workbook
 * ---
 * Welcome to your new workbook.`,
 *                     },
 *                     name: "text - 2",
 *                 }],
 *                 styleSettings: {},
 *                 $schema: "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *             },
 *         }],
 *     }),
 *     tags: {
 *         key: "value",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import json
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_workbook_template = azure.appinsights.WorkbookTemplate("example",
 *     name="example-aiwt",
 *     resource_group_name=example.name,
 *     location="West Europe",
 *     author="test author",
 *     priority=1,
 *     galleries=[{
 *         "category": "workbook",
 *         "name": "test",
 *         "order": 100,
 *         "resource_type": "microsoft.insights/components",
 *         "type": "tsg",
 *     }],
 *     template_data=json.dumps({
 *         "version": "Notebook/1.0",
 *         "items": [{
 *             "type": 1,
 *             "content": {
 *                 "json": """## New workbook
 * ---
 * Welcome to your new workbook.""",
 *             },
 *             "name": "text - 2",
 *         }],
 *         "styleSettings": {},
 *         "$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *     }),
 *     localized=json.dumps({
 *         "ar": [{
 *             "galleries": [{
 *                 "name": "test",
 *                 "category": "Failures",
 *                 "type": "tsg",
 *                 "resourceType": "microsoft.insights/components",
 *                 "order": 100,
 *             }],
 *             "templateData": {
 *                 "version": "Notebook/1.0",
 *                 "items": [{
 *                     "type": 1,
 *                     "content": {
 *                         "json": """## New workbook
 * ---
 * Welcome to your new workbook.""",
 *                     },
 *                     "name": "text - 2",
 *                 }],
 *                 "styleSettings": {},
 *                 "$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *             },
 *         }],
 *     }),
 *     tags={
 *         "key": "value",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using System.Text.Json;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleWorkbookTemplate = new Azure.AppInsights.WorkbookTemplate("example", new()
 *     {
 *         Name = "example-aiwt",
 *         ResourceGroupName = example.Name,
 *         Location = "West Europe",
 *         Author = "test author",
 *         Priority = 1,
 *         Galleries = new[]
 *         {
 *             new Azure.AppInsights.Inputs.WorkbookTemplateGalleryArgs
 *             {
 *                 Category = "workbook",
 *                 Name = "test",
 *                 Order = 100,
 *                 ResourceType = "microsoft.insights/components",
 *                 Type = "tsg",
 *             },
 *         },
 *         TemplateData = JsonSerializer.Serialize(new Dictionary
 *         {
 *             ["version"] = "Notebook/1.0",
 *             ["items"] = new[]
 *             {
 *                 new Dictionary
 *                 {
 *                     ["type"] = 1,
 *                     ["content"] = new Dictionary
 *                     {
 *                         ["json"] = @"## New workbook
 * ---
 * Welcome to your new workbook.",
 *                     },
 *                     ["name"] = "text - 2",
 *                 },
 *             },
 *             ["styleSettings"] = new Dictionary
 *             {
 *             },
 *             ["$schema"] = "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *         }),
 *         Localized = JsonSerializer.Serialize(new Dictionary
 *         {
 *             ["ar"] = new[]
 *             {
 *                 new Dictionary
 *                 {
 *                     ["galleries"] = new[]
 *                     {
 *                         new Dictionary
 *                         {
 *                             ["name"] = "test",
 *                             ["category"] = "Failures",
 *                             ["type"] = "tsg",
 *                             ["resourceType"] = "microsoft.insights/components",
 *                             ["order"] = 100,
 *                         },
 *                     },
 *                     ["templateData"] = new Dictionary
 *                     {
 *                         ["version"] = "Notebook/1.0",
 *                         ["items"] = new[]
 *                         {
 *                             new Dictionary
 *                             {
 *                                 ["type"] = 1,
 *                                 ["content"] = new Dictionary
 *                                 {
 *                                     ["json"] = @"## New workbook
 * ---
 * Welcome to your new workbook.",
 *                                 },
 *                                 ["name"] = "text - 2",
 *                             },
 *                         },
 *                         ["styleSettings"] = new Dictionary
 *                         {
 *                         },
 *                         ["$schema"] = "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 *                     },
 *                 },
 *             },
 *         }),
 *         Tags =
 *         {
 *             { "key", "value" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"encoding/json"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		tmpJSON0, err := json.Marshal(map[string]interface{}{
 * 			"version": "Notebook/1.0",
 * 			"items": []map[string]interface{}{
 * 				map[string]interface{}{
 * 					"type": 1,
 * 					"content": map[string]interface{}{
 * 						"json": "## New workbook\n---\n\nWelcome to your new workbook.",
 * 					},
 * 					"name": "text - 2",
 * 				},
 * 			},
 * 			"styleSettings": nil,
 * 			"$schema":       "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		json0 := string(tmpJSON0)
 * 		tmpJSON1, err := json.Marshal(map[string]interface{}{
 * 			"ar": []map[string]interface{}{
 * 				map[string]interface{}{
 * 					"galleries": []map[string]interface{}{
 * 						map[string]interface{}{
 * 							"name":         "test",
 * 							"category":     "Failures",
 * 							"type":         "tsg",
 * 							"resourceType": "microsoft.insights/components",
 * 							"order":        100,
 * 						},
 * 					},
 * 					"templateData": map[string]interface{}{
 * 						"version": "Notebook/1.0",
 * 						"items": []map[string]interface{}{
 * 							map[string]interface{}{
 * 								"type": 1,
 * 								"content": map[string]interface{}{
 * 									"json": "## New workbook\n---\n\nWelcome to your new workbook.",
 * 								},
 * 								"name": "text - 2",
 * 							},
 * 						},
 * 						"styleSettings": nil,
 * 						"$schema":       "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		json1 := string(tmpJSON1)
 * 		_, err = appinsights.NewWorkbookTemplate(ctx, "example", &appinsights.WorkbookTemplateArgs{
 * 			Name:              pulumi.String("example-aiwt"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          pulumi.String("West Europe"),
 * 			Author:            pulumi.String("test author"),
 * 			Priority:          pulumi.Int(1),
 * 			Galleries: appinsights.WorkbookTemplateGalleryArray{
 * 				&appinsights.WorkbookTemplateGalleryArgs{
 * 					Category:     pulumi.String("workbook"),
 * 					Name:         pulumi.String("test"),
 * 					Order:        pulumi.Int(100),
 * 					ResourceType: pulumi.String("microsoft.insights/components"),
 * 					Type:         pulumi.String("tsg"),
 * 				},
 * 			},
 * 			TemplateData: pulumi.String(json0),
 * 			Localized:    pulumi.String(json1),
 * 			Tags: pulumi.StringMap{
 * 				"key": pulumi.String("value"),
 * 			},
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appinsights.WorkbookTemplate;
 * import com.pulumi.azure.appinsights.WorkbookTemplateArgs;
 * import com.pulumi.azure.appinsights.inputs.WorkbookTemplateGalleryArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleWorkbookTemplate = new WorkbookTemplate("exampleWorkbookTemplate", WorkbookTemplateArgs.builder()
 *             .name("example-aiwt")
 *             .resourceGroupName(example.name())
 *             .location("West Europe")
 *             .author("test author")
 *             .priority(1)
 *             .galleries(WorkbookTemplateGalleryArgs.builder()
 *                 .category("workbook")
 *                 .name("test")
 *                 .order(100)
 *                 .resourceType("microsoft.insights/components")
 *                 .type("tsg")
 *                 .build())
 *             .templateData(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("version", "Notebook/1.0"),
 *                     jsonProperty("items", jsonArray(jsonObject(
 *                         jsonProperty("type", 1),
 *                         jsonProperty("content", jsonObject(
 *                             jsonProperty("json", """
 * ## New workbook
 * ---
 * Welcome to your new workbook.                            """)
 *                         )),
 *                         jsonProperty("name", "text - 2")
 *                     ))),
 *                     jsonProperty("styleSettings", jsonObject(
 *                     )),
 *                     jsonProperty("$schema", "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json")
 *                 )))
 *             .localized(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("ar", jsonArray(jsonObject(
 *                         jsonProperty("galleries", jsonArray(jsonObject(
 *                             jsonProperty("name", "test"),
 *                             jsonProperty("category", "Failures"),
 *                             jsonProperty("type", "tsg"),
 *                             jsonProperty("resourceType", "microsoft.insights/components"),
 *                             jsonProperty("order", 100)
 *                         ))),
 *                         jsonProperty("templateData", jsonObject(
 *                             jsonProperty("version", "Notebook/1.0"),
 *                             jsonProperty("items", jsonArray(jsonObject(
 *                                 jsonProperty("type", 1),
 *                                 jsonProperty("content", jsonObject(
 *                                     jsonProperty("json", """
 * ## New workbook
 * ---
 * Welcome to your new workbook.                                    """)
 *                                 )),
 *                                 jsonProperty("name", "text - 2")
 *                             ))),
 *                             jsonProperty("styleSettings", jsonObject(
 *                             )),
 *                             jsonProperty("$schema", "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json")
 *                         ))
 *                     )))
 *                 )))
 *             .tags(Map.of("key", "value"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleWorkbookTemplate:
 *     type: azure:appinsights:WorkbookTemplate
 *     name: example
 *     properties:
 *       name: example-aiwt
 *       resourceGroupName: ${example.name}
 *       location: West Europe
 *       author: test author
 *       priority: 1
 *       galleries:
 *         - category: workbook
 *           name: test
 *           order: 100
 *           resourceType: microsoft.insights/components
 *           type: tsg
 *       templateData:
 *         fn::toJSON:
 *           version: Notebook/1.0
 *           items:
 *             - type: 1
 *               content:
 *                 json: |-
 *                   ## New workbook
 *                   ---
 *                   Welcome to your new workbook.
 *               name: text - 2
 *           styleSettings: {}
 *           $schema: https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json
 *       localized:
 *         fn::toJSON:
 *           ar:
 *             - galleries:
 *                 - name: test
 *                   category: Failures
 *                   type: tsg
 *                   resourceType: microsoft.insights/components
 *                   order: 100
 *               templateData:
 *                 version: Notebook/1.0
 *                 items:
 *                   - type: 1
 *                     content:
 *                       json: |-
 *                         ## New workbook
 *                         ---
 *                         Welcome to your new workbook.
 *                     name: text - 2
 *                 styleSettings: {}
 *                 $schema: https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json
 *       tags:
 *         key: value
 * ```
 * 
 * ## Import
 * Application Insights Workbook Template can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appinsights/workbookTemplate:WorkbookTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbookTemplates/resource1
 * ```
 * @property author Information about the author of the workbook template.
 * @property galleries A `galleries` block as defined below.
 * @property localized Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
 * @property location Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
 * @property name Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
 * @property priority Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
 * @property resourceGroupName Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
 * @property tags A mapping of tags which should be assigned to the Application Insights Workbook Template.
 * @property templateData Valid JSON object containing workbook template payload.
 */
public data class WorkbookTemplateArgs(
    public val author: Output? = null,
    public val galleries: Output>? = null,
    public val localized: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val priority: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val templateData: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appinsights.WorkbookTemplateArgs =
        com.pulumi.azure.appinsights.WorkbookTemplateArgs.builder()
            .author(author?.applyValue({ args0 -> args0 }))
            .galleries(
                galleries?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .localized(localized?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .templateData(templateData?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkbookTemplateArgs].
 */
@PulumiTagMarker
public class WorkbookTemplateArgsBuilder internal constructor() {
    private var author: Output? = null

    private var galleries: Output>? = null

    private var localized: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var priority: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var templateData: Output? = null

    /**
     * @param value Information about the author of the workbook template.
     */
    @JvmName("yhekwccvemqrwakv")
    public suspend fun author(`value`: Output) {
        this.author = value
    }

    /**
     * @param value A `galleries` block as defined below.
     */
    @JvmName("ekkqggqhxkirqssm")
    public suspend fun galleries(`value`: Output>) {
        this.galleries = value
    }

    @JvmName("gugsgbuuekrxhhka")
    public suspend fun galleries(vararg values: Output) {
        this.galleries = Output.all(values.asList())
    }

    /**
     * @param values A `galleries` block as defined below.
     */
    @JvmName("pfoefyydmprdiyjx")
    public suspend fun galleries(values: List>) {
        this.galleries = Output.all(values)
    }

    /**
     * @param value Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
     */
    @JvmName("dbnlgxgsodvnonnq")
    public suspend fun localized(`value`: Output) {
        this.localized = value
    }

    /**
     * @param value Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("aylnemekxeseylik")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("chyxqdiibmicntfe")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
     */
    @JvmName("cxesxgggdmfxpivb")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("bgaclqfgabmhvojo")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Application Insights Workbook Template.
     */
    @JvmName("hwskfgedjxwoabky")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Valid JSON object containing workbook template payload.
     */
    @JvmName("ncbhpbfmxeaiujol")
    public suspend fun templateData(`value`: Output) {
        this.templateData = value
    }

    /**
     * @param value Information about the author of the workbook template.
     */
    @JvmName("ndilwyrycdpxhiym")
    public suspend fun author(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.author = mapped
    }

    /**
     * @param value A `galleries` block as defined below.
     */
    @JvmName("vursgptuenkcwwhy")
    public suspend fun galleries(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.galleries = mapped
    }

    /**
     * @param argument A `galleries` block as defined below.
     */
    @JvmName("alcsrnjfcnfwxouo")
    public suspend fun galleries(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkbookTemplateGalleryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.galleries = mapped
    }

    /**
     * @param argument A `galleries` block as defined below.
     */
    @JvmName("hvkadmdcoprnoibv")
    public suspend fun galleries(vararg argument: suspend WorkbookTemplateGalleryArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkbookTemplateGalleryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.galleries = mapped
    }

    /**
     * @param argument A `galleries` block as defined below.
     */
    @JvmName("eqbslrrmrsgmnhfx")
    public suspend fun galleries(argument: suspend WorkbookTemplateGalleryArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WorkbookTemplateGalleryArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.galleries = mapped
    }

    /**
     * @param values A `galleries` block as defined below.
     */
    @JvmName("kpsyhnedpkqbcyur")
    public suspend fun galleries(vararg values: WorkbookTemplateGalleryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.galleries = mapped
    }

    /**
     * @param value Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
     */
    @JvmName("slryrcbhfbvaciut")
    public suspend fun localized(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localized = mapped
    }

    /**
     * @param value Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("rwfugkoqatpjyykg")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("hbphfacnsxwldrro")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
     */
    @JvmName("ogfoiekeihucpali")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     */
    @JvmName("tqvfejrpgdoalwbh")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Application Insights Workbook Template.
     */
    @JvmName("hjkkxojtxhintmho")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Application Insights Workbook Template.
     */
    @JvmName("patlbplaamoauwat")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Valid JSON object containing workbook template payload.
     */
    @JvmName("ysnhylivnxqosiua")
    public suspend fun templateData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateData = mapped
    }

    internal fun build(): WorkbookTemplateArgs = WorkbookTemplateArgs(
        author = author,
        galleries = galleries,
        localized = localized,
        location = location,
        name = name,
        priority = priority,
        resourceGroupName = resourceGroupName,
        tags = tags,
        templateData = templateData,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy