com.pulumi.googlenative.datafusion.v1beta1.kotlin.Datafusion_v1beta1Functions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.datafusion.v1beta1.kotlin
import com.pulumi.googlenative.datafusion.v1beta1.Datafusion_v1beta1Functions.getInstanceIamPolicyPlain
import com.pulumi.googlenative.datafusion.v1beta1.Datafusion_v1beta1Functions.getInstanceNamespaceIamPolicyPlain
import com.pulumi.googlenative.datafusion.v1beta1.Datafusion_v1beta1Functions.getInstancePlain
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceIamPolicyPlainArgs
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceNamespaceIamPolicyPlainArgs
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceNamespaceIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstancePlainArgs
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstancePlainArgsBuilder
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceIamPolicyResult
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceNamespaceIamPolicyResult
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceResult
import kotlinx.coroutines.future.await
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceIamPolicyResult.Companion.toKotlin as getInstanceIamPolicyResultToKotlin
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceNamespaceIamPolicyResult.Companion.toKotlin as getInstanceNamespaceIamPolicyResultToKotlin
import com.pulumi.googlenative.datafusion.v1beta1.kotlin.outputs.GetInstanceResult.Companion.toKotlin as getInstanceResultToKotlin
public object Datafusion_v1beta1Functions {
/**
* Gets details of a single Data Fusion instance.
* @param argument null
* @return null
*/
public suspend fun getInstance(argument: GetInstancePlainArgs): GetInstanceResult =
getInstanceResultToKotlin(getInstancePlain(argument.toJava()).await())
/**
* @see [getInstance].
* @param instanceId
* @param location
* @param project
* @return null
*/
public suspend fun getInstance(
instanceId: String,
location: String,
project: String? = null,
): GetInstanceResult {
val argument = GetInstancePlainArgs(
instanceId = instanceId,
location = location,
project = project,
)
return getInstanceResultToKotlin(getInstancePlain(argument.toJava()).await())
}
/**
* @see [getInstance].
* @param argument Builder for [com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstancePlainArgs].
* @return null
*/
public suspend fun getInstance(argument: suspend GetInstancePlainArgsBuilder.() -> Unit): GetInstanceResult {
val builder = GetInstancePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getInstanceResultToKotlin(getInstancePlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getInstanceIamPolicy(argument: GetInstanceIamPolicyPlainArgs): GetInstanceIamPolicyResult =
getInstanceIamPolicyResultToKotlin(getInstanceIamPolicyPlain(argument.toJava()).await())
/**
* @see [getInstanceIamPolicy].
* @param instanceId
* @param location
* @param optionsRequestedPolicyVersion
* @param project
* @return null
*/
public suspend fun getInstanceIamPolicy(
instanceId: String,
location: String,
optionsRequestedPolicyVersion: Int? = null,
project: String? = null,
): GetInstanceIamPolicyResult {
val argument = GetInstanceIamPolicyPlainArgs(
instanceId = instanceId,
location = location,
optionsRequestedPolicyVersion = optionsRequestedPolicyVersion,
project = project,
)
return getInstanceIamPolicyResultToKotlin(getInstanceIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getInstanceIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceIamPolicyPlainArgs].
* @return null
*/
public suspend fun getInstanceIamPolicy(argument: suspend GetInstanceIamPolicyPlainArgsBuilder.() -> Unit): GetInstanceIamPolicyResult {
val builder = GetInstanceIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getInstanceIamPolicyResultToKotlin(getInstanceIamPolicyPlain(builtArgument.toJava()).await())
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
* @param argument null
* @return null
*/
public suspend fun getInstanceNamespaceIamPolicy(argument: GetInstanceNamespaceIamPolicyPlainArgs): GetInstanceNamespaceIamPolicyResult =
getInstanceNamespaceIamPolicyResultToKotlin(getInstanceNamespaceIamPolicyPlain(argument.toJava()).await())
/**
* @see [getInstanceNamespaceIamPolicy].
* @param instanceId
* @param location
* @param namespaceId
* @param optionsRequestedPolicyVersion
* @param project
* @return null
*/
public suspend fun getInstanceNamespaceIamPolicy(
instanceId: String,
location: String,
namespaceId: String,
optionsRequestedPolicyVersion: Int? = null,
project: String? = null,
): GetInstanceNamespaceIamPolicyResult {
val argument = GetInstanceNamespaceIamPolicyPlainArgs(
instanceId = instanceId,
location = location,
namespaceId = namespaceId,
optionsRequestedPolicyVersion = optionsRequestedPolicyVersion,
project = project,
)
return getInstanceNamespaceIamPolicyResultToKotlin(getInstanceNamespaceIamPolicyPlain(argument.toJava()).await())
}
/**
* @see [getInstanceNamespaceIamPolicy].
* @param argument Builder for [com.pulumi.googlenative.datafusion.v1beta1.kotlin.inputs.GetInstanceNamespaceIamPolicyPlainArgs].
* @return null
*/
public suspend fun getInstanceNamespaceIamPolicy(argument: suspend GetInstanceNamespaceIamPolicyPlainArgsBuilder.() -> Unit): GetInstanceNamespaceIamPolicyResult {
val builder = GetInstanceNamespaceIamPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getInstanceNamespaceIamPolicyResultToKotlin(getInstanceNamespaceIamPolicyPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy