com.pulumi.googlenative.bigqueryreservation.v1.kotlin.Bigqueryreservation_v1Functions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.bigqueryreservation.v1.kotlin
import com.pulumi.googlenative.bigqueryreservation.v1.Bigqueryreservation_v1Functions.getCapacityCommitmentPlain
import com.pulumi.googlenative.bigqueryreservation.v1.Bigqueryreservation_v1Functions.getReservationPlain
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetCapacityCommitmentPlainArgs
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetCapacityCommitmentPlainArgsBuilder
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetReservationPlainArgs
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetReservationPlainArgsBuilder
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.outputs.GetCapacityCommitmentResult
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.outputs.GetReservationResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.outputs.GetCapacityCommitmentResult.Companion.toKotlin as getCapacityCommitmentResultToKotlin
import com.pulumi.googlenative.bigqueryreservation.v1.kotlin.outputs.GetReservationResult.Companion.toKotlin as getReservationResultToKotlin
public object Bigqueryreservation_v1Functions {
/**
* Returns information about the capacity commitment.
* @param argument null
* @return null
*/
public suspend fun getCapacityCommitment(argument: GetCapacityCommitmentPlainArgs): GetCapacityCommitmentResult =
getCapacityCommitmentResultToKotlin(getCapacityCommitmentPlain(argument.toJava()).await())
/**
* @see [getCapacityCommitment].
* @param capacityCommitmentId
* @param location
* @param project
* @return null
*/
public suspend fun getCapacityCommitment(
capacityCommitmentId: String,
location: String,
project: String? = null,
): GetCapacityCommitmentResult {
val argument = GetCapacityCommitmentPlainArgs(
capacityCommitmentId = capacityCommitmentId,
location = location,
project = project,
)
return getCapacityCommitmentResultToKotlin(getCapacityCommitmentPlain(argument.toJava()).await())
}
/**
* @see [getCapacityCommitment].
* @param argument Builder for [com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetCapacityCommitmentPlainArgs].
* @return null
*/
public suspend fun getCapacityCommitment(argument: suspend GetCapacityCommitmentPlainArgsBuilder.() -> Unit): GetCapacityCommitmentResult {
val builder = GetCapacityCommitmentPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getCapacityCommitmentResultToKotlin(getCapacityCommitmentPlain(builtArgument.toJava()).await())
}
/**
* Returns information about the reservation.
* @param argument null
* @return null
*/
public suspend fun getReservation(argument: GetReservationPlainArgs): GetReservationResult =
getReservationResultToKotlin(getReservationPlain(argument.toJava()).await())
/**
* @see [getReservation].
* @param location
* @param project
* @param reservationId
* @return null
*/
public suspend fun getReservation(
location: String,
project: String? = null,
reservationId: String,
): GetReservationResult {
val argument = GetReservationPlainArgs(
location = location,
project = project,
reservationId = reservationId,
)
return getReservationResultToKotlin(getReservationPlain(argument.toJava()).await())
}
/**
* @see [getReservation].
* @param argument Builder for [com.pulumi.googlenative.bigqueryreservation.v1.kotlin.inputs.GetReservationPlainArgs].
* @return null
*/
public suspend fun getReservation(argument: suspend GetReservationPlainArgsBuilder.() -> Unit): GetReservationResult {
val builder = GetReservationPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getReservationResultToKotlin(getReservationPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy