Class: KubeDSL::DSL::Meta::V1::DeleteOptions

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/meta/v1/delete_options.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



29
30
31
# File 'lib/kube-dsl/dsl/meta/v1/delete_options.rb', line 29

def kind_sym
  :delete_options
end

#serializeObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/kube-dsl/dsl/meta/v1/delete_options.rb', line 17

def serialize
  {}.tap do |result|
    result[:apiVersion] = api_version
    result[:dryRun] = dry_run
    result[:gracePeriodSeconds] = grace_period_seconds
    result[:kind] = "DeleteOptions"
    result[:orphanDependents] = orphan_dependents
    result[:preconditions] = preconditions.serialize
    result[:propagationPolicy] = propagation_policy
  end
end