Class: KubeDSL::DSL::Storage::V1beta1::CSIStorageCapacity

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/storage/v1beta1/csi_storage_capacity.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



32
33
34
# File 'lib/kube-dsl/dsl/storage/v1beta1/csi_storage_capacity.rb', line 32

def kind_sym
  :csi_storage_capacity
end

#serializeObject



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/kube-dsl/dsl/storage/v1beta1/csi_storage_capacity.rb', line 20

def serialize
  {}.tap do |result|
    result[:apiVersion] = "storage.k8s.io/v1beta1"
    result[:capacity] = capacity
    result[:kind] = "CSIStorageCapacity"
    result[:maximumVolumeSize] = maximum_volume_size
    result[:metadata] = .serialize
    result[:nodeTopology] = node_topology.serialize
    result[:storageClassName] = storage_class_name
  end
end