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

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

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.



806
807
808
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 806

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



745
746
747
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 745

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



759
760
761
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 759

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



769
770
771
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 769

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)


776
777
778
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 776

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



781
782
783
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 781

def outcome
  @outcome
end

#specificationGoogle::Apis::ToolresultsV1beta3::Specification

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



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

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)


798
799
800
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 798

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)


804
805
806
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 804

def test_execution_matrix_id
  @test_execution_matrix_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



811
812
813
814
815
816
817
818
819
820
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 811

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