Class: Google::Apis::ToolresultsV1beta3::Outcome

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

Overview

Interprets a result so that humans and machines can act on it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Outcome

Returns a new instance of Outcome



869
870
871
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 869

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

Instance Attribute Details

#failure_detailGoogle::Apis::ToolresultsV1beta3::FailureDetail

More information about a FAILURE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not FAILURE. Optional Corresponds to the JSON property failureDetail



839
840
841
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 839

def failure_detail
  @failure_detail
end

#inconclusive_detailGoogle::Apis::ToolresultsV1beta3::InconclusiveDetail

More information about an INCONCLUSIVE outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not INCONCLUSIVE. Optional Corresponds to the JSON property inconclusiveDetail



847
848
849
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 847

def inconclusive_detail
  @inconclusive_detail
end

#skipped_detailGoogle::Apis::ToolresultsV1beta3::SkippedDetail

More information about a SKIPPED outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SKIPPED. Optional Corresponds to the JSON property skippedDetail



854
855
856
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 854

def skipped_detail
  @skipped_detail
end

#success_detailGoogle::Apis::ToolresultsV1beta3::SuccessDetail

More information about a SUCCESS outcome. Returns INVALID_ARGUMENT if this field is set but the summary is not SUCCESS. Optional Corresponds to the JSON property successDetail



861
862
863
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 861

def success_detail
  @success_detail
end

#summaryString

The simplest way to interpret a result. Required Corresponds to the JSON property summary

Returns:

  • (String)


867
868
869
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 867

def summary
  @summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



874
875
876
877
878
879
880
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 874

def update!(**args)
  @failure_detail = args[:failure_detail] if args.key?(:failure_detail)
  @inconclusive_detail = args[:inconclusive_detail] if args.key?(:inconclusive_detail)
  @skipped_detail = args[:skipped_detail] if args.key?(:skipped_detail)
  @success_detail = args[:success_detail] if args.key?(:success_detail)
  @summary = args[:summary] if args.key?(:summary)
end