Class: KubeDSL::DSL::Rbac::V1::PolicyRule

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



30
31
32
# File 'lib/kube-dsl/dsl/rbac/v1/policy_rule.rb', line 30

def kind_sym
  :policy_rule
end

#serializeObject



20
21
22
23
24
25
26
27
28
# File 'lib/kube-dsl/dsl/rbac/v1/policy_rule.rb', line 20

def serialize
  {}.tap do |result|
    result[:apiGroups] = api_groups
    result[:nonResourceURLs] = non_resource_ur_ls
    result[:resourceNames] = resource_names
    result[:resources] = resources
    result[:verbs] = verbs
  end
end