Class: KubeDSL::DSL::V1::CSIPersistentVolumeSource

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



37
38
39
# File 'lib/kube-dsl/dsl/v1/csi_persistent_volume_source.rb', line 37

def kind_sym
  :csi_persistent_volume_source
end

#serializeObject



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/kube-dsl/dsl/v1/csi_persistent_volume_source.rb', line 23

def serialize
  {}.tap do |result|
    result[:controllerExpandSecretRef] = controller_expand_secret_ref.serialize
    result[:controllerPublishSecretRef] = controller_publish_secret_ref.serialize
    result[:driver] = driver
    result[:fsType] = fs_type
    result[:nodePublishSecretRef] = node_publish_secret_ref.serialize
    result[:nodeStageSecretRef] = node_stage_secret_ref.serialize
    result[:readOnly] = read_only
    result[:volumeAttributes] = volume_attributes.serialize
    result[:volumeHandle] = volume_handle
  end
end