TestCase constructor

TestCase(
  1. String name, {
  2. TestCaseArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new TestCase. name The Pulumi resource name. args Arguments used to configure this TestCase. The set of arguments for TestCase. options Resource options controlling this resource's behavior.

Implementation

TestCase(
  String name, {
  TestCaseArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'google-native:dialogflow/v3:TestCase',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  agentId = registerOutput<String>('agentId');
  creationTime = registerOutput<String>('creationTime');
  displayName = registerOutput<String>('displayName');
  lastTestResult = registerOutput<GoogleCloudDialogflowCxV3TestCaseResultResponse>('lastTestResult', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudDialogflowCxV3TestCaseResultResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  location = registerOutput<String>('location');
  this.name = registerOutput<String>('name');
  notes = registerOutput<String>('notes');
  project = registerOutput<String>('project');
  tags = registerOutput<List<String>>('tags');
  testCaseConversationTurns = registerOutput<List<Map<String, dynamic>>>('testCaseConversationTurns');
  testConfig = registerOutput<GoogleCloudDialogflowCxV3TestConfigResponse>('testConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GoogleCloudDialogflowCxV3TestConfigResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}