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

com.pulumi.gcp.diagflow.kotlin.outputs.CxTestCaseLastTestResult.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: 8.20.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property conversationTurns The conversation turns uttered during the test case replay in chronological order.
 * Structure is documented below.
 * @property environment Environment where the test was run. If not set, it indicates the draft environment.
 * @property name The unique identifier of the page.
 * Format: projects//locations//agents//flows//pages/.
 * @property testResult Whether the test case passed in the agent environment.
 * * PASSED: The test passed.
 * * FAILED: The test did not pass.
 * Possible values are: `PASSED`, `FAILED`.
 * @property testTime The time that the test was run. A timestamp in RFC3339 text format.
 */
public data class CxTestCaseLastTestResult(
    public val conversationTurns: List? = null,
    public val environment: String? = null,
    public val name: String? = null,
    public val testResult: String? = null,
    public val testTime: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.diagflow.outputs.CxTestCaseLastTestResult): CxTestCaseLastTestResult = CxTestCaseLastTestResult(
            conversationTurns = javaType.conversationTurns().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.diagflow.kotlin.outputs.CxTestCaseLastTestResultConversationTurn.Companion.toKotlin(args0)
                })
            }),
            environment = javaType.environment().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            testResult = javaType.testResult().map({ args0 -> args0 }).orElse(null),
            testTime = javaType.testTime().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy