Class: Google::Apis::ToolresultsV1beta3::Execution

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

Overview

An Execution represents a collection of Steps. For instance, it could represent: - a mobile test executed across a range of device configurations - a jenkins job with a build step followed by a test step The maximum size of an execution message is 1 MiB. An Execution can be updated until its state is set to COMPLETE at which point it becomes immutable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Execution

Returns a new instance of Execution.



833
834
835
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 833

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

Instance Attribute Details

#completion_timeGoogle::Apis::ToolresultsV1beta3::Timestamp

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are " smeared" so that no leap second table is needed for interpretation, using a 24-hour linear smear. The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings. Corresponds to the JSON property completionTime



772
773
774
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 772

def completion_time
  @completion_time
end

#creation_timeGoogle::Apis::ToolresultsV1beta3::Timestamp

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are " smeared" so that no leap second table is needed for interpretation, using a 24-hour linear smear. The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings. Corresponds to the JSON property creationTime



786
787
788
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 786

def creation_time
  @creation_time
end

#dimension_definitionsArray<Google::Apis::ToolresultsV1beta3::MatrixDimensionDefinition>

The dimensions along which different steps in this execution may vary. This must remain fixed over the life of the execution. Returns INVALID_ARGUMENT if this field is set in an update request. Returns INVALID_ARGUMENT if the same name occurs in more than one dimension_definition. Returns INVALID_ARGUMENT if the size of the list is over 100. - In response: present if set by create - In create request: optional - In update request: never set Corresponds to the JSON property dimensionDefinitions



796
797
798
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 796

def dimension_definitions
  @dimension_definitions
end

#execution_idString

A unique identifier within a History for this Execution. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create/update request: never set Corresponds to the JSON property executionId

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 803

def execution_id
  @execution_id
end

#outcomeGoogle::Apis::ToolresultsV1beta3::Outcome

Interprets a result so that humans and machines can act on it. Corresponds to the JSON property outcome



808
809
810
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 808

def outcome
  @outcome
end

#specificationGoogle::Apis::ToolresultsV1beta3::Specification

The details about how to run the execution. Corresponds to the JSON property specification



813
814
815
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 813

def specification
  @specification
end

#stateString

The initial state is IN_PROGRESS. The only legal state transitions is from IN_PROGRESS to COMPLETE. A PRECONDITION_FAILED will be returned if an invalid transition is requested. The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be returned if the state is set to COMPLETE multiple times. If the state is set to COMPLETE, all the in-progress steps within the execution will be set as COMPLETE. If the outcome of the step is not set, the outcome will be set to INCONCLUSIVE. - In response always set - In create/ update request: optional Corresponds to the JSON property state

Returns:

  • (String)


825
826
827
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 825

def state
  @state
end

#test_execution_matrix_idString

TestExecution Matrix ID that the TestExecutionService uses. - In response: present if set by create - In create: optional - In update: never set Corresponds to the JSON property testExecutionMatrixId

Returns:

  • (String)


831
832
833
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 831

def test_execution_matrix_id
  @test_execution_matrix_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



838
839
840
841
842
843
844
845
846
847
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 838

def update!(**args)
  @completion_time = args[:completion_time] if args.key?(:completion_time)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @dimension_definitions = args[:dimension_definitions] if args.key?(:dimension_definitions)
  @execution_id = args[:execution_id] if args.key?(:execution_id)
  @outcome = args[:outcome] if args.key?(:outcome)
  @specification = args[:specification] if args.key?(:specification)
  @state = args[:state] if args.key?(:state)
  @test_execution_matrix_id = args[:test_execution_matrix_id] if args.key?(:test_execution_matrix_id)
end