Class: Google::Apis::BatchV1::StatusEvent

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

Overview

Status event

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StatusEvent

Returns a new instance of StatusEvent.



1902
1903
1904
# File 'lib/google/apis/batch_v1/classes.rb', line 1902

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

Instance Attribute Details

#descriptionString

Description of the event. Corresponds to the JSON property description

Returns:

  • (String)


1884
1885
1886
# File 'lib/google/apis/batch_v1/classes.rb', line 1884

def description
  @description
end

#event_timeString

The time this event occurred. Corresponds to the JSON property eventTime

Returns:

  • (String)


1889
1890
1891
# File 'lib/google/apis/batch_v1/classes.rb', line 1889

def event_time
  @event_time
end

#task_executionGoogle::Apis::BatchV1::TaskExecution

This Task Execution field includes detail information for task execution procedures, based on StatusEvent types. Corresponds to the JSON property taskExecution



1895
1896
1897
# File 'lib/google/apis/batch_v1/classes.rb', line 1895

def task_execution
  @task_execution
end

#typeString

Type of the event. Corresponds to the JSON property type

Returns:

  • (String)


1900
1901
1902
# File 'lib/google/apis/batch_v1/classes.rb', line 1900

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1907
1908
1909
1910
1911
1912
# File 'lib/google/apis/batch_v1/classes.rb', line 1907

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @event_time = args[:event_time] if args.key?(:event_time)
  @task_execution = args[:task_execution] if args.key?(:task_execution)
  @type = args[:type] if args.key?(:type)
end