Class: KubeDSL::DSL::Storage::V1::VolumeAttachmentSpec

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/storage/v1/volume_attachment_spec.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



19
20
21
# File 'lib/kube-dsl/dsl/storage/v1/volume_attachment_spec.rb', line 19

def kind_sym
  :volume_attachment_spec
end

#serializeObject



11
12
13
14
15
16
17
# File 'lib/kube-dsl/dsl/storage/v1/volume_attachment_spec.rb', line 11

def serialize
  {}.tap do |result|
    result[:attacher] = attacher
    result[:nodeName] = node_name
    result[:source] = source.serialize
  end
end