Class: KubeDSL::DSL::V1::PersistentVolumeSpec

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



100
101
102
# File 'lib/kube-dsl/dsl/v1/persistent_volume_spec.rb', line 100

def kind_sym
  :persistent_volume_spec
end

#serializeObject



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/kube-dsl/dsl/v1/persistent_volume_spec.rb', line 65

def serialize
  {}.tap do |result|
    result[:accessModes] = access_modes
    result[:awsElasticBlockStore] = aws_elastic_block_store.serialize
    result[:azureDisk] = azure_disk.serialize
    result[:azureFile] = azure_file.serialize
    result[:capacity] = capacity.serialize
    result[:cephfs] = cephfs.serialize
    result[:cinder] = cinder.serialize
    result[:claimRef] = claim_ref.serialize
    result[:csi] = csi.serialize
    result[:fc] = fc.serialize
    result[:flexVolume] = flex_volume.serialize
    result[:flocker] = flocker.serialize
    result[:gcePersistentDisk] = gce_persistent_disk.serialize
    result[:glusterfs] = glusterfs.serialize
    result[:hostPath] = host_path.serialize
    result[:iscsi] = iscsi.serialize
    result[:local] = local.serialize
    result[:mountOptions] = mount_options
    result[:nfs] = nfs.serialize
    result[:nodeAffinity] = node_affinity.serialize
    result[:persistentVolumeReclaimPolicy] = persistent_volume_reclaim_policy
    result[:photonPersistentDisk] = photon_persistent_disk.serialize
    result[:portworxVolume] = portworx_volume.serialize
    result[:quobyte] = quobyte.serialize
    result[:rbd] = rbd.serialize
    result[:scaleIO] = scale_io.serialize
    result[:storageClassName] = storage_class_name
    result[:storageos] = storageos.serialize
    result[:volumeMode] = volume_mode
    result[:vsphereVolume] = vsphere_volume.serialize
  end
end