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

com.pulumi.azure.compute.kotlin.GalleryApplicationVersionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin

import com.pulumi.azure.compute.GalleryApplicationVersionArgs.builder
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionManageActionArgs
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionManageActionArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionSourceArgs
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionSourceArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionTargetRegionArgs
import com.pulumi.azure.compute.kotlin.inputs.GalleryApplicationVersionTargetRegionArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Gallery Application Version.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-rg",
 *     location: "West Europe",
 * });
 * const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
 *     name: "examplegallery",
 *     resourceGroupName: example.name,
 *     location: example.location,
 * });
 * const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
 *     name: "example-app",
 *     galleryId: exampleSharedImageGallery.id,
 *     location: example.location,
 *     supportedOsType: "Linux",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestorage",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 * });
 * const exampleContainer = new azure.storage.Container("example", {
 *     name: "example-container",
 *     storageAccountName: exampleAccount.name,
 *     containerAccessType: "blob",
 * });
 * const exampleBlob = new azure.storage.Blob("example", {
 *     name: "scripts",
 *     storageAccountName: exampleAccount.name,
 *     storageContainerName: exampleContainer.name,
 *     type: "Block",
 *     sourceContent: "[scripts file content]",
 * });
 * const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("example", {
 *     name: "0.0.1",
 *     galleryApplicationId: exampleGalleryApplication.id,
 *     location: exampleGalleryApplication.location,
 *     manageAction: {
 *         install: "[install command]",
 *         remove: "[remove command]",
 *     },
 *     source: {
 *         mediaLink: exampleBlob.id,
 *     },
 *     targetRegions: [{
 *         name: exampleGalleryApplication.location,
 *         regionalReplicaCount: 1,
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-rg",
 *     location="West Europe")
 * example_shared_image_gallery = azure.compute.SharedImageGallery("example",
 *     name="examplegallery",
 *     resource_group_name=example.name,
 *     location=example.location)
 * example_gallery_application = azure.compute.GalleryApplication("example",
 *     name="example-app",
 *     gallery_id=example_shared_image_gallery.id,
 *     location=example.location,
 *     supported_os_type="Linux")
 * example_account = azure.storage.Account("example",
 *     name="examplestorage",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS")
 * example_container = azure.storage.Container("example",
 *     name="example-container",
 *     storage_account_name=example_account.name,
 *     container_access_type="blob")
 * example_blob = azure.storage.Blob("example",
 *     name="scripts",
 *     storage_account_name=example_account.name,
 *     storage_container_name=example_container.name,
 *     type="Block",
 *     source_content="[scripts file content]")
 * example_gallery_application_version = azure.compute.GalleryApplicationVersion("example",
 *     name="0.0.1",
 *     gallery_application_id=example_gallery_application.id,
 *     location=example_gallery_application.location,
 *     manage_action={
 *         "install": "[install command]",
 *         "remove": "[remove command]",
 *     },
 *     source={
 *         "media_link": example_blob.id,
 *     },
 *     target_regions=[{
 *         "name": example_gallery_application.location,
 *         "regional_replica_count": 1,
 *     }])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("example", new()
 *     {
 *         Name = "examplegallery",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *     });
 *     var exampleGalleryApplication = new Azure.Compute.GalleryApplication("example", new()
 *     {
 *         Name = "example-app",
 *         GalleryId = exampleSharedImageGallery.Id,
 *         Location = example.Location,
 *         SupportedOsType = "Linux",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestorage",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *     });
 *     var exampleContainer = new Azure.Storage.Container("example", new()
 *     {
 *         Name = "example-container",
 *         StorageAccountName = exampleAccount.Name,
 *         ContainerAccessType = "blob",
 *     });
 *     var exampleBlob = new Azure.Storage.Blob("example", new()
 *     {
 *         Name = "scripts",
 *         StorageAccountName = exampleAccount.Name,
 *         StorageContainerName = exampleContainer.Name,
 *         Type = "Block",
 *         SourceContent = "[scripts file content]",
 *     });
 *     var exampleGalleryApplicationVersion = new Azure.Compute.GalleryApplicationVersion("example", new()
 *     {
 *         Name = "0.0.1",
 *         GalleryApplicationId = exampleGalleryApplication.Id,
 *         Location = exampleGalleryApplication.Location,
 *         ManageAction = new Azure.Compute.Inputs.GalleryApplicationVersionManageActionArgs
 *         {
 *             Install = "[install command]",
 *             Remove = "[remove command]",
 *         },
 *         Source = new Azure.Compute.Inputs.GalleryApplicationVersionSourceArgs
 *         {
 *             MediaLink = exampleBlob.Id,
 *         },
 *         TargetRegions = new[]
 *         {
 *             new Azure.Compute.Inputs.GalleryApplicationVersionTargetRegionArgs
 *             {
 *                 Name = exampleGalleryApplication.Location,
 *                 RegionalReplicaCount = 1,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"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-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "example", &compute.SharedImageGalleryArgs{
 * 			Name:              pulumi.String("examplegallery"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleGalleryApplication, err := compute.NewGalleryApplication(ctx, "example", &compute.GalleryApplicationArgs{
 * 			Name:            pulumi.String("example-app"),
 * 			GalleryId:       exampleSharedImageGallery.ID(),
 * 			Location:        example.Location,
 * 			SupportedOsType: pulumi.String("Linux"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestorage"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
 * 			Name:                pulumi.String("example-container"),
 * 			StorageAccountName:  exampleAccount.Name,
 * 			ContainerAccessType: pulumi.String("blob"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleBlob, err := storage.NewBlob(ctx, "example", &storage.BlobArgs{
 * 			Name:                 pulumi.String("scripts"),
 * 			StorageAccountName:   exampleAccount.Name,
 * 			StorageContainerName: exampleContainer.Name,
 * 			Type:                 pulumi.String("Block"),
 * 			SourceContent:        pulumi.String("[scripts file content]"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = compute.NewGalleryApplicationVersion(ctx, "example", &compute.GalleryApplicationVersionArgs{
 * 			Name:                 pulumi.String("0.0.1"),
 * 			GalleryApplicationId: exampleGalleryApplication.ID(),
 * 			Location:             exampleGalleryApplication.Location,
 * 			ManageAction: &compute.GalleryApplicationVersionManageActionArgs{
 * 				Install: pulumi.String("[install command]"),
 * 				Remove:  pulumi.String("[remove command]"),
 * 			},
 * 			Source: &compute.GalleryApplicationVersionSourceArgs{
 * 				MediaLink: exampleBlob.ID(),
 * 			},
 * 			TargetRegions: compute.GalleryApplicationVersionTargetRegionArray{
 * 				&compute.GalleryApplicationVersionTargetRegionArgs{
 * 					Name:                 exampleGalleryApplication.Location,
 * 					RegionalReplicaCount: pulumi.Int(1),
 * 				},
 * 			},
 * 		})
 * 		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.compute.SharedImageGallery;
 * import com.pulumi.azure.compute.SharedImageGalleryArgs;
 * import com.pulumi.azure.compute.GalleryApplication;
 * import com.pulumi.azure.compute.GalleryApplicationArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.Container;
 * import com.pulumi.azure.storage.ContainerArgs;
 * import com.pulumi.azure.storage.Blob;
 * import com.pulumi.azure.storage.BlobArgs;
 * import com.pulumi.azure.compute.GalleryApplicationVersion;
 * import com.pulumi.azure.compute.GalleryApplicationVersionArgs;
 * import com.pulumi.azure.compute.inputs.GalleryApplicationVersionManageActionArgs;
 * import com.pulumi.azure.compute.inputs.GalleryApplicationVersionSourceArgs;
 * import com.pulumi.azure.compute.inputs.GalleryApplicationVersionTargetRegionArgs;
 * 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-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
 *             .name("examplegallery")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .build());
 *         var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()
 *             .name("example-app")
 *             .galleryId(exampleSharedImageGallery.id())
 *             .location(example.location())
 *             .supportedOsType("Linux")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorage")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
 *             .name("example-container")
 *             .storageAccountName(exampleAccount.name())
 *             .containerAccessType("blob")
 *             .build());
 *         var exampleBlob = new Blob("exampleBlob", BlobArgs.builder()
 *             .name("scripts")
 *             .storageAccountName(exampleAccount.name())
 *             .storageContainerName(exampleContainer.name())
 *             .type("Block")
 *             .sourceContent("[scripts file content]")
 *             .build());
 *         var exampleGalleryApplicationVersion = new GalleryApplicationVersion("exampleGalleryApplicationVersion", GalleryApplicationVersionArgs.builder()
 *             .name("0.0.1")
 *             .galleryApplicationId(exampleGalleryApplication.id())
 *             .location(exampleGalleryApplication.location())
 *             .manageAction(GalleryApplicationVersionManageActionArgs.builder()
 *                 .install("[install command]")
 *                 .remove("[remove command]")
 *                 .build())
 *             .source(GalleryApplicationVersionSourceArgs.builder()
 *                 .mediaLink(exampleBlob.id())
 *                 .build())
 *             .targetRegions(GalleryApplicationVersionTargetRegionArgs.builder()
 *                 .name(exampleGalleryApplication.location())
 *                 .regionalReplicaCount(1)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-rg
 *       location: West Europe
 *   exampleSharedImageGallery:
 *     type: azure:compute:SharedImageGallery
 *     name: example
 *     properties:
 *       name: examplegallery
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *   exampleGalleryApplication:
 *     type: azure:compute:GalleryApplication
 *     name: example
 *     properties:
 *       name: example-app
 *       galleryId: ${exampleSharedImageGallery.id}
 *       location: ${example.location}
 *       supportedOsType: Linux
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestorage
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   exampleContainer:
 *     type: azure:storage:Container
 *     name: example
 *     properties:
 *       name: example-container
 *       storageAccountName: ${exampleAccount.name}
 *       containerAccessType: blob
 *   exampleBlob:
 *     type: azure:storage:Blob
 *     name: example
 *     properties:
 *       name: scripts
 *       storageAccountName: ${exampleAccount.name}
 *       storageContainerName: ${exampleContainer.name}
 *       type: Block
 *       sourceContent: '[scripts file content]'
 *   exampleGalleryApplicationVersion:
 *     type: azure:compute:GalleryApplicationVersion
 *     name: example
 *     properties:
 *       name: 0.0.1
 *       galleryApplicationId: ${exampleGalleryApplication.id}
 *       location: ${exampleGalleryApplication.location}
 *       manageAction:
 *         install: '[install command]'
 *         remove: '[remove command]'
 *       source:
 *         mediaLink: ${exampleBlob.id}
 *       targetRegions:
 *         - name: ${exampleGalleryApplication.location}
 *           regionalReplicaCount: 1
 * ```
 * 
 * ## Import
 * Gallery Application Versions can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:compute/galleryApplicationVersion:GalleryApplicationVersion example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1
 * ```
 * @property configFile Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
 * @property enableHealthCheck Should the Gallery Application reports health. Defaults to `false`.
 * @property endOfLifeDate The end of life date in RFC3339 format of the Gallery Application Version.
 * @property excludeFromLatest Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
 * @property galleryApplicationId The ID of the Gallery Application. Changing this forces a new resource to be created.
 * @property location The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.
 * @property manageAction A `manage_action` block as defined below.
 * @property name The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created.
 * @property packageFile Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
 * @property source A `source` block as defined below.
 * @property tags A mapping of tags to assign to the Gallery Application Version.
 * @property targetRegions One or more `target_region` blocks as defined below.
 */
public data class GalleryApplicationVersionArgs(
    public val configFile: Output? = null,
    public val enableHealthCheck: Output? = null,
    public val endOfLifeDate: Output? = null,
    public val excludeFromLatest: Output? = null,
    public val galleryApplicationId: Output? = null,
    public val location: Output? = null,
    public val manageAction: Output? = null,
    public val name: Output? = null,
    public val packageFile: Output? = null,
    public val source: Output? = null,
    public val tags: Output>? = null,
    public val targetRegions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.GalleryApplicationVersionArgs =
        com.pulumi.azure.compute.GalleryApplicationVersionArgs.builder()
            .configFile(configFile?.applyValue({ args0 -> args0 }))
            .enableHealthCheck(enableHealthCheck?.applyValue({ args0 -> args0 }))
            .endOfLifeDate(endOfLifeDate?.applyValue({ args0 -> args0 }))
            .excludeFromLatest(excludeFromLatest?.applyValue({ args0 -> args0 }))
            .galleryApplicationId(galleryApplicationId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .manageAction(manageAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .packageFile(packageFile?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetRegions(
                targetRegions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GalleryApplicationVersionArgs].
 */
@PulumiTagMarker
public class GalleryApplicationVersionArgsBuilder internal constructor() {
    private var configFile: Output? = null

    private var enableHealthCheck: Output? = null

    private var endOfLifeDate: Output? = null

    private var excludeFromLatest: Output? = null

    private var galleryApplicationId: Output? = null

    private var location: Output? = null

    private var manageAction: Output? = null

    private var name: Output? = null

    private var packageFile: Output? = null

    private var source: Output? = null

    private var tags: Output>? = null

    private var targetRegions: Output>? = null

    /**
     * @param value Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
     */
    @JvmName("lnqiraymspofgkkl")
    public suspend fun configFile(`value`: Output) {
        this.configFile = value
    }

    /**
     * @param value Should the Gallery Application reports health. Defaults to `false`.
     */
    @JvmName("drpkgjnjagmylgym")
    public suspend fun enableHealthCheck(`value`: Output) {
        this.enableHealthCheck = value
    }

    /**
     * @param value The end of life date in RFC3339 format of the Gallery Application Version.
     */
    @JvmName("fyiewshhwlnepjjx")
    public suspend fun endOfLifeDate(`value`: Output) {
        this.endOfLifeDate = value
    }

    /**
     * @param value Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
     */
    @JvmName("ethqevaqssmqddui")
    public suspend fun excludeFromLatest(`value`: Output) {
        this.excludeFromLatest = value
    }

    /**
     * @param value The ID of the Gallery Application. Changing this forces a new resource to be created.
     */
    @JvmName("cmtwppowllbikfll")
    public suspend fun galleryApplicationId(`value`: Output) {
        this.galleryApplicationId = value
    }

    /**
     * @param value The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.
     */
    @JvmName("fxcxbutjgmlhqrop")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

    /**
     * @param value The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created.
     */
    @JvmName("yvrxaejthgiejbam")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
     */
    @JvmName("pprgribxsexexcqx")
    public suspend fun packageFile(`value`: Output) {
        this.packageFile = value
    }

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

    /**
     * @param value A mapping of tags to assign to the Gallery Application Version.
     */
    @JvmName("idkwkuqyigtnvvdp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value One or more `target_region` blocks as defined below.
     */
    @JvmName("rsaxwwxyidifehrs")
    public suspend fun targetRegions(`value`: Output>) {
        this.targetRegions = value
    }

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

    /**
     * @param values One or more `target_region` blocks as defined below.
     */
    @JvmName("qewgagakxmsidsig")
    public suspend fun targetRegions(values: List>) {
        this.targetRegions = Output.all(values)
    }

    /**
     * @param value Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
     */
    @JvmName("gjmcuevndoafkumn")
    public suspend fun configFile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configFile = mapped
    }

    /**
     * @param value Should the Gallery Application reports health. Defaults to `false`.
     */
    @JvmName("kfwdscwpdfnxseqi")
    public suspend fun enableHealthCheck(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableHealthCheck = mapped
    }

    /**
     * @param value The end of life date in RFC3339 format of the Gallery Application Version.
     */
    @JvmName("eumnjuohhmxbpqyr")
    public suspend fun endOfLifeDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endOfLifeDate = mapped
    }

    /**
     * @param value Should the Gallery Application Version be excluded from the `latest` filter? If set to `true` this Gallery Application Version won't be returned for the `latest` version. Defaults to `false`.
     */
    @JvmName("kuiwfnwynsuhgdus")
    public suspend fun excludeFromLatest(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludeFromLatest = mapped
    }

    /**
     * @param value The ID of the Gallery Application. Changing this forces a new resource to be created.
     */
    @JvmName("vgmihywcqialvkyf")
    public suspend fun galleryApplicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.galleryApplicationId = mapped
    }

    /**
     * @param value The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.
     */
    @JvmName("kbbnxntatjbqfkpm")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

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

    /**
     * @param argument A `manage_action` block as defined below.
     */
    @JvmName("dedxwydmxpfebcfg")
    public suspend fun manageAction(argument: suspend GalleryApplicationVersionManageActionArgsBuilder.() -> Unit) {
        val toBeMapped = GalleryApplicationVersionManageActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.manageAction = mapped
    }

    /**
     * @param value The version name of the Gallery Application Version, such as `1.0.0`. Changing this forces a new resource to be created.
     */
    @JvmName("qnrvbyjhrvwbuiao")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
     */
    @JvmName("qpqfbmmqcgwtwdmf")
    public suspend fun packageFile(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.packageFile = mapped
    }

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

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

    /**
     * @param value A mapping of tags to assign to the Gallery Application Version.
     */
    @JvmName("vbcwaymwdsdaqhig")
    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 to assign to the Gallery Application Version.
     */
    @JvmName("aqcdjvrdowimmwjj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value One or more `target_region` blocks as defined below.
     */
    @JvmName("yunsdtwynvcifkxf")
    public suspend fun targetRegions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetRegions = mapped
    }

    /**
     * @param argument One or more `target_region` blocks as defined below.
     */
    @JvmName("secgeosoidskrsht")
    public suspend fun targetRegions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GalleryApplicationVersionTargetRegionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetRegions = mapped
    }

    /**
     * @param argument One or more `target_region` blocks as defined below.
     */
    @JvmName("kqyvhhxbxrkatugo")
    public suspend fun targetRegions(vararg argument: suspend GalleryApplicationVersionTargetRegionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GalleryApplicationVersionTargetRegionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetRegions = mapped
    }

    /**
     * @param argument One or more `target_region` blocks as defined below.
     */
    @JvmName("fgixddkiussntmil")
    public suspend fun targetRegions(argument: suspend GalleryApplicationVersionTargetRegionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GalleryApplicationVersionTargetRegionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.targetRegions = mapped
    }

    /**
     * @param values One or more `target_region` blocks as defined below.
     */
    @JvmName("cjjxygeblvbwaltd")
    public suspend fun targetRegions(vararg values: GalleryApplicationVersionTargetRegionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetRegions = mapped
    }

    internal fun build(): GalleryApplicationVersionArgs = GalleryApplicationVersionArgs(
        configFile = configFile,
        enableHealthCheck = enableHealthCheck,
        endOfLifeDate = endOfLifeDate,
        excludeFromLatest = excludeFromLatest,
        galleryApplicationId = galleryApplicationId,
        location = location,
        manageAction = manageAction,
        name = name,
        packageFile = packageFile,
        source = source,
        tags = tags,
        targetRegions = targetRegions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy