Class: KubeDSL::DSL::Flowcontrol::V1alpha1::PolicyRulesWithSubjects
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::Flowcontrol::V1alpha1::PolicyRulesWithSubjects
- Defined in:
- lib/kube-dsl/dsl/flowcontrol/v1alpha1/policy_rules_with_subjects.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
15 16 17 |
# File 'lib/kube-dsl/dsl/flowcontrol/v1alpha1/policy_rules_with_subjects.rb', line 15 def kind_sym :policy_rules_with_subjects end |
#serialize ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/kube-dsl/dsl/flowcontrol/v1alpha1/policy_rules_with_subjects.rb', line 7 def serialize {}.tap do |result| result[:nonResourceRules] = non_resource_rules.map(&:serialize) result[:resourceRules] = resource_rules.map(&:serialize) result[:subjects] = subjects.map(&:serialize) end end |