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

src.dialogflow.v3.TestCaseArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.dialogflow.v3

final case class TestCaseArgs private(
  agentId: besom.types.Output[String],
  displayName: besom.types.Output[String],
  lastTestResult: besom.types.Output[scala.Option[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs]],
  location: besom.types.Output[scala.Option[String]],
  name: besom.types.Output[scala.Option[String]],
  notes: besom.types.Output[scala.Option[String]],
  project: besom.types.Output[scala.Option[String]],
  tags: besom.types.Output[scala.Option[scala.collection.immutable.List[String]]],
  testCaseConversationTurns: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3ConversationTurnArgs]]],
  testConfig: besom.types.Output[scala.Option[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestConfigArgs]]
)

object TestCaseArgs:
  def apply(
    agentId: besom.types.Input[String],
    displayName: besom.types.Input[String],
    lastTestResult: besom.types.Input.Optional[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestCaseResultArgs] = scala.None,
    location: besom.types.Input.Optional[String] = scala.None,
    name: besom.types.Input.Optional[String] = scala.None,
    notes: besom.types.Input.Optional[String] = scala.None,
    project: besom.types.Input.Optional[String] = scala.None,
    tags: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[String]]] = scala.None,
    testCaseConversationTurns: besom.types.Input.Optional[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3ConversationTurnArgs]]] = scala.None,
    testConfig: besom.types.Input.Optional[besom.api.googlenative.dialogflow.v3.inputs.GoogleCloudDialogflowCxV3TestConfigArgs] = scala.None
  )(using besom.types.Context): TestCaseArgs =
    new TestCaseArgs(
      agentId = agentId.asOutput(isSecret = false),
      displayName = displayName.asOutput(isSecret = false),
      lastTestResult = lastTestResult.asOptionOutput(isSecret = false),
      location = location.asOptionOutput(isSecret = false),
      name = name.asOptionOutput(isSecret = false),
      notes = notes.asOptionOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      tags = tags.asOptionOutput(isSecret = false),
      testCaseConversationTurns = testCaseConversationTurns.asOptionOutput(isSecret = false),
      testConfig = testConfig.asOptionOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[TestCaseArgs] =
    besom.internal.Encoder.derived[TestCaseArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[TestCaseArgs] =
    besom.internal.ArgsEncoder.derived[TestCaseArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy