Class: Kuby::Redis::DSL::Databases::V1::RedisFailoverSpecRedisStoragePersistentVolumeClaimSpec

Inherits:
KubeDSL::DSLObject
  • Object
show all
Defined in:
lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis_storage_persistent_volume_claim_spec.rb

Instance Method Summary collapse

Instance Method Details

#kind_symObject



40
41
42
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis_storage_persistent_volume_claim_spec.rb', line 40

def kind_sym
  :redis_failover_spec_redis_storage_persistent_volume_claim_spec
end

#serializeObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/kuby/redis/dsl/databases/v1/redis_failover_spec_redis_storage_persistent_volume_claim_spec.rb', line 27

def serialize
  {}.tap do |result|
    result[:storageClassName] = storage_class_name
    result[:volumeMode] = volume_mode
    result[:selector] = selector.serialize
    result[:accessModes] = access_modes
    result[:dataSourceRef] = data_source_ref.serialize
    result[:dataSource] = data_source.serialize
    result[:volumeName] = volume_name
    result[:resources] = resources.serialize
  end
end