Class: Google::Apis::GenomicsV1alpha2::OperationEvent

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

Overview

An event that occurred during an Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationEvent

Returns a new instance of OperationEvent.



619
620
621
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 619

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

Instance Attribute Details

#descriptionString

Required description of event. Corresponds to the JSON property description

Returns:

  • (String)


606
607
608
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 606

def description
  @description
end

#end_timeString

Optional time of when event finished. An event can have a start time and no finish time. If an event has a finish time, there must be a start time. Corresponds to the JSON property endTime

Returns:

  • (String)


612
613
614
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 612

def end_time
  @end_time
end

#start_timeString

Optional time of when event started. Corresponds to the JSON property startTime

Returns:

  • (String)


617
618
619
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 617

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



624
625
626
627
628
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 624

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end