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

com.pulumi.azure.appservice.kotlin.outputs.GetServicePlanResult.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * A collection of values returned by getServicePlan.
 * @property appServiceEnvironmentId The ID of the App Service Environment this Service Plan is part of.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property kind A string representing the Kind of Service Plan.
 * @property location The Azure Region where the Service Plan exists.
 * @property maximumElasticWorkerCount The maximum number of workers in use in an Elastic SKU Plan.
 * @property name
 * @property osType The O/S type for the App Services hosted in this plan.
 * @property perSiteScalingEnabled Is Per Site Scaling be enabled?
 * @property reserved Whether this is a reserved Service Plan Type. `true` if `os_type` is `Linux`, otherwise `false`.
 * @property resourceGroupName
 * @property skuName The SKU for the Service Plan.
 * @property tags A mapping of tags assigned to the Service Plan.
 * @property workerCount The number of Workers (instances) allocated.
 * @property zoneBalancingEnabled Is the Service Plan balance across Availability Zones in the region?
 */
public data class GetServicePlanResult(
    public val appServiceEnvironmentId: String,
    public val id: String,
    public val kind: String,
    public val location: String,
    public val maximumElasticWorkerCount: Int,
    public val name: String,
    public val osType: String,
    public val perSiteScalingEnabled: Boolean,
    public val reserved: Boolean,
    public val resourceGroupName: String,
    public val skuName: String,
    public val tags: Map,
    public val workerCount: Int,
    public val zoneBalancingEnabled: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.GetServicePlanResult):
            GetServicePlanResult = GetServicePlanResult(
            appServiceEnvironmentId = javaType.appServiceEnvironmentId(),
            id = javaType.id(),
            kind = javaType.kind(),
            location = javaType.location(),
            maximumElasticWorkerCount = javaType.maximumElasticWorkerCount(),
            name = javaType.name(),
            osType = javaType.osType(),
            perSiteScalingEnabled = javaType.perSiteScalingEnabled(),
            reserved = javaType.reserved(),
            resourceGroupName = javaType.resourceGroupName(),
            skuName = javaType.skuName(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            workerCount = javaType.workerCount(),
            zoneBalancingEnabled = javaType.zoneBalancingEnabled(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy