Class: KubeDSL::DSL::V1::Event
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::V1::Event
- Defined in:
- lib/kube-dsl/dsl/v1/event.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
32 33 34 |
# File 'lib/kube-dsl/dsl/v1/event.rb', line 32 def kind_sym :event end |
#serialize ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/kube-dsl/dsl/v1/event.rb', line 10 def serialize {}.tap do |result| result[:apiVersion] = "v1" result[:kind] = "Event" result[:action] = action result[:count] = count result[:eventTime] = event_time result[:firstTimestamp] = result[:lastTimestamp] = result[:message] = result[:reason] = reason result[:reportingComponent] = reporting_component result[:reportingInstance] = reporting_instance result[:type] = type result[:involvedObject] = involved_object.serialize result[:metadata] = .serialize result[:related] = .serialize result[:series] = series.serialize result[:source] = source.serialize end end |