Class: KubeDSL::DSL::V1::Event

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/v1/event.rb

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



57
58
59
# File 'lib/kube-dsl/dsl/v1/event.rb', line 57

def kind_sym
  :event
end

#serializeObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/kube-dsl/dsl/v1/event.rb', line 35

def serialize
  {}.tap do |result|
    result[:action] = action
    result[:apiVersion] = "v1"
    result[:count] = count
    result[:eventTime] = event_time
    result[:firstTimestamp] = first_timestamp
    result[:involvedObject] = involved_object.serialize
    result[:kind] = "Event"
    result[:lastTimestamp] = last_timestamp
    result[:message] = message
    result[:metadata] = .serialize
    result[:reason] = reason
    result[:related] = related.serialize
    result[:reportingComponent] = reporting_component
    result[:reportingInstance] = reporting_instance
    result[:series] = series.serialize
    result[:source] = source.serialize
    result[:type] = type
  end
end