Class: KubeDSL::DSL::V1::Volume
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::V1::Volume
- Defined in:
- lib/kube-dsl/dsl/v1/volume.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
67 68 69 |
# File 'lib/kube-dsl/dsl/v1/volume.rb', line 67 def kind_sym :volume end |
#serialize ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/kube-dsl/dsl/v1/volume.rb', line 33 def serialize {}.tap do |result| result[:name] = name result[:awsElasticBlockStore] = aws_elastic_block_store.serialize result[:azureDisk] = azure_disk.serialize result[:azureFile] = azure_file.serialize result[:cephfs] = cephfs.serialize result[:cinder] = cinder.serialize result[:configMap] = config_map.serialize result[:csi] = csi.serialize result[:downwardAPI] = downward_api.serialize result[:emptyDir] = empty_dir.serialize result[:fc] = fc.serialize result[:flexVolume] = flex_volume.serialize result[:flocker] = flocker.serialize result[:gcePersistentDisk] = gce_persistent_disk.serialize result[:gitRepo] = git_repo.serialize result[:glusterfs] = glusterfs.serialize result[:hostPath] = host_path.serialize result[:iscsi] = iscsi.serialize result[:nfs] = nfs.serialize result[:persistentVolumeClaim] = persistent_volume_claim.serialize result[:photonPersistentDisk] = photon_persistent_disk.serialize result[:portworxVolume] = portworx_volume.serialize result[:projected] = projected.serialize result[:quobyte] = quobyte.serialize result[:rbd] = rbd.serialize result[:scaleIO] = scale_io.serialize result[:secret] = secret.serialize result[:storageos] = storageos.serialize result[:vsphereVolume] = vsphere_volume.serialize end end |