Class: Kuby::KubeDB::DSL::Api::V1::LocalSpec

Inherits:
KubeDSL::DSLObject
  • Object
show all
Defined in:
lib/kuby/kube-db/dsl/api/v1/local_spec.rb

Instance Method Summary collapse

Instance Method Details

#kind_symObject



66
67
68
# File 'lib/kuby/kube-db/dsl/api/v1/local_spec.rb', line 66

def kind_sym
  :local_spec
end

#serializeObject



32
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
# File 'lib/kuby/kube-db/dsl/api/v1/local_spec.rb', line 32

def serialize
  {}.tap do |result|
    result[:subPath] = sub_path
    result[:mountPath] = mount_path
    result[:portworxVolume] = portworx_volume.serialize
    result[:glusterfs] = glusterfs.serialize
    result[:gitRepo] = git_repo.serialize
    result[:flocker] = flocker.serialize
    result[:storageos] = storageos.serialize
    result[:iscsi] = iscsi.serialize
    result[:projected] = projected.serialize
    result[:secret] = secret.serialize
    result[:scaleIO] = scale_io.serialize
    result[:photonPersistentDisk] = photon_persistent_disk.serialize
    result[:azureDisk] = azure_disk.serialize
    result[:fc] = fc.serialize
    result[:flexVolume] = flex_volume.serialize
    result[:emptyDir] = empty_dir.serialize
    result[:rbd] = rbd.serialize
    result[:persistentVolumeClaim] = persistent_volume_claim.serialize
    result[:configMap] = config_map.serialize
    result[:azureFile] = azure_file.serialize
    result[:quobyte] = quobyte.serialize
    result[:hostPath] = host_path.serialize
    result[:nfs] = nfs.serialize
    result[:vsphereVolume] = vsphere_volume.serialize
    result[:cinder] = cinder.serialize
    result[:awsElasticBlockStore] = aws_elastic_block_store.serialize
    result[:cephfs] = cephfs.serialize
    result[:downwardAPI] = downward_api.serialize
    result[:gcePersistentDisk] = gce_persistent_disk.serialize
  end
end