Class: KubeDSL::DSL::V1::VolumeMount
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::V1::VolumeMount
- Defined in:
- lib/kube-dsl/dsl/v1/volume_mount.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
16 17 18 |
# File 'lib/kube-dsl/dsl/v1/volume_mount.rb', line 16 def kind_sym :volume_mount end |
#serialize ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/kube-dsl/dsl/v1/volume_mount.rb', line 5 def serialize {}.tap do |result| result[:mountPath] = mount_path result[:mountPropagation] = mount_propagation result[:name] = name result[:readOnly] = read_only result[:subPath] = sub_path result[:subPathExpr] = sub_path_expr end end |