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

com.pulumi.googlenative.container.v1.kotlin.Container_v1Functions.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.container.v1.kotlin

import com.pulumi.googlenative.container.v1.Container_v1Functions.getClusterPlain
import com.pulumi.googlenative.container.v1.Container_v1Functions.getNodePoolPlain
import com.pulumi.googlenative.container.v1.Container_v1Functions.getServerConfigPlain
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetClusterPlainArgs
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetClusterPlainArgsBuilder
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetNodePoolPlainArgs
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetNodePoolPlainArgsBuilder
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetServerConfigPlainArgs
import com.pulumi.googlenative.container.v1.kotlin.inputs.GetServerConfigPlainArgsBuilder
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetClusterResult
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetNodePoolResult
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetServerConfigResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetClusterResult.Companion.toKotlin as getClusterResultToKotlin
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetNodePoolResult.Companion.toKotlin as getNodePoolResultToKotlin
import com.pulumi.googlenative.container.v1.kotlin.outputs.GetServerConfigResult.Companion.toKotlin as getServerConfigResultToKotlin

public object Container_v1Functions {
    /**
     * Gets the details of a specific cluster.
     * @param argument null
     * @return null
     */
    public suspend fun getCluster(argument: GetClusterPlainArgs): GetClusterResult =
        getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())

    /**
     * @see [getCluster].
     * @param clusterId
     * @param location
     * @param project
     * @param projectId
     * @param zone
     * @return null
     */
    public suspend fun getCluster(
        clusterId: String,
        location: String,
        project: String? = null,
        projectId: String? = null,
        zone: String? = null,
    ): GetClusterResult {
        val argument = GetClusterPlainArgs(
            clusterId = clusterId,
            location = location,
            project = project,
            projectId = projectId,
            zone = zone,
        )
        return getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
    }

    /**
     * @see [getCluster].
     * @param argument Builder for [com.pulumi.googlenative.container.v1.kotlin.inputs.GetClusterPlainArgs].
     * @return null
     */
    public suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult {
        val builder = GetClusterPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getClusterResultToKotlin(getClusterPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the requested node pool.
     * @param argument null
     * @return null
     */
    public suspend fun getNodePool(argument: GetNodePoolPlainArgs): GetNodePoolResult =
        getNodePoolResultToKotlin(getNodePoolPlain(argument.toJava()).await())

    /**
     * @see [getNodePool].
     * @param clusterId
     * @param location
     * @param nodePoolId
     * @param project
     * @param projectId
     * @param zone
     * @return null
     */
    public suspend fun getNodePool(
        clusterId: String,
        location: String,
        nodePoolId: String,
        project: String? = null,
        projectId: String? = null,
        zone: String? = null,
    ): GetNodePoolResult {
        val argument = GetNodePoolPlainArgs(
            clusterId = clusterId,
            location = location,
            nodePoolId = nodePoolId,
            project = project,
            projectId = projectId,
            zone = zone,
        )
        return getNodePoolResultToKotlin(getNodePoolPlain(argument.toJava()).await())
    }

    /**
     * @see [getNodePool].
     * @param argument Builder for [com.pulumi.googlenative.container.v1.kotlin.inputs.GetNodePoolPlainArgs].
     * @return null
     */
    public suspend fun getNodePool(argument: suspend GetNodePoolPlainArgsBuilder.() -> Unit): GetNodePoolResult {
        val builder = GetNodePoolPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getNodePoolResultToKotlin(getNodePoolPlain(builtArgument.toJava()).await())
    }

    /**
     * Returns configuration info about the Google Kubernetes Engine service.
     * @param argument null
     * @return null
     */
    public suspend fun getServerConfig(argument: GetServerConfigPlainArgs): GetServerConfigResult =
        getServerConfigResultToKotlin(getServerConfigPlain(argument.toJava()).await())

    /**
     * @see [getServerConfig].
     * @param location
     * @param project
     * @param projectId
     * @param zone
     * @return null
     */
    public suspend fun getServerConfig(
        location: String,
        project: String? = null,
        projectId: String? = null,
        zone: String? = null,
    ): GetServerConfigResult {
        val argument = GetServerConfigPlainArgs(
            location = location,
            project = project,
            projectId = projectId,
            zone = zone,
        )
        return getServerConfigResultToKotlin(getServerConfigPlain(argument.toJava()).await())
    }

    /**
     * @see [getServerConfig].
     * @param argument Builder for [com.pulumi.googlenative.container.v1.kotlin.inputs.GetServerConfigPlainArgs].
     * @return null
     */
    public suspend fun getServerConfig(argument: suspend GetServerConfigPlainArgsBuilder.() -> Unit): GetServerConfigResult {
        val builder = GetServerConfigPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getServerConfigResultToKotlin(getServerConfigPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy