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

com.pulumi.googlenative.testing.v1.kotlin.Testing_v1Functions.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.testing.v1.kotlin

import com.pulumi.googlenative.testing.v1.Testing_v1Functions.getTestMatrixPlain
import com.pulumi.googlenative.testing.v1.kotlin.inputs.GetTestMatrixPlainArgs
import com.pulumi.googlenative.testing.v1.kotlin.inputs.GetTestMatrixPlainArgsBuilder
import com.pulumi.googlenative.testing.v1.kotlin.outputs.GetTestMatrixResult
import com.pulumi.googlenative.testing.v1.kotlin.outputs.GetTestMatrixResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object Testing_v1Functions {
    /**
     * Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may still be added to the matrix at a later stage. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
     * @param argument null
     * @return null
     */
    public suspend fun getTestMatrix(argument: GetTestMatrixPlainArgs): GetTestMatrixResult =
        toKotlin(getTestMatrixPlain(argument.toJava()).await())

    /**
     * @see [getTestMatrix].
     * @param project
     * @param testMatrixId
     * @return null
     */
    public suspend fun getTestMatrix(project: String? = null, testMatrixId: String): GetTestMatrixResult {
        val argument = GetTestMatrixPlainArgs(
            project = project,
            testMatrixId = testMatrixId,
        )
        return toKotlin(getTestMatrixPlain(argument.toJava()).await())
    }

    /**
     * @see [getTestMatrix].
     * @param argument Builder for [com.pulumi.googlenative.testing.v1.kotlin.inputs.GetTestMatrixPlainArgs].
     * @return null
     */
    public suspend fun getTestMatrix(argument: suspend GetTestMatrixPlainArgsBuilder.() -> Unit): GetTestMatrixResult {
        val builder = GetTestMatrixPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getTestMatrixPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy