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

com.pulumi.azurenative.resourcegraph.kotlin.ResourcegraphFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.resourcegraph.kotlin

import com.pulumi.azurenative.resourcegraph.ResourcegraphFunctions.getGraphQueryPlain
import com.pulumi.azurenative.resourcegraph.kotlin.inputs.GetGraphQueryPlainArgs
import com.pulumi.azurenative.resourcegraph.kotlin.inputs.GetGraphQueryPlainArgsBuilder
import com.pulumi.azurenative.resourcegraph.kotlin.outputs.GetGraphQueryResult
import com.pulumi.azurenative.resourcegraph.kotlin.outputs.GetGraphQueryResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object ResourcegraphFunctions {
    /**
     * Get a single graph query by its resourceName.
     * Azure REST API version: 2020-04-01-preview.
     * Other available API versions: 2018-09-01-preview, 2019-04-01, 2021-03-01, 2022-10-01, 2024-04-01.
     * @param argument null
     * @return Graph Query entity definition.
     */
    public suspend fun getGraphQuery(argument: GetGraphQueryPlainArgs): GetGraphQueryResult =
        toKotlin(getGraphQueryPlain(argument.toJava()).await())

    /**
     * @see [getGraphQuery].
     * @param resourceGroupName The name of the resource group.
     * @param resourceName The name of the Graph Query resource.
     * @return Graph Query entity definition.
     */
    public suspend fun getGraphQuery(resourceGroupName: String, resourceName: String): GetGraphQueryResult {
        val argument = GetGraphQueryPlainArgs(
            resourceGroupName = resourceGroupName,
            resourceName = resourceName,
        )
        return toKotlin(getGraphQueryPlain(argument.toJava()).await())
    }

    /**
     * @see [getGraphQuery].
     * @param argument Builder for [com.pulumi.azurenative.resourcegraph.kotlin.inputs.GetGraphQueryPlainArgs].
     * @return Graph Query entity definition.
     */
    public suspend fun getGraphQuery(argument: suspend GetGraphQueryPlainArgsBuilder.() -> Unit): GetGraphQueryResult {
        val builder = GetGraphQueryPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getGraphQueryPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy