Class: KubeDSL::DSL::V1::Event
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
57
58
59
|
# File 'lib/kube-dsl/dsl/v1/event.rb', line 57
def kind_sym
:event
end
|
#serialize ⇒ Object
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] = 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
|