Class: KubeDSL::DSL::V1::ISCSIPersistentVolumeSource

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



47
48
49
# File 'lib/kube-dsl/dsl/v1/iscsi_persistent_volume_source.rb', line 47

def kind_sym
  :iscsi_persistent_volume_source
end

#serializeObject



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/kube-dsl/dsl/v1/iscsi_persistent_volume_source.rb', line 31

def serialize
  {}.tap do |result|
    result[:chapAuthDiscovery] = chap_auth_discovery
    result[:chapAuthSession] = chap_auth_session
    result[:fsType] = fs_type
    result[:initiatorName] = initiator_name
    result[:iqn] = iqn
    result[:iscsiInterface] = iscsi_interface
    result[:lun] = lun
    result[:portals] = portals
    result[:readOnly] = read_only
    result[:secretRef] = secret_ref.serialize
    result[:targetPortal] = target_portal
  end
end