com.pulumi.azurenative.fabric.kotlin.FabricFunctions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.fabric.kotlin
import com.pulumi.azurenative.fabric.FabricFunctions.getFabricCapacityPlain
import com.pulumi.azurenative.fabric.kotlin.inputs.GetFabricCapacityPlainArgs
import com.pulumi.azurenative.fabric.kotlin.inputs.GetFabricCapacityPlainArgsBuilder
import com.pulumi.azurenative.fabric.kotlin.outputs.GetFabricCapacityResult
import com.pulumi.azurenative.fabric.kotlin.outputs.GetFabricCapacityResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
public object FabricFunctions {
/**
* Get a FabricCapacity
* Azure REST API version: 2023-11-01.
* @param argument null
* @return Fabric Capacity resource
*/
public suspend fun getFabricCapacity(argument: GetFabricCapacityPlainArgs): GetFabricCapacityResult = toKotlin(getFabricCapacityPlain(argument.toJava()).await())
/**
* @see [getFabricCapacity].
* @param capacityName The name of the Microsoft Fabric capacity. It must be a minimum of 3 characters, and a maximum of 63.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @return Fabric Capacity resource
*/
public suspend fun getFabricCapacity(capacityName: String, resourceGroupName: String): GetFabricCapacityResult {
val argument = GetFabricCapacityPlainArgs(
capacityName = capacityName,
resourceGroupName = resourceGroupName,
)
return toKotlin(getFabricCapacityPlain(argument.toJava()).await())
}
/**
* @see [getFabricCapacity].
* @param argument Builder for [com.pulumi.azurenative.fabric.kotlin.inputs.GetFabricCapacityPlainArgs].
* @return Fabric Capacity resource
*/
public suspend fun getFabricCapacity(argument: suspend GetFabricCapacityPlainArgsBuilder.() -> Unit): GetFabricCapacityResult {
val builder = GetFabricCapacityPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return toKotlin(getFabricCapacityPlain(builtArgument.toJava()).await())
}
}