Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAssertionResult

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 result of an assertion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaAssertionResult

Returns a new instance of GoogleCloudIntegrationsV1alphaAssertionResult.



6489
6490
6491
# File 'lib/google/apis/integrations_v1/classes.rb', line 6489

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

Instance Attribute Details

#assertionGoogle::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAssertion

An assertion which will check for a condition over task execution status or an expression for task output variables Corresponds to the JSON property assertion



6467
6468
6469
# File 'lib/google/apis/integrations_v1/classes.rb', line 6467

def assertion
  @assertion
end

#failure_messageString

Details of the assertion failure Corresponds to the JSON property failureMessage

Returns:

  • (String)


6472
6473
6474
# File 'lib/google/apis/integrations_v1/classes.rb', line 6472

def failure_message
  @failure_message
end

#statusString

Status of assertion to signify if the assertion succeeded or failed Corresponds to the JSON property status

Returns:

  • (String)


6477
6478
6479
# File 'lib/google/apis/integrations_v1/classes.rb', line 6477

def status
  @status
end

#task_nameString

Task name of task where the assertion was run. Corresponds to the JSON property taskName

Returns:

  • (String)


6482
6483
6484
# File 'lib/google/apis/integrations_v1/classes.rb', line 6482

def task_name
  @task_name
end

#task_numberString

Task number of task where the assertion was run. Corresponds to the JSON property taskNumber

Returns:

  • (String)


6487
6488
6489
# File 'lib/google/apis/integrations_v1/classes.rb', line 6487

def task_number
  @task_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6494
6495
6496
6497
6498
6499
6500
# File 'lib/google/apis/integrations_v1/classes.rb', line 6494

def update!(**args)
  @assertion = args[:assertion] if args.key?(:assertion)
  @failure_message = args[:failure_message] if args.key?(:failure_message)
  @status = args[:status] if args.key?(:status)
  @task_name = args[:task_name] if args.key?(:task_name)
  @task_number = args[:task_number] if args.key?(:task_number)
end