Class: Google::Apis::ToolresultsV1beta3::History

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

A History represents a sorted list of Executions ordered by the start_timestamp_millis field (descending). It can be used to group all the Executions of a continuous build. Note that the ordering only operates on one- dimension. If a repository has multiple branches, it means that multiple histories will need to be used in order to order Executions per branch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ History

Returns a new instance of History.



1091
1092
1093
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1091

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

Instance Attribute Details

#display_nameString

A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional Corresponds to the JSON property displayName

Returns:

  • (String)


1070
1071
1072
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1070

def display_name
  @display_name
end

#history_idString

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

Returns:

  • (String)


1077
1078
1079
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1077

def history_id
  @history_id
end

#nameString

A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set Corresponds to the JSON property name

Returns:

  • (String)


1083
1084
1085
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1083

def name
  @name
end

#test_platformString

The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown. Corresponds to the JSON property testPlatform

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1089

def test_platform
  @test_platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1096
1097
1098
1099
1100
1101
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1096

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @history_id = args[:history_id] if args.key?(:history_id)
  @name = args[:name] if args.key?(:name)
  @test_platform = args[:test_platform] if args.key?(:test_platform)
end