Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaMockConfig

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

Overview

The configuration for mocking of a task during test execution Next available id: 4

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaMockConfig

Returns a new instance of GoogleCloudIntegrationsV1alphaMockConfig.



9362
9363
9364
# File 'lib/google/apis/integrations_v1/classes.rb', line 9362

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

Instance Attribute Details

#failed_executionsFixnum

Optional. Number of times the given task should fail for failure mock strategy Corresponds to the JSON property failedExecutions

Returns:

  • (Fixnum)


9349
9350
9351
# File 'lib/google/apis/integrations_v1/classes.rb', line 9349

def failed_executions
  @failed_executions
end

#mock_strategyString

Mockstrategy defines how the particular task should be mocked during test execution Corresponds to the JSON property mockStrategy

Returns:

  • (String)


9355
9356
9357
# File 'lib/google/apis/integrations_v1/classes.rb', line 9355

def mock_strategy
  @mock_strategy
end

#parametersArray<Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaEventParameter>

Optional. List of key-value pairs for specific mock strategy Corresponds to the JSON property parameters



9360
9361
9362
# File 'lib/google/apis/integrations_v1/classes.rb', line 9360

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9367
9368
9369
9370
9371
# File 'lib/google/apis/integrations_v1/classes.rb', line 9367

def update!(**args)
  @failed_executions = args[:failed_executions] if args.key?(:failed_executions)
  @mock_strategy = args[:mock_strategy] if args.key?(:mock_strategy)
  @parameters = args[:parameters] if args.key?(:parameters)
end