Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

The configuration for continuous tests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig

Returns a new instance of GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig.



8975
8976
8977
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8975

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_continuous_runBoolean Also known as: enable_continuous_run?

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day. Corresponds to the JSON property enableContinuousRun

Returns:

  • (Boolean)


8959
8960
8961
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8959

def enable_continuous_run
  @enable_continuous_run
end

#enable_predeployment_runBoolean Also known as: enable_predeployment_run?

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false. Corresponds to the JSON property enablePredeploymentRun

Returns:

  • (Boolean)


8966
8967
8968
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8966

def enable_predeployment_run
  @enable_predeployment_run
end

#test_casesArray<String>

A list of test case names to run. They should be under the same agent. Format of each test case name: projects//locations/ /agents//testCases/ Corresponds to the JSON property testCases

Returns:

  • (Array<String>)


8973
8974
8975
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8973

def test_cases
  @test_cases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8980
8981
8982
8983
8984
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8980

def update!(**args)
  @enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
  @enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
  @test_cases = args[:test_cases] if args.key?(:test_cases)
end