Class: KubeDSL::DSL::V1::CinderPersistentVolumeSource

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



26
27
28
# File 'lib/kube-dsl/dsl/v1/cinder_persistent_volume_source.rb', line 26

def kind_sym
  :cinder_persistent_volume_source
end

#serializeObject



17
18
19
20
21
22
23
24
# File 'lib/kube-dsl/dsl/v1/cinder_persistent_volume_source.rb', line 17

def serialize
  {}.tap do |result|
    result[:fsType] = fs_type
    result[:readOnly] = read_only
    result[:secretRef] = secret_ref.serialize
    result[:volumeID] = volume_id
  end
end