Sha256: 1ed5fcef00e1ab63d88bdfd34b452cb762a5dbf01b932d6885e9f3d2474e91f9

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

module Kuby::CRDB::DSL::CRDB::V1alpha1
  class SpecDataStorePvcSpecSelector < ::KubeDSL::DSLObject
    key_value_field(:match_labels, format: :string)
    value_field :match_expressions

    validates :match_labels, kv: { value_format: :string }, presence: true
    validates :match_expressions, field: { format: :string }, presence: false

    def serialize
      {}.tap do |result|
        result[:matchLabels] = match_labels.serialize
        result[:matchExpressions] = match_expressions
      end
    end

    def kind_sym
      :spec_data_store_pvc_spec_selector
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuby-crdb-0.1.0 lib/kuby/crdb/dsl/crdb/v1alpha1/spec_data_store_pvc_spec_selector.rb