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

com.pulumi.azure.containerapp.kotlin.outputs.GetAppResult.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.containerapp.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getApp.
 * @property containerAppEnvironmentId The ID of the Container App Environment this Container App is linked to.
 * @property customDomainVerificationId
 * @property daprs A `dapr` block as detailed below.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property identities Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
 * @property ingresses An `ingress` block as detailed below.
 * @property latestRevisionFqdn
 * @property latestRevisionName
 * @property location
 * @property name Name for the IP restriction rule.
 * @property outboundIpAddresses
 * @property registries A `registry` block as detailed below.
 * @property resourceGroupName
 * @property revisionMode The revision mode of the Container App.
 * @property secrets One or more `secret` block as detailed below.
 * @property tags A mapping of tags to assign to the Container App.
 * @property templates A `template` block as detailed below.
 * @property workloadProfileName The name of the Workload Profile in the Container App Environment in which this Container App is running.
 */
public data class GetAppResult(
    public val containerAppEnvironmentId: String,
    public val customDomainVerificationId: String,
    public val daprs: List,
    public val id: String,
    public val identities: List,
    public val ingresses: List,
    public val latestRevisionFqdn: String,
    public val latestRevisionName: String,
    public val location: String,
    public val name: String,
    public val outboundIpAddresses: List,
    public val registries: List,
    public val resourceGroupName: String,
    public val revisionMode: String,
    public val secrets: List,
    public val tags: Map,
    public val templates: List,
    public val workloadProfileName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.GetAppResult): GetAppResult = GetAppResult(
            containerAppEnvironmentId = javaType.containerAppEnvironmentId(),
            customDomainVerificationId = javaType.customDomainVerificationId(),
            daprs = javaType.daprs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppDapr.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            identities = javaType.identities().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppIdentity.Companion.toKotlin(args0)
                })
            }),
            ingresses = javaType.ingresses().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppIngress.Companion.toKotlin(args0)
                })
            }),
            latestRevisionFqdn = javaType.latestRevisionFqdn(),
            latestRevisionName = javaType.latestRevisionName(),
            location = javaType.location(),
            name = javaType.name(),
            outboundIpAddresses = javaType.outboundIpAddresses().map({ args0 -> args0 }),
            registries = javaType.registries().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppRegistry.Companion.toKotlin(args0)
                })
            }),
            resourceGroupName = javaType.resourceGroupName(),
            revisionMode = javaType.revisionMode(),
            secrets = javaType.secrets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppSecret.Companion.toKotlin(args0)
                })
            }),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            templates = javaType.templates().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplate.Companion.toKotlin(args0)
                })
            }),
            workloadProfileName = javaType.workloadProfileName(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy