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

com.pulumi.googlenative.ids.v1.kotlin.Ids_v1Functions.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.ids.v1.kotlin

import com.pulumi.googlenative.ids.v1.Ids_v1Functions.getEndpointIamPolicyPlain
import com.pulumi.googlenative.ids.v1.Ids_v1Functions.getEndpointPlain
import com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointIamPolicyPlainArgs
import com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointIamPolicyPlainArgsBuilder
import com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointPlainArgs
import com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointPlainArgsBuilder
import com.pulumi.googlenative.ids.v1.kotlin.outputs.GetEndpointIamPolicyResult
import com.pulumi.googlenative.ids.v1.kotlin.outputs.GetEndpointResult
import kotlinx.coroutines.future.await
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.googlenative.ids.v1.kotlin.outputs.GetEndpointIamPolicyResult.Companion.toKotlin as getEndpointIamPolicyResultToKotlin
import com.pulumi.googlenative.ids.v1.kotlin.outputs.GetEndpointResult.Companion.toKotlin as getEndpointResultToKotlin

public object Ids_v1Functions {
    /**
     * Gets details of a single Endpoint.
     * @param argument null
     * @return null
     */
    public suspend fun getEndpoint(argument: GetEndpointPlainArgs): GetEndpointResult =
        getEndpointResultToKotlin(getEndpointPlain(argument.toJava()).await())

    /**
     * @see [getEndpoint].
     * @param endpointId
     * @param location
     * @param project
     * @return null
     */
    public suspend fun getEndpoint(
        endpointId: String,
        location: String,
        project: String? = null,
    ): GetEndpointResult {
        val argument = GetEndpointPlainArgs(
            endpointId = endpointId,
            location = location,
            project = project,
        )
        return getEndpointResultToKotlin(getEndpointPlain(argument.toJava()).await())
    }

    /**
     * @see [getEndpoint].
     * @param argument Builder for [com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointPlainArgs].
     * @return null
     */
    public suspend fun getEndpoint(argument: suspend GetEndpointPlainArgsBuilder.() -> Unit): GetEndpointResult {
        val builder = GetEndpointPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getEndpointResultToKotlin(getEndpointPlain(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 getEndpointIamPolicy(argument: GetEndpointIamPolicyPlainArgs): GetEndpointIamPolicyResult =
        getEndpointIamPolicyResultToKotlin(getEndpointIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getEndpointIamPolicy].
     * @param endpointId
     * @param location
     * @param optionsRequestedPolicyVersion
     * @param project
     * @return null
     */
    public suspend fun getEndpointIamPolicy(
        endpointId: String,
        location: String,
        optionsRequestedPolicyVersion: Int? = null,
        project: String? = null,
    ): GetEndpointIamPolicyResult {
        val argument = GetEndpointIamPolicyPlainArgs(
            endpointId = endpointId,
            location = location,
            optionsRequestedPolicyVersion = optionsRequestedPolicyVersion,
            project = project,
        )
        return getEndpointIamPolicyResultToKotlin(getEndpointIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getEndpointIamPolicy].
     * @param argument Builder for [com.pulumi.googlenative.ids.v1.kotlin.inputs.GetEndpointIamPolicyPlainArgs].
     * @return null
     */
    public suspend fun getEndpointIamPolicy(argument: suspend GetEndpointIamPolicyPlainArgsBuilder.() -> Unit): GetEndpointIamPolicyResult {
        val builder = GetEndpointIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getEndpointIamPolicyResultToKotlin(getEndpointIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy